Skip to content

Commit 9048f7f

Browse files
feat: add NANO.md memory system and Phase 2 foundations
Major additions: - NANO.md hierarchical memory system (Claude Code CLAUDE.md compatible) - Unified JSON-RPC client for MCP/LSP (saves ~250 LOC) - Plugin system with YAML discovery (builtin/, ~/.nano/, .nano/) - Undo/backup tool for file recovery - SIGINT interrupt handler (Ctrl+C) - Hooks actually integrated into CLI lifecycle - JSON Schema specs for multi-language implementations - 5 essential agents migrated to YAML New commands: - /memory - Show active memory files - /remember - Save insights to NANO.md Tests: 83/83 passing Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 7fd9609 commit 9048f7f

35 files changed

+2702
-325
lines changed

NANO.md

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# nano-opencode Project Context
2+
3+
## Project Overview
4+
nano-opencode is a minimal AI coding assistant (<5K LOC) with <50ms startup time.
5+
Future name: "jarvis" (inspired by Iron Man's AI assistant)
6+
7+
## Architecture Decisions
8+
- TypeScript reference implementation (target: <3K LOC)
9+
- YAML-based plugin system for agents, skills, hooks
10+
- Unified JSON-RPC 2.0 client for MCP and LSP
11+
- Lazy loading everywhere for performance
12+
- SQLite for session persistence
13+
14+
## Coding Standards
15+
- Use `bun` for package management and running
16+
- Tests: `npm test` (node:test built-in)
17+
- Prefer functional style over classes where possible
18+
- Keep files under 300 LOC
19+
- No emojis in code comments
20+
21+
## Key Directories
22+
- `src/` - Core TypeScript implementation
23+
- `builtin/agents/` - Essential YAML agent definitions
24+
- `specs/interfaces/` - JSON Schema specifications
25+
- `test/` - Test files (*.test.ts)
26+
27+
## Important Files
28+
- `src/cli.ts` - Main CLI REPL with interrupt handling
29+
- `src/agents/index.ts` - Agent system with memory injection
30+
- `src/memory/index.ts` - NANO.md memory system
31+
- `src/rpc/client.ts` - Unified JSON-RPC for MCP/LSP
32+
33+
## Related Projects
34+
- jarvis: Future merge target at /home/robot/workspace/26-nano-opencode/jarvis
35+
36+
## Current Phase
37+
Phase 2: Competitive Parity
38+
- [x] NANO.md memory system
39+
- [ ] Plan Mode (/plan command)
40+
- [ ] Ollama provider (local models)
41+
- [ ] Auto-commit git integration

0 commit comments

Comments
 (0)