A full-stack Miden development workspace combining smart contract development (Rust SDK) with a web frontend (React + @miden-sdk/react). Both templates are included as git submodules.
git clone --recurse-submodules https://github.com/0xMiden/agentic-template.git
cd agentic-templateIf you already cloned without --recurse-submodules:
git submodule update --init --recursive# Frontend dependencies
cd frontend-template && yarn install && cd ..Rust dependencies are handled automatically by cargo.
agentic-template/
project-template/ # Miden smart contracts (Rust SDK)
contracts/ # Account components, note scripts, tx scripts
integration/ # Integration tests and deployment scripts
frontend-template/ # Miden web frontend (React + TypeScript)
src/ # React components, hooks, tests
public/packages/ # Compiled contract artifacts (.masp files)
- Build contracts in
project-template/contracts/ - Test contracts with
cd project-template && cargo test -p integration --release - Copy artifacts from contract build output to
frontend-template/public/packages/ - Build frontend in
frontend-template/src/ - Run frontend with
cd frontend-template && yarn dev
This template is designed for AI-assisted development. Open Claude Code (or Codex, Cursor) at the repository root and describe what you want to build.
CLAUDE.mdat root provides the monorepo overview and workflow- Each sub-template has its own
CLAUDE.mdwith detailed instructions - Skills load automatically when working in either template
- Hooks verify contract builds and frontend type safety on every edit
| Template | Skills |
|---|---|
| project-template | miden-concepts, rust-sdk-patterns, rust-sdk-pitfalls, rust-sdk-testing-patterns, rust-sdk-source-guide |
| frontend-template | miden-concepts, react-sdk-patterns, testing-patterns, frontend-pitfalls, vite-wasm-setup, signer-integration, frontend-source-guide |
| Trigger | Action |
|---|---|
| Edit contract file | Auto-build the modified contract |
| Edit frontend file | Type check + run affected tests |
| Task completion | Full verification (all tests + typecheck + build) |
To pull the latest changes from both templates:
git submodule update --remote --merge
git add project-template frontend-template
git commit -m "Update submodules to latest"