Sol.College

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 directorySource files
apps73
packages60

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.

FileSolana APIs used
apps/publisher/src/loop.rotation.test.tsKeypair, Transaction, PublicKey, getLatestBlockhash
apps/publisher/src/loop.test.tsKeypair, PublicKey, Transaction, getLatestBlockhash
apps/publisher/src/memo.tsPublicKey, Transaction, SystemProgram, transfer
apps/publisher/src/memo.test.tsKeypair, transfer, PublicKey, SystemProgram
packages/verify/src/sources.tsPublicKey, Connection, Program
apps/publisher/src/run.test.tsKeypair, getLatestBlockhash
packages/verify/src/sources.test.tsKeypair, PublicKey, Transaction
apps/publisher/src/loop.tsKeypair, getLatestBlockhash, Connection, PublicKey
apps/publisher/src/run.tsConnection, Keypair
packages/e2e/src/demo.tsConnection, Keypair
packages/e2e/src/daily.tsConnection, PublicKey
packages/verify/src/cli.test.tsPublicKey

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.

DirectoryCommandRuns
.npm run devturbo run dev
.npm run buildturbo run build
.npm run testturbo run test
.npm run lintbiome check --error-on-warnings .
packages/sdknpm run buildnode scripts/dist.mjs clean && tsc -p tsconfig.build.json && node scripts/dist.mjs link
packages/sdknpm run testvitest run --passWithNoTests
packages/dbnpm run testvitest run --passWithNoTests
packages/manifestnpm run testvitest run
packages/verifynpm run testvitest run
packages/sharednpm run testvitest run --passWithNoTests
packages/e2enpm run testvitest run
apps/webnpm run devvite
apps/webnpm run buildtsc -p tsconfig.json --noEmit && vite build
apps/webnpm run testvitest run --passWithNoTests
apps/publishernpm run devtsx watch src/index.ts
apps/publishernpm run starttsx src/index.ts

What you could build from it

Used in lessons