A reusable set of coding agent guidelines that can be shared across multiple repositories using git submodules.
.
├── AGENTS.md.template # Template for your project's AGENTS.md
├── bug-fixes.md
├── coverage.md # Base coverage rules (language-agnostic)
├── incremental-work.md
├── rust/
│ └── coverage.md # Rust-specific coverage tooling
├── typescript/
│ └── coverage.md # TypeScript-specific coverage tooling
└── README.md
cd your-project
git submodule add https://github.com/LNVPS/agents.git agents
git submodule update --init --recursiveThis places the submodule at agents/, so paths become agents/coverage.md.
Copy the template and customize it:
cp agents/AGENTS.md.template AGENTS.mdEdit AGENTS.md to:
- Replace
[PROJECT_NAME]with your project name - Add your project-specific docs to the table
- Add any active work files
mkdir -p workTo pull updates from the shared repo:
cd agents
git pull origin main
cd ..
git add agents
git commit -m "Update agents submodule"The generic guidelines cover:
- bug-fixes.md - Regression test requirements for bug fixes
- coverage.md - 100% function coverage policy for new/modified code
- incremental-work.md - Work file format for tracking multi-session tasks
Language-specific docs are organized in subdirectories:
- rust/ - Rust-specific tooling and commands
coverage.md- cargo-llvm-cov / cargo-tarpaulin instructions
- typescript/ - TypeScript-specific tooling and commands
coverage.md- Jest/Vitest/c8 coverage instructions
Projects should reference both the generic doc and the appropriate language-specific doc. For example, a Rust project would load both coverage.md and rust/coverage.md.
To add new generic guidelines that apply across all projects:
- Add the doc to this repo
- Update
AGENTS.md.templateto reference it - Update this README