Skip to content

Generate every harness file; ship no default skills - #4

Merged
GoatInAHat merged 1 commit into
mainfrom
claude/remove-agent-config-defaults-kziel9
Aug 31, 2026
Merged

GoatInAHat merged 1 commit into
mainfrom
claude/remove-agent-config-defaults-kziel9

Conversation

@GoatInAHat

Copy link
Copy Markdown
Owner

The previous PR left a "seed" tier of committed harness files behind — the parts a harness reads straight from the clone before any script can run. This removes that tier entirely, so .agents/ plus AGENTS.md is the whole committed agent surface, and drops the skills the template shipped with.

Nothing harness-specific is committed

Was Now
CLAUDE.md rendered by sync.py (Claude renderer)
.claude/settings.json rendered by sync.py
.gemini/settings.json rendered by sync.py (new gemini renderer; the harness previously had no renderer at all)
.claude/hooks/workflow-model-mix.py moved to .agents/hooks/, referenced from the generated settings
.claude/hooks/session-start.sh deleted
.cursor/environment.json deleted
.github/copilot-instructions.md deleted
.github/workflows/copilot-setup-steps.yml deleted

The deleted files are the ones with no generated replacement, because generating them is self-defeating: each existed only to bootstrap a fresh cloud clone, and a hook that is itself generated by that bootstrap can never run first. session-start.sh is the clearest case — its registration lived in the settings file it was supposed to create.

Trade-off, stated plainly: cloud harnesses lose in-repo auto-bootstrap. Claude Code on the web, Cursor cloud agents, and the Copilot coding agent now need .agents/scripts/bootstrap.sh in their own setup-script field, joining the row Codex/Jules/Devin/Factory were already in. Until bootstrap runs, a checkout has AGENTS.md and .agents/ and nothing else agent-facing — including no CLAUDE.md, so Claude Code will not load the project instructions in a fresh cloud session until then. Devcontainers, Amp orbs, and CI are unaffected; they call the same script from files that are not harness-specific.

Generator changes

  • HARNESSES entries key on render rather than mcp — a renderer returns every file its harness needs, not just MCP config.
  • The merge-one-key seed machinery (merged_document, seed_outputs) is gone; every output is written wholesale. Local Claude Code settings belong in .claude/settings.local.json, which the generator never touches.
  • sync.py check is repurposed to enforce the invariant that replaced the seed tier: every renderer output must be gitignored and absent from the index. It catches both a renderer added without a .gitignore entry and an adapter force-added to git — the latter was previously caught by nothing.
  • .gitignore gains /CLAUDE.md, /.claude/settings.json, /.gemini/settings.json.

Default skills removed

ponytail, ponytail-audit, ponytail-debt, ponytail-gain, ponytail-help, ponytail-review, and find-skills are deleted and skills-lock.json is empty. The skill machinery (check-skills.py, the lock, the pre-commit hook) stays — it is how a project adds its own or installs a third party's.

Validation

sync.py check, check-skills.py, sync.py --all, bootstrap.sh, pre-commit run --all-files, and the CI job's steps run locally: all pass. A full --all bootstrap leaves git status --porcelain empty, the relocated hook still blocks a two-agent script with no model: and passes one with, and every generated JSON/TOML file parses. CI paths filters and the syntax-check file list were updated for the moved and deleted files.


Generated by Claude Code

Nothing harness-specific is committed any more. CLAUDE.md,
.claude/settings.json, and .gemini/settings.json join the other adapters as
sync.py renderer output, and .cursor/environment.json,
.github/copilot-instructions.md, and the Copilot setup workflow are gone —
a cloud harness that needed a committed in-repo hook now carries the
bootstrap one-liner in its own setup-script field instead. The Workflow
model-mix hook moves to .agents/hooks/, where the generated settings.json
points at it; the Claude SessionStart hook is dropped, since it could only
ever have run after the settings file it lived in was generated.

That removes the "seed" tier, so sync.py loses the merge-one-key machinery.
`sync.py check` now enforces the invariant that replaced it: every renderer
output is gitignored and absent from the index.

Also drop the seven skills the template shipped with (ponytail* and
find-skills) and empty skills-lock.json. The skill machinery stays for
skills a project actually adds.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 4427986d0e

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +48 to 51
- name: Verify no generated adapter is committed
# Every renderer output must be gitignored and absent from the index.
# Runs before bootstrap so it reads the repository as checked out.
run: .agents/scripts/sync.py check

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Include generated adapters in the workflow triggers

When a PR force-adds a generated adapter such as .claude/settings.json, .gemini/settings.json, or CLAUDE.md without changing one of the remaining pull_request.paths, this verification job never starts, so the new sync.py check cannot enforce its stated purpose. Retain the generated-output patterns in both path filters or run this workflow for every PR.

AGENTS.md reference: AGENTS.md:L85-L87

Useful? React with 👍 / 👎.

@GoatInAHat
GoatInAHat merged commit 7734f32 into main Aug 31, 2026
1 check passed
@GoatInAHat
GoatInAHat deleted the claude/remove-agent-config-defaults-kziel9 branch August 31, 2026 02:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants