Classical cobalt copperplate engraving of a coral reef framed by Grecian columns, with staghorn coral, sea fans, and a drifting jellyfish
CORAL

Cultivating On-chain Reasoning & Adaptive Learning

An agent that
grows, instead
of resetting

Every call becomes a polyp of memory. The reef is the strategy.

CA—
Robinhood Trading MCPRobinhood Chain · 4663Polyp memory · SQLiteLangGraph six-stage passPaper by defaultDeterministic risk gateTen MCP tools servedOn-chain swaps via Chainbridge35 projects · 771 toolsClaude Code · Codex · Cursor · Gemini · GrokCorAL evolve · generationsRobinhood Trading MCPRobinhood Chain · 4663Polyp memory · SQLiteLangGraph six-stage passPaper by defaultDeterministic risk gateTen MCP tools servedOn-chain swaps via Chainbridge35 projects · 771 toolsClaude Code · Codex · Cursor · Gemini · GrokCorAL evolve · generations
Technical copperplate engraving of a crystalline polyp node, the unit CORAL writes to memory

Every agent forgets. A session ends, the reasoning evaporates, and tomorrow the same agent re-derives the same thesis with the same confidence. You pay for the same inference twice.

The usual fix is a longer prompt. A five-page system prompt is not memory, it is instructions, and instructions do not know that NVDA gapped on you twice in March.

CORAL keeps the evidence. The memory is a database, the recall is scored, the outcomes are recorded, and the risk limits are code rather than prose.

One pass is a six-stage state graph: observe, recall, reason, gate, settle, calcify. Each stage emits a typed event, and the whole run is a thread you can resume.

The pass, in the order the engine runs it

01 · observe

Quotes and daily bars from the Robinhood MCP for equities, or live token prices through the local Chainbridge MCP for Robinhood Chain. No token, and the reef reads a deterministic synthetic tape instead, labelled as such.

02 · recall

Polyps scored by text overlap, recency, outcome, and symbol. A pattern that lost twice loses its voice.

03 · reason

A model call, or a deterministic heuristic when no key is set. Both produce the same typed decision.

04 · gate

Order size, concentration, deployment, confidence, loss streak, daily cap. Code, not a prompt.

05 · settle

Polyps older than an hour get judged by realized price movement.

06 · calcify

Every decision becomes a polyp, including the refused ones, with the reason frozen in its artifacts.

Panoramic copperplate engraving of two submerged coral reef islands with Grecian columns and celestial armillary spheres

What makes it a colony

four mechanisms, no decoration

Every decision calcifies

A decision is not a log line. It becomes a polyp holding the observation, the thesis, the confidence it was made at, and later the outcome. The colony those polyps build is the strategy.

MECHANISM01 / 04

Recall, not retrieval

Before reasoning, CORAL pulls the polyps that resemble today's setup. Two losses on the same pattern are not a footnote in a prompt, they suppress the trade.

MECHANISM02 / 04

Generations, not versions

coral evolve reweights the reef. Zones that work gain routing weight, zones that never worked are retired, and each generation is written down so the drift stays auditable.

MECHANISM03 / 04

Limits in code, not prompts

A deterministic risk manager runs after the model speaks and before anything touches a venue. Order caps, concentration caps, circuit breakers: enforced, not requested.

MECHANISM04 / 04

13

CLI commands

10

MCP tools served

6

agent hosts

$0

to run in paper

On-chain, through the same gate

For Robinhood Chain, CORAL talks to the local Chainbridge MCP — a stdio bridge into ~35 projects on chainId 4663: verified token discovery, balances, best-route DEX quotes, swaps. The wallet's key sits in the OS keychain; CORAL never sees it.

A swap runs the same pass as an equity order: resolve the token, pull the live quote, price it in USDG, let the risk manager review, then fill on paper — or, in live mode with confirm: true, Chainbridge's prepare→execute flow signs with exact approvals. The gate plays the role Chainbridge gives the human "yes in chat".

The interactive surface is local by design: coral api binds 127.0.0.1, the /dapp page talks only to it, and a browser origin that is not loopback gets a 403. Custody stays where the CLI runs.

verbatim output · local runs, real mainnet reads

$ coral onchain quote USDG OAK 5
  route   uniswap · 0x204f…0498 · fee 25 bps
  out     13,028.60 OAK · min 12,963.46
  note    cross-venue check passed

$ coral onchain swap USDG OAK 5
  gate    allowed · $5.00 of the $250 order cap
  fill    paper · 13,002.54 OAK @ $0.000384
  polyp   grown — onchain, momentum, paper

$ coral backtest AAPL --range 6mo
  source  yahoo · 129 real bars
  equity  $250.00 → $280.40 (+12.2%)
  b&h     +18.3% · fees $0.50 · dd 11.1%

Paper fills are marked paper. A live swap additionally needs a funded Chainbridge wallet, an ERC-8004 identity, and the gate's yes — coral onchain setup prints the checklist.

shipped, verifiable

  • · six-stage LangGraph pass with scored polyp recall
  • · Robinhood Trading MCP for equities; Chainbridge MCP for Robinhood Chain reads and gated swaps
  • · coral api — loopback HTTP surface + the /dapp page
  • · coral backtest — real bars through the real loop, honest refusal without history
  • · docker-compose for the whole local stack

next, honestly scoped

  • · sqlite-vec recall — embeddings beside the keyword scorer
  • · cohort runs — several symbols judged per pass, not one
  • · deeper replay — tape-level order-flow backtests, not just daily bars
  • · published packages — coral on npm once the API settles
CORAL

The model is allowed
to be optimistic.
The gate is not.

One command wires CORAL into the agent you already run

CORAL speaks MCP in both directions. It calls the Robinhood Trading MCP for market data and orders and the local Chainbridge MCP for on-chain quotes and swaps, and it serves itself as an MCP server so your agent can ask it things. The config writer backs up every original file before it touches one.

Claude Code
Claude Desktop
Codex
Cursor
Gemini
Grok

coral connect --all

Writes the hosted MCP entry into every agent config it finds on this machine, and backs up each original first. Each host has its own shape, including Gemini wanting httpUrl instead of url.

Install CORALRead the mechanism