Skip to content

Add experimental agent feedback instructions - #98582

Draft
aurorascharff wants to merge 6 commits into
canaryfrom
codex/experimental-agent-feedback
Draft

Add experimental agent feedback instructions#98582
aurorascharff wants to merge 6 commits into
canaryfrom
codex/experimental-agent-feedback

Conversation

@aurorascharff

Copy link
Copy Markdown
Contributor

What?

Adds an opt-in experimental.agentFeedback flag. When enabled, next dev writes a separate managed block into the project agent-instructions file for detected AI agents.

The block preserves the existing feedback threshold, remote gate, base64url handoff, and user-controlled browser review flow, while asking the agent for one structured, de-identified observation. Disabling the flag removes only that managed feedback block.

Why?

This lets us test a clearer feedback-review experience without changing the default agent setup or coupling it to agentRules.

The receiver and review UI are implemented by https://github.com/vercel/front/pull/85739 and must land with this change.

How?

  • wires experimental.agentFeedback through config with a default of false
  • reuses the existing AGENTS.md / CLAUDE.md selection and managed-block behavior
  • keeps feedback generation independent from agentRules
  • documents the flag and adds focused lifecycle tests

Verification

  • pnpm --filter=next build
  • NEXT_SKIP_ISOLATE=1 pnpm test-dev-turbo test/development/app-dir/agent-rules-auto-generate/agent-rules-auto-generate.test.ts (13 tests passed)
  • pnpm build-all was attempted but could not complete on this host because its stable Rust toolchain rejects the SWC bootstrap's nightly-only -Z flags.

@github-actions

github-actions Bot commented Sep 11, 2026 •

Copy link
Copy Markdown
Contributor

Tests Passed

Commit: b75f3ce

@aurorascharff
aurorascharff marked this pull request as ready for review September 11, 2026 19:06
@aurorascharff
aurorascharff marked this pull request as draft September 11, 2026 21:22
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.

1 participant