Cortex
CLAUDE.md73 starsChanged 4 months agoMITView on GitHub
Persistent memory and cognitive profiling MCP server for Claude Code. Python 3.10+, FastMCP, Pydantic, numpy; SQLite by default, PostgreSQL+pgvector opt-in (PRIVACY.md). This file is deliberately short: the host harness (hooks, skills, agents) loads what it needs on demand. Everything that used to be here is in docs/agent-guidance.md (architecture pointers, releasing, code style and the craftsmanship gate, what not to do, the zetetic implementation standard). Read it before any non-trivial change. - Install (dev): uv sync --no-default-groups --extra dev (add --extra…
In this repository13 other files it gives its agents.
- cortex-automateSkill
- cortex-consolidateSkill
- cortex-debug-memorySkill
- cortex-explore-memorySkill
- cortex-importSkill
- cortex-navigate-knowledgeSkill
- cortex-profileSkill
- cortex-recall-globalSkill
- cortex-recallSkill
- cortex-remember-globalSkill
- cortex-rememberSkill
- cortex-setup-projectSkill
- cortex-wiki-authorSkill
The file
We split this CLAUDE.md into the rules it gives an agent
2 rules. About 0 are common, 1 is distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 27
Every git worktree lives at .claude/worktrees/<name>/ (.Codex/worktrees/<name>/ for Codex), never outside the repo.
- Distinctive: line 29
No source, no implementation.
≈ “Common” is an estimate: at least 1 in 5 of the 12,729 CLAUDE.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Cortex — Persistent Memory MCP Server
Persistent memory and cognitive profiling MCP server for Claude Code. Python 3.10+,
FastMCP, Pydantic, numpy; SQLite by default, PostgreSQL+pgvector opt-in (PRIVACY.md).
This file is deliberately short: the host harness (hooks, skills, agents) loads what it
needs on demand. Everything that used to be here is in docs/agent-guidance.md
(architecture pointers, releasing, code style and the craftsmanship gate, what not to do,
the zetetic implementation standard). Read it before any non-trivial change.
Build & Test
- Install (dev):
uv sync --no-default-groups --extra dev(add--extra sqlitefor the SQLite backend). Resolve fromuv.lock, never from thepyproject.tomlranges (issue #253). - Preflight:
python -m mcp_server.doctor - Tests:
pytest· one layer:pytest tests_py/core/ - Lint before every commit:
ruff check && ruff format --check(CI enforces both). - Type gate: CONTRIBUTING.md § Reproducing the pyright gate locally.
- Craftsmanship gate:
python scripts/check_craftsmanship.py(300 lines per file, 40 per method, layer whitelist,# source:on every constant). - Release-gate benchmarks:
benchmarks/reproduce.sh, never against the live database.
Non-negotiables
- Layers:
server → handlers → core ← shared,infrastructure → shared; handlers are the only composition roots. - Every git worktree lives at
.claude/worktrees/<name>/(.Codex/worktrees/<name>/for Codex), never outside the repo. - No source, no implementation; benchmark before commit; no silent fallbacks or compatibility shims.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

