Borrowing it
Nothing to install: this file belongs to raphasouthall/neurostack. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/raphasouthall/neurostack/main/CLAUDE.mdgit clone --depth 1 https://github.com/raphasouthall/neurostackWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/instructions/raphasouthall/neurostack/claude-md)<a href="https://agentmods.dev/instructions/raphasouthall/neurostack/claude-md"><img src="https://agentmods.dev/badge/instructions/raphasouthall/neurostack/claude-md/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/instructions/raphasouthall/neurostack/claude-md"><img src="https://agentmods.dev/badge/instructions/raphasouthall/neurostack/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.05085 | $0.05085 |
| Opus 5.5 | $0.02034 | $0.02034 |
| Sonnet 5.5 | $0.01017 | $0.01017 |
| Haiku 4.5 | $0.00509 | $0.00509 |
Grade A, and why
neurostack CLAUDE.md scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 272 lines — stays where its author put it; the contents beside it link to each section on GitHub.
NeuroStack - Claude Code Guide
NeuroStack is a local RAG layer and optimizer for a Markdown knowledge base, shipped as a CLI, an MCP server and an OpenAI-compatible API. It indexes the vault into SQLite + FTS5 with embeddings and a link graph, then serves grounded answers to any AI client. It also keeps the base sharp over time by flagging stale notes, harvesting AI sessions into memories, synthesising recurring memories into learnings, and promoting proven memories into notes. The ranking heuristics borrow from memory neuroscience, which docs/neuroscience-appendix.md documents as implementation detail.
Quick Reference
Installation
npm install -g neurostack # bootstraps CLI, Python, uv, deps
neurostack init # lite/full → vault setup → index
MCP Server (recommended for Claude Code)
Add to ~/.claude/.mcp.json:
{
"mcpServers": {
"neurostack": {
"command": "neurostack",
"args": ["serve"],
"env": {}
}
}
}
OpenAI-compatible API
pip install neurostack[api]
neurostack api # localhost:8000
neurostack api --host 0.0.0.0 --port 9000
NEUROSTACK_API_KEY=secret neurostack api # with auth
Endpoints: POST /v1/chat/completions, POST /v1/embeddings, GET /v1/models, GET /health
Models: neurostack-search (hybrid), neurostack-tiered (auto-depth), neurostack-triples (facts)
CLI Commands
Search & Retrieval
| Command | Description |
|---|---|
neurostack search "query" |
Hybrid FTS5 + semantic search. Flags: --mode hybrid|semantic|keyword, --top-k N, --context "domain", --workspace "path/" |
neurostack tiered "query" |
Token-efficient tiered retrieval. --depth triples|summaries|full|auto |
neurostack triples "query" |
Search knowledge graph triples (subject-predicate-object facts) |
neurostack summary "note.md" |
Get pre-computed AI summary of a note |
neurostack graph "note.md" |
Wiki-link neighborhood with PageRank scores. --depth N |
neurostack graph-analysis |
Structural gaps (related but unlinked) + bridge notes. --top-k N, --min-shared N |
neurostack diff |
Change feed since a baseline or date. --since DATE, --baseline NAME, --checkpoint |
neurostack related "note.md" |
Find semantically similar notes by embedding distance |
neurostack communities query "question" |
GraphRAG global queries across topic clusters |
neurostack context "task description" |
Assemble task-scoped context for session recovery |
neurostack brief |
Compact session briefing (recent activity, hot notes, alerts) |
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 1mo ago Changed · +1 lines · +65 tokens per session 6c9fec6138a6
- 1mo ago Changed · +4 lines · +239 tokens per session d5d925c5e907
- 1mo ago Changed · +12 lines · +647 tokens per session f01438041f35
- 1mo ago Changed · +19 lines · +652 tokens per session cba9d0c1ea30
- 1mo ago Changed · -2 lines · -61 tokens per session e01597c6dc5a
- 2mo ago Changed · +79 tokens per session c978c87bb4e5
- 2mo ago First seen · 238 lines · 3,464 tokens per session scan A c8e6baaf4945
neurostack CLAUDE.md is an instructions file published in the GitHub repository raphasouthall/neurostack (47 stars, last pushed 15d ago), licensed Apache-2.0. It adds 5,085 tokens to every session, about $0.0203 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
neurostack CLAUDE.md compared with instructions from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| neurostack CLAUDE.mdraphasouthall/neurostack | Instructions file | 47 | 15d ago | Apache-2.0 | A | 5,085 | Claude Code |
| vscode buildNext.instructions.mdmicrosoft/vscode | Instructions file | 195k | yesterday | MIT | A | 9,719 | GitHub Copilot |
| next.js AGENTS.mdvercel/next.js | Instructions file | 143k | yesterday | MIT | A | 7,461 | Codex, OpenCode |
| langchain AGENTS.mdlangchain-ai/langchain | Instructions file | 149k | yesterday | MIT | A | 4,680 | Codex, OpenCode |
| vscode oss-third-party-notices.instructions.mdmicrosoft/vscode | Instructions file | 195k | yesterday | MIT | A | 5,516 | GitHub Copilot |
| vscode copilot-instructions.mdmicrosoft/vscode | Instructions file | 195k | yesterday | MIT | A | 3,093 | GitHub Copilot |
| deepseek-harness AGENTS.mddeepseek-ai/deepseek-harness | Instructions file | 274k | 2d ago | MIT | A | 4,313 | Codex, OpenCode |