reins — Open-source CLI that operationalizes harness engineering. Scaffold, audit, evolve, and doctor any project's agent-readiness. Zero dependencies, Bun-powered.
cli/reinsis the product engine. It is the only source of truth for readiness scoring and JSON outputs.skill/Reinsis the control-plane wrapper for coding agents. It decides when/how to call CLI commands and how to parse results.- Humans steer outcomes. Agents execute the loop using Reins outputs.
- Reins exists to transfer proven harness patterns into any repo so agents can become more autonomous and consistent over time.
When updating docs or workflows, preserve this separation explicitly. Do not duplicate scoring logic in the skill layer.
See ARCHITECTURE.md for domain map, module structure, and dependency rules.
| Topic | Location | Status |
|---|---|---|
| Architecture | ARCHITECTURE.md | Current |
| CLI Source | cli/reins/src/index.ts | Current |
| CLI Modules | cli/reins/src/lib/ | Current |
| CLI Commands | cli/reins/src/lib/commands/ | Current |
| Audit Engine | cli/reins/src/lib/audit/ | Current |
| CLI Tests | cli/reins/src/index.test.ts | Current |
| Claude Skill | skill/Reins/SKILL.md | Current |
| Harness Methodology | skill/Reins/HarnessMethodology.md | Current |
| Skill Workflows | skill/Reins/Workflows/ | Current |
| Design Docs | docs/design-docs/index.md | Current |
| Core Beliefs | docs/design-docs/core-beliefs.md | Current |
| Ecosystem Positioning | docs/design-docs/ecosystem-positioning.md | Current |
| Product Specs | docs/product-specs/index.md | Current |
| Active Plans | docs/exec-plans/active/ | Current |
| Completed Plans | docs/exec-plans/completed/ | Current |
| Technical Debt | docs/exec-plans/tech-debt-tracker.md | Current |
| Risk Policy | risk-policy.json | Current |
| Golden Principles | docs/golden-principles.md | Current |
| CI Pipeline | .github/workflows/ci.yml | Current |
| Publish Pipeline | .github/workflows/publish.yml | Current |
| Version Bump Pipeline | .github/workflows/auto-bump-cli-version.yml | Current |
- Receive task via prompt
- Read this file, then follow pointers to relevant docs
- Keep CLI command routing in
cli/reins/src/index.ts; put reusable internals incli/reins/src/lib/(especiallylib/commands/andlib/audit/) - Run tests:
cd cli/reins && bun test - Self-audit:
cd cli/reins && bun src/index.ts audit ../.. - Self-review changes for correctness and style
- Open PR with concise summary
- Resolve all PR conversations/comments before merge (GitHub review threads, CodeRabbit threads, and agent comments when applicable)
- Zero external runtime dependencies — stdlib only (fs, path)
- Single entrypoint CLI at
cli/reins/src/index.tswith shared internals incli/reins/src/lib/ - All commands output deterministic JSON
- Tests are co-located (
index.test.tsnext toindex.ts) - All knowledge lives in-repo, not in external tools
- Bun is the runtime; Node.js/tsx fallback via
bin/reins.cjs - Merge discipline: treat unresolved PR conversations as a hard block when branch protection requires conversation resolution
See docs/golden-principles.md for the full set of mechanical taste rules.