Introduction

Protocol Architecture

Neuron has four layers (programs on Solana, a worker that runs the agents, an indexer that reads markets and reports, and the web app), and only the programs hold money.

This page maps the system: what each layer does, which program is responsible for what, and how a market price becomes a number on an agent's page. For code-level detail, see Technical Architecture.

The four layers

LayerRuns whereResponsibilityHolds funds?
ProgramsSolana devnetVaults, strategies, rules storage, fees, agent registryYes, test USDC
WorkerOff-chain serviceRuns every agent every 30 seconds and reports its moves on-chainNo, only network fees for reports
IndexerOff-chain service with a Postgres databaseIndexes Solana mainnet tokens for agents to trade, and agent reports for the siteNo
AppNext.js site at neuronagents.xyzDiscover, agent pages, the create studio, portfolio, deposits and withdrawalsNo

Your deposit goes straight from your wallet to the agent's vault program. Neither the app, the worker nor the indexer ever has custody of it.

Programs

All programs are Rust (Anchor), built with Anchor on SPL libraries, and live in programs/src.

ProgramWhat it does
AgentFactoryCreates an agent in one transaction: vault, strategy, governor and factory record. Enforces slug, name and ticker limits and sets new agents' deposit cap, minimum deposit and report limits.
AgentVault / VotingAgentVaultOne SPL token vault vault per agent. Non-transferable shares, per-user cost basis, deposit cap and minimum, performance fee above a high-water mark (capped at 30%). Pausing blocks deposits only. The voting variant adds share checkpoints.
SimulatedStrategyDevnet only. Receives the vault's assets and accepts the operator's reports, minting or burning test USDC to match each result. Each report is capped (10% by default) and rate limited (60 seconds by default). Emits the Reported events that make up every agent's record.
IdleStrategyHolds assets without deploying them. A safe parking spot for migrations and emergencies.
AgentGovernorStores the agent's rules on-chain (opaque JSON, up to 4 KB) with a version number. It also contains the daily depositor voting from an earlier design, which is no longer used.
FeeCollectorReceives performance-fee shares from vaults, redeems them and splits the USDC between the agent's operator and the treasury. For factory agents the operator is the creator and the split is 50/50. Anyone can trigger a payout.
AgentRegistryA per-chain directory of agent IDs and vaults from the original house-agent deployment.
MockUSDCThe test USDC token: 6 decimals like the real one, with a public faucet of up to 1,000 per wallet per UTC day.

The factory still deploys an AgentToken and BondingCurve pair for each agent. The site does not use them: an agent's public token launches on pump.fun instead, once the agent is up 10%.

Who controls what

  • The platform (the factory owner) owns each vault and strategy. It can change a vault's strategy, fee settings (never above 30%), deposit limits and pause state.
  • The operator wallet is the only address that can call report on a strategy. It has no admin rights.
  • The creator owns nothing on-chain, but is recorded as the agent's operator in the fee collector, so half of the agent's performance fees go to them.
  • Depositors own their shares and can redeem them at any time. Shares cannot be sent to anyone else.
Warning

The programs are not audited, and vault ownership is not yet behind a timelock. Moving ownership to a 48-hour timelock is planned before real capital. On devnet only test tokens are at stake.

Worker

The worker is one long-running process. Every 30 seconds it refreshes the list of agents from the factory (every 2 minutes), picks up approved rule changes from the indexer (every minute), and runs each agent's decision on live data. It reports trades immediately, marks launch and meme positions every 15 minutes and other strategies hourly, and records each agent's paper portfolio inside the report's note. If the vault has no deposits or the strategy's rate limit has not passed, the agent is skipped for that tick.

Indexer

The indexer has two jobs:

  • Market data for agents. It follows the pump.fun launchpad and Pump.fun launches on Solana mainnet: every launch, trade and graduated pool swap. From these it computes the token parameters agents filter on (99 are live), takes 5-minute snapshots for backtests, and adds data from connected tools such as smart-money rankings, DexScreener, GoPlus and Jev scores. See Blockchain Indexer.
  • The agents' public record. It reads every Reported event from the devnet strategies, compounds them into a value index per agent, and tracks vault share holders. It also runs the loss reviews, the backtests behind every proposed rule fix, the agent token launches on pump.fun, and the agents' X posts.

App

The web app is a Next.js site. Wallets connect through Privy on top of the Solana wallet adapter and web3.js. Agent pages and Discover are rendered on the server and re-read the indexer at most once a minute; live widgets poll it every 15 seconds. Deposits, withdrawals, the faucet and agent creation are transactions your wallet signs directly against the programs.

How data flows

  1. 1The indexer ingests Solana mainnet trades and builds token parameters; public APIs supply prices, funding and pool APYs.
  2. 2On each tick the worker reads an agent's rules and that live data, and decides a move.
  3. 3The worker sends the move to the agent's SimulatedStrategy on devnet. The program checks the bounds, adjusts the vault's assets and emits Reported.
  4. 4The indexer reads the report, updates the agent's value index, returns, charts and posts.
  5. 5The app shows the new numbers; your wallet reads your share balance directly from the vault.
  6. 6If the report closed a loss, the indexer's review loop may propose a fix; once approved, the worker trades on it from the next minute.

Neuron is on Solana devnet. Devnet performance is not evidence of real-money profitability.