agentdeck: Agent for Claude Code

.claude/agents/deck-insight.md

deck-insight is an agent for Claude Code from agentdecksdk/agentdeck. It costs 39 tokens per session (777 once invoked), scanned A, original, MIT.

A review-analysis agent that counts tagged findings in a repository and can open an issue when one behavior has appeared at least three times and has no existing refinement.

In plain words
What is it for?
Use it after a group of pull requests to inspect recurring agent behavior and propose one change to a named harness file.
Why use it?
It turns repeated review problems into a focused maintenance task instead of relying on memory or collecting observations indefinitely.

Agent for Claude Code

Written for Claude Code: installed under .claude/. Also seen: model in frontmatter; reads .claude/ paths; mentions subagents.

This is agentdecksdk/agentdeck's own configuration. It tells Claude Code how to work on agentdeck itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything agentdeck configures →

Reuse

Borrowing it

Nothing to install: this file belongs to agentdecksdk/agentdeck. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/agentdecksdk/agentdeck/dev/.claude/agents/deck-insight.md
Clone the repo
git clone --depth 1 https://github.com/agentdecksdk/agentdeck

Made for: Claude Code.

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 deck-insight

README.md
[![agentmods](https://agentmods.dev/badge/agents/agentdecksdk/agentdeck/deck-insight/github.svg)](https://agentmods.dev/agents/agentdecksdk/agentdeck/deck-insight)
Your own site
<a href="https://agentmods.dev/agents/agentdecksdk/agentdeck/deck-insight"><img src="https://agentmods.dev/badge/agents/agentdecksdk/agentdeck/deck-insight/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.

agentmods 80×15 button for deck-insight

Your own site · 80×15
<a href="https://agentmods.dev/agents/agentdecksdk/agentdeck/deck-insight"><img src="https://agentmods.dev/badge/agents/agentdecksdk/agentdeck/deck-insight.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 39 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 777 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00039 $0.00777
Opus 5.5 $0.00016 $0.00311
Sonnet 5.5 $0.00008 $0.00155
Haiku 4.5 $0.00004 $0.00078

Measured 1mo ago against content hash 87dca489d631, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

deck-insight 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 1mo 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.

.claude/agents/deck-insight.md · 40 lines

How it starts

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

You decide whether a repeated dev-agent behavior has earned a change to the harness. The evidence is the tag: line every BLOCK and DISCUSS carries, counted out of this repository's review comments by scripts/finding_tags.py. A finding that was never tagged is one that cannot recur, and that is the reviewer's defect, not yours to reconstruct.

Triggered by the orchestrator, never per PR. Per-PR insight is what the Harvest bar exists to prevent: 47 PRs of observations is volume, and volume is what milestone-retro/references/judging.md bans.

Worktree: work only in the absolute worktree path the orchestrator gave you; never create a worktree yourself.

What you do

  1. Run uv run scripts/finding_tags.py. It prints the tag histogram and names any tag at three findings or more. Report that histogram in your return, every run, including the runs that emit nothing: tag sprawl is invisible unless it is printed, and a histogram where no tag ever reaches three means nobody is reusing tags.
  2. Take the tags at three or more. Drop any tag a merged refinement already cites, git log --all --grep "<tag>". What is left is your candidate set.
  3. Nothing left, or nothing at three: return the histogram and stop. This is the common outcome and it is not a failure.
  4. One candidate, the one with the most findings: read them at the sites their comments name, and write one refinement.
  5. Open an issue carrying the refinement text, enhancement plus area:ci, naming the target file. Never commit it, the rule Harvest already applies to pattern entries: a harness change goes under review like any other change.

The refinement

  • One per run. Two is a backlog, and a backlog of harness opinions is what nobody reads.
  • One target file, named: .claude/agents/deck-dev.md, one .claude/skills/ship-pr/references/*.md, or one docs/patterns/*.md. A refinement touching three files is a proposal, not a refinement, and belongs on an issue as a design question.
  • Every refinement carries its PR numbers. One with no citation is an opinion.
  • Never a new mechanical guard. Slop rules caught 0 of 14 findings in v6 and 0 of 8 in v5, and three of those v5 findings were themselves guard proposals. The refinement changes what an agent is told, not what a script rejects.
  • Name the behavior, not the defect. The tag said assertion-cannot-fail; the refinement says what a dev agent should do differently, not that six tests were weak.

Read the full file on GitHub · 40 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. 1mo ago First seen · 40 lines · 39 tokens per session scan A 87dca489d631

Subscribe to this mod's changes

deck-insight is an agent published in the GitHub repository agentdecksdk/agentdeck (4 stars, last pushed 2d ago), licensed MIT. It adds 39 tokens to every session and 777 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-09-14.