Skip to content

Set up mex agent memory (AGENTS.md + .mex/ scaffold)#84

Merged
deepansh96 merged 2 commits into
mainfrom
chore/setup-mex-memory
Jul 9, 2026
Merged

Set up mex agent memory (AGENTS.md + .mex/ scaffold)#84
deepansh96 merged 2 commits into
mainfrom
chore/setup-mex-memory

Conversation

@deepansh96

Copy link
Copy Markdown
Member

What

Sets up mex — persistent, structured project memory for AI coding agents — and reorganizes the agent instruction files:

  • CLAUDE.mdAGENTS.md: the canonical agent instructions file is now the tool-agnostic AGENTS.md; CLAUDE.md is a symlink to it, so Claude Code and other tools read the same content.
  • .mex/ scaffold, fully populated from the codebase (not template boilerplate):
    • ROUTER.md — session bootstrap: current project state, routing table, behavioural contract
    • context/ — architecture, stack, conventions, decisions (dated from git history), setup, plus two domain files: reports.md (v1/v2/v3 schemas and the DynamoDB lookup chain) and auth.md (launch-token flow)
    • patterns/ — five task runbooks: add-report-endpoint, add-db-query, generate-pdf, debug-local-startup, deploy
  • GROW loop in AGENTS.md so agents update the scaffold after meaningful work.
  • mex config registers both claude and codex as AI tools.

Why

Session-to-session agent context previously lived in one flat CLAUDE.md. mex routes agents to only the context relevant to their task, keeps project state current, and its CLI (mex check) catches documentation drift against the real codebase with zero tokens.

mex check on this branch: 100/100.

Notes

🤖 Generated with Claude Code

deepansh96 and others added 2 commits July 9, 2026 23:48
Rename CLAUDE.md to AGENTS.md as the canonical agent instructions file,
with CLAUDE.md becoming a symlink to it. Add a populated mex scaffold
(.mex/) with context files, task patterns, and a session router, and
wire the GROW loop into AGENTS.md so agents keep the scaffold updated.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@deepansh96 deepansh96 merged commit 459b6db into main Jul 9, 2026
1 check was waiting
@deepansh96 deepansh96 deleted the chore/setup-mex-memory branch July 9, 2026 18:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant