Skip to content

feat(agents): detect coding agents and notify with a link to their session - #13

Merged
eJosR-Coding merged 2 commits into
mainfrom
feat/agents
Sep 13, 2026
Merged

eJosR-Coding merged 2 commits into
mainfrom
feat/agents

Conversation

@eJosR-Coding

Copy link
Copy Markdown
Owner

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

  • 17 Vitest tests (8 new: one per fingerprint plus negatives), 6 cargo tests, tsc.
  • Preview shows an agent row with its tag: pnpm devhttp://localhost:1420/.

…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
eJosR-Coding merged commit 33450ab into main Sep 13, 2026
1 check passed
@eJosR-Coding
eJosR-Coding deleted the feat/agents branch September 13, 2026 03:39
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).
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.

1 participant