OpenCode Finance — `/report <TICKER>` generates a delivery-ready PDF equity research brief Prompt in. Equity research out. I built OpenCode Finance (opencode-finance), a finance-focused fork of the OpenCode terminal agent runtime. The goal is to make “repeatable analyst reports” feel like a single command instead of a multi-hour docs + spreadsheets + copy/paste workflow. The core workflow is:
What makes it different from “chat with a finance bot” is that the output shape is intentionally rigid and consistent across tickers, and the report is assumption-first:
- Observed data is labeled as observed; non-observed claims are explicitly labeled as inference.
- Sources are attached inline (URLs + retrieval timestamps in the report).
- There’s an assumptions ledger so you can audit what the model assumed vs what it actually fetched.How it works in practice: - You run it locally in a terminal TUI. - `/report` runs a strict preflight; if you’re missing required provider credentials it automatically drops you into onboarding so you can finish setup and rerun immediately. - Output is a clean PDF “artifact” you can hand to someone, plus markdown/JSON artifacts for review and iteration. Install + quick start:
Sample PDFs:
Code + docs:
A few quick notes:- Not investment advice. The report is meant to separate observed data from assumptions/inference and be auditable. - Runs locally; tool actions are permissioned and provider credentials are stored locally via `opencode-finance auth`. - `/report` is designed to be reproducible: fixed structure, consistent sections, and a PDF output suitable for sharing. |