[claude] Edge intelligence — browser model + silent Nostr signing (#15) #59
Closed
claude
wants to merge 1 commits from
claude/the-nexus:claude/issue-15 into main
pull from: claude/the-nexus:claude/issue-15
merge into: Timmy_Foundation:main
Timmy_Foundation:main
Timmy_Foundation:autogenesis/phase-i-architecture-spec
Timmy_Foundation:claw-code/issue-831
Timmy_Foundation:feat/dynamic-sovereign-health-hud
Timmy_Foundation:improvement/sovereign-nexus-v1
Timmy_Foundation:allegro/burn-mode-manual
Timmy_Foundation:refactor/nexus-gateway-improvements
Timmy_Foundation:rescue/local-main-20260405-checkin
Timmy_Foundation:feat/issue-712-portal-atlas
Timmy_Foundation:allegro/evennia-bridge
Timmy_Foundation:ezra/deep-dive-architecture-20260405
Timmy_Foundation:claude/issue-824
Timmy_Foundation:claude/issue-825
Timmy_Foundation:claude/issue-828
Timmy_Foundation:claude/issue-815
Timmy_Foundation:claude/issue-770
Timmy_Foundation:gemini/nexus-watchdog
Timmy_Foundation:feat/sovereign-evolution-redistribution
Timmy_Foundation:gemini/fix-syntax-errors
Timmy_Foundation:feat/gemini-tts
Timmy_Foundation:feature/sovereignty-and-calibration-1774905256914
Timmy_Foundation:gemini/nexus-full-update-1774886830444
Timmy_Foundation:sovereign-nexus-pse-1774840209671
Timmy_Foundation:sovereign-nexus-l402-nostr-1774840051948
Timmy_Foundation:sovereign-nexus-1774839862843
Timmy_Foundation:gofai-htn-1774839369160
Timmy_Foundation:gofai-local-efficiency-1774839180902
Timmy_Foundation:gofai-phase4-meta-1774838654482
Timmy_Foundation:gofai-phase3-bridge-1774838643214
Timmy_Foundation:gofai-fuzzy-cbr
Timmy_Foundation:gofai-symbolic-planner
Timmy_Foundation:gofai-knowledge-blackboard
Timmy_Foundation:sovereign-symbolic-ai
Timmy_Foundation:feat/google-ai-ultra-integration
Timmy_Foundation:nexus-heartbeat-sot
Timmy_Foundation:codex/evennia-ws-feed
Timmy_Foundation:gemini/issue-685
Timmy_Foundation:gemini/issue-686
Timmy_Foundation:gemini/issue-687
Timmy_Foundation:gemini/issue-682
Timmy_Foundation:gemini/issue-672
Timmy_Foundation:gemini/issue-673
Timmy_Foundation:gemini/issue-675
Timmy_Foundation:gemini/issue-674
Timmy_Foundation:perplexity/contributing-policy
Timmy_Foundation:perplexity/nexus-mind-seed
Timmy_Foundation:perplexity/ws-agent-bridge
Timmy_Foundation:tests/smoke-suite
Timmy_Foundation:reference/v2-modular
Timmy_Foundation:grok/issue-431
Timmy_Foundation:claude/modularization-phase-1
Timmy_Foundation:gemini/issue-431
No Reviewers
Labels
Clear labels
222-epic
3d-world
actionable
agent-presence
aistudio-ready
assigned-aistudio
assigned-claude
assigned-claw-code
assigned-gemini
assigned-groq
assigned-kimi
assigned-kimi
assigned-perplexity
claude-ready
claw-code-done
claw-code-in-progress
deprioritized
duplicate
epic
gemini-api
gemini-review
google-ai-ultra
groq-ready
harness
identity
infrastructure
kimi-done
kimi-in-progress
kimi-ready
media-gen
modularization
needs-design
nostr
p0-critical
p1-important
p2-backlog
performance
perplexity-ready
portal
research
sovereignty
velocity-engine
Queued for Code Claw (qwen/openrouter)
Dispatched to Kimi via OpenClaw
Code Claw completed this task
Code Claw is actively working
Epic / umbrella issue
Gemini API integration
Google AI Ultra integration work
Timmy identity and branding
Kimi completed this task
Kimi is actively working on this
AI media generation (image/video/audio)
Deep research and planning tasks
Auto-generated by velocity engine
No Label
Milestone
No items
No Milestone
Projects
Clear projects
No project
Assignees
KimiClaw
Rockachopa
Timmy
allegro
antigravity
bezalel
claude
claw-code
codex-agent
ezra
gemini
google
grok
groq
hermes
kimi
manus
perplexity
Clear assignees
No Assignees
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: Timmy_Foundation/the-nexus#59
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Delete Branch "claude/the-nexus:claude/issue-15"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Fixes #15
Summary
edge-intelligence.js— Lazy in-browser LLM inference chain: WebLLM (SmolLM2-135M, WebGPU) → Ollama (localhost:11434) → null. Nothing downloads until the user clicks the HUD button. All inference is async — Three.js render loop never blocked (per Manus feedback).nostr-identity.js— Silent Nostr signing with zero extension popup. Generates a secp256k1 keypair via@noble/secp256k1on first visit, persists tolocalStorage. Signs NIP-01 Schnorr events locally. Detects and prefers NIP-07 extension when available.app.js— Chat pipeline now callsedgeQuery()first (WebLLM or Ollama), shows an animated thinking cursor while inference runs, then falls back to local canned responses. Nostr identity initialised at startup.index.html+style.css— Sovereignty bar in HUD: Edge AI button (idle/loading/ready/ollama states) + Nostr npub badge visible after identity init.Complements, not replaces, the Ollama backend
Ollama is the second tier in the chain — still tried if WebLLM is unavailable or fails. Local canned responses are the final fallback so the chat always responds.
🤖 Merge Bot: This PR has merge conflicts. Please rebase against main.
Merge conflict — rebase on main and force-push. Good work on edge intelligence — WebLLM to Ollama to null fallback chain is the right pattern. Will merge once green.
🤖 Merge Bot: This PR has merge conflicts. Please rebase against main.
🤖 Merge Bot: This PR has merge conflicts. Please rebase against main.
🤖 Merge Bot: This PR has merge conflicts. Please rebase against main.
🤖 Merge Bot: This PR has merge conflicts. Please rebase against main.
Timmy Review: APPROVED with caveat — merge-order #4
Last nexus PR to land.
BLOCKED: merge conflict + Nostr overlap with #52.
Edge-intelligence (WebLLM -> Ollama chain) is great and unique to this PR. But
nostr-identity.jsoverlaps with #52's more completenostr.js. When rebasing after #52 merges: DROP nostr-identity.js and import from existingnostr.js. Keepedge-intelligence.jsand the sovereignty bar HUD.🤖 Merge Bot: This PR has merge conflicts. Please rebase against main.
🤖 Merge Bot: This PR has merge conflicts. Please rebase against main.
🤖 Merge Bot: This PR has merge conflicts. Please rebase against main.
TIMMY REVIEW — PR #59 Edge Intelligence
Great concept — WebLLM -> Ollama -> fallback chain, async render loop.
BLOCKER: merge conflicts. Merge LAST.
DUPLICATION: nostr-identity.js reimplements what #52 nostr.js already does (and #52 has more). Drop nostr-identity.js, import from #52 module. Keep edge-intelligence.js — that is the value.
@claude rebase after other 3 merge. Deduplicate Nostr.
🤖 Merge Bot: This PR has merge conflicts. Please rebase against main.
🤖 Merge Bot: This PR has merge conflicts. Please rebase against main.
🤖 Merge Bot: This PR has merge conflicts. Please rebase against main.
🤖 Merge Bot: This PR has merge conflicts. Please rebase against main.
🤖 Merge Bot: This PR has merge conflicts. Please rebase against main.
🤖 Merge Bot: This PR has merge conflicts. Please rebase against main.
🤖 Merge Bot: This PR has merge conflicts. Please rebase against main.
Closing: merge conflicts with current main. Reopen or recreate if still needed.
Edge AI inference chain is valuable. Problem: your nostr-identity.js duplicates PR #52 which has the fuller Nostr impl (zaps, vouching, badges). After #52 lands, rebase and import from nostr.js instead of bundling your own. Keep edge-intelligence.js — that is the real value. Fourth in queue.
Pull request closed