# venture kind .......... project status ........ active checked ....... 2026-10-20 stack ......... python · claude api · defi · prediction markets source ........ private repo page .......... https://brodymontag.com/projects/venture A Python system that runs on a schedule. It manages real money in Aave (DeFi) and Kalshi (a prediction market), with paper crypto trades beside them. I started venture in July 2026 and rebuilt it in October 2026. It runs a full cycle four times a day and a short check every 15 minutes, with no person at the screen. Most of the design decides what the system may do alone and what needs a human. Rule-based code decides where the money goes. Coinbase is the main way in. The allocator converts funds to stablecoins, keeps gas in the on-chain wallet, and funds the Kalshi account toward a target. Transfers to the wallet or to Kalshi wait for my approval in the terminal app or in Telegram. Gas top-ups of $10 or less run alone. Strategy and safety are separate. Each avenue runs its own logic and reports its own health, and an incident stops new risk. Once a week, Claude reads the history and may change only the settings of the paper crypto strategy. A change to any of the 11 locked limits stops the real-money avenues. I operate it from a terminal app. The app shows every account and open position, and a setup wizard connects each service in order. ## highlights - Rule-based code decides where the money goes - Transfers wait for approval, except gas top-ups of $10 or less - The weekly Claude review may change paper-strategy settings only - A change to a locked limit stops the real-money avenues - Paper trades run beside the real accounts - Terminal app and a setup wizard for each service ## detail updated 2026-10-20 ### how it works figure 1 · the clock and the gates · schematic, no amounts A 24-hour dial marks four cycles and a tick every 15 minutes. When the wallet needs gas, a top-up moves at once. A move to Kalshi or the wallet waits at a gate for approval. A full cycle runs at 00:15, 06:15, 12:15 and 18:15, and a short tick runs every 15 minutes. If the Mac sleeps through a slot, launchd runs the cycle on wake. Each avenue runs its own logic and reports its own health. After the audit of each account, the allocator moves money in a fixed order. Coinbase is the main way in. The allocator converts USD to USDC, keeps gas in the on-chain wallet, and tops Kalshi up when bets go unfunded, or toward a target. In the default mode, a move that leaves Coinbase waits for one keypress in the terminal app or a tap in Telegram. A process lock stops a second cycle while one runs. figure 2 · one way in, three ways out Money enters Coinbase. The allocator sends gas to the wallet on its own. A move to Kalshi or to the wallet and Aave passes an approval gate first. The proof book caps the Kalshi target. ```mermaid flowchart TD A[bank or USDC] --> B[Coinbase] B --> C[allocator] C -->|housekeeping| D[gas for the wallet] C -->|move| E{approval} E -->|TUI or Telegram| F[Kalshi] E -->|TUI or Telegram| G[wallet and Aave, optional] H[proof book] -->|caps the target| C ``` the allocator's order, in its own words venture@33dd9e3 · venture/allocator.py:1-25 · not public ```python """The allocator: moves money toward where the edge is, within caps Brody sets. Coinbase is the one place money comes in; this spreads it. Policy, once per cycle after the audit (so NAV is fresh): 0. convert — cash that lands as USD becomes USDC (the rails send USDC only) 1. gas floors — the DeFi wallet never runs dry: buy POL/ETH with USDC when Coinbase has none (capped by gas_buy_max_usd), then send it 2. Kalshi top-up — on demand (the strategy found edge it could not size), or up to its target (kalshi_topup = target); only to a verified Kalshi deposit address. The target is held down to what the shadow book's proof gate has unlocked (target_follows_proof): this only limits new top-ups, it never takes money back out 3. harvest flag — Kalshi above its target band: a finding, never a send (Kalshi has no crypto withdrawals) 4. park (optional) — Coinbase cash beyond the reserve → the wallet → Aave Modes: ``propose`` (every move waits for a one-keypress approval in the TUI), ``auto_capped`` (moves within per-transfer / per-day caps go now, larger ones wait), ``auto`` (no caps; kill file only). Housekeeping that never leaves Coinbase's control (the conversion, gas buys and the gas send itself) runs on its own in every mode while ``housekeeping_auto`` is on. A weekly drawdown beyond risk_global.max_weekly_drawdown_pct forces ``propose``. ``logs/ALLOCATOR_HALT`` stops everything. Only ever between accounts Brody owns: the system's own wallet and saved payees. """ ``` ### decisions decision: The code holds the limits, not the prompt (accepted, 2026-10-13) context: In the first version, the agent prompt held the bounds and the locked limits. A prompt asks the model to obey. It does not stop a bad value. decision: Automation may change only a whitelisted setting, inside its range. A change to any of the 11 locked limits blocks the real-money avenues until a person restores it. cost: A new setting needs a code change before automation can tune it. every change from automation passes this check venture@33dd9e3 · venture/config.py:121-136 · not public ```python def validate_change(section: str, key: str, value) -> tuple[bool, str]: if (section, key) in LOCKED: return False, f"{section}.{key} is LOCKED" if (section, key) in HUMAN_ONLY: return False, f"{section}.{key} needs human approval" bounds = TUNABLE.get((section, key)) if bounds is None: return False, f"{section}.{key} is not a tunable parameter" try: v = float(value) except (TypeError, ValueError): return False, f"{section}.{key}: value {value!r} is not numeric" lo, hi = bounds if not lo <= v <= hi: return False, f"{section}.{key}={v} outside bounds [{lo}, {hi}]" return True, "ok" ``` decision: The weekly review may tune the paper strategy only (accepted, 2026-10-14) context: The first version ran Claude with full tool access after every cycle. When its login expired, it failed for months, and only a log line said so. decision: Claude runs once a week, or sooner when enough paper trades close, with no tools. It answers in JSON, and the code keeps only changes to the crypto paper strategy. I set the Kalshi sizes myself. cost: The review cannot change Kalshi or the allocator. The crypto strategy that it can tune runs as paper trades by default. the reply goes through a filter, then through the bounds venture@33dd9e3 · venture/agent.py:262-275 · not public ```python try: reply = _extract_json(text) except (ValueError, json.JSONDecodeError) as e: ag.update(status="error", reason=f"unparseable reply: {e}") return {**ag, "this_cycle": "failed"} # the reviewer may only touch the crypto paper strategy; Kalshi sizing stays human-set changes = [c for c in (reply.get("param_changes") or []) if c.get("section") == "crypto"] outcomes = config.apply_changes(changes, actor="venture-agent") if changes else [] ag.update(status="ok", reason="", last_review_ts=now.timestamp(), closed_trades_at_review=len(_closed_trades(state)), last_notes=str(reply.get("notes", ""))[:500], last_outcomes=outcomes) _log.info(f"agent review done ({why}): {len([o for o in outcomes if o.get('applied')])} change(s) applied") return {**ag, "this_cycle": "ran"} ``` decision: Real money follows evidence (accepted, 2026-10-19) context: A strategy that wins a few bets can be lucky. More capital on luck makes the loss larger. decision: Each market that the research looks at goes into a shadow book as a hypothetical bet. The Kalshi target grows in steps, and only after a pre-registered sequential test shows edge. cost: Capital waits while the test collects independent settles. ### limits limits: - This page shows no amounts and no results, by choice. - Kalshi has no crypto withdrawals. Money out of Kalshi is a manual step. - On 2026-10-15, Mac sleep and hotspot outages stopped or broke cycles. A runbook describes a move to a wired home server, which is not done yet. - The edge test needs many independent settles. Until then, the Kalshi target stays at its start cap. -- end of page · this page as text: https://brodymontag.com/machine/projects/venture · index: https://brodymontag.com/machine · summary: https://brodymontag.com/llms.txt