Borrowing it
Nothing to install: this file belongs to briandconnelly/codex-in-claude. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/briandconnelly/codex-in-claude/main/.agents/skills/agent-bot-identity/SKILL.mdgit clone --depth 1 https://github.com/briandconnelly/codex-in-claudeWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/briandconnelly/codex-in-claude/agent-bot-identity)<a href="https://agentmods.dev/skills/briandconnelly/codex-in-claude/agent-bot-identity"><img src="https://agentmods.dev/badge/skills/briandconnelly/codex-in-claude/agent-bot-identity/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/briandconnelly/codex-in-claude/agent-bot-identity"><img src="https://agentmods.dev/badge/skills/briandconnelly/codex-in-claude/agent-bot-identity.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00113 | $0.07764 |
| Opus 5 | $0.00056 | $0.03882 |
| Sonnet 5 | $0.00023 | $0.01553 |
| Haiku 4.5 | $0.00011 | $0.00776 |
Grade A, and why
agent-bot-identity scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 12d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Asks for rootlowPrivilege escalation
A mod that escalates privileges can change anything on the machine, not only the project.
6. Generate a private key; store at `~/.config/acme-agent/key.pem`, `chmod 600`. Downgraded: this mod is about security review, or the phrase is quoted, so it is likely naming the pattern rather than instructing it.
Copies of this mod
1 near-identical copy found in the catalogue:
- agent-bot-identity — 100% identical, 0 lines differ
How it starts
The opening of the file, as written. The whole thing — 299 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Agent Bot Identity
Core is harness-neutral; adapters ship for Claude Code (tested) and Codex CLI — Variant A partially verified with its GitHub write path not exercised and a documented as-me limitation, Variant B pending — see Phase 4.
Overview
Give a local coding agent its own GitHub App identity so the commits, pushes, and PRs it makes attribute to a bot by default, while the human's git setup (SSH key, GPG signing, keychain credentials) stays untouched on the same machine.
Attribution is per unit of work: autonomous agent work carries the bot identity, and in repos where the human also contributes through the agent, collaborated commits can carry the human's authorship via the as-me wrapper (Phase 3) while auth still rides the bot token.
The isolation mechanism is local routing that injects the bot's credentials only into the agent's sessions where the bot belongs — either per-project opt-in or automatic org-gated routing, depending on the harness adapter (Phase 4) — without editing any shell dotfiles.
Core principle: this buys attribution, not containment. The per-project scoping makes the well-behaved default path use the bot identity; the only hard boundaries are the App's installation list — which bounds git/content access and all access to private repos, not everything (see What This Enforces) — and the server-side rulesets of the repos it touches. Never present this setup as a sandbox.
When to Use
- Setting up Claude Code (or a similar local agent) to commit, push, and open PRs as a bot on a developer machine, with personal git operations unchanged.
- Splitting attribution in a repo where you contribute both directly and via the agent — collaborated work authored as you, autonomous work as the bot, without separate checkouts or settings toggles.
- Auditing an existing dual-identity setup for over-trust — e.g. a review gate assumed to bind the agent, or local scoping treated as a security boundary.
- Symptoms: agent commits show the human as author; "have the agent open PRs as a bot"; bot PRs need human approval but the agent runs on the human's laptop.
What ships with it
15 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
- agents/openai.yaml 230 B
- references/adapters/claude-code.md 21 KB
- references/adapters/codex.md 24 KB
- references/approval-laundering.md 1.7 KB
- scripts/as-me 203 B
- scripts/bot-env 9.3 KB
- scripts/bot-token 2.5 KB
- scripts/claude/bot-env-hook.sh 988 B runs code
- scripts/claude/session-env.sh 820 B runs code
- scripts/codex/codex-bot 826 B
- scripts/codex/gh 1.1 KB
- scripts/git-credential-bot 834 B
- tests/scenarios.md 70 KB
- tests/selector-cache-test.sh 9.5 KB runs code
- tests/selflocate-test.sh 14 KB runs code
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 12d ago First seen · 299 lines · 113 tokens per session scan A 2af69564acb8
agent-bot-identity is a skill published in the GitHub repository briandconnelly/codex-in-claude (3 stars, last pushed 2d ago), licensed MIT. It adds 113 tokens to every session and 7,764 once invoked, about $0.0006 per session on Opus 5. A static security scan graded it A with 1 finding (asks for root). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
Other skills, from other repositories
pdf-processing
Extract text from PDFs, fill forms, and merge documents.
authoring-issues-prs
Use when filing a bug, opening or creating a GitHub issue, drafting an epic or ticket, writing up a finding or review observation worth tracking, or opening a pull request for this repository. Routes the change to the right repo first (library / template / domain), picks the right issue form, links epic children as…
releasing
Use before any release work: the trunk release model, the unstable edge channel, the prepare/release/promotion machinery, release-notes pages, the pre-release artifact smoke test, and, when the plugin channel is enabled, the Claude Code plugin channel.
applying-template-updates
Use when asked to work through, apply, resolve or review a template update pull request (the weekly copier/update branch opened by the copier-update workflow), or after running copier update --trust by hand: applies the upgrade notes, resolves conflict markers by the resolution policy, checks the seeded-once files the…
repository-protection
Use when changing branch or tag rulesets, required checks, or the bootstrap workflow: how repository protection is applied and kept in sync.
conventional-commits
Write clear, conventional git commit messages — type(scope): summary, imperative mood, a body that explains the why.