You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(WEB-4974): Per-tool-call project attribution across all coding-agent hooks (#214)
* Augment hook events with project context and cwd for analytics
Add cwd and project (GitHub org/repo) to PreToolUse, UserPromptSubmit, and
StopEvent hook requests. Includes helper functions to resolve GitHub origin
from git remotes. Enables better analytics, policy scoping, and debugging by
tracking which repository and working context triggered each event.
Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
* Use session-level cwd for consistent project context
Use cwd captured at session start (_get_session_cwd) instead of
per-request event.get('cwd') for more stable project tracking across
the entire conversation.
Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
* feat(WEB-4974): Per-tool-call project attribution across all coding-agent hooks
- claude-code/codex/copilot/cursor: resolve the git project (org/repo) per
tool call (file path / shell-dir tracking) and ride it on each tool_use
entry; send turn-level cwd + project on the Stop exchange
- augment: add the same per-call resolver (_project_for_tool_use, .git walk,
cached origin lookups) and cwd/project on the Stop exchange
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
* fix(WEB-4974): Track cd across multi-line shell commands
The cd-target regex boundary lacked \n, so "git add .\ncd /repoB\nmake"
never updated the tracked shell dir and later calls were attributed to the
old repo. Applied to claude-code, codex, copilot, and augment hooks.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
---------
Co-authored-by: Gowshik T <gowshik@Gowshiks-MacBook-Air.local>
Co-authored-by: Claude Haiku 4.5 <noreply@anthropic.com>
Co-authored-by: Gowshik T <gowshik@192.168.1.15>
Co-authored-by: Gowshik T <gowshik@192.168.1.29>
0 commit comments