statewave
AGENTS.md364 starsChanged 3 months agoApache-2.0View on GitHub
A short orientation for humans and AI coding agents (GitHub Copilot, Claude, Cursor, …) working in the statewave core repo. For the full contribution process and licensing, start with CONTRIBUTING.md. Statewave is an open-source memory/context service for AI agents: it records episodes, compiles them into durable memories, and serves compact, ranked, token-bounded context over a /v1 API. This repo is the server and reference implementation. For the big picture, see the architecture overview. The canonical steps live in CONTRIBUTING.md and…
- Installs packages
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.
Of the AGENTS.md files we read, the 11,736 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
The file
We split this AGENTS.md into the rules it gives an agent
2 rules. About 0 are common, 0 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- could be automatic: a setting could enforce it
- Very specific: line 30
Run ruff and the test suite before opening a PR.
- Very specific: line 78
Prefer to wire it up by hand, or use another MCP client?
≈ “Common” is an estimate: at least 1 in 5 of the 16,597 AGENTS.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
AGENTS.md — guide for contributors and coding agents
A short orientation for humans and AI coding agents (GitHub Copilot, Claude, Cursor, …) working in the statewave core repo. For the full contribution process and licensing, start with CONTRIBUTING.md.
What this repo is
Statewave is an open-source memory/context service for AI agents: it records
episodes, compiles them into durable memories, and serves compact, ranked,
token-bounded context over a /v1 API. This repo is the server and reference
implementation. For the big picture, see the
architecture overview.
Setup, build, test
The canonical steps live in CONTRIBUTING.md and the README Quickstart — don't duplicate them, follow them. In short:
docker compose up db -d
python -m venv .venv && source .venv/bin/activate
pip install -e ".[dev,llm]"
alembic upgrade head
pytest tests/Run ruff and the test suite before opening a PR; make test-cold validates a
full fresh-install path.
Tip for agents: unit tests are hermetic with stub providers — run them without external services via:
STATEWAVE_EMBEDDING_PROVIDER=stub STATEWAVE_COMPILER_TYPE=heuristic \
pytest tests/ --ignore=tests/integrationConventions
- Code style & testing: see statewave-docs/dev/conventions.md.
- Packages version independently. The server, the Python SDK (
statewave), and the TypeScript SDK (@statewavedev/sdk) version on separate cadences; the compatibility axis is the/v1API contract, not a shared number. Don't try to align version strings across packages. - Some "proof" numbers are mirrored across repos — test counts, eval
assertion/test counts, and the support-workflow benchmark score. They have a
single source of truth and a consistency check in
statewave-docsthat runs at release time. If you change one of these numbers, keep every surface in sync rather than editing a single file. - Keep claims accurate and modest. Describe what the code does; back any performance or benchmark claim with a reproducible source, and avoid unqualified superlatives.
- CI enforces a few cross-cutting invariants — tenant-scoped repository queries, bounded pagination params, and a single shared tokenizer. If a guard test fails, satisfy the rule rather than weakening the test. See CONTRIBUTING.md.
Pull requests
See CONTRIBUTING.md. Keep PRs focused,
add tests for behavior changes, and make sure ruff and pytest pass.
Optional: give your agent memory of this repo (with Statewave itself)
This project dogfoods Statewave. The easiest way to give your assistant a
queryable project brain for this repo is the Statewave IDE Companion
extension for VS Code / Cursor (publisher statewavedev, available as a preview) — install it from
your editor's extensions marketplace. It exposes your workspace, docs, git
state, structure, and run-commands to Copilot / Cursor / Claude over MCP and
registers the MCP server for you (no manual config); it just needs a
Statewave server to talk to (a one-file docker compose up). See the
extension README.
Prefer to wire it up by hand, or use another MCP client? Run the
Statewave MCP server
(@statewavedev/mcp-server) directly and query subject repo:smaramwbc/statewave.
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.

