Agent Repo Spec

0•

Establishes and audits agent-first repository architectures using minimal AGENTS.md routers, nested rules, and single-source-of-truth documentation.

Agent Repo Spec provides a battle-tested blueprint derived from DeepSeek Harness for structuring repository guidance, command ownership, and documentation tailored for AI agents. It streamlines root AGENTS.md and CLAUDE.md files into concise context routers, distributes granular sub-tree rules, establishes a strict 'one-home-per-fact' documentation hierarchy, and configures secure, git-ignored local developer memory (.agents/local.md) for cross-session efficiency.

Key Features

01Designs minimal AGENTS.md and CLAUDE.md routers under strict 60-line context budgets
02Establishes a single-source-of-truth 'one-home-per-fact' repository documentation hierarchy
03Configures secure, git-ignored user-local memory (.agents/local.md) for persistent developer context
04Structures nested subtree AGENTS.md files for localized, modular rule enforcement
05Defines strict command ownership and documentation obligation matrices for pull requests
060 GitHub stars

Use Cases

01Setting up a new project with agent-first documentation and clean context routing
02Isolating machine-specific developer credentials, paths, and debug settings across AI sessions
03Refactoring bloated AGENTS.md or CLAUDE.md files to eliminate context window waste and rule drift