Technology Stack
Language runtimes
Python 3.12 (CPython + PyPy) · TypeScript 5 (Node 20 + Bun)
Gives AI/ML developers Pythonic ergonomics while letting high-throughput agents compile to JS/WASM for edge and browser execution.
Core engine
Rust-powered scheduler & message bus (exposed via FFI to Py/TS)
Deterministic, memory-safe concurrency; microsecond-level latency for thousands of agents/host.
Cryptography
BLS, ECDSA (secp256k1, ed25519) via RustCrypto; MPC/Threshold schemes via FROST
Unified, audited primitives for multi-chain accounts and MPC custodial modes.
EVM & non-EVM chains
ethers-rs
bindings, @cosmjs
for Cosmos, solana-web3.js
for Solana
Chain-specific performance without fragmenting the wallet layer.
Exchange/CEX APIs
REST + WebSocket adapters (Binance, Coinbase, Bybit, OKX) generated from OpenAPI specs
Typed clients, auto-regenerated on version bumps, minimise drift.
Data & state
Redis (volatile KV) · Postgres/SQLite (journals) · Qdrant (vector) · IPFS (blobs)
ACID guarantees for audit logs; vector recall for LLM context; decentralised blob store for provenance.
Policy / rules engine
CEL (Common Expression Language) + WASM sandbox
Hot-reloadable rules with deterministic outputs, embedded across runtimes.
Observability
OpenTelemetry spans · Prom-compatible metrics · ClickHouse event sink
End-to-end tracing from intent draft ➜ on-chain receipt ➜ memory update.
Packaging
PyPI wheels, npm packages, WASM modules, OCI containers
Same action can run in-process (Python), as a plugin (TS), or at the edge (WASM).
CI / CD
GitHub Actions · Canary testnet forks · Formal-verification gate (Mythril / Foundry)
Every code push spins up a forked chain + policy suite to prove safety before main-net promotion.
4.1 Dual-SDK Philosophy
Python SDK (
degents-py
) — idiomatic decorators turn any function into an Action; tight integration with AI frameworks (LangChain, Llama-Index, PyTorch).TypeScript SDK (
degents-ts
) — mirror of the same surface area; compiles to ESM/CJS and WASM for browser or Cloudflare Workers.Generated OpenAPI + gRPC definitions keep the two dialects in lock-step and give polyglot services (Go, Java, Rust) first-class entry points.
4.2 Engine Internals
Scheduler
Tokio-inspired work-stealing queues in Rust; adaptive back-pressure tied to wallet nonce utilization
1 M intents/sec / host
Message Bus
ZeroMQ frames over in-memory ring buffers; optional NATS cluster for multi-host
p99 < 2 ms RTT
Tx Builder
Deterministic Rust DSL ➜ RLP/BCS/Scale encoding; EIP-712 & eth_sendBundle
support
10 k bundle signs/sec
Simulation Sandbox
Foundry + custom forks; Solana banks_server; Cosmos SDK local sim
One-shot fork < 300 ms
4.3 Deployment Targets
Server / Kubernetes — OCI images with side-car policy verifier; horizontal shard by agent-ID hash-ring.
Edge (WASM Runtime) — lightweight TS/WASM agents for CDN or IoT nodes, still policy-enforced via remote attestation.
Desktop (Tauri) — local dashboard that doubles as an offline signer or air-gapped policy console.
Mobile (React Native + WASM) — thin control plane; heavy lifting off-loaded to cloud agents.

4.4 Security & Upgradability
Modular cryptography means custody mode can be swapped (custodial ➜ self-custody) without touching agent code.
Every Action package carries a signed SBOM (CycloneDX); upgrade requires a quorum of stake-weighted maintainers.
Engine binaries embed sigstore-verified provenance and perform startup attestation—crucial for regulated deployments.
4.5 Why This Stack Fulfils Our Two North Stars
Agent OS for DeFi: Rust core + dual SDKs give deterministic performance and developer ergonomics, creating a genuine operating system for economic agents.
Autonomous Decentralized Finance: Chain-agnostic wallet layer, policy-first design, and WASM edge portability let agents deploy capital anywhere, anytime—realising the holy grail of self-governing, globally distributed finance.
Last updated