grill-deck
# grill-deck
An MCP App and agent skill that turns design grilling rounds into a keyboard-first card deck inside your coding agent (such as T3 Code, Claude Code, or Codex).
Instead of answering long walls of text one turn at a time, the agent sends a round of independent (or conditionally linked) decisions to `grill_round`, and you blaze through them with the keyboard, add notes, park questions, or batch-accept low-risk picks — then send all answers back in one message.
## Quick start
### 1. Register the MCP server
**Claude Code**
```sh
claude mcp add grill-deck -- npx -y github:dhruvkelawala/grill-deck
```
**Codex**
```sh
codex mcp add grill-deck -- npx -y github:dhruvkelawala/grill-deck
```
**T3 Code / generic MCP JSON**
```json
{
"mcpServers": {
"grill-deck": {
"command": "npx",
"args": ["-y", "github:dhruvkelawala/grill-deck"]
}
}
}
```
> **Faster startup (optional):** Clone once and point your MCP config at `node /path/to/grill-deck/server.mjs` after `npm install` to skip `npx` lookup overhead.
### 2. Install the skill
```sh
npx skills add dhruvkelawala/grill-deck
```
Start a new thread and invoke `/grilling-deck` (or ask your agent to grill a plan using the deck).
## Using the deck
Cards are grouped under **Needs you**, **Worth a look** and **Wave through**, and a follow-up sits right under the card that opens it. Each answer you accept becomes a line of the plan, so you watch the decisions add up as you go.
- **`Enter`** accepts the highlighted pick (the agent's recommendation is first).
- **`1`–`4`** picks another option.
- **`O`**, or the number after the last option, opens **Your own answer**: write what you want instead. The agent treats it as a proposal and checks it.
- **`N`** opens a note on your answer. **`?`** opens the same box with **needs a reply** switched on: press **`Enter`** (**Ask agent now**) to send the question to chat straight away, keeping your progress so the agent can answer and reopen the deck, or click **Park for end instead** to send it with your final answers.
- **`←`** goes back to the previous card. Click any line to reopen it.
- **Switching threads:** if your host unmounts the deck while you are away, click **Resume saved progress** when you come back to reopen the round where you left off.
- **Accept easy ones** opens a checklist of `safe` (cheap-to-change) cards only. Tick what you agree with and hold to accept.
- **Send to agent** posts all settled answers back to the thread as a single message.
## Layouts
**List** shows every card with the current one open; answered cards collapse into plan lines. **Card** shows one card at a time with the plan growing underneath. Switch with the List / Card control or **`L`**; the deck remembers your choice where the host allows it, and the answers say which layout was used. The filters at the top (**All**, **Needs you**, **Worth a look**, **Wave through**) narrow the round to one type; once those cards are done, the deck goes back to all of them.
To preview locally, open `deck.html?layout=single` (add `&theme=light` for the light theme).
## Preview the UI locally
Open [`deck.html`](deck.html) directly in any browser to try the interactive deck with its built-in sample round — no MCP host required.
## Configuration & limits
- **Host detection:** Hosts that advertise MCP Apps (`io.modelcontextprotocol/ui`) or set `CLAUDE_CODE_ENTRYPOINT=t3-code` render the interactive deck automatically. Other clients receive a numbered plain-text fallback.
- **Override rendering:** Set `GRILL_DECK_FORCE=1` in the MCP server's environment to force deck rendering on hosts that support MCP Apps without advertising the capability, or `GRILL_DECK_FORCE=0` to force the plain-text fallback.
- **Top-level agent only:** Subagents cannot display MCP App decks; the top-level thread agent must call `grill_round`.
- **Single-choice cards:** Each card takes 2–4 options and may conditionally depend on an earlier card via `when`. Open-ended or multi-select questions stay in chat.
## Development
```sh
npm install
npm test
```
`npm test` runs server validation tests (`tests/round.test.mjs`) and headless Chromium UI tests (`tests/deck.test.mjs`, requires `chromium`).
## License
MIT
TDQS
Scored across 1 tool
With a single tool there is no possibility of selecting the wrong one; the tool's purpose (render a round of single-choice decisions as an interactive deck) is unambiguous. The description even delineates what belongs elsewhere (free-text and multi-choice go in chat), removing residual boundary confusion.
The lone tool name `grill_round` follows a clear snake_case, verb_noun-style convention that matches the server name grill-deck. There is no competing convention to create inconsistency.
A single tool is thin even for a deliberately narrow domain, and it carries a lot of behavioral contract (turn-ending, subagent restrictions, reopening logic) that could have been split out. It is defensible as a one-purpose interaction primitive, but it sits at the borderline of under-scoped.
The deck lifecycle is covered: presenting a round, receiving answers via the next message, and reopening with `answers`. Gaps are minor and intentional—answers are read as chat messages rather than via a dedicated tool, and free-text/multi-choice are explicitly delegated to chat.