surshar / claude-code
Claude Code is an agentic coding tool that lives in your terminal, understands your codebase, and helps you code faster by executing routine tasks, explaining complex code, and handling git workflows - all through natural language commands.
Built by Anthropic · github.com/anthropics
| 1 | # Plan Auto-Show Plugin |
| 2 | |
| 3 | Automatically displays the plan content when it's updated in plan mode, eliminating the need to type `/plan` to preview changes. |
| 4 | |
| 5 | ## Problem |
| 6 | |
| 7 | When in plan mode, Claude updates the plan file and may ask follow-up questions. Users can't see the plan without typing `/plan`, but they also can't type `/plan` while being asked questions - they need to respond to the questions first. |
| 8 | |
| 9 | ## Solution |
| 10 | |
| 11 | This plugin instructs Claude to automatically display the plan content in its response whenever it updates the plan file. The plan is shown before any follow-up questions, giving users the context they need to answer. |
| 12 | |
| 13 | ## Installation |
| 14 | |
| 15 | 1. Enable the plugin in your Claude Code settings |
| 16 | 2. The SessionStart hook will automatically add instructions for plan auto-display |
| 17 | |
| 18 | ## How It Works |
| 19 | |
| 20 | The plugin adds a SessionStart hook that provides additional context to Claude: |
| 21 | - After updating the plan file, Claude will display the full plan content |
| 22 | - The plan is shown in a markdown code block |
| 23 | - The plan appears before any follow-up questions |
| 24 | |
| 25 | ## Example |
| 26 | |
| 27 | Before this plugin: |
| 28 | ``` |
| 29 | Claude: I've updated the plan file. Would you prefer approach A or B? |
| 30 | User: (Can't see the plan without typing /plan, but needs to answer the question) |
| 31 | ``` |
| 32 | |
| 33 | After this plugin: |
| 34 | ``` |
| 35 | Claude: I've updated the plan file: |
| 36 | |
| 37 | ## Current Plan |
| 38 | 1. Implement feature X |
| 39 | 2. Add tests |
| 40 | 3. Deploy |
| 41 | |
| 42 | Would you prefer approach A or B? |
| 43 | |
| 44 | User: (Can see the plan and answer the question) |
| 45 | ``` |