robosystems: Command for Claude Code

.claude/commands/log-review.md

log-review is a command for Claude Code from RoboFinSystems/robosystems. It costs 23 tokens per session (1,207 once invoked), scanned A, original, Apache-2.0.

A procedure for reviewing production logs, which are records of what a live application reports while running. It collects errors and warnings, groups repeated messages, filters known noise, and classifies the remaining signals.

In plain words
What is it for?
It is for post-deployment or scheduled checks of application logs and for producing findings that can be acted on separately from code changes.
Why use it?
Raw logs can contain repeated, harmless messages alongside real failures. This review narrows them to issues that may be bugs, temporary problems, or newly recognised noise.

Command for Claude Code

Written for Claude Code: argument-hint in frontmatter.

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

Reuse

Borrowing it

Nothing to install: this file belongs to RoboFinSystems/robosystems. 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/RoboFinSystems/robosystems/main/.claude/commands/log-review.md
Clone the repo
git clone --depth 1 https://github.com/RoboFinSystems/robosystems

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

README.md
[![agentmods](https://agentmods.dev/badge/commands/robofinsystems/robosystems/log-review/github.svg)](https://agentmods.dev/commands/robofinsystems/robosystems/log-review)
Your own site
<a href="https://agentmods.dev/commands/robofinsystems/robosystems/log-review"><img src="https://agentmods.dev/badge/commands/robofinsystems/robosystems/log-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 log-review

Your own site · 80×15
<a href="https://agentmods.dev/commands/robofinsystems/robosystems/log-review"><img src="https://agentmods.dev/badge/commands/robofinsystems/robosystems/log-review.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 23 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,207 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.00023 $0.01207
Opus 5.5 $0.00009 $0.00483
Sonnet 5.5 $0.00005 $0.00241
Haiku 4.5 $0.00002 $0.00121

Measured 19d ago against content hash 7b82578ce19f, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

log-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 19d 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/log-review.md · 67 lines

How it starts

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

The logs are a bug detector only if someone reads them. This skill reads them: pull every ERROR and WARNING over a window, collapse them into distinct messages, set aside the known noise, and trace each remaining signal far enough to say whether it is a bug, a transient, or noise nobody has named yet. Pairs with the log-review runbook in local/RoboSystems/runbooks/, which holds this environment's known-noise list, the signals already accepted or routed, and the last run's findings. Read it first: a review that rediscovers last week's accepted noise wastes the pass.

When

  • After every production deploy, over the window since it went out (the deploy is the highest-prior cause of a new error class).
  • Weekly otherwise, over the last 7 days.
  • When the user asks, over the window they name (default 24h).

Scope & guardrails

  • Read-only. Logs Insights, filter-log-events, describe-*, gh reads. Fixing what you find is a separate step on a feature branch, proposed and confirmed.
  • The findings are sensitive — never commit them. They name user ids, IPs, hostnames and error bodies. Keep raw output in the scratchpad; the durable record is the runbook, which is git-ignored.
  • A finding needs a cause, not a pattern. "Errno 5 on the graph tier" is a symptom; the finding is what tore the volume away. Trace each signal to the code or the event that produced it before calling it a bug, and say when you could not.
  • Bug bar. Report highs, medium-highs and the mediums worth fixing. Lows stay in the raw output.

1. Pull the window

The application log groups are /robosystems/<env>/{api,worker,dagster,graph-api}. The API and the graph API write JSON with a level field; Dagster's own lines and uvicorn access lines are text with the level word inline (and ANSI colour codes). Run the four queries in parallel with aws logs start-query, polling get-query-results until Complete:

# api, worker: structured
filter level in ["ERROR","CRITICAL","WARNING"]
| stats count(*) as n, min(@timestamp) as first, max(@timestamp) as last
    by level, component, substr(message, 0, 180) as msg
| sort n desc

# dagster, graph-api: text or mixed
filter @message like /ERROR|CRITICAL|WARNING|Traceback|Errno| 5\d\d /
| stats count(*) as n, min(@timestamp) as first, max(@timestamp) as last
    by substr(@message, 0, 200) as msg
| sort n desc

Read the full file on GitHub · 67 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. 19d ago First seen · 67 lines · 23 tokens per session scan A 7b82578ce19f

Subscribe to this mod's changes

log-review is a command published in the GitHub repository RoboFinSystems/robosystems (29 stars, last pushed today), licensed Apache-2.0. It adds 23 tokens to every session and 1,207 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-10-09.