Franklin
Franklin copied to clipboard
feat: add 'franklin predict' prediction mode
What
Adds a headless prediction mode to Franklin:
predictionCapabilities(src/tools/index.ts) — a tight, research-only capability profile: web search, webfetch, Exa search/answer/read, search X, prediction markets, and a little market data. Excludes filesystem, shell, media generation, swaps/trade execution, phone/voice and the GPU sandbox — a forecaster looks things up, it doesn't act on the world.franklin predict(src/commands/predict.ts) — a non-interactive command.franklin predict --model M --question Q --jsonruns one model as a disciplined bettor (research the question, read live odds, commit to a pick) and prints a single JSON envelope:{ finalText, trace, turnReason, usage }.
Why
Lets non-interactive callers drive grounded, tool-using predictions over the CLI. First consumer is franklin.bet (github.com/BlockRunAI/franklin-bet), which fans a question out across the model council and renders the consensus + each model's research trail.
Notes
- Additive only — new command + new exported profile + registration. No existing behaviour changed.
- Not yet published to npm; this is for review. Once merged + released,
npm i -g @blockrun/franklingives downstreamsfranklin predict. - The contract with downstreams is the
--jsonenvelope shape, not raw stdout.