forgetful
AGENTS.md301 starsChanged 2 months agoMITView on GitHub
Aim for each test to finish in under 15 seconds; this is advisory, with no enforced timing checks. These tests use in-memory stubs and run fast (~seconds). They form the bulk of our test suite and catch 90% of issues. These tests use an in-memory SQLite database for test isolation. Fast execution with automatic cleanup. Remember: rebuild docker image if running local container service, not required however for e2e tests. Note: Ruff UP006 rule enforces Python 3.12+ built-in generics (list…
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,773 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.
In this repository11 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- forgetful-cli-setupSkill
- forgetful-context-gatherSkill
- forgetful-encode-repoSkill
- forgetful-entitiesSkill
- forgetful-exploreSkill
- forgetful-filesSkill
- forgetful-mcp-setupSkill
- forgetful-proceduresSkill
- forgetful-recallSkill
- forgetful-rememberSkill
The file
We split this AGENTS.md into the rules it gives an agent
5 rules. About 0 are common, 5 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈5
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 6
No pollution of service layer with integration/implementation details
- Distinctive: line 15
Purpose: Test business logic with stubbed I/O (no real database required)
- Distinctive: line 26
Purpose: Test complete stack with in-memory SQLite
- Distinctive: line 36
Purpose: Test complete stack with real PostgreSQL
- Distinctive: line 47
Ensure that you run ruff following any changes and address any issues raised
≈ “Common” is an estimate: at least 1 in 5 of the 16,595 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
Forgetful Development Guide
Architecture
Layered architecture: routes -> services -> protocols -> repositories/adapters No pollution of service layer with integration/implementation details
Testing Philosophy
We focus on integration and E2E tests over unit tests. Tests should cover critical workflows without exhaustive edge case coverage.
Aim for each test to finish in under 15 seconds; this is advisory, with no enforced timing checks.
Integration Tests
Location: tests/integration/
Purpose: Test business logic with stubbed I/O (no real database required)
Run locally:
uv run pytest tests/integration/These tests use in-memory stubs and run fast (~seconds). They form the bulk of our test suite and catch 90% of issues.
End-to-End Tests
SQLite E2E Tests
Location: tests/e2e_sqlite/
Purpose: Test complete stack with in-memory SQLite
Requirements: None (no Docker required)
Run locally:
uv run pytest tests/e2e_sqlite/These tests use an in-memory SQLite database for test isolation. Fast execution with automatic cleanup.
PostgreSQL E2E Tests
Location: tests/e2e/
Purpose: Test complete stack with real PostgreSQL
Requirements: PostgreSQL running in Docker
Run locally:
cd docker && docker compose down -v
uv run pytest -m e2eRemember: rebuild docker image if running local container service, not required however for e2e tests.
Linting
Ensure that you run ruff following any changes and address any issues raised
uv tool run ruff check .Note: Ruff UP006 rule enforces Python 3.12+ built-in generics (list instead of typing.List, dict instead of typing.Dict, etc.). This catches legacy type hint syntax automatically.
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.

