feat: NouseAgent — single-model sub-agent architecture#19
Open
base76-research-lab wants to merge 1 commit into
Open
feat: NouseAgent — single-model sub-agent architecture#19base76-research-lab wants to merge 1 commit into
base76-research-lab wants to merge 1 commit into
Conversation
One capable local model replaces the multi-model stack. gemma4:e2b handles all NoUse workloads via role-specific system prompts: extractor, synthesizer, curiosity, bootstrap, validator, chat. Changes: - src/nouse/llm/agent.py: NouseAgent class + module singleton get_agent() - src/nouse/cli/commands/run.py: nouse run — interactive REPL with graph R/W - src/nouse/cli/main.py: register 'nouse run' command - src/nouse/inject.py: domain_bootstrap uses NouseAgent instead of raw httpx - examples/Modelfile: build 'ollama create NoUse' from gemma4:e2b Minimum stack: gemma4:e2b (7.2 GB) + qwen3-embedding:4b (3.9 GB). No external API dependencies required. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What this does
Replaces the fragmented multi-model stack with a single capable local model using role-specific system prompts.
Before: deepseek-r1:1.5b (extraction, timing out) + external APIs (Groq, Cerebras, OpenRouter) + ad-hoc httpx calls in domain_bootstrap
After:
gemma4:e2bhandles every workload viaNouseAgent— one model, six roles, no external dependenciesChanges
src/nouse/llm/agent.py— NouseAgentEach role uses the same model with a different system prompt. Zero routing overhead. Consistent quality across all workloads.
src/nouse/cli/commands/run.py+nouse runcommandFlow: user query → graph.query() → inject context → NouseAgent.chat() → brain.learn()
examples/ModelfileCreates a named Ollama model with NoUse's epistemic identity baked into the system prompt. Distributable as
ollama create NoUse.inject.py— domain_bootstrap refactoreddomain_bootstrap()now usesNouseAgent.bootstrap()directly instead of raw httpx calls with hardcodeddeepseek-r1:1.5b.Tested
Minimum hardware
Fits on any machine with 8 GB VRAM. No cloud API keys needed.
Closes #18
🤖 Generated with Claude Code