vardoger-analyze
Analyze Copilot CLI history and generate personalized instructions
Drive the local vardoger CLI to read the user's GitHub Copilot CLI conversation history, extract behavioral patterns, and write a personalization block into ~/.copilot/copilot-instructions.md.
How it works
vardoger prepares the history in batches. You (the assistant) summarize each batch for behavioral signals, then synthesize all summaries into a final personalization. vardoger writes the result, fenced by <!-- vardoger:start --> / <!-- vardoger:end --> markers so any hand-authored rules in the same file are preserved.
Sandbox note (read before running any command)
vardoger reads and writes files outside the current workspace:
- Reads Copilot CLI history from
~/.copilot/session-state/. - Writes a checkpoint state file to
~/.vardoger/state.json(created on first run). - Writes the final personalization to
~/.copilot/copilot-instructions.md.
When the host asks to approve a vardoger command, grant it write access beyond the workspace. Otherwise the first vardoger prepare call will fail with PermissionError: ... ~/.vardoger/state.tmp because the sandbox blocks writes outside the current working directory.