AGENT PREFLIGHT | REPO EVIDENCE | CONTINUOUS CONTRACT
Make your repo safe, fast, and deterministic for AI coding agents.
gitelf.dev diagnoses what coding agents will guess, retry repeatedly, or fail silently on in your codebase — backed by empirical 2026 software debt research — and synthesizes the smallest repository change that removes friction.
EMPIRICALLY DEFENSIBLE 2026 PR study finds structured instructions linked to 28.6% lower median runtime & 16.6% fewer tokens (Lulla et al., arXiv:2601.20404) ↗
📖
Theoretical & Empirical Foundation: 2026 Research on Coding Agents & Software Debt
Grounding papers diagnosing agent efficiency, software health & comprehension traps
arXiv:2601.20404 ↗
On the Impact of AGENTS.md Files on the Efficiency of AI Coding Agents
Empirical study of 2,000+ PRs demonstrating that structured instructions reduce median agent runtime by 28.6% and token usage by 16.6%.
arXiv:2603.22106 ↗
From Technical Debt to Cognitive and Intent Debt: Rethinking Software Health in the Age of AI
AI accelerates code generation while causing cognitive debt (erosion of team mental models) and intent debt (unwritten goals & constraints).
arXiv:2604.13277 ↗
Comprehension Debt in GenAI-Assisted Software Engineering Projects
Identifies 4 debt traps: black-box code acceptance, context-mismatch, dependency atrophy, and verification bypass ("competence trap").
Try real repos:
vercel/next.js
expressjs/express
trpc/trpc
astral-sh/uv
shadcn-ui/ui
5 Dimensions of Agent Readiness
Every dimension is scored directly against hard repository evidence.
Likely Agent Failure Points
Things coding agents will guess, retry repeatedly, or fail silently on:
Task Simulator
Simulate how a coding agent will traverse this repo to complete a real feature or refactor.
Presets:
Estimated Discovery Burden
Quantifiable agent friction metrics instead of vague estimates:
--
Files Traversed
--
Ambiguous Decisions
--
Likely Retries
--
Undocumented Deps
Likely Discovery Path
Files the agent must search, read, or cross-reference before writing code:
Agent Must Determine
Crucial decisions the agent must make:
Likely Friction Points
Where the agent risks getting stuck:
Triple Debt Diagnostic & Traps
Software systems exist across three interacting layers: Code (Technical), Mental Models (Cognitive), and Non-Code Artifacts (Intent). Grounded in Storey 2026 & Ahmad 2026.
Technical Debt
--
Code & Execution Layer (Cunningham / Fowler)
Package managers, tests, and CI alignment.
Intent Debt
--
Goals, Boundaries & Rationale (Storey 2026)
Non-functional budgets, ADRs, executable specs, domain model.
Cognitive Debt
--
Team Mental Models & Comprehension (Ahmad 2026)
Comprehension gates, verification competence, transactive memory.
Detected Intent & Cognitive Debt Traps
Where GenAI acceleration degrades maintainability, safety, and shared understanding:
Practical Remediation Toolkit
Living, low-friction repository artifacts to ground AI agents and preserve human mental models:
Agent Contract & Repair Layer
Synthesize the repo into a compact machine contract and minimal surgical diffs:
Surgical Fixes (Minimal Repo Patches)
Targeted unified diffs that remove detected friction without bloat:
Agent Mystery Test
Standardized battery testing if an agent can confidently answer 8 core questions:
Instruction Drift Detection
Comparing existing instructions (AGENTS.md, CLAUDE.md) against live CI and manifests:
Repository Front-Door Hygiene
Standard open source contributor and documentation checklist:
The Defensible Loop: Preflight + Repair
gitelf.dev is not merely an AGENTS.md generator — it is a continuous operating contract engine.
Repository
Manifests, CI, Layout
→
gitelf Preflight
Evidence & Friction
→
Agent Contract
Durable Machine Asset
→
All Coding Agents
Claude, Codex, Cursor
→
Drift Detection ↺
Continuous Parity