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.5 | $0.00045 | $0.03106 |
| Sonnet 5.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 2mo 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.
- 2mo 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 1mo ago), licensed MIT. It adds 113 tokens to every session and 7,764 once invoked, about $0.0005 per session on Opus 5.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.
agent-bot-identity compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| agent-bot-identitybriandconnelly/codex-in-claude | Skill | 3 | 1mo ago | MIT | A | 113 | Claude Code, Codex |
| pdf-processingPrefectHQ/fastmcp | Skill | 28k | today | Apache-2.0 | A | 14 | Claude Code, Codex |
| conventional-commitsIkarusMK/AIcortex | Skill | 11 | today | Apache-2.0 | A | 0 | Claude Code, Codex |
| gitee-expertsandraschi/gitee-mcp | Skill | 2 | 20d ago | MIT | A | 0 | Claude Code |
| prowler-commitprowler-cloud/prowler | Skill | 15k | today | Apache-2.0 | A | 44 | Claude Code, Codex |
| gh-auth-isolationgithub/gh-aw | Skill | 5.6k | today | MIT | A | 20 | Claude Code, Codex |
| github-skillzeenie-ai/OpenCompany | Skill | 1.1k | today | MIT | A | 51 | Claude Code |