agentleFS
ondrej-svecondrej-svec/harness-lab/AGENTS.md

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 code style.

    Of the AGENTS.md files we read, the 35,337 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.

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
  1. Distinctive:

    If this file starts turning into an encyclopedia, move detail outward and link to it.

    line 14
  2. Distinctive:

    Before making meaningful changes:

    line 20
  3. Distinctive:

    Read README.md for repo orientation.

    line 22
  4. Very specific:

    Read docs/internal-harness.md for the maintainer-facing map.

    line 23
  5. Very specific:

    Read the current plan in docs/plans/ if the task is non-trivial or already in flight.

    line 24
  6. Distinctive:

    Read the task-specific sources of truth below before editing code or workshop behavior.

    line 26
  7. Distinctive:

    If you touch these areas, read these files first:

    line 30
  8. Distinctive:

    Trunk-based development: Commit directly to main. Do not create feature branches, topic branches, or long-lived side branches.

    line 96
  9. Distinctive:

    Prefer repository knowledge over chat memory.

    line 97
  10. Distinctive:

    Prefer progressive disclosure.

    line 98
  11. Distinctive:

    When the same issue repeats, improve the harness: add or sharpen instructions, tests, runbooks, or review routines.

    line 99
  12. Distinctive:

    Do not introduce live workshop data, real logistics, or participant-private context into tracked public files.

    line 101
  13. Distinctive:

    Keep the workshop method transferable across coding agents.

    line 102
  14. Very specific:

    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.

    line 103
  15. Very specific:

    Before changing framework-sensitive code in dashboard/, prefer the version-matched docs shipped in dashboard/node_modules/next/dist/docs/ …

    line 108
  16. Distinctive:

    Treat framework docs as a source of truth when an implementation detail may have changed recently.

    line 109
  17. Very specific:

    After fresh clone: hooks in .husky/ are tracked in git.

    line 130
  18. Very specific:

    if you change the portable workshop bundle, sync the packaged artifact with node harness-cli/scripts/sync-workshop-bundle.mjs

    line 134
  19. Very specific:

    if you need a disposable repo-local discovery copy under .agents/skills/, generate it explicitly with node …

    line 135
  20. Very specific:

    if you change authored participant-facing workshop sources in workshop-skill/, content/, or workshop-blueprint/, treat the portable bundle …

    line 136
  21. Very specific:

    if you change Czech visible-surface content, run the copy-editor Layer 1 typography audit before committing: bun …

    line 137
  22. Very specific:

    if you rely on the repo-local .agents/skills/workshop copy during development, refresh that generated copy in the same slice of work …

    line 138
  23. Very specific:

    if those content changes must appear in already-created workshop instances, reset the affected instances from the current blueprint with …

    line 139
  24. Distinctive:

    if you change architecture or trust boundaries, update the relevant ADR or boundary doc in the same slice of work

    line 140
  25. Distinctive:

    Treat tests and executable checks as the default trust boundary once an agent is doing meaningful implementation work.

    line 144
  26. Distinctive:

    Prefer the smallest useful failing test, tracer bullet, or executable check before implementation when behavior or trust boundaries change.

    line 145
  27. Distinctive:

    Do not treat unrestricted browser autonomy in a normal authenticated browser as the default workflow.

    line 150
  28. Distinctive:

    No pre-work required from participants — everything works from zero on the day

    line 158
  29. Distinctive:

    Before claiming work complete:

    line 169
  30. Distinctive:

    Run the relevant tests, lint, build, or tracer checks for the touched surface.

    line 171
  31. Distinctive:

    Update plans, ADRs, runbooks, or harness docs when the change alters behavior, boundaries, or repeated workflow rules.

    line 173
  32. Distinctive:

    Leave the next safe move obvious for the next human or agent if the task is only partially complete.

    line 174

≈ “Common” is an estimate: at least 1 in 5 of the 45,344 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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
AGENTS.md

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.md is 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:

  1. Read README.md for repo orientation.
  2. Read docs/internal-harness.md for the maintainer-facing map.
  3. Read the current plan in docs/plans/ if the task is non-trivial or already in flight. Live plans sit in docs/plans/ root; completed and superseded plans are archived per docs/plan-lifecycle-standard.md.
  4. For non-trivial work that should authorize autonomous execution, read docs/autonomous-planning-standard.md and docs/planning-rubrics.md.
  5. 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 map
    • docs/dashboard-design-system.md
    • docs/dashboard-surface-model.md
    • docs/dashboard-testing-strategy.md
    • docs/agent-ui-testing.md
  • facilitator auth, participant event access, or private runtime boundaries:
    • docs/public-private-taxonomy.md
    • docs/private-workshop-instance-data-classification.md
    • docs/adr/2026-04-06-private-workshop-instance-runtime-topology.md
    • docs/adr/2026-04-06-private-workshop-instance-auth-boundary.md
  • workshop method, agenda shape, or canonical public workshop content:
    • workshop-blueprint/README.md
    • workshop-blueprint/day-structure.md
    • workshop-blueprint/control-surfaces.md
    • workshop-blueprint/edit-boundaries.md
  • bilingual agenda scene source (workshop-content/):
    • workshop-content/AGENTS.md — subtree map
    • docs/workshop-content-language-architecture.md
    • docs/workshop-content-qa.md
  • participant skill, install flow, or portable bundle behavior:
    • workshop-skill/AGENTS.md — subtree map
    • harness-cli/AGENTS.md — subtree map
    • workshop-skill/SKILL.md
    • docs/resource-packaging-model.md
    • docs/harness-cli-foundation.md
  • participant-facing workshop copy:
    • content/style-guide.md
    • content/style-examples.md
    • content/czech-reject-list.md
    • content/czech-editorial-review-checklist.md
    • .copy-editor.yaml — config for the marvin:copy-editor skill (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 material

Language

  • 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. See docs/adr/2026-04-12-skill-docs-english-canonical.md.
  • Participant-facing workshop delivery: per-workshop contentLang such 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.md and content/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 on main in 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.md as 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.yaml scope, 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 in dashboard/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 build

Content verification:

  • Bilingual source: Edit workshop-content/agenda.json (never the generated files). Run npm run generate:content to update views, then npm run verify:content to 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.yaml include globs. The copy-audit step degrades gracefully: if bun or 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/ or workshop-blueprint/agenda.json — edit workshop-content/agenda.json and 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 in content/style-guide.md or .copy-editor.yaml should be updated instead.
  • After fresh clone: hooks in .husky/ are tracked in git. If your git version doesn't auto-detect them, run git 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 with node harness-cli/scripts/sync-workshop-bundle.mjs --with-repo-bundle
  • if you change authored participant-facing workshop sources in workshop-skill/, content/, or workshop-blueprint/, treat the portable bundle as stale until you resync it and run cd 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/workshop copy 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:
    1. exploratory browser inspection in an isolated local environment
    2. repeatable Playwright regression for critical flows
    3. 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:

  1. Run the relevant tests, lint, build, or tracer checks for the touched surface.
  2. State clearly what you verified and what you did not verify.
  3. Update plans, ADRs, runbooks, or harness docs when the change alters behavior, boundaries, or repeated workflow rules.
  4. Leave the next safe move obvious for the next human or agent if the task is only partially complete.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.