feat: add Plan mode for read-only code analysis and planning#426
feat: add Plan mode for read-only code analysis and planning#426atsushi-ishibashi wants to merge 4 commits intoanthropics:mainfrom
Conversation
|
@atsushi-ishibashi please check out our announcement about breaking changes in 1.0: https://github.com/anthropics/claude-code-action/discussions. User-facing modes like this will not be part of the design anymore. |
|
@ashwin-ant thanks! It seems that what this PR was trying to do can be achieved using |
|
@ashwin-ant @km-anthropic Here’s what I’d like to do: From my understanding, Agent Mode does allow customizing the prompt, but it doesn’t bring in the GitHub Context. Thanks. |
|
@atsushi-ishibashi we'll be looking into ways to expose the file download stuff outside of tag mode. In the meantime, you can include general github context in a workflow by doing something like: You can also use slash commands to avoid having a large prompt in a yml file: |
|
@ashwin-ant
That sounds great! If we had that, I think I could do what I want. I can take a first pass at implementing this if that helps👍 |
|
The way we're likely to expose it is via environment variables that we provide to Claude, so that they can be referenced in slash commands via Bash command execution: https://docs.anthropic.com/en/docs/claude-code/slash-commands#bash-command-execution. If you're open to taking that on, go for it. cc @km-anthropic for thoughts |
Summary
This PR introduces a new Plan mode - a read-only mode specifically designed for code analysis and implementation planning without making any code modifications.
Background
Currently, Claude Code operates in modes that can modify code directly. However, there are scenarios where users want Claude to:
Having a dedicated read-only mode ensures safer interactions when modification is not desired and provides focused analysis capabilities.
What's Changed
Core Features
src/modes/plan/): Read-only mode with restricted tool accessRead,Grep,LS,GlobEdit,Write,MultiEdit, etc.Use Cases