Harness Bootstrap
Overview
Bootstrap a repository-local Harness that agents can read, extend, and enforce. Start from the closest template, scaffold it with the bootstrap script when possible, and then tailor architecture, rules, validation, and plans to the real project.
Workflow
- Choose the closest template.
- Read
references/template-selection.mdif the repo shape is unclear. - Prefer
softwarefor product engineering repos,researchfor experiment-heavy work, andgeneralfor mixed operational or knowledge-work systems.
- Read
- Scaffold the first draft.
- Preferred: run
python3 scripts/bootstrap_harness.py --template <template> --target <path> --project-name <name>. - Fallback: copy from
assets/templates/<template>/manually if a custom layout is required.
- Preferred: run
- Tailor the knowledge base to the real repository.
- Rewrite
AGENTS.mdso it points at the real source-of-truth docs. - Fill
docs/architecture/monorepo-map.mdwith actual owners, boundaries, and dependency directions. - Define the smallest useful checks in
docs/validation/checks.md. - Record non-trivial work in
plans/active/and real debt indocs/quality/debt-log.md.
- Rewrite
- Encode the operating model instead of relying on chat memory.
- Keep
AGENTS.mdshort. - Treat
docs/as the system of record. - Promote repeated review comments into docs, tests, scripts, or automation.
- Keep
- Validate and iterate.
- Run the smallest checks that prove the scaffold matches the repo.
- Use
references/customization-playbook.mdto drive the first round of edits. - Read
references/harness-principles.mdwhen deciding what to encode versus what to leave flexible.
Template Catalog
software: scaffoldapps/,packages/,infra/, and the operating docs needed for code, review, validation, and cleanup.research: scaffolddatasets/,experiments/,analysis/,reports/, and the docs needed for provenance, reproducibility, and eval loops.general: scaffoldworkflows/,references/,deliverables/,automation/, and the docs needed for mixed operational or knowledge-work systems.
Trigger Examples
Use $harness-bootstrap to scaffold an agent-first Harness for this monorepo.Use $harness-bootstrap to turn this research repo into a reproducible agent workspace with plans and validation.Use $harness-bootstrap to create a general-purpose Harness for writing, ops, and automation work.
Resources
scripts/
bootstrap_harness.py: copy a template into a target repository and replace the fixed placeholders.
references/
harness-principles.md: rationale for agent-first repo design and why the scaffold is structured this way.template-selection.md: choose betweensoftware,research, andgeneral.customization-playbook.md: minimum edits to make immediately after scaffolding.
assets/
templates/softwaretemplates/researchtemplates/general


