finalize

finalize is a command for coding agents from austron24/kalshi-trader-plugin. It costs 17 tokens per session (3,240 once invoked), scanned A, original, MIT.

A final investment-analysis command that reads research, checks a portfolio, and prepares recommendations for using real money. It waits for approval before executing approved trades.

In plain words
What is it for?
Use it to identify top events, review research, recommend positions and sizes, explain the choices, and execute trades only after the user approves them.
Why use it?
It combines research and portfolio context at the point where an investment decision is made. This helps keep recommendations tied to available cash and existing holdings.

Command

Part of the kalshi-trader plugin — 6 commands, 6 agents shipped together

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/austron24/kalshi-trader-plugin/finalize
Clone the repo
git clone --depth 1 https://github.com/austron24/kalshi-trader-plugin

Or install kalshi-trader, the plugin that ships this one along with the rest of its 6 commands, 6 agents.

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 finalize

README.md
[![agentmods](https://agentmods.dev/badge/commands/austron24/kalshi-trader-plugin/finalize.svg)](https://agentmods.dev/commands/austron24/kalshi-trader-plugin/finalize)
Your own site
<a href="https://agentmods.dev/commands/austron24/kalshi-trader-plugin/finalize"><img src="https://agentmods.dev/badge/commands/austron24/kalshi-trader-plugin/finalize.svg" alt="Measured on agentmods" height="20"></a>
Per session 17 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 3,240 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.00017 $0.03240
Opus 5 $0.00009 $0.01620
Sonnet 5 $0.00003 $0.00648
Haiku 4.5 $0.00002 $0.00324

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

Security

Grade A, and why

finalize 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.

commands/finalize.md · 442 lines

How it starts

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

Finalize - Investment Recommendations

THIS COMMAND IS DIFFERENT FROM ALL OTHERS.

You are NOT spawning subagents. YOU are the final analyst. You will read ALL research documents directly in your context, synthesize everything, and advise the user on exactly what to do with their money.

This is the most critical step in the entire workflow. The user is about to move real money based on your analysis.

Your Role

You are the user-facing investment analyst. Your job is to:

  1. Read ALL research for the top EVENTS completely (in YOUR context, not subagents)
  2. Check the user's current portfolio and cash
  3. Recommend specific positions with sizing (using the recommended bracket/ticker from research)
  4. Explain each recommendation in plain language
  5. Wait for user approval
  6. Execute approved trades via kalshi CLI

Phase 1: Identify Top Events

First, check what events to analyze. Either:

From /score output in conversation: Look at previous messages for the ranked list from /score. Each score includes the recommended ticker.

Or from score files:

for dir in research/events/*/; do
  event=$(basename "$dir")
  if [ -f "${dir}score.txt" ]; then
    score_line=$(cat "${dir}score.txt")
    score=$(echo "$score_line" | cut -d'|' -f1)
    ticker=$(echo "$score_line" | cut -d'|' -f2)
    echo "${score}|${event}|${ticker}"
  fi
done | sort -t'|' -k1 -rn | head -10

$ARGUMENTS may specify which events to analyze (e.g., "KXCPI-25DEC KXFED-26JAN").

Phase 2: Read ALL Research Completely

CRITICAL: You must read every research file for each event. Not summaries. Not excerpts. The full files.

For each top event:

ls research/events/<EVENT_TICKER>/

Then use the Read tool to read EVERY file in that folder completely:

  • initial-research.md (contains bracket analysis and recommended trade)
  • creative-research.md (if exists)
  • senior-review.md (if exists)
  • Any other research files

The initial research includes a "Recommended Trade" section with the specific bracket/ticker to trade.

Read the full file on GitHub · 442 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 · 442 lines · 17 tokens per session scan A 4ac72cf243ca

Subscribe to this mod's changes

finalize is a command published in the GitHub repository austron24/kalshi-trader-plugin (12 stars, last pushed 8mo ago), licensed MIT. It adds 17 tokens to every session and 3,240 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-30.