AI agents propose. A person approves. Deterministic code executes.
Amadeus is a trading system for Solana that I built on my own time. It finds new token pairs from on-chain data, scores them against written policies, and trades on paper or live. AI agents study the results and suggest changes, but they never trade, and nothing they suggest takes effect until a person accepts it.
Proposed by the optimizer agent
| Setting | Current | Proposed | Agent's reason |
|---|---|---|---|
| Min 5m volume | $3,000 | $4,500 | Most losing entries were below $4k |
| Max top holder | 60% | 45% | Exits on concentrated pairs hit stops early |
| Time stop | 10 min | 10 min | No change |
A one-way chain of small workers, and every decision is a row.
Data flows one way through independent workers, each reading what the previous one wrote to Postgres. Because everything observable is a table, any decision can be explained later: why a pair was rejected, which filter it missed and by how much, and what its score was made of.
- Discovery is pushed, not polled. New pools arrive over a live subscription, and the discovery worker announces them so the next worker starts watching a brand-new pool within seconds. For tokens whose whole life is measured in minutes, that latency is the product.
- Small, separate workers for discovery, snapshots, scoring, execution and exits, plus analytics and backtesting alongside.
Strategy and money are separate things.
A policy is strategy only: entry filters, scoring weights, risk, limits and safety rules, written as data rather than code. An account is money and account-level risk, either paper or live. A deployment joins the two.
The same policy can run against a paper account and a live wallet at the same time, so you can compare what the strategy intended with what actually filled, instead of keeping two configurations that drift apart.
- Policies have a lifecycle: draft, active, retired.
- Each policy records who made it, a person or an agent, and keeps a changelog of why it changed.
# policies/policy_format.yaml (public, trimmed) status: draft # draft | active | retired created_by: human # human | agent auto_optimize: false # agents may only propose # --- Entry filters --- max_pair_age_seconds: 900 min_volume_5m_usd: 3000 min_buy_sell_ratio: 1.1 max_top_holder_pct: 60 # --- Scoring weights --- weight_volume_acceleration_1m: 0.30 weight_price_momentum_5m: 0.30 weight_holder_concentration_penalty: -0.15 min_trade_score: 60
The agents are advisors, not traders.
Two optional agents, built with Google's Agent Development Kit, sit beside the pipeline. One studies past performance and writes recommendations. The other analyzes each policy's results and proposes tuning. Their output lands in a recommendations table and does nothing until a person accepts it.
- Opt-in autonomy only. The one exception is a policy someone explicitly marks for automatic tuning.
- Agents never place trades. Deterministic code does, after risk and limit checks.
- Backtest before trusting. Any policy, including one an agent proposed, can be replayed against history first.
Everything is an MCP tool. The backend is an MCP server with 54 tools across pairs, scores, trades, policies, deployments, accounts, analytics, backtests and recommendations. The React interface is a client of those same tools, so anything the UI can do, an agent or a script can do too.
That design makes the agent's reach easy to reason about: it can only do what a tool allows, and the tools that move money are behind the same checks a person goes through.
Safe defaults, and the limits written down.
The project's documentation states its own limitations plainly, because some of them would cost money if someone assumed otherwise.
| Default | Why |
|---|---|
| Live trading off | Two separate settings must both be turned on. New setups start with a paper account. |
| Server bound to the local machine | The tool server can change policies and accounts, so it is never exposed to a network by default. |
| A dedicated hot wallet | The signing key is the whole threat model, so it should only ever hold what you can afford to lose. |
| Known gaps listed | For example, thin test coverage on the workers that move money, which is why backtesting comes first. |
TypeScript, Node.js, PostgreSQL, Redis, React and MCP. github.com/therevoltingx/amadeus
The same pattern runs every workflow I build: the model proposes, code decides, a person approves.
- Agents suggest, they never act on their own. Every agent change is inert until accepted. In a client workflow that is the draft email, the proposed record update or the prepared request that waits for review.
- One API for people and agents. The MCP server is the only way in, so the dashboard and the agents share the same rules and the same audit trail.
- Safe defaults, written down. Risky features are off until they are switched on twice, and known gaps are listed rather than hidden.
Have a workflow agents could take over?
Tell me what you're working on. I'll reply within one business day.
miguel@deeporbitlabs.com