sova: Command for Claude Code

.claude/commands/ingest-review.md

ingest-review is a command for Claude Code from xsovad06/sova. It costs 20 tokens per session (1,826 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

Written for Claude Code: user-invocable in frontmatter. Also seen: mentions AGENTS.md.

This is xsovad06/sova's own configuration. It tells Claude Code how to work on sova 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 sova configures →

Reuse

Borrowing it

Nothing to install: this file belongs to xsovad06/sova. 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/xsovad06/sova/main/.claude/commands/ingest-review.md
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/github.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/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 ingest-review

Your own site · 80×15
<a href="https://agentmods.dev/commands/xsovad06/sova/ingest-review"><img src="https://agentmods.dev/badge/commands/xsovad06/sova/ingest-review.svg" alt="Reviewed on agentmods" width="80" 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 1,826 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.00020 $0.01826
Opus 5.5 $0.00008 $0.00730
Sonnet 5.5 $0.00004 $0.00365
Haiku 4.5 $0.00002 $0.00183

Measured 14d ago against content hash 9d9f04035dcc, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 14d 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 · 120 lines

How it starts

The opening of the file, as written. The whole thing — 120 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. Validate it is a positive integer before using it anywhere below: reject non-numeric input and ask the user to clarify rather than passing raw argument text into generated code. <PR_NUMBER> in every snippet in this command means this validated integer, never the raw $ARGUMENTS text.

  2. Query the database for reviewer TaskRun records linked to this PR. Substitute the validated integer for <PR_NUMBER>: it becomes part of a Python expression evaluated via python3 -c, so unvalidated text here is a code injection risk, not just a bad query:

    # 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 await 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, do not stop here: the SOVA reviewer may simply not have run a TaskRun for this PR while external reviewers (CodeRabbit, human reviewers) still left comments. Continue to step 4 (there is nothing to parse from this source, so skip it) and step 5. Only report "No reviewer findings found for PR #N (no SOVA reviewer TaskRun and no external review comments)" and stop if step 5 also finds nothing.

Read the full file on GitHub · 120 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. 14d ago Changed · +20 lines 9d9f04035dcc
  2. 16d ago Changed 59861df3de2c
  3. 1mo ago Changed · +11 lines 1452f053a5ac
  4. 2mo 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 1,826 once invoked, about $0.0001 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-31.