Borrowing it
Nothing to install: this file belongs to yul761/StateCore. 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/yul761/StateCore/main/CLAUDE.mdgit clone --depth 1 https://github.com/yul761/StateCoreWrote 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/yul761/statecore/claude-md)<a href="https://agentmods.dev/instructions/yul761/statecore/claude-md"><img src="https://agentmods.dev/badge/instructions/yul761/statecore/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/yul761/statecore/claude-md"><img src="https://agentmods.dev/badge/instructions/yul761/statecore/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.02703 | $0.02703 |
| Opus 5.5 | $0.01081 | $0.01081 |
| Sonnet 5.5 | $0.00541 | $0.00541 |
| Haiku 4.5 | $0.00270 | $0.00270 |
Grade A, and why
StateCore CLAUDE.md scanned grade A with 1 finding 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.
Makes network callslowCapability
Not a fault in itself. Listed so you know the mod talks to something, and to what.
curl -s -o /dev/null -w '%{http_code}\n' http://127.0.0.1:3002/v1/health # want 200 How it starts
The opening of the file, as written. The whole thing — 207 lines — stays where its author put it; the contents beside it link to each section on GitHub.
StateCore — Claude Context
What this is
StateCore is an AI memory management system. It stores memory events, runs digest workers to build stable state, and serves a REST API for ingestion and recall.
It is the Layer 1 engine of the StateCore-App stack (see ../CLAUDE.md): open-source
(MIT), self-hostable, and fronted by ../statecore-cloud (managed gateway) which
../assistant-backend uses as its memory store. Tech: pnpm + Turbo monorepo
(apps/*, packages/*), TypeScript, Node ≥20 (apps/mcp: ≥22.13, it uses node:sqlite), NestJS, Prisma/Postgres+pgvector,
BullMQ/Redis, Zod, Vitest, Changesets.
Commands
pnpm install
pnpm dev:api # API only (port 3002)
pnpm dev:worker # background workers (digest, working memory, reminders)
pnpm dev:lite # = dev:api
pnpm test:core # Vitest suite for @statecore/core
pnpm lint # tsc --noEmit across apps + packages
pnpm build # build all apps + packages
pnpm changeset # add a changeset (releases via Changesets)
pnpm benchmark # synthetic memory-quality benchmark suite
changeset version needs a token for its changelog generator:
GITHUB_TOKEN="$(gh auth token)" pnpm exec changeset version. Releases are manual
— version, commit, tag with apps/api's version, gh release create. Every
package is private: true except apps/mcp (statecore-mcp), the one package
that publishes to npm — see apps/mcp/README.md.
Module resolution — read before touching package.json or tsconfig
The four library packages point main at dist/index.js and types at
src/index.ts. That split is deliberate and load-bearing:
main→distbecausenode dist/main.jscannot load a.tsentry. The Dockerfile used to rewrite these four package.json files at image build time, which meant the image was the only place a built app could start.types→srcso type-checking and building need no prior build. Do not "fix" this with tsconfigpaths— mapping these names to real paths puts the files under the importing package'srootDirand fails every build with TS6059. Resolution through the node_modules symlink is exempt from that check.- Vitest reads
main, sovitest.shared.tsaliases the names back to source. A package that runs tests needs avitest.config.tsimporting it, or its suite silently runs against staledist. tsxreadsmaintoo, sopnpm dev:*and the tsx-run scripts pass--tsconfig ../../tsconfig.dev.json, which carries the paths tsc cannot.
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 · +15 tokens per session 842d6fdc003c
- 2mo ago First seen · 207 lines · 2,688 tokens per session scan A fa6abad6b325
StateCore CLAUDE.md is an instructions file published in the GitHub repository yul761/StateCore (1 stars, last pushed 14d ago), licensed MIT. It adds 2,703 tokens to every session, about $0.0108 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
StateCore CLAUDE.md compared with instructions from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| StateCore CLAUDE.mdyul761/StateCore | Instructions file | 1 | 14d ago | MIT | A | 2,703 | 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 |