NARE CLI
Neural Amortized Reasoning Engine. AI coding assistant that remembers solutions, compiles patterns into skills, and gets faster with every task.
Traditional assistants forget everything. NARE builds a persistent library of verified solutions — common tasks become instant, complex tasks get validated.
INSTALLATION
Get running in under 60 seconds.
pip install narecliRequires Python 3.10+
export ANTHROPIC_API_KEY="sk-..."Works with Anthropic API or any compatible proxy
nareOpens interactive REPL in your project directory
nare "fix the auth bug"Run a single task without entering the REPL
CAPABILITIES
Production-grade reasoning infrastructure.
Semantic Memory
FAISS-powered episodic storage. Every solved task is indexed — sub-100ms similarity search across your entire history.
HNSW indexing · automatic deduplication · persistent across sessions
5-Tier Routing
Queries are classified and routed through the optimal path: DIRECT → COMPILED_SKILL → FAST → HYBRID → SLOW.
Cache hits: 0 tokens, <100ms · Full synthesis: verified + oracle-tested
Compiled Skills
Recurring patterns crystallize into executable Python modules. The system learns your codebase's idioms.
Background compilation · skill quarantine · automatic versioning
Verified Synthesis
Generate → test → critique → retry. Solutions are validated before application, with automatic repair on failure.
Oracle feedback · confidence scoring · multi-candidate ranking
Agent Loop
Autonomous multi-step execution with tool registry, budget control, and extended thinking for complex tasks.
50 iterations · 200k token budget · 1 hour timeout · loop detection
Token Optimization
Prompt caching saves 90%+ on repeated context. File read cache, reasoning cache, and efficient tool workflows.
find_function → apply_hunks saves 90% vs full-file reads
ARCHITECTURE
Five-layer stack from terminal to storage.
Routing Decision Table
| Route | When |
|---|---|
| DIRECT | Greeting or cached conversational response |
| COMPILED_SKILL | Execute pre-compiled Python skill module |
| FAST | Exact match from episodic memory (FAISS) |
| HYBRID | Memory context + targeted LLM generation |
| SLOW | Full verified synthesis with critic + oracle |
REFERENCE
Commands, shortcuts, and configuration.
Commands & Shortcuts
/helpShow all available commands/read <file>Load file into context for the current session/agentToggle autonomous agent loop on/off/skillsList compiled skills from memory/metricsShow performance analytics and route distribution/historyView conversation history/clearClear current context and chat history/modeSwitch between Manual / Autopilot / Agent modesTabCycle through available modesCtrl+LClear terminal screenCtrl+DExit NARE CLIEnvironment Variables
ANTHROPIC_API_KEYANTHROPIC_BASE_URLANTHROPIC_MODELNARE_AGENT_LOOPNARE_LOG_LEVELSystem Requirements
- • Python 3.10 or higher
- • Anthropic API key (Claude Sonnet 4 recommended)
- • 512 MB RAM minimum (FAISS index grows with usage)
- • Windows / macOS / Linux
- • Optional: Docker for sandboxed code execution
- • Optional: GPT-4o key for oracle validation