Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx agentmods add instructions/dschnurbusch/mattergate/agents-mdgit clone --depth 1 https://github.com/dschnurbusch/mattergateWhat it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00788 | $0.00788 |
| Opus 5 | $0.00394 | $0.00394 |
| Sonnet 5 | $0.00158 | $0.00158 |
| Haiku 4.5 | $0.00079 | $0.00079 |
Grade A, and why
mattergate AGENTS.md scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 83 lines — stays where its author put it; the contents beside it link to each section on GitHub.
AGENTS.md
Project summary
Legal MCP Gateway is a self-hostable/local MCP permissions gateway for legal-tech systems. It lets an admin connect vendor accounts, provision team users, assign job-title presets, and expose only the MCP tools and actions a user is allowed to use.
Tooling
- Runtime/package manager: Node + npm workspaces.
- Language: TypeScript, strict mode.
- Tests: Vitest.
- Admin UI scaffold: Vite + React.
- Current scaffold intentionally uses a mock legal connector. Do not add real vendor credentials.
Commands
npm install
npm run build
npm test
npm run verify
npm run dev:server
npm run dev:admin
npm run dev:landing
npm run dev:stdio
npm run verify is the normal pre-finish check. It builds all workspaces and runs tests.
Important docs
Tracked project docs live in docs/:
docs/project-plan.md— MVP scope, architecture, roadmap, and build phases.docs/project-tracker.md— current status, decisions, next actions, and open questions.docs/brand.md— working brand direction, name candidates, recommended name, and landing-page copy blocks.docs/auth-model.md— user login, per-client MCP grants, token validation, and Lawmatics auth assumptions.docs/lawmatics-connector-plan.md— first connector scope, existing Railway MCP Lawmatics tools to port, OAuth flow, and API pitfalls.docs/architecture.md— system architecture.docs/policy-model.md— RBAC/ABAC permission model.docs/connector-development.md— how to add connectors safely.docs/deployment.md— local/self-hosted deployment notes.docs/oauth-broker-railway.md— Railway-hosted OAuth broker plan for low-friction connector installs.docs/self-hosting-railway.md— future one-click Railway deploy/self-hosting plan.
Local research files live in docs/research/ and are intentionally gitignored. They currently include:
docs/research/oauth-permissions-research.mddocs/research/legal-tech-integration-catalog.mddocs/research/weave-legal-notes.md
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 2d ago First seen · 83 lines · 788 tokens per session scan A 303abcb738fa
mattergate AGENTS.md is an instructions file published in the GitHub repository dschnurbusch/mattergate (0 stars, last pushed 1mo ago), licensed MIT. It adds 788 tokens to every session, about $0.0039 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
Other instructions, from other repositories
pi-anthropic-auth AGENTS.md
Instructions for gotgenes/pi-anthropic-auth, covering agents guide: pi-anthropic-auth, project, primary goal, current status and principles.
cli CLAUDE.md
Instructions for railwayapp/cli, covering claude.md, development commands, architecture, command system and authentication.
railway-skills AGENTS.md
Instructions for railwayapp/railway-skills, covering railway agent plugins, plugin model, skill model, reference loading pattern and architecture.
dario CLAUDE.md
Instructions for askalf/dario, covering dario — notes for claude code (and other llm coding agents), commits and prs, style, scope and when in doubt, ask.
pixiv-cli AGENTS.md
Instructions for FlanChanXwO/pixiv-cli, covering agents.md, 核心命令, 边界规则, 注意事项 and 文档路由.
sdk AGENTS.md
Instructions for zapier/sdk, covering agents.md, what this repo is, files to read before you start, when to use this sdk vs. alternatives and setup.