setup-git

setup-git is a command for Codex from marcusquinn/aidevops. It costs 0 tokens per session (3,134 once invoked), scanned A, original, MIT.

A per-repository setup command for platform secrets, especially a fine-grained GitHub access token used by automated issue synchronisation. It helps workflows act under the maintainer’s identity rather than a generic automation account.

In plain words
What is it for?
Use it when registering repositories, onboarding operators, repairing workflow secrets, or diagnosing blocked pull requests with passing checks.
Why use it?
Without the required secret, synchronised issues may have the wrong author association and worker pull requests may be blocked from automatic merging.

Command for Codex

Part of the aidevops plugin — 13 skills, 128 commands shipped together

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/marcusquinn/aidevops/setup-git
Clone the repo
git clone --depth 1 https://github.com/marcusquinn/aidevops

Made for: Codex.

Or install aidevops, the plugin that ships this one along with the rest of its 13 skills, 128 commands.

Wrote 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.

agentmods badge for setup-git

README.md
[![agentmods](https://agentmods.dev/badge/commands/marcusquinn/aidevops/setup-git.svg)](https://agentmods.dev/commands/marcusquinn/aidevops/setup-git)
Your own site
<a href="https://agentmods.dev/commands/marcusquinn/aidevops/setup-git"><img src="https://agentmods.dev/badge/commands/marcusquinn/aidevops/setup-git.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 3,134 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5 $0.00000 $0.03134
Opus 5 $0.00000 $0.01567
Sonnet 5 $0.00000 $0.00627
Haiku 4.5 $0.00000 $0.00313

Measured yesterday against content hash 9e08f31ce10b, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

setup-git scanned grade A with 0 findings 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 yesterday.

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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.agents/scripts/commands/setup-git.md · 319 lines

How it starts

The opening of the file, as written. The whole thing — 319 lines — stays where its author put it; the contents beside it link to each section on GitHub.

/setup-git — Guided Per-Repo Platform Secret Setup

Quick Reference

  • Command: /setup-git
  • Aggregator: ~/.aidevops/agents/scripts/setup-debt-helper.sh
  • Detector: ~/.aidevops/agents/scripts/security-posture-helper.sh (Phase 7)
  • Platform matrix: reference/sync-pat-platforms.md
  • Sister command: /onboarding — per-account auth (different scope)

Scope

/setup-git is per-repo platform secret setup — most importantly SYNC_PAT, the fine-grained PAT that allows the issue-sync workflow to author issues as the maintainer instead of as github-actions[bot]. Without SYNC_PAT, every synced issue carries author_association: NONE and the t2449 worker-briefed auto-merge gate refuses to merge worker PRs.

Use /setup-git when:

  • The toast shows [WARN] N repos need SYNC_PAT setup
  • The toast shows [WARN] N repos need workflow re-sync (cross-account secrets:inherit)
  • A worker PR sits BLOCKED with all-green CI
  • You just registered a new repo via aidevops init or hand-edited repos.json
  • You're onboarding a new operator and want every active repo's secrets right

Use /onboarding instead when:

  • You need per-account auth (gh auth login, glab auth login, tea login)
  • You need API keys for AI services (OPENAI_API_KEY, ANTHROPIC_API_KEY, etc.) in ~/.config/aidevops/credentials.sh
  • You're setting up a new machine and don't yet have any repos cloned

Security Posture (NON-NEGOTIABLE)

This command never accepts secret values in conversation. The fix path is always gh secret set NAME --repo SLUG run interactively in a separate terminal so the value never lands in the AI session transcript or shell history (the gh secret set interactive prompt also avoids --body "$VALUE", which would leave the token in process listings).

The agent's job is: read the debt summary → tell the operator which URL to open → confirm with setup-debt-helper.sh verify-secret once they're done. No tool call ever has a secret value as an argument.

Read the full file on GitHub · 319 lines

Changes

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.

  1. yesterday First seen · 319 lines · 0 tokens per session scan A 9e08f31ce10b

Subscribe to this mod's changes

setup-git is a command published in the GitHub repository marcusquinn/aidevops (392 stars, last pushed today), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 3,134 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.