paper-report

paper-report is a command for Claude Code from joncovington/MEICAgent. It costs 0 tokens per session (1,035 once invoked), scanned A, original, MIT.

A command that creates a paper-trading performance report for a chosen date range. Paper trading simulates trades without using real money, and the report compares four risk profiles using both live-quote and historical trades.

In plain words
What is it for?
Use it to review trades, wins and losses, profit, drawdown, daily results, and risk-adjusted performance for the last week or another period.
Why use it?
It puts results from different simulation modes into one view, so you do not have to compare separate databases or calculate the main performance measures yourself.

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/joncovington/meicagent/paper-report
Clone the repo
git clone --depth 1 https://github.com/joncovington/MEICAgent

Made for: Claude Code.

Per session 0 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,035 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.00000 $0.01035
Opus 5 $0.00000 $0.00517
Sonnet 5 $0.00000 $0.00207
Haiku 4.5 $0.00000 $0.00103

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

Security

Grade A, and why

paper-report 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 3d 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/paper-report.md · 51 lines

How it starts

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

Produce the weekly (or custom-range) paper-trading performance report, comparing all four risk profiles side by side. Covers both execution_mode='paper' (forward, live-quote) and execution_mode='replay' (historical SPX) trades in one combined view, since both write to the same data/paper_trades.db schema.

1. Gather the range summary

python src/db.py --db data/paper_trades.db get_range_summary --start <YYYY-MM-DD> --end <YYYY-MM-DD>

Default the range to the last 7 calendar days ending today (ET) unless the user specifies a different window (e.g. "since program start", "last month"). This returns profiles: { "conservative": {...}, "moderate": {...}, "aggressive": {...}, "very-aggressive": {...} }, each with total_trades, win_count/loss_count/win_rate_pct, profit_factor, avg_win/avg_loss, expectancy_per_trade, max_consecutive_losses, max_drawdown, worst_day, net_pnl, and a daily_pnl series (date, net_pnl, cumulative_pnl) per profile.

2. Compute the risk-adjusted suite

get_range_summary gives dollar P&L and drawdown; derive the ratio metrics from each profile's daily_pnl series against the $100,000 virtual bankroll convention:

  • Period return for each day = net_pnl / 100000.
  • Sharpe = mean(period returns) / stdev(period returns), annualized by sqrt(252) if daily granularity.
  • Sortino = same, but the denominator uses only the downside deviation (stdev of negative returns only).
  • Calmar = (annualized return) / (max_drawdown / 100000).
  • Recovery factor = net_pnl / max_drawdown (skip if max_drawdown is 0).

Flag Sharpe > 3 or profit_factor > 4.0 as a likely overfit/curve-fit warning rather than a stronger pass — note this explicitly in the report rather than presenting it as unqualified good news.

3. Render equity + underwater curves

For each profile, build a markdown sparkline (or a compact ASCII bar sequence) from its daily_pnl.cumulative_pnl series (equity = 100000 + cumulative_pnl) and a parallel underwater curve (running peak − current equity). No plotting dependency needed — this is a text report.

Read the full file on GitHub · 51 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. 3d ago First seen · 51 lines · 0 tokens per session scan A 2e9a7b4e6311

Subscribe to this mod's changes

paper-report is a command published in the GitHub repository joncovington/MEICAgent (4 stars, last pushed 1mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,035 tokens. 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.