martin-loop AGENTS.md

Repository instructions for MartinLoop that define how AI agents must develop, review, test, and publish changes. They require private development first, followed by a separate public release process.

In plain words
What is it for?
Creating private branches and pull requests, passing internal checks, transferring approved changes to public staging, and opening the public release pull request.
Why use it?
They prevent unfinished or unreviewed work from being developed directly in the public repository and make the release path auditable.

Instructions file for CodexOpenCode

Install

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.

agentmods
npx agentmods add instructions/keesan12/martin-loop/agents-md
Clone the repo
git clone --depth 1 https://github.com/Keesan12/martin-loop

Made for: Codex, OpenCode.

Per session 1,999 This file is loaded in full into every session.
When invoked 1,999 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What 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.

ModelPer sessionOnce invoked
Fable 5 $0.01999 $0.01999
Opus 5 $0.01000 $0.01000
Sonnet 5 $0.00400 $0.00400
Haiku 4.5 $0.00200 $0.00200

Measured yesterday against content hash 81df453c5098, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

martin-loop 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 yesterday.

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.

AGENTS.md · 252 lines

How it starts

The opening of the file, as written. The whole thing — 252 lines — stays where its author put it; the contents beside it link to each section on GitHub.

MartinLoop Agent Operating Rules

These rules are mandatory for every AI agent, automation, contributor, and coding session working on MartinLoop.

Repository authority

is the sole development authority.

is a public distribution repository. It is never the primary development repository.

Mandatory internal-first sequence

Every code change must follow this sequence:

  1. Start from the latest .
  2. Create a private feature branch.
  3. Implement and test the change privately.
  4. Commit and push the private branch.
  5. Open a private PR into .
  6. Pass all required internal checks.
  7. Fix all regressions.
  8. Prove the real MartinLoop workflow works.
  9. Merge the private PR only after explicit approval.
  10. Record the private merge commit SHA.
  11. Verify fresh is clean and healthy.
  12. Create a clean public-staging branch from the latest public .
  13. Transfer only the reviewed public-safe diff from the private merge.
  14. Run public tests and public-surface guards.
  15. Push the public-staging branch.
  16. Open a public PR.
  17. Merge publicly only after hosted checks pass and explicit approval is given.

Prohibited actions

Agents must never:

  • develop directly in ;
  • use public as the implementation authority;
  • push unmerged private feature commits to the public repository;
  • create public staging before the private PR is merged;
  • resolve implementation conflicts only in a public-staging branch;
  • bypass or weaken the public-write hook;
  • ask the user to bypass the hook for unfinished work;
  • push directly to public ;
  • merge a stale public branch wholesale;
  • declare public readiness while private is broken;
  • promote code without a recorded private merge SHA;
  • publish npm, tags, native assets, or GitHub Releases before public merge approval.

Required internal health proof

Before public staging, a fresh worktree of private must prove all packages build and test clean, portability and copy-scan pass, git diff --check passes, no conflict markers exist, martin doctor works, preflight and governed run succeed, receipt is created and readable, verification succeeds, status survives restart, and separate workspaces remain isolated.

Read the full file on GitHub · 252 lines

Changes

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.

  1. yesterday First seen · 252 lines · 1,999 tokens per session scan A 81df453c5098

Subscribe to this mod's changes

martin-loop AGENTS.md is an instructions file published in the GitHub repository Keesan12/martin-loop (47 stars, last pushed yesterday), licensed Apache-2.0. It adds 1,999 tokens to every session, about $0.0100 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-30.