harness-lab
AGENTS.md0 starsChanged 8 months agoMITView on GitHub
Harness Lab is a full-day experiential developer workshop ("Developer Hackathon") teaching harness engineering — the discipline of engineering context, instructions, and workflows for AI coding agents. The workshop is designed around build phases, a mid-day continuation shift, and strong emphasis on what survives in the repository itself. The quality of context engineering (AGENTS.md, skills, runbooks) determines whether another team can continue without friction. This repository is the public-safe template version of the workshop. Real workshop dates, venues, and live operational…
- Installs packages
- Commits and pushes
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.
Of the AGENTS.md files we read, the 11,736 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository5 other files it gives its agents.
- dashboard/AGENTS.mdAGENTS.md
- harness-cli/AGENTS.mdAGENTS.md
- workshop-content/AGENTS.mdAGENTS.md
- workshop-skill/AGENTS.mdAGENTS.md
- workshopSkill
The file
Show its rules and text
We split this AGENTS.md into the rules it gives an agent
32 rules. About 0 are common, 21 are distinctive, and 11 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈21
Distinctive · estimate
This author's own choices. Worth a look.
11
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 14
If this file starts turning into an encyclopedia, move detail outward and link to it.
- Distinctive: line 20
Before making meaningful changes:
- Distinctive: line 22
Read README.md for repo orientation.
- Very specific: line 23
Read docs/internal-harness.md for the maintainer-facing map.
- Very specific: line 24
Read the current plan in docs/plans/ if the task is non-trivial or already in flight.
- Distinctive: line 26
Read the task-specific sources of truth below before editing code or workshop behavior.
- Distinctive: line 30
If you touch these areas, read these files first:
- Distinctive: line 96
Trunk-based development: Commit directly to main. Do not create feature branches, topic branches, or long-lived side branches.
- Distinctive: line 97
Prefer repository knowledge over chat memory.
- Distinctive: line 98
Prefer progressive disclosure.
- Distinctive: line 99
When the same issue repeats, improve the harness: add or sharpen instructions, tests, runbooks, or review routines.
- Distinctive: line 101
Do not introduce live workshop data, real logistics, or participant-private context into tracked public files.
- Distinctive: line 102
Keep the workshop method transferable across coding agents.
- Very specific: line 103
When editing any file in the .copy-editor.yaml scope, editorial self-check (Layer 1 + Layer 2) runs in the same slice as the edit.
- Very specific: line 108
Before changing framework-sensitive code in dashboard/, prefer the version-matched docs shipped in dashboard/node_modules/next/dist/docs/ …
- Distinctive: line 109
Treat framework docs as a source of truth when an implementation detail may have changed recently.
- Very specific: line 130
After fresh clone: hooks in .husky/ are tracked in git.
- Very specific: line 134
if you change the portable workshop bundle, sync the packaged artifact with node harness-cli/scripts/sync-workshop-bundle.mjs
- Very specific: line 135
if you need a disposable repo-local discovery copy under .agents/skills/, generate it explicitly with node …
- Very specific: line 136
if you change authored participant-facing workshop sources in workshop-skill/, content/, or workshop-blueprint/, treat the portable bundle …
- Very specific: line 137
if you change Czech visible-surface content, run the copy-editor Layer 1 typography audit before committing: bun …
- Very specific: line 138
if you rely on the repo-local .agents/skills/workshop copy during development, refresh that generated copy in the same slice of work …
- Very specific: line 139
if those content changes must appear in already-created workshop instances, reset the affected instances from the current blueprint with …
- Distinctive: line 140
if you change architecture or trust boundaries, update the relevant ADR or boundary doc in the same slice of work
- Distinctive: line 144
Treat tests and executable checks as the default trust boundary once an agent is doing meaningful implementation work.
- Distinctive: line 145
Prefer the smallest useful failing test, tracer bullet, or executable check before implementation when behavior or trust boundaries change.
- Distinctive: line 150
Do not treat unrestricted browser autonomy in a normal authenticated browser as the default workflow.
- Distinctive: line 158
No pre-work required from participants — everything works from zero on the day
- Distinctive: line 169
Before claiming work complete:
- Distinctive: line 171
Run the relevant tests, lint, build, or tracer checks for the touched surface.
- Distinctive: line 173
Update plans, ADRs, runbooks, or harness docs when the change alters behavior, boundaries, or repeated workflow rules.
- Distinctive: line 174
Leave the next safe move obvious for the next human or agent if the task is only partially complete.
≈ “Common” is an estimate: at least 1 in 5 of the 16,597 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Harness Lab
Mission
Harness Lab is a full-day experiential developer workshop ("Developer Hackathon") teaching harness engineering — the discipline of engineering context, instructions, and workflows for AI coding agents.
The workshop is designed around build phases, a mid-day continuation shift, and strong emphasis on what survives in the repository itself. The quality of context engineering (AGENTS.md, skills, runbooks) determines whether another team can continue without friction.
This repository is the public-safe template version of the workshop. Real workshop dates, venues, and live operational state should live in the private workshop-instance layer, not here.
Root rule:
AGENTS.mdis the map, not the manual.- Deeper docs in
docs/,workshop-blueprint/, and surface-specific runbooks are the system of record. - If this file starts turning into an encyclopedia, move detail outward and link to it.
For the maintenance standard behind this file, see docs/agents-md-standard.md.
Read First
Before making meaningful changes:
- Read
README.mdfor repo orientation. - Read
docs/internal-harness.mdfor the maintainer-facing map. - Read the current plan in
docs/plans/if the task is non-trivial or already in flight. Live plans sit indocs/plans/root; completed and superseded plans are archived perdocs/plan-lifecycle-standard.md. - For non-trivial work that should authorize autonomous execution, read
docs/autonomous-planning-standard.mdanddocs/planning-rubrics.md. - Read the task-specific sources of truth below before editing code or workshop behavior.
Task Routing
If you touch these areas, read these files first:
dashboard/UI, routes, or workshop state:dashboard/AGENTS.md— subtree mapdocs/dashboard-design-system.mddocs/dashboard-surface-model.mddocs/dashboard-testing-strategy.mddocs/agent-ui-testing.md
- facilitator auth, participant event access, or private runtime boundaries:
docs/public-private-taxonomy.mddocs/private-workshop-instance-data-classification.mddocs/adr/2026-04-06-private-workshop-instance-runtime-topology.mddocs/adr/2026-04-06-private-workshop-instance-auth-boundary.md
- workshop method, agenda shape, or canonical public workshop content:
workshop-blueprint/README.mdworkshop-blueprint/day-structure.mdworkshop-blueprint/control-surfaces.mdworkshop-blueprint/edit-boundaries.md
- bilingual agenda scene source (
workshop-content/):workshop-content/AGENTS.md— subtree mapdocs/workshop-content-language-architecture.mddocs/workshop-content-qa.md
- participant skill, install flow, or portable bundle behavior:
workshop-skill/AGENTS.md— subtree mapharness-cli/AGENTS.md— subtree mapworkshop-skill/SKILL.mddocs/resource-packaging-model.mddocs/harness-cli-foundation.md
- participant-facing workshop copy:
content/style-guide.mdcontent/style-examples.mdcontent/czech-reject-list.mdcontent/czech-editorial-review-checklist.md.copy-editor.yaml— config for themarvin:copy-editorskill (HoG-provided two-layer review)
Repo Map
/
├── AGENTS.md # Short operating map for agents and maintainers
├── README.md # Public repo orientation
├── dashboard/ # Next.js App Router workshop application
├── workshop-blueprint/ # Canonical public definition of the workshop method
├── workshop-content/ # Bilingual source of truth for agenda scenes (see docs/workshop-content-language-architecture.md)
├── workshop-skill/ # Authored participant-facing skill and AGENTS starter
├── harness-cli/ # CLI for participant bundle install and facilitator ops
├── content/ # Participant-facing briefs, cards, talks, facilitation
├── docs/ # System of record for doctrine, plans, ADRs, boundaries
├── materials/ # Participant-facing print and takeaway assets
├── monitoring/ # Repo scanning and workshop monitoring helpers
└── capture/ # Quick capture pipeline and related support materialLanguage
- Dev-facing docs and architecture notes: English
- Shared structured workshop content that is rendered verbatim on a screen (agenda scenes, project briefs, challenge cards, facilitation guides): canonical English authoring with reviewed localized delivery. Czech remains a first-class reviewed locale for real workshop runs.
- Workshop skill reference docs (
workshop-skill/*.md): English only. The skill is consumed by an AI agent (Codex, Claude Code, pi) that translates on the fly for non-English participants. Do not maintain parallel Czech copies. Seedocs/adr/2026-04-12-skill-docs-english-canonical.md. - Participant-facing workshop delivery: per-workshop
contentLangsuch as Czech or English. This still applies to agenda rendering; it does not apply to skill reference files. - Technical terms (AGENTS.md, skills, slash commands): English
- Code and configuration: English
- Participant-facing Czech copy in agenda/briefs should follow
content/style-guide.mdandcontent/style-examples.md - Language architecture details live in
docs/workshop-content-language-architecture.md
Working Rules
- Trunk-based development. Commit directly to
main. Do not create feature branches, topic branches, or long-lived side branches. All work lands onmainin small, verified increments. - Prefer repository knowledge over chat memory. If a rule or decision should survive the session, write it down in the repo.
- Prefer progressive disclosure. Keep this file short and route to deeper docs instead of pasting long policy blocks here.
- When the same issue repeats, improve the harness: add or sharpen instructions, tests, runbooks, or review routines.
- For dashboard UI work, treat
docs/dashboard-design-system.mdas the shared visual and interaction baseline. Update it or the relevant surface-specific design doc when you introduce a new recurring UI pattern. - Do not introduce live workshop data, real logistics, or participant-private context into tracked public files.
- Keep the workshop method transferable across coding agents. Codex-specific helpers are useful accelerators, not the whole method.
- When editing any file in the
.copy-editor.yamlscope, editorial self-check (Layer 1 + Layer 2) runs in the same slice as the edit. Doctrine:docs/workshop-content-qa.md.
Framework Guidance
dashboard/uses Next.js App Router with strict TypeScript and Tailwind CSS.- Before changing framework-sensitive code in
dashboard/, prefer the version-matched docs shipped indashboard/node_modules/next/dist/docs/and the current Next.js AI agents guide. - Treat framework docs as a source of truth when an implementation detail may have changed recently.
- Database migrations follow
docs/migration-policy.md: forward-only, expand→contract, same-slice migration + code, filename-sort ordering.
Build And Test
cd dashboard && npm install && npm run dev
npm run test
npm run test:e2e
npm run lint
npm run buildContent verification:
- Bilingual source: Edit
workshop-content/agenda.json(never the generated files). Runnpm run generate:contentto update views, thennpm run verify:contentto confirm they match. - Pre-commit hook (
.husky/pre-commit): blocks commits when staged generated files don't match source, and runs the Czech copy-editor Layer 1 typography audit (marvin:copy-editor) on staged files that fall under the.copy-editor.yamlinclude globs. The copy-audit step degrades gracefully: ifbunor the toolkit script is not available locally, it emits a warning and does not block the commit. - Pre-push hook (
.husky/pre-push): runs Tier 2 locale sync check + generated file verification before push. - CI (
.github/workflows/content-integrity.yml): runs both checks on push to main and PRs. - Do not hand-edit files under
dashboard/lib/generated/orworkshop-blueprint/agenda.json— editworkshop-content/agenda.jsonand run the generator. - Emergency bypass:
git commit --no-verify/git push --no-verify— document the reason in the commit message. When bypassing the Czech copy-audit specifically, the reason must name the specific finding being overridden and why the override is correct (for example, "ty/vy mismatch is intentional here because the speaker is addressing one named person"). Generic reasons like "copy-audit noise" or "false positive" are not acceptable — if the audit fires repeatedly on the same pattern and the pattern is correct, the doctrine incontent/style-guide.mdor.copy-editor.yamlshould be updated instead. - After fresh clone: hooks in
.husky/are tracked in git. If your git version doesn't auto-detect them, rungit config core.hooksPath .husky.
Additional repo-specific checks:
- if you change the portable workshop bundle, sync the packaged artifact with
node harness-cli/scripts/sync-workshop-bundle.mjs - if you need a disposable repo-local discovery copy under
.agents/skills/, generate it explicitly withnode harness-cli/scripts/sync-workshop-bundle.mjs --with-repo-bundle - if you change authored participant-facing workshop sources in
workshop-skill/,content/, orworkshop-blueprint/, treat the portable bundle as stale until you resync it and runcd harness-cli && npm run verify:workshop-bundle - if you change Czech visible-surface content, run the copy-editor Layer 1 typography audit before committing:
bun ../heart-of-gold-toolkit/plugins/marvin/skills/copy-editor/scripts/copy-audit.ts --config .copy-editor.yaml— must return zero error-severity findings. Layer 2 judgment suggestions are advisory and always require a human Czech reviewer for signoff. - if you rely on the repo-local
.agents/skills/workshopcopy during development, refresh that generated copy in the same slice of work instead of editing it independently - if those content changes must appear in already-created workshop instances, reset the affected instances from the current blueprint with
harness workshop reset-instance <instance-id> [--template-id blueprint-default] - if you change architecture or trust boundaries, update the relevant ADR or boundary doc in the same slice of work
Verification Boundary
- Treat tests and executable checks as the default trust boundary once an agent is doing meaningful implementation work.
- Prefer the smallest useful failing test, tracer bullet, or executable check before implementation when behavior or trust boundaries change.
- For UI work, use the layered workflow:
- exploratory browser inspection in an isolated local environment
- repeatable Playwright regression for critical flows
- human review before considering the change complete
- Do not treat unrestricted browser autonomy in a normal authenticated browser as the default workflow.
- A change is not done when the diff looks plausible. It is done when the relevant checks ran, the docs still match reality, and the next team can continue without guessing.
Key Constraints
- Dashboard must work on mobile (participants scan QR code)
- Workshop skill must be installable in both Codex and Claude Code
- The system must support reviewed Czech workshop delivery without tying all authored source content to Czech-only storage
- No pre-work required from participants — everything works from zero on the day
Trust Boundaries
- Public template repo stays public-safe and runnable with sample/demo data only.
- Participant-private workshop context belongs in the private workshop-instance layer and must not leak through public routes or files.
- Facilitator routes and mutations must stay on a separate auth path from participant event access.
- Any new artifact that is not safe to reveal before the event belongs in the private runtime layer or a separate private ops workspace, not in tracked repo files.
Done Criteria
Before claiming work complete:
- Run the relevant tests, lint, build, or tracer checks for the touched surface.
- State clearly what you verified and what you did not verify.
- Update plans, ADRs, runbooks, or harness docs when the change alters behavior, boundaries, or repeated workflow rules.
- Leave the next safe move obvious for the next human or agent if the task is only partially complete.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

