nano-brain 2026.8.3 → 2026.8.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +33 -11
- package/docker-compose.yml +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -636,17 +636,15 @@ nano-brain status # Show index health, collections, model status
|
|
|
636
636
|
|
|
637
637
|
```bash
|
|
638
638
|
nano-brain mcp # Start MCP server (stdio)
|
|
639
|
-
nano-brain mcp --http
|
|
639
|
+
nano-brain mcp --http # Start MCP server (HTTP/SSE, default port 8282)
|
|
640
|
+
nano-brain mcp --http --port=3100 --host=0.0.0.0 # Custom port (e.g. Docker default 3100)
|
|
640
641
|
```
|
|
641
642
|
|
|
642
643
|
### Remote Server (Daemon)
|
|
643
644
|
|
|
644
645
|
```bash
|
|
645
|
-
nano-brain
|
|
646
|
-
nano-brain
|
|
647
|
-
nano-brain serve stop # Stop the daemon
|
|
648
|
-
nano-brain serve --foreground # Run in foreground (for debugging)
|
|
649
|
-
nano-brain serve --port=8080 # Custom port
|
|
646
|
+
nano-brain mcp --http --daemon --port=8282 # Start HTTP/SSE server as background daemon
|
|
647
|
+
nano-brain mcp --http --daemon --port=3100 # Custom port (e.g. Docker default)
|
|
650
648
|
```
|
|
651
649
|
|
|
652
650
|
### Docker Deployment
|
|
@@ -666,6 +664,10 @@ Environment variables for volume mounts:
|
|
|
666
664
|
- `NANO_BRAIN_HOME` — Path to data directory (default: `~/.nano-brain`)
|
|
667
665
|
- `NANO_BRAIN_WORKSPACE` — Path to your project workspace to index as codebase (mounted read-only, passed as `--root`)
|
|
668
666
|
|
|
667
|
+
Runtime environment variables:
|
|
668
|
+
- `OPENCODE_STORAGE_DIR` — Override OpenCode session storage path (useful in Docker where container homedir differs from host). Example: `/Users/tamlh/.local/share/opencode/storage`
|
|
669
|
+
- `NANO_BRAIN_EMBEDDING_CONCURRENCY` — Number of parallel embedding requests to Ollama (default: `3`)
|
|
670
|
+
|
|
669
671
|
### Search
|
|
670
672
|
|
|
671
673
|
```bash
|
|
@@ -691,7 +693,7 @@ nano-brain tags # List all tags with counts
|
|
|
691
693
|
|
|
692
694
|
```bash
|
|
693
695
|
nano-brain update # Reindex all collections
|
|
694
|
-
nano-brain
|
|
696
|
+
nano-brain reindex # Index codebase in current workspace
|
|
695
697
|
nano-brain reset --confirm # Reset all data (requires confirmation)
|
|
696
698
|
nano-brain reset --dry-run # Preview what would be deleted
|
|
697
699
|
```
|
|
@@ -740,12 +742,17 @@ nano-brain cache stats # Show cache statistics
|
|
|
740
742
|
Measures search quality (P@5, R@10, MRR) and latency across FTS, vector, and hybrid modes.
|
|
741
743
|
|
|
742
744
|
```bash
|
|
745
|
+
nano-brain bench generate # Generate fixtures (scale-100)
|
|
746
|
+
nano-brain bench generate --scale=1000 # Larger corpus (valid: 100,1000,5000,10000,100000)
|
|
743
747
|
nano-brain bench run # Run benchmark suite (scale-100)
|
|
744
|
-
nano-brain bench run --scale
|
|
748
|
+
nano-brain bench run --scale=1000 # Run at larger scale
|
|
745
749
|
nano-brain bench compare new.json baseline.json # Regression check
|
|
750
|
+
nano-brain bench compare new.json baseline.json --save=baseline.json --force # Save + force
|
|
746
751
|
```
|
|
747
752
|
|
|
748
|
-
|
|
753
|
+
See [`benchmarks/README.md`](benchmarks/README.md) for full explanation of metrics, corpus generation, and regression detection.
|
|
754
|
+
|
|
755
|
+
Current results on v2026.8.3 (100 docs, Ollama local):
|
|
749
756
|
|
|
750
757
|
```
|
|
751
758
|
Mode P@5 R@10 MRR Latency (p50)
|
|
@@ -754,8 +761,6 @@ Vector 0.875 0.925 1.000 29ms
|
|
|
754
761
|
Hybrid 0.835 0.970 1.000 34ms
|
|
755
762
|
```
|
|
756
763
|
|
|
757
|
-
See [`benchmarks/README.md`](benchmarks/README.md) for full explanation of metrics, use cases, and regression detection.
|
|
758
|
-
|
|
759
764
|
### Logging
|
|
760
765
|
|
|
761
766
|
```bash
|
|
@@ -767,6 +772,23 @@ nano-brain logs --clear # Delete all log files
|
|
|
767
772
|
nano-brain logs path # Print log directory path
|
|
768
773
|
```
|
|
769
774
|
|
|
775
|
+
### Code Intelligence
|
|
776
|
+
|
|
777
|
+
```bash
|
|
778
|
+
nano-brain context <symbol> # 360° view of a code symbol (callers, callees, flows)
|
|
779
|
+
nano-brain code-impact <symbol> # Analyze impact of changing a symbol
|
|
780
|
+
nano-brain detect-changes # Map current git changes to affected symbols and flows
|
|
781
|
+
nano-brain wake-up # Generate a compact context briefing for session start
|
|
782
|
+
```
|
|
783
|
+
|
|
784
|
+
### Memory Intelligence
|
|
785
|
+
|
|
786
|
+
```bash
|
|
787
|
+
nano-brain consolidate # Run consolidation job manually
|
|
788
|
+
nano-brain categorize-backfill # Backfill LLM categorization on existing documents
|
|
789
|
+
nano-brain learning rollback [id] # Manage self-learning system; rollback to a previous config version
|
|
790
|
+
```
|
|
791
|
+
|
|
770
792
|
## Project Structure
|
|
771
793
|
|
|
772
794
|
```
|
package/docker-compose.yml
CHANGED
|
@@ -33,7 +33,7 @@ services:
|
|
|
33
33
|
- nano-brain-node-modules:/app/node_modules
|
|
34
34
|
- ${NANO_BRAIN_HOME:-~/.nano-brain}:/root/.nano-brain
|
|
35
35
|
- ${NANO_BRAIN_WORKSPACE:-/Users/tamlh/workspaces/NUSTechnology/Projects/zengamingx}:${NANO_BRAIN_WORKSPACE:-/Users/tamlh/workspaces/NUSTechnology/Projects/zengamingx}:ro
|
|
36
|
-
- ${
|
|
36
|
+
- ${OPENCODE_DATA_DIR:-~/.local/share/opencode}:/root/.local/share/opencode:ro
|
|
37
37
|
environment:
|
|
38
38
|
- NODE_ENV=production
|
|
39
39
|
- OLLAMA_HOST=http://host.docker.internal:11434
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nano-brain",
|
|
3
|
-
"version": "2026.8.
|
|
3
|
+
"version": "2026.8.5",
|
|
4
4
|
"description": "Persistent memory and code intelligence for AI coding agents. Local MCP server with self-learning hybrid search (BM25 + vector + knowledge graph + LLM reranking), automatic session ingestion, codebase indexing, and 22 tools. Learns your preferences over time. Works with OpenCode, Claude, Cursor, Windsurf, and any MCP client.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|