# Agentic Trader

My trading system. It trains its own models, proves a strategy on paper before it gets near real money, and heals itself, and agents build it under my review.

- **Where**: After hours
- **Status**: Building
- **Year**: 2026

My trading system. The idea behind it is social arbitrage: notice a story while it starts to spread in public, before the market prices it in.

## What it does

- **Watches and records** market and public data around the clock, and notices when a source goes silent.
- **Trains its own models and strategies from scratch.** Every day the model retrains on everything recorded. A new model replaces the current one only when it does better on the newest data, which training never reads.
- **Supports four modes.** In Shadow it decides and records what it would do, and places nothing. In Paper it trades simulated orders at live prices. In Assisted it proposes each order, and I accept or reject it. In Autonomous it acts on its own, inside the limits I set.
- **Earns its way up.** A gate measures each paper strategy once a day and says when it is ready for a live test. The gate opens nothing; I decide.
- **Keeps its limits.** Loss limits and halts survive a restart, and only I reset a halt, with a fresh passkey check.
- **Shows me one page** of everything that waits for me: orders to accept or reject, critical alerts and model swaps.

## Self-healing, and a loop that improves it

This is where I use my favorite way of working with agents.[^1]

- Fixed rules classify every incident. A fault the system repairs by itself, such as a short network failure that a retry clears, doesn’t alert me.
- When something needs a look, a headless triage agent investigates it and writes down the cause and the fix. Each incident has its own page that shows how far it got.
- Every agent run leaves a record, with secrets redacted. Incidents and runs become work for the factory, so the system’s own failures drive its next changes.
- After a restart of the machine, everything comes back by itself, in order, and tells me its state.

## How it’s built

A Rails app with a Rust core, designed spec first: every capability has a living OpenSpec spec, and every change says why it was made. It was the first project my [jail and factory](https://joaoramires.xyz/projects/agent-framework/index.md) held. Agents write the code; I review and decide.

## Built with

- Rails
- PostgreSQL
- Rust
- OpenSpec

## Log

1. 2026-11: Daily training, incident triage by agents, one page for what needs me
2. 2026-10: The first project my jail held and my factory built
3. 2026-09: Wrote the plan as OpenSpec specs, then started building

[^1]: Not every project needs it. Beholder, a small page, doesn’t. A system that runs all day with real stakes does.
