Skip to content

feat(hook): notify agent when no VCS detected on plan approval - #493

Closed
l10veu602 wants to merge 1 commit into
backnotprop:mainfrom
l10veu602:feat/notify-no-vcs
Closed

l10veu602 wants to merge 1 commit into
backnotprop:mainfrom
l10veu602:feat/notify-no-vcs

Conversation

@l10veu602

Copy link
Copy Markdown
Contributor

Summary

  • When a plan is approved in a directory without version control (git or p4), include a note in the approval output
  • The agent (Claude Code / Gemini CLI) receives the message and can ask the user to initialize git before making changes
  • Uses existing detectVcs() to check for both git and p4

Test plan

  • Approve a plan in a git repo — no extra message in output
  • Approve a plan in a p4 workspace — no extra message in output
  • Approve a plan in a directory without VCS — message included in approval output

🤖 Generated with Claude Code

When a plan is approved in a directory without version control,
include a message in the approval output so the agent can ask
the user to initialize git before making changes.

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
@backnotprop

Copy link
Copy Markdown
Owner

Closing the branch, keeping the idea. This is accepted: the approval output should warn the agent when the directory has no version control. The diff predates a large rewrite of the hook server (the imports it touches no longer exist) and the approval-feedback channels have changed per host, so we are reimplementing it fresh against current main with attribution to @l10veu602. The new PR will link back here.

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.

3 participants