Skip to content

fix: align planner agent tools with §7.1 spec#187

Merged
maystudios merged 1 commit intomainfrom
worktree-agent-aa2d113f
Mar 25, 2026
Merged

fix: align planner agent tools with §7.1 spec#187
maystudios merged 1 commit intomainfrom
worktree-agent-aa2d113f

Conversation

@maystudios
Copy link
Owner

Summary

  • Aligns planner.md tools list with PROJECT.md §7.1 spec exactly
  • Adds missing Bash tool, removes 6 non-spec tools
  • Fixes constraint text to match actual tool availability

Test plan

  • Template file has valid YAML frontmatter
  • Tools list matches spec: Read, Write, Bash, Grep, Glob
  • No contradictory constraint text

🤖 Generated with Claude Code

- Replace tools list with spec-compliant: Read, Write, Bash, Grep, Glob
- Remove non-spec tools: Edit, WebSearch, WebFetch, TodoRead, TodoWrite, AskUserQuestion
- Add missing Bash tool
- Update constraint: "Write/Edit ONLY" → "Write ONLY"
- Remove contradictory "No Bash execution" constraint

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings March 25, 2026 18:31
@maystudios maystudios merged commit 639e845 into main Mar 25, 2026
4 checks passed
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Aligns the planner agent template with the PROJECT.md §7.1 agent tool specification, ensuring the planner’s declared toolset and constraints are consistent with the intended Plan Mode behavior.

Changes:

  • Updated planner.md frontmatter tool list to match §7.1 (adds Bash, removes non-spec tools like WebSearch/WebFetch/Todo*, and removes Edit).
  • Adjusted planner constraints text to remove references to unavailable tools.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.


- **Write/Edit ONLY for the plan file** — You operate in Plan Mode (`permissionMode: plan`). Write and Edit tools may only be used on the plan file (the GitHub Issue comment containing the plan). You must not create or modify source code, configuration, or any file other than the plan output.
- **No Bash execution** — You do not have the Bash tool. All investigation is done via Read, Grep, Glob, WebSearch, and WebFetch.
- **Write ONLY for the plan file** — You operate in Plan Mode (`permissionMode: plan`). The Write tool may only be used on the plan file (the GitHub Issue comment containing the plan). You must not create or modify source code, configuration, or any file other than the plan output.
Copy link

Copilot AI Mar 25, 2026

Choose a reason for hiding this comment

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

Now that the planner has the Bash tool, the constraints section no longer states how Bash must be used in permissionMode: plan. Per the spec, Plan Mode is prompt-enforced (tools remain callable), so without an explicit restriction the planner can accidentally run builds/tests or mutate the working tree via Bash. Please add a constraint that Bash may be used only for read-only inspection (or explicitly forbid build/test commands and any filesystem mutations) to stay consistent with the planner’s intended read-only enforcement.

Suggested change
- **Write ONLY for the plan file** — You operate in Plan Mode (`permissionMode: plan`). The Write tool may only be used on the plan file (the GitHub Issue comment containing the plan). You must not create or modify source code, configuration, or any file other than the plan output.
- **Write ONLY for the plan file** — You operate in Plan Mode (`permissionMode: plan`). The Write tool may only be used on the plan file (the GitHub Issue comment containing the plan). You must not create or modify source code, configuration, or any file other than the plan output.
- **Use tools in read-only ways** — In Plan Mode you must not run builds, tests, linters, formatters, package managers, git commands, or any command that writes to the filesystem or network. All tools must be used only to read or inspect existing state.
- **Bash is for inspection only** — When using the Bash tool, you may only run read-only commands that inspect files or directories (for example: `ls`, `cat`, `sed -n`, `grep`, `find` without mutation flags). Never create, modify, or delete files or directories, never run `npm`, `yarn`, `pnpm`, `pip`, `go`, `make`, `gradle`, `mvn`, or similar tools, and never run tests or start servers.

Copilot uses AI. Check for mistakes.
@github-actions
Copy link
Contributor

🎉 This PR is included in version 5.14.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants