Example · ships with Charlie
Checklist
Builds a checklist in a window of its own that you and Charlie work through together. Charlie always knows which checklists exist, and your ticks save straight back.
What's in the folder
checklist/
├── manifest.json
├── handlers/
│ ├── create.js read.js update.js open.js list.js one per tool
│ ├── boot.js tells Charlie which checklists exist
│ ├── channels.js what the window calls back into
│ └── lib/ shared code: storage, model, views
└── build/
├── ChecklistWindow.js the checklist window
└── ChecklistSidebar.js the sidebar panel
The manifest
{
"name": "checklist",
"description": "Build, display and work through a checklist in a window of it...",
"version": "0.1.0",
"developer": {
"name": "Andy Dale",
"contact": "(hidden on this page)"
},
"tier": "core",
"boot": {
"module": "./handlers/boot.js"
},
"channels": {
"module": "./handlers/channels.js"
},
"sidebar": {
"label": "Checklists",
"component": "./build/ChecklistSidebar.js"
},
"tools": [
{
"name": "create",
"description": "Build a checklist and open it in its own window. Use this whe...",
"input_schema": { ... },
"handler": "./handlers/create.js",
"ui": {
"surface": "window",
"component": "./build/ChecklistWindow.js"
},
"delivery": "narrated"
},
{ "name": "read" },
{ "name": "update" },
{ "name": "open" },
... 1 more tools
]
}| Line | What it plugs into |
|---|---|
"tools" | 1 · Tools. Five tools to create, read, change, open and list checklists. |
"ui": { "surface": "window" } | 5 · Surfaces. On create and open, so either one puts the checklist window on screen. |
"sidebar" | 5 · Surfaces. The Checklists panel in the sidebar. |
"boot" | 7 · Live state. Runs at the start of each conversation and tells Charlie which checklists exist. It says nothing when there are none. |
"channels" | 7 · Live state. The window saves your ticks through it without starting an AI turn. |
Ideas to borrow
- Use
bootfor facts Charlie would otherwise get wrong. Checklist added it after Charlie once told someone they had no checklist while a 58-item one existed. - Return nothing from
bootwhen there's nothing to say. An empty line still costs Charlie attention. - Let a window save through
channels, so clicking a box is instant and doesn't need Charlie at all.