zot/examples/extensions/todo
patriceckhart a5fad05fa3 docs(ext): refresh examples and help text
Adds the todo panel example under examples/extensions, updates example manifests and READMEs to match the current extension API, and surfaces extension install/load commands in zot --help.
2026-04-22 20:50:55 +02:00
..
extension.json docs(ext): refresh examples and help text 2026-04-22 20:50:55 +02:00
go.mod docs(ext): refresh examples and help text 2026-04-22 20:50:55 +02:00
main.go docs(ext): refresh examples and help text 2026-04-22 20:50:55 +02:00
README.md docs(ext): refresh examples and help text 2026-04-22 20:50:55 +02:00
zot-todo-extension docs(ext): refresh examples and help text 2026-04-22 20:50:55 +02:00

todo — example zot extension (Go, interactive panel)

Demonstrates the interactive panel API plus a companion tool the model can call. The slash command opens a persistent todo panel; the tool lets zot read and update the same todo list.

Requirements

Go 1.22+.

Install

From this directory:

zot ext install .

The example is configured to run directly from source:

{
  "exec": "go",
  "args": ["run", "."]
}

That avoids architecture-specific binaries when sharing the example, as long as Go is installed.

Optional local build

cd examples/extensions/todo
go build -o todo-panel .

If you do build it, change extension.json back to:

{
  "exec": "./todo-panel"
}

Use

In zot:

  • /todo opens the panel

Features

  • /todo opens the panel
  • panel keys:
    • up/down - move
    • a - add with typed text
    • e - edit selected todo
    • x - toggle done
    • d - delete
    • r - redraw
    • esc - close panel
  • persistent storage in the extension data directory as todos.json
  • LLM tool: todo_manage
    • list
    • add
    • complete
    • edit
    • remove

Natural-language examples

  • Create a new entry named "Call Georg" on my to-do list.
  • Complete task "Call Georg".
  • Edit task "Call Georg" to "Call Georg tomorrow".
  • Remove task "Call Georg".

See also

  • examples/extensions/hello — Go SDK slash commands
  • examples/extensions/weather — Go SDK tool example
  • examples/extensions/guard — Go SDK intercept example
  • examples/extensions/scratchpad — TypeScript commands + tool
  • docs/extensions.md — full protocol reference