Search projects, hackathons, sponsors and tech

    ← All projects

    Hadera Code

    OpenCode overlay for Hedera Harness: idea to dApp, HTS tokens, beta persistent MetaMask for USDC.

    Demo

    About

    This is a contribution to hedera-dev/hedera-harness (open PR, not merged). The published harness is a long CLI run: you write a PRD and a recipe, then prove the wallet in Playwright Chrome with no MetaMask extension. This branch adds an OpenCode TUI overlay. You describe the dApp in natural language. The orchestrator interviews one question at a time, writes the PRD, generates one work unit, lints, boots next:dev, and walks you to RainbowKit Connect+Send in your own Chrome. Yarn install runs in tui install with no timeout so OpenCode never freezes. Existing HTS tokens (Circle testnet USDC, later any listed token) are looked up, converted via HIP-218, remembered, and baked — GENERATE does not invent a 0x. A beta persistent test wallet (Chromium + MetaMask extension, same profile across runs) is included so token flows can be signed on screen. It is a repeatable test vault, not your personal Chrome. The done bar is still Connect+Send in the human browser.

    How it's made

    Built as an overlay on hedera-harness and sst/opencode, targeting scaffold-hbar (Next.js, RainbowKit, wagmi, Hedera Testnet 296). TypeScript CLI: tui install copies opencode.json, stage agents, slash commands, and a plugin with harness_* tools. Yarn Berry install runs in that terminal with no timeout; OpenCode bash denies yarn install. Hedera Docs MCP (SearchHedera) is first for protocol docs. Issuer token ids are not in that MCP, so harness_tokens does lookup → issuer webfetch → HIP-218 long-zero convert → .harness/tokens.json → bake evm=. OpenZeppelin Solidity MCP stays disabled until Contracts: solidity. Wallet path: RainbowKit in the user's Chrome (done bar). Beta extra: dappwright Chromium with MetaMask, persistent .harness/wallet/chrome-profile, provision on 127.0.0.1 (never paste keys in chat). EVALUATE drives .harness/e2e.json testids so any app's send form works, not only seed /payments. Playwright MCP is forbidden for wallet E2E because it has no extension. Tests cover overlay copy, token registry, UI contract, and yarn-install flags. Local nested dApps are gitignored. PD: branch feat/hedera-harness-tui