Problem
Small Web3 teams drown in repeat support questions spread across Discord, Telegram, and X DMs: mint status, claim eligibility, contract addresses, listing dates. The answers already exist in the team's docs and old announcements, but nobody on a 2-person team has time to answer them twice. Generic chatbots make it worse — they hallucinate addresses and dates, which in Web3 can cost users real money.
What it does
Haunted Helpdesk stitches four incompatible pieces into one app (Frankenstein category):
- Discord bot — answers in support channels and DMs.
- Retrieval agent — answers ONLY from the team's connected sources (docs, announcements, FAQ). Every answer carries a citation. Below a confidence threshold it says "I don't know" and routes the question to a human queue with a suggested draft.
- On-chain reader — reads live facts (block number, token supply) with viem, read-only. It never signs or sends anything.
- Web dashboard — answer rate, top unanswered questions, human queue with one-click reply drafts, source manager (add docs by URL), live chain facts, and a daily "haunted digest" (the spookiest unanswered question of the day).
Answers are extractive — the agent can only repeat what sources say — so it cannot invent a contract address, date, or price by construction. The demo ships with a fictional project, GhostChain, so judges can test the full flow with zero credentials: ask "How do I mint a GhostChain Genesis NFT?", "When does minting end?", "What is the total supply?" (cited answers + live chain check), then "Will GHOST 100x tomorrow?" (no source covers price predictions → human queue).
How Kiro was used
Built with Kiro CLI 3.5.0, driven non-interactively, one task per run, with results verified after every step:
- Spec-driven development — requirements, design, and a task list in .kiro/specs/haunted-helpdesk/; the build executed tasks T1–T7 in order and checked them off.
- Steering docs — product rules (never invent facts, cite everything, queue when unsure, read-only chain access), tech stack/conventions, and project structure in .kiro/steering/, read by Kiro at the start of every run.
- Custom agents — three workspace agents created with kiro-cli agent create: support-agent (server, agent core, on-chain reader, API, bot, tests), dashboard-builder (React dashboard), and researcher (read-only fact-checking).
- Hooks — auto-test-on-save and auto-format-on-save hooks in .kiro/hooks/ (IDE format; provided for IDE use).
- Kiro also found and fixed a real bug during the test task: heading-only chunks were inflating TF-IDF scores; it added a guard and re-ran the suite green (15 tests). Full honest record (what Kiro did vs. direct fixes) is in BUILD-LOG.md in the repo.
Tech stack
TypeScript + Node 24, Express, Vite + React, discord.js, viem (read-only, BSC + Ethereum), SQLite via Node's built-in node:sqlite, hand-rolled TF-IDF retrieval. No paid APIs.
Pre-existing code disclosure
No pre-existing application code was copied into this project. All app code was written during the competition window (build run: Nov 25, 2026). The builder's pre-existing open-source MCP servers (Taskmarket MCP server, Cloudflare Workers MCP server) were considered in planning but are not used inside this app. The concept spec and build plan were drafted Nov 24, 2026, inside the competition window.
Demo notes for judges
Run: npm install && npm run build && npm start → http://localhost:8787 (no credentials needed). On-chain "GhostChain demo token" reads use public WBNB/WETH contracts as labelled stand-ins so live numbers are real. The Discord bot activates with DISCORD_TOKEN set; without it, the dashboard web chat is the demo surface.
Built With
- discord.js
- express.js
- kiro
- node.js
- react
- sqlite
- typescript
- viem
- vite