Skip to content

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

Open
l10veu602 wants to merge 1 commit intobacknotprop:mainfrom
l10veu602:feat/notify-no-vcs
Open

feat(hook): notify agent when no VCS detected on plan approval#493
l10veu602 wants to merge 1 commit intobacknotprop: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]>
@l10veu602 l10veu602 force-pushed the feat/notify-no-vcs branch from 86866e3 to 28693ed Compare April 8, 2026 05:20
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.

2 participants