agentleFS
memorax-aimemorax-ai/memorax-code/AGENTS.md

memorax-code

AGENTS.md2.1k starsChanged 3 months agoMITView on GitHub

These are mandatory working rules for coding agents. Use CONTRIBUTING.md for development and verification procedures and ARCHITECTURE.md for system boundaries. Current user instructions, live source, and executable tests take precedence over memory. - Run git status --short --branch; confirm the intended worktree and preserve unrelated tracked, untracked, and staged changes. - Read nearby implementation and tests. Keep changes focused; do not mix unrelated formatting, renaming, dependencies, or lockfile rewrites, or run broad auto-fix commands without need. - Use English for…

Trending

More talk lately.thin dataabout the whole repository

Dec 2025: 0 mentionsJan 2026: 0 mentionsFeb 2026: 0 mentionsMar 2026: 0 mentionsApr 2026: 0 mentionsMay 2026: 0 mentionsJun 2026: 0 mentionsJul 2026: 0 mentionsAug 2026: 1 mentionSep 2026: 1 mentionOct 2026: 1 mentionNov 2026: 0 mentions
Dec 2025Jun 2026Nov 2026
Mentions a month of the memorax-ai/memorax-code repository that our weekly crawl found: only 3 in all, so this is a hint, not a trend. There is no adoption data for this file yet.
  • 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 repositoryOne other file it gives its agents.

The file

Show its rules and text

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

18 rules. About 2 are common, 10 are distinctive, and 6 are very specific to this project.

  • ≈2

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈10

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 6

    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:

    Run git status --short --branch.

    line 10
  2. Distinctive:

    Read nearby implementation and tests.

    line 12
  3. Distinctive:

    Use English for source identifiers, comments, docstrings, and canonical documentation.

    line 15
  4. Very specific:

    Treat .repo_memory/ as Git-ignored retrieval guidance, not code authority.

    line 17
  5. Distinctive:

    Read ARCHITECTURE.md before changing module or test placement, entrypoints, control/data flow, state or authority, …

    line 22
  6. Very specific:

    Only the documented malformed/incomplete direct-.git exception may use local-folder scope, then upgrade in-session to verified Git scope …

    line 43
  7. Very specific:

    Use versioned private authority for Backend connection, token, PID, Hook generation, and lifecycle records.

    line 55
  8. Distinctive:

    Keep the Backend on loopback by default.

    line 58
  9. Common:

    Never log, commit, or publish credentials, Backend tokens, or Authorization headers.

    line 63
  10. Distinctive:

    Never commit or publish private transcripts, raw rollouts, retained traces, personal memory, or user absolute paths.

    line 65
  11. Very specific:

    Keep the shared memorax-code Skill valid in every supported client's packaging, including its triggers, metadata, references, and resource …

    line 71
  12. Distinctive:

    Keep README onboarding complete and bilingual.

    line 76
  13. Distinctive:

    Follow the verification profiles, starting with the smallest affected contract and expanding for crossed boundaries.

    line 81
  14. Distinctive:

    Use the isolated development environment for lifecycle, install, migration, or destructive tests.

    line 84
  15. Common:

    All other real-client tests, live-provider, live MemoraX/Jev, and real system credential-store checks require explicit opt-in.

    line 90
  16. Very specific:

    Use commit titles type:(module) content.

    line 98
  17. Distinctive:

    Do not amend, rebase, force-push, or rewrite another contributor's history without explicit authorization.

    line 100
  18. Very specific:

    Do not commit dist/, build output, package staging, dependency graphs, metrics, trace/report bundles, or temporary test artifacts.

    line 102

≈ “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.

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

MemoraX Code Agent Guide

These are mandatory working rules for coding agents. Use CONTRIBUTING.md for development and verification procedures and ARCHITECTURE.md for system boundaries. Current user instructions, live source, and executable tests take precedence over memory.

1. Start Safely

  • Run git status --short --branch; confirm the intended worktree and preserve unrelated tracked, untracked, and staged changes.
  • Read nearby implementation and tests. Keep changes focused; do not mix unrelated formatting, renaming, dependencies, or lockfile rewrites, or run broad auto-fix commands without need.
  • Use English for source identifiers, comments, docstrings, and canonical documentation. Synchronize both README files when shared content changes.
  • Treat .repo_memory/ as Git-ignored retrieval guidance, not code authority; never publish it.

2. Architecture Routing

Read ARCHITECTURE.md before changing module or test placement, entrypoints, control/data flow, state or authority, packaging/materialization, or cross-package or cross-capability dependencies. Preserve its boundaries; intentional changes must update the architecture and affected executable contracts in the same change.

3. Hook, Session, and Scope Invariants

  • Version and client-qualify Hook commands. Validate required session, turn, and prompt correlation at HTTP ingress; incomplete, conflicting, unknown, or client-inapplicable identities fail closed.
  • Automatic writeback uses only the matching client's native content authority. Hook/plugin text is never a fallback outside Trae's validated UserPromptSubmit/Stop primary-authority exception. Trace, latest-turn guesses, and another client's format are never fallbacks.
  • Include the client in session, turn metadata, trace, and operational identity. Equal native IDs across clients must stay isolated.
  • For a fixed Base User ID, pin each live session to its workspace and repository scope. Linked worktrees may share repository scope; unrelated repositories and genuine non-Git workspaces keep separate local identity. Only the documented malformed/incomplete direct-.git exception may use local-folder scope, then upgrade in-session to verified Git scope for the same Base User ID and canonical workspace root; discard pending fallback writeback on upgrade. Other missing, unreadable, malformed, or conflicting scope authority must not silently fall back or rebind. A changed Base User ID requires a new binding; existing Turn metadata must still pass scope validation.
  • Derive repository identity read-only, without executing Git. Preserve path canonicalization, Git marker validation, symlink/junction containment, and fail-closed behavior.
  • For completed content, consume matching turn metadata only after local writeback enqueue acceptance. Rejection, missing content, interruption, and concurrent replacement require explicit retention or discard reasons.
  • Use versioned private authority for Backend connection, token, PID, Hook generation, and lifecycle records. Cross-process read/modify/write needs bounded locking or equivalent version validation, not only in-memory queues.
  • Keep the Backend on loopback by default; external binding requires explicit opt-in and authentication.

4. Data and User-Facing Boundaries

  • Never log, commit, or publish credentials, Backend tokens, or Authorization headers.
  • Never commit or publish private transcripts, raw rollouts, retained traces, personal memory, or user absolute paths. Documented local trace and diagnostic storage must follow SECURITY.md; review and redact any diagnostic excerpt before sharing it. MemoraX receives only documented query/add/writeback payloads; local trace provenance and transcript paths stay local.
  • Keep the shared memorax-code Skill valid in every supported client's packaging, including its triggers, metadata, references, and resource paths. Packaged Skills address product users; exclude maintainer runbooks, private paths, unpublished plans, secrets, internal fixtures, and diagnostic artifacts.
  • Follow documentation ownership. Keep README onboarding complete and bilingual; put detailed behavior in its owning document.

5. Verification

  • Follow the verification profiles, starting with the smallest affected contract and expanding for crossed boundaries. Tracked documentation edits also require the Documentation profile.
  • Use the isolated development environment for lifecycle, install, migration, or destructive tests; isolate MemoraX state and every affected client home, alias, and command source.
  • Native-client tests may run automatically only with isolated client and Backend state, synthetic credentials, and model and memory requests restricted to local mock services, as in Codex functional CI. All other real-client tests, live-provider, live MemoraX/Jev, and real system credential-store checks require explicit opt-in. Keep credentials and artifacts outside Git and redact shared results.

6. Git and Handoff

  • Name branches <type>/<scope>-<description> in lowercase kebab-case, using feat, fix, refactor, docs, test, or chore; no agent-specific prefix.
  • Use commit titles type:(module) content; separate mechanical formatting from behavior changes.
  • Do not amend, rebase, force-push, or rewrite another contributor's history without explicit authorization. Push only when explicitly asked.
  • Do not commit dist/, build output, package staging, dependency graphs, metrics, trace/report bundles, or temporary test artifacts.
  • Report behavior changes, verification performed, checks not run, remaining risk, and worktree state in the handoff.

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.