Crypto OS

AI's Place in Crypto OS

Five roles, six capability levels, and one AI Safety Stack. Models propose; deterministic systems validate.

AI is not a chapter added at the end of this course. It appears in every chapter, always in the same role:

AI proposes hypotheses. You verify the facts.

This page explains what that means in different settings.

Five roles

“Using AI” can mean different roles with entirely different risks.

1Tutor

Explain complex concepts and ask follow-up questions until you understand them.

Explain the funding rateCalculate one AMM quote by handCompare the trade-offs of Ethereum and Solana
2Research Copilot

Search, organize, compare, extract, verify, and monitor.

Extract structured fields from a tokenomics documentCompare the revenue definitions of three protocolsSummarize the unlock schedule weekly
3Builder Copilot

Write PRDs, code, tests, debugging notes, audits, and documentation.

Explain a contractGenerate test casesParse a transaction trace
4Operational Agent

Continuously monitor protocols, wallets, markets, risk, governance, and news.

Monitor transfers from an addressMonitor collateral ratios and liquidation thresholdsMonitor governance proposals
5Economic Agent

With identity, a wallet, budget, strategy, and execution ability, it becomes an economic agent.

Buy data and computing power within a budgetPay for an API with a stablecoinSettle with other agents

Mistakes in the first three roles cost time. Mistakes in the last two cost money. From the fourth role onward, the course therefore requires accompanying controls.

Six capability levels

LevelWhat AI can doRequired guardrails
L0 Do not use AILearn the fundamentals yourself.—
L1 AI AssistantQuestions, answers, and explanations.Treat conclusions as hypotheses, not facts.
L2 AI CopilotResearch, writing, and code.Verify against primary sources; review the code yourself.
L3 Tool AgentCall search, APIs, RPC, databases, and read-only wallets.Allowlist tool permissions and log every call.
L4 Financial AgentAnalyze, trade, pay, and manage assets.Budget cap, address allowlist, simulation first, manual approval above the limit.
L5 Autonomous Economic AgentEarn income, buy services, pay costs, and cooperate with other agents autonomously.Policy engine + Risk engine + Auditable logs, with mandatory one-click shutdown.

A useful rule: your level depends on how much you can verify. If you cannot tell whether the model's contract call is correct, you should not operate above Level 3. You would be unable to detect a mistake.

AI Safety Stack

Every AI system handling funds must pass through this chain. It is the core of T32 and the acceptance standard for all agent assignments.

1IntentA person specifies goals and boundaries rather than an instruction that will execute directly.
2LLMProduces proposals only. Model output has no execution authority at this layer.
3Structured OutputRequire typed fields, units, addresses, and amounts. Reject free-form text.
4ValidatorDeterministic checks: valid addresses, amount overflow, and parameters within bounds.
5PolicyA policy engine: per-operation limits, daily totals, allowlists, time windows, and conditions requiring human approval.
6SimulationRun in a simulated environment first to obtain actual state changes and worst-case outcomes.
7Risk EngineScore simulation results for slippage, exposure, and distance to liquidation. Reject anything over the threshold.
8ExecutionExecute only proposals that passed every previous layer, with a one-action shutdown.
9Onchain VerificationAfter execution, check the chain: did the state actually change as expected?
10Audit LogRecord who proposed it, why it passed, what executed, and what happened.

Three responsibilities summarize the chain:

  • Model: Proposal.
  • Deterministic system: Validation.
  • Execution system: Execution.

Keep them separate. Once model output can trigger execution directly, all intermediate checks lose their purpose.

An architecture that is strictly forbidden

Architecture prohibited in this course

  1. Prompt
  2. LLM
  3. Private Key
  4. Send Transaction

The model must never receive a private key and send transactions without checks. This structure fails every assignment.

This structure has nowhere to detect mistakes. One hallucination, prompt injection, or incorrect unit can lose the funds, and afterward even the cause may be impossible to establish.

Any course assignment using this structure fails immediately.

How to read each chapter's AI Lab

Every AI lab has two parts: what AI should do, and the checklist you must verify yourself.

The checklist is deliberate. It addresses four common model errors:

Error typeWhat it looks likeHow to check
Invented factsNonexistent protocol parameters, interfaces, or reportsOpen primary sources and verify each item
Outdated informationChanged parameters, deprecated versions, or protocols already attackedCheck documentation dates and current on-chain state
Incorrect definitionsCounting incentives as revenue, FDV as market cap, or TVL as revenueRecalculate the key figures yourself
Correlation presented as causation“A causes B,” when they merely occur togetherSeek counterexamples: did A occur without B?

After a dozen labs, you will develop a sense of where models are reliable and where they need close attention. That judgment is itself the AI literacy the course aims to develop.

Common misconceptions

TopicPart APart B
AI changes researchChapter 31T31
AI in trading and asset managementChapter 32T35
Why agents need CryptoChapter 33T33
Agent wallets and permissionsChapter 34T34
Machine payment protocolsChapter 35T34
Reliable AI architecture—T32
Autonomous on-chain economyChapter 36T36

On this page