ingest-review

ingest-review is a command for Claude Code from xsovad06/sova. It costs 20 tokens per session (777 once invoked), scanned A, original, Apache-2.0.

A command that reads reviewer findings for a pull request and adds those lessons to the agent’s project memory. A pull request is a proposed code change awaiting review.

In plain words
What is it for?
Use it after review to collect findings from TaskRun records and report when no findings are available.
Why use it?
It keeps review feedback from being lost and helps the agent retain recurring issues and patterns.

Command for Claude Code

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/xsovad06/sova/ingest-review
Clone the repo
git clone --depth 1 https://github.com/xsovad06/sova

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 ingest-review

README.md
[![agentmods](https://agentmods.dev/badge/commands/xsovad06/sova/ingest-review.svg)](https://agentmods.dev/commands/xsovad06/sova/ingest-review)
Your own site
<a href="https://agentmods.dev/commands/xsovad06/sova/ingest-review"><img src="https://agentmods.dev/badge/commands/xsovad06/sova/ingest-review.svg" alt="Measured on agentmods" height="20"></a>
Per session 20 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. 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.00020 $0.00777
Opus 5 $0.00010 $0.00388
Sonnet 5 $0.00004 $0.00155
Haiku 4.5 $0.00002 $0.00078

Measured 4d ago against content hash dea9b25df7bb, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

ingest-review 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 4d 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/commands/ingest-review.md · 89 lines

How it starts

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

Ingest PR Review Feedback

Parse structured review findings from TaskRun records and update agent memory.

Instructions

  1. Get the PR number from $ARGUMENTS. If empty, ask the user.

  2. Query the database for reviewer TaskRun records linked to this PR:

    # Find the reviewer run's handoff data
    python3 -c "
    import asyncio, json, os
    os.environ.setdefault('SOVA_DATABASE_URL', 'sqlite+aiosqlite://.claude/sova.db')
    from sova.db.session import init_db, get_session
    from sova.db.models import TaskRun
    from sqlalchemy import select
    
    async def main():
        await init_db(run_migrations=False)
        async with get_session() as session:
            stmt = select(TaskRun).where(
                TaskRun.pr_number == <PR_NUMBER>,
                TaskRun.role.in_(['reviewer', 'command:review-pr']),
                TaskRun.status == 'done',
            ).order_by(TaskRun.id.desc()).limit(1)
            run = (await session.execute(stmt)).scalar_one_or_none()
            if not run or not run.handoff_json:
                print('NO_FINDINGS')
                return
            print(json.dumps(run.handoff_json, indent=2))
    
    asyncio.run(main())
    "
    
  3. If the output is NO_FINDINGS, report "No reviewer findings found for PR #N" and stop.

  4. Parse the pending_findings array from the handoff JSON. Each finding has:

    • file: file path
    • line: line number
    • severity: 1-10 score
    • category: type of issue (bug, style, performance, etc.)
    • description: what the issue is
    • suggestion: how to fix it
  5. Also fetch external review comments (CodeRabbit, human reviewers):

    gh pr view <PR_NUMBER> --json reviews,comments --jq '.reviews[] | {author: .author.login, state: .state, body: .body}'
    
  6. Classify findings into memory categories:

    • Severity >= 7: likely a "common_mistake" -- check .claude/agent-memory/cookbook.md for existing entries
    • Severity 4-6 with "style" or "naming" category: "style preference"
    • Repeated patterns across findings: "review pattern" worth codifying
    • Test-related findings: "test coverage gap"

Read the full file on GitHub · 89 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. 4d ago First seen · 89 lines · 20 tokens per session scan A dea9b25df7bb

Subscribe to this mod's changes

ingest-review is a command published in the GitHub repository xsovad06/sova (2 stars, last pushed yesterday), licensed Apache-2.0. It adds 20 tokens to every session and 777 once invoked, about $0.0001 per session on Opus 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-31.