Borrowing it
Nothing to install: this file belongs to fstamatelopoulos/cerefox. 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/fstamatelopoulos/cerefox/main/CLAUDE.mdgit clone --depth 1 https://github.com/fstamatelopoulos/cerefoxWrote 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/fstamatelopoulos/cerefox/claude-md)<a href="https://agentmods.dev/instructions/fstamatelopoulos/cerefox/claude-md"><img src="https://agentmods.dev/badge/instructions/fstamatelopoulos/cerefox/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/fstamatelopoulos/cerefox/claude-md"><img src="https://agentmods.dev/badge/instructions/fstamatelopoulos/cerefox/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.13284 | $0.13284 |
| Opus 5.5 | $0.05314 | $0.05314 |
| Sonnet 5.5 | $0.02657 | $0.02657 |
| Haiku 4.5 | $0.01328 | $0.01328 |
Grade B, and why
cerefox CLAUDE.md scanned grade B with 2 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 6d 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.
Reads agent configuration directoriesmediumAgent snooping
.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.
| OpenAI Codex (CLI + desktop-app Codex threads) | Preferred: `cerefox configure-agent --tool codex` (local MCP, `~/.codex/config.toml`). Advanced (remote): `url` + `bearer_token_env_var` | Local: **verified 2026-10-08** Makes network callslowCapability
Not a fault in itself. Listed so you know the mod talks to something, and to what.
1. **AI agents / Edge Functions** — callers (GPT Actions, remote MCP, curl) present the **Cerefox access token** (`cfx_pat_…`, iter-28E) as `Authorization: Bearer`. Every data Edge Function runs `--no-verify-jwt` and val How it starts
The opening of the file, as written. The whole thing — 530 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Cerefox - Project Guide
What Is This
Cerefox is a user-owned knowledge memory layer for AI agents. It stores curated Markdown documents in Supabase (Postgres + pgvector), supports hybrid search (FTS + semantic), and exposes everything via MCP and REST so any AI agent can read and write.
Cerefox is asynchronous shared memory, not a message bus. It solves the persistent context problem: knowledge written in one context is findable in any other, dissolving boundaries between agents, sessions, human and machine, and across time. It does not handle real-time agent-to-agent communication; protocols like A2A handle that. Cerefox handles persistent memory.
Single-user, open-source (Apache 2.0), designed to be cheap/free to operate. See docs/research/vision.md for the full project vision.
Tech Stack
- Language: TypeScript via Bun (CLI, web server, local MCP server, build/release scripts, Edge Functions). The Python implementation was fully removed at v1.0.0 (iter-28G) — only the SQL schema assets under
src/cerefox/db/remain (they are not Python). - Database: PostgreSQL 16+ with pgvector (Supabase free tier or local Docker)
- Embeddings: OpenAI
text-embedding-3-small(768-dim, cloud API, default) or the local ONNXnomic-embed-text-v1.5(768-dim,CEREFOX_EMBEDDER=local— Cerefox Local only, shipped at v1.0.0); Fireworks AI is roadmap (not wired); Edge Functions handle embedding server-side for agents (cloud path) - Web framework: Hono on Bun/Node (TypeScript), in
packages/memory— served bycerefox web. - Web UI: React + TypeScript SPA (Mantine UI, TanStack Query, Vite); served at
/app/ - CLI: commander (TypeScript) in
@cerefox/memory; resource-verb shape (v0.9.0). - Local MCP server:
@cerefox/memorynpm package (Node ≥24 / Bun ≥1.0); single artifact growing to host CLI + web server + ingestion in future iterations - Shared TS modules:
_shared/{config,db-client,db-status,embeddings,mcp-tools}/— imported by both Edge Functions (Deno) and local server (Node/Bun) via structural typing - Package management: bun workspaces for TS
- Testing:
bun test(TypeScript) — the only test runner as of v0.9.0 (pytest retired;tests/**/*.pydeleted) - Type-checking:
bun run typecheck—tsc --noEmitfor_shared+packages/memory,tsc -bfor the frontend (a plain--noEmitthere checks nothing)
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.
- 6d ago Changed · +1 lines · +39 tokens per session 282f4293ba1d
- 20d ago Changed · +91 tokens per session 22ce6bb726d6
- 28d ago Changed · -1 lines · +107 tokens per session 4b6cb0bef279
- 1mo ago Changed · -2 tokens per session c726b39dc836
- 1mo ago Changed · +82 tokens per session 11a50ff8bc80
- 1mo ago Changed · +1 lines · +216 tokens per session 309159f19001
- 1mo ago Changed · +1 lines · +284 tokens per session b4c6df5b4dcf
- 1mo ago Changed · +15 lines · +232 tokens per session e88cf7618e60
- 1mo ago Changed · +39 tokens per session 68143c8e0778
- 1mo ago First seen · 513 lines · 12,196 tokens per session scan B 34470b997134
cerefox CLAUDE.md is an instructions file published in the GitHub repository fstamatelopoulos/cerefox (19 stars, last pushed 4d ago), licensed Apache-2.0. It adds 13,284 tokens to every session, about $0.0531 per session on Opus 5.5. A static security scan graded it B with 2 findings (reads agent configuration directories, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
cerefox CLAUDE.md compared with instructions from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| cerefox CLAUDE.mdfstamatelopoulos/cerefox | Instructions file | 19 | 4d ago | Apache-2.0 | B | 13,284 | 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 |