Skip to content

tooling: turbo 2.11.5 writes a managed block into AGENTS.md in every agent worktree; opt out with "agentGuidance": false in turbo.json #21146

Description

@objectstack-fleet

Filing-gate class: ① a defect with a named site and a measured reproduction. It is a regression from today's #21024 landing.
Routing: the maintainer direct-dispatch channel (session_018gA1pE6eJtwHhqx72G8U9X; 「相关卡片你使用项目经理技能派发处理」). It is fallout of #21024, which that ruling authorized. Routed to domain:devx / area:devpath; triage grades the priority.
Acting reader: the dispatching seat's os-dev, for one line in the root turbo.json.
Dedup: I listed objectstack's issues over REST (open, plus the most recently updated closed) and grepped them for agentGuidance, turborepo-agent-rules and turbo 2.11. 0 hits. There is no card for this.

Measured

  • When it started: chore(deps)(deps-dev): bump the development-dependencies group across 1 directory with 16 updates #21024 landed turbo 2.11.5 on main at 2026-10-01T08:59Z. It had been 2.10.10. The lockfile now holds turbo@2.11.5.
  • What turbo does: turbo 2.11's root option agentGuidance defaults to true. Its bundled docs/reference/configuration.mdx says: "When an AI coding agent is detected, turbo maintains a managed block in the repository-root AGENTS.md… refreshed before repository-scoped commands."
  • Observed at 09:5xZ: in the worktree of the in-flight deps: take the 2026-10 production-dependency group without the better-auth family (replaces Dependabot #21029) #21094 dev, git diff -- AGENTS.md shows an 11-line uncommitted append, <!-- BEGIN:turborepo-agent-rules --> … <!-- END:turborepo-agent-rules -->. The dev never edited AGENTS.md.
  • Why it matters:
    • The block tells agents to "keep the block committed with your work".
    • AGENTS.md is a governed surface. Any dev that obeys turns its PR into a human-approval PR, and the queue guard holds it there.
    • Every seat's dev hits this on its first turbo call.
  • Reach at filing: none of objectstack's 11 open PRs touches AGENTS.md yet. objectui is unaffected (turbo@2.10.9).

What to do

  1. Add "agentGuidance": false to the root turbo.json. That is the opt-out the bundled docs name, and it is a root-only option.
  2. Acceptance: a turbo run under an agent leaves AGENTS.md unchanged. Show git diff --exit-code -- AGENTS.md after a repository-scoped turbo command, with a positive control first: the same command without the opt-out does write the block.
  3. Per the docs, the opt-out does not remove a block already written. Worktrees that already carry it restore with git restore --source=HEAD --staged --worktree AGENTS.md. ⛔ Never commit the block.
  4. Changeset: turbo.json publishes nothing, so skip-changeset.

Generated by Claude Code

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:devpathThe road — create, dev, verify, publish/install, connect an agent, iteratebugSomething isn't workingdomain:devxtooling

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions