[RFC] Remove worktree guidance from AGENTS.md (#100659)
## Summary Proposes repository-level worktree setup for Codex and Claude Code, replacing the worktree instructions in AGENTS.md. A shared script installs dependencies and builds Next.js with its workspace dependencies. Codex runs it through a local environment; Claude creates a detached HEAD worktree and runs the same setup. Claude cleanup preserves uncommitted changes and commits that are not reachable from a branch or tag. Codex's environment must be selected when starting a worktree chat. ## Verification - Checked creation, isolated setup, detached HEAD behavior, cleanup protections, and setup failure handling in a temporary Git repository with dependency installation and builds stubbed. - Formatting, ESLint, shell syntax, and configuration checks passed. - Full dependency installation and build were not run. <!-- NEXT_JS_LLM -->
Showing
Please
register
or
sign in
to comment