feat(agents): detect coding agents and notify with a link to their session - #13
Merged
Merged
Conversation
…ssion GitHub has no agent flag, so detectAgent() reads the fingerprints tools leave by default: Co-Authored-By trailers (Claude, Codex, Cursor, OpenCode), session trailers (Claude-Session, Agent-Logs-Url), bot logins (claude[bot], copilot-swe-agent[bot], chatgpt-codex-connector[bot], devin, jules), branch prefixes and PR body markers. Aider via author name. A hit moves the event to the new "Agents" category (own toggle + sound), names the agent as the actor, prefixes the toast with a robot, and links the agent's session when one was recorded. "Ignore my own activity" has an opt-out for agents acting under your account, since cloud sessions push as you. Toast URL allowlist extended to claude.ai, chatgpt.com and cursor.com. README documents what is and isn't detected (tools that don't sign are invisible) and a PostToolUse hook that reports every Claude Code commit regardless of attribution. 8 new tests (17 total).
eJosR-Coding
added a commit
that referenced
this pull request
Sep 13, 2026
…ssion (#13) * wip(agents): detector, category and tests (not merged, pending decision) * feat(agents): detect coding agents and notify with a link to their session GitHub has no agent flag, so detectAgent() reads the fingerprints tools leave by default: Co-Authored-By trailers (Claude, Codex, Cursor, OpenCode), session trailers (Claude-Session, Agent-Logs-Url), bot logins (claude[bot], copilot-swe-agent[bot], chatgpt-codex-connector[bot], devin, jules), branch prefixes and PR body markers. Aider via author name. A hit moves the event to the new "Agents" category (own toggle + sound), names the agent as the actor, prefixes the toast with a robot, and links the agent's session when one was recorded. "Ignore my own activity" has an opt-out for agents acting under your account, since cloud sessions push as you. Toast URL allowlist extended to claude.ai, chatgpt.com and cursor.com. README documents what is and isn't detected (tools that don't sign are invisible) and a PostToolUse hook that reports every Claude Code commit regardless of attribution. 8 new tests (17 total).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
New "Agents" category.
detectAgent()reads default fingerprints (trailers, session links, bot logins, branch prefixes, PR markers) for Claude Code, Copilot, Codex, Cursor, OpenCode, Aider, Devin, Jules. Toast names the agent and links its session. Own-agent bypass for "ignore my own activity". README states the limits honestly and adds a PostToolUse hook for unsigned local commits.Verified
pnpm dev→http://localhost:1420/.