Skip to content

Add editable plan files feature#176

Open
magiak wants to merge 1 commit intoandrepimenta:mainfrom
magiak:feature/editable-plan-files
Open

Add editable plan files feature#176
magiak wants to merge 1 commit intoandrepimenta:mainfrom
magiak:feature/editable-plan-files

Conversation

@magiak
Copy link

@magiak magiak commented Feb 20, 2026

Summary

  • Edit Plan button on plan messages in chat — opens the latest plan file (~/.claude/plans/*.md) in VS Code editor
  • Show Plan toolbar button in the header for quick access to the latest plan file at any time
  • File watcher on ~/.claude/plans/ that detects saves and prompts user to notify Claude of changes
  • Deploy script (npm run deploy) for quick rebuild and install during development
  • README documentation for the new feature and updated development setup

Changes

  • src/extension.ts — Plan file utilities, showPlan command, file watcher setup, message handler
  • src/script.tsopenPlanFile() function, isPlanContent() heuristic, Edit Plan button injection
  • src/ui.ts — Show Plan button in header toolbar
  • src/ui-styles.ts — Styling for plan action buttons
  • package.json — New command registration, deploy script
  • README.md — Feature documentation and updated dev setup

Test plan

  • Open a chat session and trigger plan mode — verify "Edit Plan" button appears on plan messages
  • Click "Edit Plan" — verify the latest .md file from ~/.claude/plans/ opens in VS Code
  • Click "Show Plan" in the header toolbar — verify it opens the latest plan file
  • Edit and save a plan file — verify notification appears with "Send Update to Claude" option
  • Run npm run deploy — verify it builds, packages, and installs the extension
  • Test with no plan files present — verify graceful "No plan files found" message

Add "Edit Plan" button on plan messages and "Show Plan" toolbar button
to open the latest plan file (~/.claude/plans/) in VS Code editor.
Includes file watcher that detects plan file changes and prompts user
to notify Claude, plus deploy script and README documentation.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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