About Swain
Swain makes agentic development safe, aligned, and sustainable for a solo developer working with AI coding agents.
AI agents are fast, stateless, and uncritical. Left unsupervised, they produce code that passes tests but silently violates architectural constraints, drifts from prior decisions, and accumulates structural debt that no test suite can detect.
Swain captures the operator's decisions as artifacts in git: what was decided and why. When the AI makes decisions, swain makes those visible too, so you can review and course-correct.
Core principles
- Artifacts are the single source of truth — If it's not in an artifact, it wasn't decided
- Git is the persistence layer — Everything is markdown files in version control
- Agents are black boxes — Swain provides inputs and verifies outputs, agent runtime is interchangeable
- Intent is malleable — Decisions are hypotheses, not commandments
Install
npx skills add cristoslc/swain
See the GitHub repo for documentation.