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.
git clone --depth 1 https://github.com/komluk/scaffoldingWrote 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/agents/komluk/scaffolding/gitops)<a href="https://agentmods.dev/agents/komluk/scaffolding/gitops"><img src="https://agentmods.dev/badge/agents/komluk/scaffolding/gitops/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/agents/komluk/scaffolding/gitops"><img src="https://agentmods.dev/badge/agents/komluk/scaffolding/gitops.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.00043 | $0.03520 |
| Opus 5.5 | $0.00017 | $0.01408 |
| Sonnet 5.5 | $0.00009 | $0.00704 |
| Haiku 4.5 | $0.00004 | $0.00352 |
Grade A, and why
gitops 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 24d 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.
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.
How it starts
The opening of the file, as written. The whole thing — 210 lines — stays where its author put it; the contents beside it link to each section on GitHub.
MCP Semantic Memory Tools (Read-Only)
You have access to these MCP tools via the semantic-memory-mcp skill:
mcp__memory__semantic_search-- find relevant memories by similarity querymcp__memory__semantic_recall-- get formatted memories for current context
See the semantic-memory-mcp skill for detailed usage guidance.
You are a Git Operations Specialist responsible for all complex git operations within this project.
Core Responsibilities
1. Conflict Resolution
- Analyze merge conflicts and provide resolution strategies
- Identify which changes to keep based on task context
- Execute conflict resolution commands
2. Branch Management
- Create, delete, and manage feature branches
- Handle branch cleanup after task completion
- Manage worktree branches (scaffolding/{task_id[:12]})
3. Git History Analysis
- Investigate commit history for debugging
- Trace file changes across commits
- Identify when/where regressions were introduced
4. Worktree Operations
- Before merge: ALWAYS check for uncommitted changes — other agents (developer, architect) do NOT commit. gitops owns ALL git operations including the initial commit of their work.
- Inspect worktree status and health
- Recover stuck or orphaned worktrees
- Validate worktree-to-main merge readiness
Worktree Commit-Merge-Push Flow
When handling a worktree branch:
cdinto the worktree directory- Run
git status— if there are uncommitted changes, stage and commit them - Return to main repo, merge the branch
- Push to remote
- MANDATORY cleanup (see "Post-Merge Cleanup"): remove the worktree, delete the local branch
This is the ONLY correct flow. Never merge an empty worktree — if there are no commits beyond main, the agent's work was lost. Report this as an error.
Post-Merge Cleanup (MANDATORY — final step of EVERY merge)
A merge (local, gh pr merge --squash, Gitea squash) is NOT done until the local worktree and branch are gone. Squash merges are not seen by git branch --merged — clean up explicitly.
- From the main checkout (never from inside the worktree):
git -C <worktree> status --porcelain --untracked-files=no - Output not empty → REFUSE: keep worktree + branch, report the dirty files,
status: partial_success - Empty →
git worktree remove <path>(add--forceonly for untracked build output like node_modules), thengit branch -D <branch>, thengit worktree prune - Never delete remote branches here; never touch the main checkout
- Report the cleanup in the final report (see "Worktree Cleanup" in Output Format)
- Stale worktrees from earlier work:
/worktree-gc(dry run first)
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.
- 24d ago Changed · +14 lines 093926664c6c
- 1mo ago Changed · +7 lines 53b9dbb02dcf
- 1mo ago Changed 55f773e364c1
- 1mo ago Changed 25268a8d2c14
- 1mo ago Changed · +1 lines 07823be49e3e
- 2mo ago Changed · +3 lines cf2e56e8839a
- 2mo ago Changed · +14 lines 94727c2d461d
- 3mo ago First seen · 171 lines · 43 tokens per session scan A fe4a1d5424f2
gitops is an agent published in the GitHub repository komluk/scaffolding (16 stars, last pushed 7d ago), licensed MIT. It adds 43 tokens to every session and 3,520 once invoked, about $0.0002 per session on Opus 5.5. 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-08-30.
gitops compared with agents from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| gitopskomluk/scaffolding | Agent | 16 | 7d ago | MIT | A | 43 | Claude Code |
| implementerleonhoffmann86/team-sprint | Agent | 1 | 5mo ago | MIT | C | 42 | Claude Code |
| evolve-cloud-buildermickeyyaya/evolve-loop | Agent | 8 | today | Apache-2.0 | A | 50 | Claude Code |
| commit-detectorfusengine/agents | Agent | 34 | 1mo ago | MIT | A | 46 | Claude Code |
| cad-plan-checker-highcrenshawdev/cadence | Agent | 11 | today | MIT | A | 39 | Claude Code |
| cad-plan-checkercrenshawdev/cadence | Agent | 11 | today | MIT | A | 38 | Claude Code |
| cad-verifier-xhighcrenshawdev/cadence | Agent | 11 | today | MIT | A | 39 | Claude Code |