AgentChain

Decentralized. Explainable. Autonomous.

Repo
AgentChain banner

About

## Challenges we ran into

Challenges We Ran Into 1. Bundling INCO FHE Encryption WASM Modules with Vite Hurdle: Integrating INCO’s Fully Homomorphic Encryption (FHE) layer (@inco/js) into a modern Vite + React Web3 application presented significant bundling challenges. The encrypted ciphertext logic and WASM modules triggered top-level await and buffer polyfill errors during browser compilation. Resolution: We configured vite-plugin-wasm, vite-plugin-top-level-await, and vite-plugin-node-polyfills inside vite.config.js. This enabled seamless client-side encryption whenever the user appends the "private" intent keyword to their prompt, submitting FHE ciphertexts directly to our smart contract. 2. Guaranteeing Zero-Secret Leakage in Trace Commons Local Redaction Hurdle: AI coding agent session logs (Claude Code, Antigravity) record complete session transcripts, including file paths, model reasoning, bash executions, and environment configurations. Raw transcripts often accidentally contain API keys (sk-ant-...), passwords, or PII. Resolution: We implemented a fail-closed local PII and key sanitizer script (scripts/trace-commons-helper.js) that runs regex-based redaction locally on the developer's machine before any trace data is submitted. This ensured zero secret upload risk while producing a signed attestation.jws token for Devfolio track judging. 3. Handling Shardeum EVM Provider Re-initialization & RPC Shifts Hurdle: Switching networks or switching accounts inside MetaMask on Shardeum EVM Testnet frequently caused Ethers v6 BrowserProvider instances to throw NETWORK_ERROR exceptions when querying native SHM balances or smart contract state. Resolution: We introduced auto-healing provider initialization logic with retry delays in Sidebar.jsx and App.jsx. The app detects account or chain shifts (accountsChanged, chainChanged) and cleanly re-establishes RPC connections without freezing the Web3 UI state. 4. Structuring Real-Time AI Explainability with Live Market Data Hurdle: Synthesizing structured explainability models (inputs analyzed, reasoning summary, alternatives considered, risk acknowledged) alongside live Coinbase market rate streaming introduced potential latency delays in the decision feed. Resolution: We decoupled live price fetching from the AI decision synthesis engine using custom React hooks (useAgent) and smooth Framer Motion micro-animations, ensuring real-time response feeds with zero UI lag.

## The problem it solves

The Problem It Solves Most autonomous AI trading and decision-making agents operating today suffer from the Black Box Problem:

Opaque & Unaccountable Execution: Users cannot see what market inputs, technical indicators, or contextual signals the AI agent analyzed before taking an automated trade. Centralized & Mutable Audit Trails: Off-chain AI logs can be altered, deleted, or falsified without detection, making true auditing impossible for DAOs and users. Ungoverned Automation: Autonomous agents execute high-value transactions without predefined approval constraints or DAO oversight, risking capital loss and rogue executions. The Privacy vs. Transparency Dilemma: Existing Web3 systems force a binary trade-off—either publish full trading strategies publicly (exposing trades to MEV sandwich attacks and front-running) or hide logic inside centralized black-box servers. What People Can Use It For AgentChain introduces a Transparent, DAO-Governed, and Privacy-Preserving AI Agent Framework:

DAO Treasury Management & Bot Governance: DAOs can deploy autonomous trading agents with hard smart contract governance boundaries. DAO members vote to approve, audit, or freeze agent execution privileges. Auditable & Explainable AI Decisions: Users and auditors can inspect step-by-step AI decision logic—including observed market inputs, Buy/Sell/Hold reasoning summaries, alternative choices evaluated, and risk factors acknowledged. Intent-Based Confidential Execution: By appending the keyword "private" in prompts, sensitive strategy parameters are encrypted via INCO FHE (Fully Homomorphic Encryption). This protects against MEV and strategy leaks while maintaining verifiable on-chain execution proofs. 🌐 Verifiable AI Work Registration: Integrates with Trace Commons to locally scrub and attest AI agent session traces via signed JWT tokens, providing verifiable proof of human-agent collaboration. How It Makes Existing Tasks Safer & Easier Safer DAO Oversight: AI agents cannot execute transactions without active smart contract authorization on Shardeum EVM (0x04AbE123D31971575Cd94850752f2C59faf92a26). Easier Independent Verification: Public users can cross-reference explainable decision logs in the AgentChain Explorer with immutable on-chain decision hashes. Front-Running & Sandwich Attack Protection: INCO encryption keeps internal values unreadable to external observers while proving valid compute execution. Enhanced Accessibility: Features live Coinbase rate streaming and text-to-speech audio decision summaries for instant auditability during live trading demos.

Screenshots

AgentChain screenshot 1AgentChain screenshot 2

Team

From the public Devfolio project page. Votes, swipes and the judge score are hackfeed's own.

AI judge

Not judged yet. A free model reads this page, compares it with similar projects and this event's winners, then scores it and says what would make it win.

Still being built?

Not checked yet.

Swipe stats

0upvotes
0skips
0saves

Discussion 0

No comments yet. Ask the team something, or say what you'd use it for.

Posting as a guest. Plain text, 1,000 characters max.

Already built nearby

Closest projects by meaning and shared words. Similar isn't the same as copied: read them.