Structure lesson
Agent-Trace
What it does
From the project README:
Cryptographic provenance and audit layer for AI agent decisions. Every time an agent decides something, the SDK records a signed decision manifest — which data sources, which model, which intermediate steps — and anchors its root on Solana. Anyone holding the link can verify that the record has not changed, without trusting AgentTrace and without the model, the prompts or the API keys ever being exposed.
- Original
- agenttracewoof/Agent-Trace
- SuperStack fork
- Blockchains/Agent-Trace @
f46818e - Stars
- 0
- Last push (original)
- 2026-10-28
- Languages
- TypeScript, HTML, CSS, JavaScript
- Detected stack
- web3.js
- Categories
- AI & Agents
- Licence
- MIT
- Homepage
- https://agenttracewoof.github.io/Agent-Trace/
Architecture
133 source files. By extension: .ts ×123, .tsx ×10.
| Top-level directory | Source files |
|---|---|
apps | 73 |
packages | 60 |
Where the Solana code lives
Source files that import a Solana SDK, ranked by how many Solana APIs they use, with the APIs each one calls. Read them in this order to see how the app talks to the chain.
| File | Solana APIs used |
|---|---|
apps/publisher/src/loop.rotation.test.ts | Keypair, Transaction, PublicKey, getLatestBlockhash |
apps/publisher/src/loop.test.ts | Keypair, PublicKey, Transaction, getLatestBlockhash |
apps/publisher/src/memo.ts | PublicKey, Transaction, SystemProgram, transfer |
apps/publisher/src/memo.test.ts | Keypair, transfer, PublicKey, SystemProgram |
packages/verify/src/sources.ts | PublicKey, Connection, Program |
apps/publisher/src/run.test.ts | Keypair, getLatestBlockhash |
packages/verify/src/sources.test.ts | Keypair, PublicKey, Transaction |
apps/publisher/src/loop.ts | Keypair, getLatestBlockhash, Connection, PublicKey |
apps/publisher/src/run.ts | Connection, Keypair |
packages/e2e/src/demo.ts | Connection, Keypair |
packages/e2e/src/daily.ts | Connection, PublicKey |
packages/verify/src/cli.test.ts | PublicKey |
Dapp: devnet deploy pending
⏳ Devnet deploy pending — goes live when the devnet wallet is topped up. This fork's own dapp is not deployed yet, so there is no program address or transaction to show. It is queued in dapp-queue.txt; once devnet SOL is available it is deployed, exercised with real devnet transactions, and this section switches to the live dapp at /dapps/agent-trace/. Until then, the lesson and step-by-step guide below are complete, and you can run it locally with the commands below.
How to run, build and test
These commands come from the repo's own manifests (package.json scripts, Anchor.toml, Cargo, go.mod, Makefile). Check the README for prerequisites and environment variables.
| Directory | Command | Runs |
|---|---|---|
. | npm run dev | turbo run dev |
. | npm run build | turbo run build |
. | npm run test | turbo run test |
. | npm run lint | biome check --error-on-warnings . |
packages/sdk | npm run build | node scripts/dist.mjs clean && tsc -p tsconfig.build.json && node scripts/dist.mjs link |
packages/sdk | npm run test | vitest run --passWithNoTests |
packages/db | npm run test | vitest run --passWithNoTests |
packages/manifest | npm run test | vitest run |
packages/verify | npm run test | vitest run |
packages/shared | npm run test | vitest run --passWithNoTests |
packages/e2e | npm run test | vitest run |
apps/web | npm run dev | vite |
apps/web | npm run build | tsc -p tsconfig.json --noEmit && vite build |
apps/web | npm run test | vitest run --passWithNoTests |
apps/publisher | npm run dev | tsx watch src/index.ts |
apps/publisher | npm run start | tsx src/index.ts |
What you could build from it
- Fork the SuperStack copy and extend it within the AI & Agents gaps listed on the idea page.
- Learn the pattern first: AI agents on Solana
- Learn the pattern first: Building and sending transactions from a client