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
Who's talking about memorax-ai/memorax-code
- sudosubin/agents.nix“agent-skills.github.memorax-ai.memorax-code: 0.1.18 → 0.1.19”GitHub · Oct 3, 2026
- sudosubin/agents.nix“agent-skills.github.memorax-ai.memorax-code: init at 0.1.18”GitHub · Sep 29, 2026
- volcengine/OpenViking“feat(plugins): add local Git and repository Wiki sync”GitHub · Aug 28, 2026
The biggest 3 of 3 mentions linking to the repository that our crawl found. Each line is their own headline.
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.
- CLAUDE.mdCLAUDE.md
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
- Distinctive: line 10
Run git status --short --branch.
- Distinctive: line 12
Read nearby implementation and tests.
- Distinctive: line 15
Use English for source identifiers, comments, docstrings, and canonical documentation.
- Very specific: line 17
Treat .repo_memory/ as Git-ignored retrieval guidance, not code authority.
- Distinctive: line 22
Read ARCHITECTURE.md before changing module or test placement, entrypoints, control/data flow, state or authority, …
- Very specific: line 43
Only the documented malformed/incomplete direct-.git exception may use local-folder scope, then upgrade in-session to verified Git scope …
- Very specific: line 55
Use versioned private authority for Backend connection, token, PID, Hook generation, and lifecycle records.
- Distinctive: line 58
Keep the Backend on loopback by default.
- Common: line 63
Never log, commit, or publish credentials, Backend tokens, or Authorization headers.
- Distinctive: line 65
Never commit or publish private transcripts, raw rollouts, retained traces, personal memory, or user absolute paths.
- Very specific: line 71
Keep the shared memorax-code Skill valid in every supported client's packaging, including its triggers, metadata, references, and resource …
- Distinctive: line 76
Keep README onboarding complete and bilingual.
- Distinctive: line 81
Follow the verification profiles, starting with the smallest affected contract and expanding for crossed boundaries.
- Distinctive: line 84
Use the isolated development environment for lifecycle, install, migration, or destructive tests.
- Common: line 90
All other real-client tests, live-provider, live MemoraX/Jev, and real system credential-store checks require explicit opt-in.
- Very specific: line 98
Use commit titles type:(module) content.
- Distinctive: line 100
Do not amend, rebase, force-push, or rewrite another contributor's history without explicit authorization.
- Very specific: line 102
Do not commit dist/, build output, package staging, dependency graphs, metrics, trace/report bundles, or temporary test artifacts.
≈ “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
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/Stopprimary-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-
.gitexception 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-codeSkill 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, usingfeat,fix,refactor,docs,test, orchore; 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.
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.

