NARE CLI
SEMANTIC
MEMORY
Neural Amortized Reasoning Engine. An O(log N) persistence layer for software engineering. Amortized reasoning through semantic memory indexing.
Traditional assistants re-calculate identical logic at every prompt. NARE implements a 5-tier routing architecture that prioritizes locally-indexed skills and cached reasoning before falling back to full synthesis.
Your codebase has patterns. Your tools should learn them.
Capabilities
Production-grade reasoning infrastructure. Every feature is designed to minimize token waste and maximize engineering velocity.
Semantic Memory
FAISS-powered episodic storage. Every solved task is indexed — sub-100ms similarity search across your entire history.
5-Tier Routing
Queries are classified and routed through the optimal path: DIRECT → COMPILED_SKILL → FAST → HYBRID → SLOW.
Compiled Skills
Recurring patterns crystallize into executable Python modules. The system learns your codebase's idioms.
Verified Synthesis
Generate → test → critique → retry. Solutions are validated before application, with automatic repair on failure.
Agent Loop
Autonomous multi-step execution with tool registry, budget control, and extended thinking for complex tasks.
Token Optimization
Prompt caching saves 90%+ on repeated context. File read cache, reasoning cache, and efficient tool workflows.
Installation
Get running in under 60 seconds. No complex setup, no Docker required.
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
Five layers of reasoning. One command to rule them all.
Architecture
Five-layer stack from terminal to storage. Built for maximum efficiency, minimum token waste.
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
NARE Cloud
The logical evolution of your local CLI. Transition from a workstation script to a distributed, persistent infrastructure for autonomous engineering.