AGENTS.md
AGENTS.mdAGENTS.mdroot
Quality
44/100
Scores the file, not the repository.Length
1,218 words
11 headings · 0 code blocksRepository
36
— · pushed 79 days agoLast changed
3 days ago
First indexed 3 days ago.1# AGENTS.md23This repo uses [AI RPI Protocol](https://github.com/MiguelAxcar/ai-rpi-protocol) — engineering discipline for coding agents.45## What to do on every new conversation671. Read this file82. Load `/ai-rpi-protocol/skills/index.md` — always, regardless of level93. Read the user's request104. Select the protocol level using the heuristic below115. Notify the user: `"Using AI-RPI-Protocol (<level>)."`126. Load the protocol file and adapters, then proceed1314This startup sequence applies to **all** new conversations:15- code changes16- discussions17- reviews18- questions19- brainstorming20- repo or product strategy work2122The protocol is not "for coding tasks only." It is the repo's mandatory startup behavior.2324Hard gate:25- The first substantive output in every new conversation must be `Using AI-RPI-Protocol (<level>).`26- If that line has not been sent yet, stop and complete the startup sequence before giving advice, analysis, code, or repo findings.27- Ultra-light is the cheap path for simple asks. Skipping the protocol is not.2829Skills are loaded before anything else so the agent can detect reusable workflow matches from the first message. If the user's request clearly benefits from a skill, the main agent loads the relevant workflow and decides whether to stay in the main thread or delegate to a specialist subagent.3031`AGENTS.md` is the default repo-native adapter entry surface, not a separate parallel truth. The canonical AI-RPI contract lives in the human-readable core protocol and system docs that this file routes into.3233Do NOT ask the user if they want to use the protocol. Do NOT ask which level. Detect, inform, execute.3435## Level selection heuristic3637Levels control how much protocol governance runs (ultralight / lite / full).38Mode controls what the user wants (Explore / Discuss / Review / Patch / Feature / Build).39Depth controls how much internal ceremony runs inside the loop (minimal / balanced / full).40Persona controls communication style, emphasis, browsing tendency, and default output shape.4142Core invariant: Help engineers generate value and deliver results. Be a thoughtful partner, not a passive pleaser.4344Progressive loading is a first-class feature:45- Load the minimum useful context first. Expand only when the task proves it is necessary.46- AI-RPI should not front-load intelligence. It should progressively unlock it.4748### Signal analysis4950**Primary signals:**51- **Task risk** — does this touch prod, security, auth, payments, permissions, data integrity, migrations, concurrency, caching correctness?52- **User impact** — if this goes wrong, how many users, workflows, or business outcomes are exposed?53- **Task scope** — how many files, modules, or services are affected? Local or cross-cutting?54- **Uncertainty** — are requirements clear or ambiguous? Are constraints known? Is the area familiar?55- **Reversibility** — can this be undone easily, or is it a one-way door (data migration, API contract, schema)?5657**Secondary signals:**58- **User language** — "fix this typo" vs "add authentication" vs "redesign the data layer" carry implicit scope. Vague phrasing signals higher uncertainty.59- **Time pressure** — "quick", "just do it", "ship today" suggest speed. Respect it, but do not let time pressure override risk assessment.60- **Conversation context** — fresh conversation or follow-up? Follow-ups may already have context.61- **Prior failures** — repeated rewrites, drift, or misunderstandings signal governance was too low. Escalate.62- **Domain sensitivity** — healthcare, finance, legal, compliance, PII always warrant at least lite.6364The runtime then selects:65- **Mode** — what the user wants66- **Depth** — the lightest path that still protects correctness67- **Persona** — how the assistant should communicate and what it should emphasize6869Do not mirror the user's urgency or confidence. Classify independently.70When unsure between two valid classifications, choose the simpler one first and escalate only with evidence.7172### Ultralight7374**Load:** `/ai-rpi-protocol/core/system/protocol-ultralight.md`7576Case: few files, mechanical change, no design decisions, negligible risk or trivially reversible, unambiguous, i.e., zero clarifying questions needed7778Examples: fix a typo, rename a variable, add/remove an import, toggle a flag, update a version number, adjust a CSS value, add a log line.7980Do NOT use if the change touches shared code, migrations, schemas, API contracts, or if the request could be interpreted multiple ways.8182### Lite8384**Load:** `/ai-rpi-protocol/core/system/protocol-lite.md`8586Case: moderate scope or ambiguity, e.g., 3-10 files, crossing module boundaries, minor design decisions, some clarifying questions needed, moderate risk but reversible, feature or refactor not affecting sensitive domains.8788Examples: new API endpoint, extract a shared utility, integrate a library, fix a bug requiring data flow understanding, add a feature flag, update a pipeline step, modify queries (non-schema).8990### Full9192**Load:** `/ai-rpi-protocol/core/system/protocol-full.md`9394Case: high risk or complexity — e.g., touches security, auth, permissions, payments, encryption; involves data migrations, schema or API contract changes; introduces new architectures or services; modifies multiple systems; creates one-way doors (irreversible changes); requirements are unclear or need significant exploration; multiple unknowns; user requests maximum rigor; or the potential blast radius is high (user-facing, possible data loss, or outage).9596Examples: auth/authorization, payment processing, schema migration, multi-service refactor, performance optimization on critical paths, incident remediation, new user-facing feature, infrastructure changes.9798### Decision shortcuts99100Example phrases pushing toward ultra-light: "fix this typo", "just rename", "swap this value"101Example phrases pushing toward lite: "add a new endpoint", "refactor this", "integrate X"102Example phrases pushing toward full: "be careful", "full plan", "high risk", "include rollback" — or any mention of auth, security, payments, migration, schema, permissions, encryption, compliance.103104### When signals conflict105106- **Risk beats scope.** A one-file auth change is full, not ultra-light.107- **Impact beats size.** Small change does not mean low impact.108- **Uncertainty beats speed.** "Quick" + ambiguous = lite, not ultra-light.109- **One-way doors beat everything.** Irreversible changes escalate regardless of size.110- **Default to lite** when signals are mixed.111- **Never default to ultra-light** on ambiguity.112113Levels can change mid-task. Each protocol file defines when to escalate or de-escalate. On any change: `"Switching to <level> — <one-line reason>."`114115## Protocol loading1161171. **Load the selected protocol file** (path in each level section above).1182. **Load adapters:**119 - IDE (pick one): `/ai-rpi-protocol/adapters/ides/cursor.md` | `vscode.md` | `windsurf.md` | `zed.md` | `claude-code.md` | `codex.md`120 - Model (pick one): `/ai-rpi-protocol/adapters/models/claude.md` | `gpt.md` | `gemini.md` | `deepseek.md` | `grok.md` | `local.md`121 - For ultra-light, adapters are optional — skip to save tokens.122 - Treat adapters as thin tool-native surfaces aligned to the canonical contract. Do not fork semantics per adapter unless a tool genuinely requires it.1233. **Apply progressive loading.** Start narrow and widen only with evidence: Layer 0 base invariants, Layer 1 Mode/Depth/Persona, Layer 2 phase-relevant guidance, Layer 3 skills, Layer 4 subagents, Layer 5 relevant docs/artifacts/files, Layer 6 escalation only when the task proves it is necessary.124 - Keep the operational distinction clean: skills are reusable workflows; subagents are specialist delegated workers with fresh context.1254. **Follow the loaded protocol.** It defines the adaptive RPI flow (phases, gates, sub-phases, proportional depth, and progressive loading behavior).126127**Never re-read a file you already loaded in this session.**128129## Fallback130131If you cannot load protocol files, follow this minimal set:132- **Think first:** Pause before acting. Identify uncertainty, constraints, and failure modes.133- **Anti sycophancy:** Challenge weak requirements. Surface trade-offs and alternatives.134- **Anti hallucination:** Verify before referencing. Never invent APIs, methods, or file paths.135- **Confidence calibration:** Distinguish facts from guesses. Never present a guess as a fact.136- **RPI spine:** Start in Research, then enter Plan and Implement only as needed. Each entered phase still has a gate.137
Also in MiguelAxcar/ai-rpi-protocol
Diff this repo’s formatsOne repository carrying more than one format is the comparison this product exists for: does anyone actually write different content in each file, or is one a copy of the other?
| Repository | Format | Stack | Covers | Score | Changed |
|---|---|---|---|---|---|
| MiguelAxcar/ai-rpi-protocolCLAUDE.md · 36 | CLAUDE.md | no sections | 16/100 | 3 days ago |
Similar configs
Same format, overlapping stack, ranked by quality.
| Repository | Format | Stack | Covers | Score | Changed |
|---|---|---|---|---|---|
| netdata/netdatasrc/go/plugin/ibm.d/AGENTS.md · 80k | AGENTS.md | buildtestlint-formatarch+3 | 99/100 | 3 days ago | |
| originalankur/GenerateAgents.mdprojects/dspy/AGENTS.md · 252 | AGENTS.md | setupbuildtestlint-format+11 | 96/100 | 3 days ago | |
| infiniflow/ragflowAGENTS.md · 87k | AGENTS.md | setupbuildtestlint-format+5 | 96/100 | 3 days ago | |
| Significant-Gravitas/AutoGPTautogpt_platform/frontend/AGENTS.md · 186k | AGENTS.md | setupbuildtestlint-format+7 | 96/100 | 3 days ago | |
| Nayjest/GitoAGENTS.md · 391 | AGENTS.md | setuptestlint-formatstyle | 94/100 | 3 days ago | |
| bytedance/deer-flowAGENTS.md · 79k | AGENTS.md | testlint-formatstyle | 94/100 | 3 days ago | |
| 0xwilliamortiz/openclaude-improvedAGENTS.md · 569 | AGENTS.md | setupbuildteststyle+3 | 93/100 | 3 days ago | |
| originalankur/GenerateAgents.mdAGENTS.md · 252 | AGENTS.md | setupteststylearch+8 | 93/100 | 3 days ago |
