Sol.College

Structure lesson

agentguard

Security layer for autonomous AI agents transacting onchain -- Colosseum Crypto World's Fair 2026

What it does

From the project README:

A security layer for autonomous AI agents that transact onchain. AgentGuard sits between an agent and its wallet: it decodes registered instructions, checks the decoded intent against policy, and auto-approves within policy or holds the transaction and routes it to a human before funds move. Unknown or unverified instructions fail closed to human review rather than being guessed at or silently allowed. It doesn't compete with wallet providers like Coinbase, Turnkey, or Crossmint -- it's the security layer that sits on top of them.
Original
mjordan237/agentguard
SuperStack fork
Blockchains/agentguard @ c9e159b
Stars
0
Last push (original)
2026-10-11
Languages
TypeScript, JavaScript, Dockerfile, Shell
Detected stack
web3.js
Categories
AI & Agents
Licence
Apache-2.0

Architecture

34 source files. By extension: .ts ×34.

Top-level directorySource files
src17
test12
demo5

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
test/squads-upgrade-endpoint.test.tsKeypair, AccountInfo, PublicKey, Connection, getAccountInfo, Program
test/squads-upgrade-gate.test.tsKeypair, PublicKey, Connection, AccountInfo, Program, getAccountInfo
test/kora-gate.test.tsKeypair, transfer, PublicKey, SystemProgram, TransactionMessage, VersionedTransaction
test/persistence.test.tstransfer, Keypair, PublicKey, SystemProgram, TransactionMessage, VersionedTransaction
src/gateway/squads-upgrade-gate.tsPublicKey, Connection, Program, getAccountInfo
test/escalation.test.tsKeypair, SystemProgram, transfer, TransactionMessage, VersionedTransaction, PublicKey
test/observability.test.tsKeypair, PublicKey, transfer, SystemProgram, TransactionMessage, VersionedTransaction
test/address-lookup-tables.test.tsKeypair, SystemProgram, PublicKey, TransactionMessage, VersionedTransaction, transfer
test/parse-transaction.test.tsKeypair, SystemProgram, transfer, TransactionMessage, VersionedTransaction, PublicKey
demo/adversarial-payment.tsKeypair, SystemProgram, Program, transfer, TransactionMessage, VersionedTransaction
demo/over-limit-payment.tsKeypair, transfer, SystemProgram, TransactionMessage, VersionedTransaction, PublicKey
demo/unapproved-destination-payment.tsKeypair, SystemProgram, TransactionMessage, VersionedTransaction, PublicKey, transfer

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/agentguard/. 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 devtsc -p tsconfig.json --watch
.npm run startnode dist/src/index.js
.npm run buildtsc -p tsconfig.json
.npm run testnode --test dist/test/*.test.js
.npm run linttsc -p tsconfig.json --noEmit

What you could build from it