agentleFS
Foxfire1stFoxfire1st/agents-remember/AGENTS.md

agents-remember

AGENTS.md41 starsChanged 3 days agoMITView on GitHub

This repository is the source package for Agents Remember. It is not the live coordination runtime after installation. If this file is being read from a workspace-level pointer while you are working on a sibling repository, use that repository's role instructions and resolved memory-layer guidance instead. When working on this repository itself, use agents-remember as the target code repository for resolver, onboarding, workflow, and closeout commands. Sessions route by role through the l-01-agent-lifecycles skill. A role agent follows its handover.…

  • Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about code style.

    Of the AGENTS.md files we read, the 33,398 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 repository2 other files it gives its agents.

The file

Show its rules and text

We split this AGENTS.md into the rules it gives an agent

23 rules. About 0 are common, 13 are distinctive, and 10 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈13

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 10

    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
  1. Distinctive:

    If this file is being read from a workspace-level pointer while you are working on a sibling repository, use that repository's role …

    line 6
  2. Very specific:

    When working on this repository itself, use agents-remember as the target code repository for resolver, onboarding, workflow, and closeout …

    line 10
  3. Distinctive:

    Before scoping work in the architect lifecycle, read the collaboration method.

    line 34
  4. Distinctive:

    Do not change code or documentation without entering the architect lifecycle and clearing its plan gate.

    line 41
  5. Distinctive:

    Do not change task plan items without approval.

    line 42
  6. Distinctive:

    Do not randomly commit. Follow Authorized Closeout instead!

    line 43
  7. Distinctive:

    Before relying on onboarding, task files, docs, or tools, resolve the active Agents Remember context through the context_packet tool …

    line 49
  8. Very specific:

    After resolving the target repository and coordination root, prefer the Agents Remember context_packet MCP tool when that server is …

    line 52
  9. Very specific:

    After resolving memory_root, read that memory layer's repository-specific guidance:

    line 62
  10. Very specific:

    Do not assume this source checkout has active root-level system/ settings.

    line 71
  11. Distinctive:

    Read knowledge use at the working step before applying these retrieval strategies.

    line 86
  12. Distinctive:

    Keep this root AGENTS.md scoped to working on the source checkout.

    line 112
  13. Very specific:

    Keep shared instructions in the role corpus and the coordination root's system/ files.

    line 113
  14. Very specific:

    Do not edit generated skill copies directly.

    line 114
  15. Very specific:

    Do not edit generated runtime asset copies directly.

    line 116
  16. Distinctive:

    Do not recreate repository harness starter packages or workspace harness configuration.

    line 118
  17. Distinctive:

    Keep user-specific behavior, project notes, and repo policy in the resolved memory layer.

    line 119
  18. Distinctive:

    Do not create, close out, integrate, push, or clean up worktrees without the approval gates required by the selected workflow.

    line 121
  19. Distinctive:

    Do not move protected branches unless the developer explicitly asks.

    line 126
  20. Very specific:

    Follow docs/design/python-pytest-bootstrap.md for the current test policy and commands.

    line 137
  21. Distinctive:

    Every new case must protect a distinct user operation, consequential failure, or actual regression.

    line 138
  22. Very specific:

    Use the resolved memory layer's system/tools.md for the exact commands, and system/coding-guidelines.md when present for repo-specific …

    line 177
  23. Very specific:

    Before adding or editing any store, loop-over-a-store, queue, or append-only log, the system/coding-guidelines.md "Stability, Bounded …

    line 182

≈ “Common” is an estimate: at least 1 in 5 of the 43,423 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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
AGENTS.md

Agents Remember Source Checkout Instructions

This repository is the source package for Agents Remember. It is not the live coordination runtime after installation.

If this file is being read from a workspace-level pointer while you are working on a sibling repository, use that repository's role instructions and resolved memory-layer guidance instead.

When working on this repository itself, use agents-remember as the target code repository for resolver, onboarding, workflow, and closeout commands.

Start Here — Route By Role

Sessions route by role through the l-01-agent-lifecycles skill. A role agent follows its handover. A developer-facing session is free chat: it answers a question inline and, for work on this repository, creates or resolves the sprint document, writes the request of the developer into it, starts an Architect with role_start (the call for an Architect names no document), and tells the developer that the agent is in the dashboard and which sprint document holds the request. The launcher is never a global architect identity. Another role is started this way only when the developer names the role and the task.

The build decision is taken at decide. Chat is never a build route — every code change lives under an approved task doc:

  1. Research-only exit — answers or assessments that change no code: no worktree, no task file; chat is the right medium.
  2. Durable task — task document authoring: a task document with checklist, decision log, and proposed code examples; small code work takes the minimal leaf-task artifact, and the work escalates to a master + light sub-task series when it outgrows a single-page plan.

Before scoping work in the architect lifecycle, read the collaboration method. It applies in plain chat, before any task file or format is chosen.


IMPORTANT: Do not change code or documentation without entering the architect lifecycle and clearing its plan gate. Do not change task plan items without approval. Think before acting. Do not randomly commit. Follow Authorized Closeout instead!


Memory And Onboarding

Before relying on onboarding, task files, docs, or tools, resolve the active Agents Remember context through the context_packet tool reference.

After resolving the target repository and coordination root, prefer the Agents Remember context_packet MCP tool when that server is configured.

context_packet(repo_id="agents-remember")

Then use the memory-quality tool guidance for the resolved context before reasoning from onboarding or source files.

After resolving memory_root, read that memory layer's repository-specific guidance:

  • system/settings.md
  • system/settings.json
  • system/tools.md for repo-specific tools, commands, and code quality checks
  • system/sources.md
  • system/coding-guidelines.md, when present

Do not assume this source checkout has active root-level system/ settings. Runtime settings examples live under runtime/system/defaults/, and installed runtime settings live under the selected ar-coordination/ or memory root.

Memory Retrieval Strategies

  • Semantics: a fuzzy concept is known, but structure, route, or file location is unknown. Answer it with route-index and onboarding search, then bounded native reads.
  • Relationship: an anchor is known, but callers, callees, dependencies, ownership, inheritance, impact paths, or neighboring code are unknown. Answer it with native search from the anchor symbol.
  • Intent: an anchor/location + relationships are known, but hidden contracts, invariants, branch-valid truths, behavioral expectations, or code intent are unknown. Use onboarding plus bounded source confirmation.

Read knowledge use at the working step before applying these retrieval strategies.

Source Layout

  • skills/ is the canonical skill source tree. Edit skills here first.
  • mcp/.venv/bin/python scripts/renew-instructions.py renews instruction facts and copies root skills/ into the MCP package-data copy, which is the only generated skill copy: the tool server serves skills to a harness as MCP resources, and no harness starter package carries a skill folder (MIK-R196). Run it after any skill edit.
  • benchmarks/ and system/ are canonical runtime asset source folders. Edit them at the root and run python3 scripts/sync-runtime.py to refresh MCP package data.
  • Harness configuration belongs to user-level harness settings; this source checkout carries no harness starter packages.
  • mcp/ contains the MCP server, tool surface, and package-owned runtime services.
  • mcp/src/agents_remember/package_data/runtime/skills/ is the generated package-owned skill copy used by runtime_install.
  • mcp/src/agents_remember/package_data/runtime/system/ and mcp/src/agents_remember/package_data/benchmarks/ are generated package-data copies of the matching root runtime asset folders.
  • README.md documents the current user-facing install and usage model.
  • roadmap/ contains future design notes, not active runtime behavior.

Boundaries

  • Keep this root AGENTS.md scoped to working on the source checkout.
  • Keep shared instructions in the role corpus and the coordination root's system/ files.
  • Do not edit generated skill copies directly; edit root skills/ and run mcp/.venv/bin/python scripts/renew-instructions.py.
  • Do not edit generated runtime asset copies directly; edit the matching root folder and run python3 scripts/sync-runtime.py.
  • Do not recreate repository harness starter packages or workspace harness configuration.
  • Keep user-specific behavior, project notes, and repo policy in the resolved memory layer.
  • Do not create, close out, integrate, push, or clean up worktrees without the approval gates required by the selected workflow.
  • Implementation approval is not commit approval. After checks or closeout dry-runs, stop and ask for explicit commit approval before running any real commit, closeout apply, integration, push, or cleanup command.
  • Do not move protected branches unless the developer explicitly asks.

Code Quality Instructions

Ordinary Python development uses mcp/.venv/bin/python -m pytest; it runs the isolated unit population with four workers. Use -m integration for the small real-boundary suite and -m "" for combined verification. Only the pinned Dagger graph and existing lifecycle owners may produce certifying evidence; ordinary pytest does not acquire that authority. The delivery graph runs both populations explicitly. Preserve its genuine admission, process identity, disposable state, credential isolation, and exact candidate publication boundaries.

Follow docs/design/python-pytest-bootstrap.md for the current test policy and commands. Every new case must protect a distinct user operation, consequential failure, or actual regression. Extend, consolidate, or replace overlapping tests before adding cases. Private branch coverage and metric improvement are not sufficient reasons for a test. Remove unused fixtures/support with the redundant tests. Do not recursively run pytest or repeatedly scan this repository to test the test suite.

pyproject.toml declares parametrized case budgets, enforced on selected collected items. The combined run observes both complete populations. Budget growth needs an explicit change tradeoff stating the distinct protection, case count, support size, and elapsed runtime cost; never silently raise the limits. Keep integration small instead of moving unit bloat into it.

Coverage is diagnostic only: there is no mandatory percentage, changed-line floor, or test obligation derived from an uncovered line. CRAP is reported only for production functions, excluding tests and verification support. Its existing threshold of 20 is a review trigger, not a delivery blocker. Address a finding through simpler production code, a meaningful behavioral test, or a concise justified acceptance in the change description. There is no score-exception registry, coverage ratchet, or baseline mechanism.

Lint, formatting, typing, structural rules, and test failures still enforce. Diagnostic-tool errors are distinct from metric findings and remain visible failures. Each report must state its scope and inputs. Preserve untracked files: quality reporting never stages or stashes them.

Complexity is enforced by C901 plus PLR0911/PLR0912/PLR0915, reported by ruff like every other rule. Arming them surfaced 67 offenders; those were parked behind a shrink-only baseline in quality/complexity-baseline.txt for exactly one day before the developer overruled it, and all 67 were refactored instead. The file, the module that read it and the gate step that ran it are deleted. Clear a finding by extracting a cohesive helper — a dispatch table for an if/elif ladder, a guard-clause prologue split from the body, a parse step separated from a decide step. Never by # noqa, never by a per-file ignore, never by widening a limit in pyproject.toml.

Radon does not enforce anything. radon cc and radon mi exit 0 whatever they find — radon cc mcp/src/agents_remember -s -n B --order SCORE reports 141 blocks at grade C or worse and still exits 0 — so no Radon invocation can fail a gate. Radon is a report for refactor scouting, and it is load-bearing in one place that is not a gate: code_quality/crap_calculator.py imports radon.complexity.cc_visit for the complexity term of the CRAP score. Run it deliberately when you want the report; do not present a green Radon run as evidence that anything passed.

Use the resolved memory layer's system/tools.md for the exact commands, and system/coding-guidelines.md when present for repo-specific coding rules. Use system/code-quality-report-template.md as a template for reporting code quality results after implementation work changes source code; record Radon rows there as reported, never as passed. Before adding or editing any store, loop-over-a-store, queue, or append-only log, the system/coding-guidelines.md "Stability, Bounded Resources, and Reclamation" section is MUST-READ doctrine.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.