zot/examples
patriceckhart 83b64e2562 examples: scratchpad notes persist to .zot/scratchpad-notes.jsonl
Notes are now project-local and survive zot restarts. The
extension reads its cwd from the hello_ack handshake, then:

  - on /note    appends one line of {"at":..,"text":..} JSONL
                under <cwd>/.zot/scratchpad-notes.jsonl
  - on /notes   reads the in-memory cache (loaded on hello_ack)
  - on /clear-notes truncates the file and clears the cache
  - on read_notes (tool) returns the cached set

Single-writer assumption (one zot session per cwd at a time);
two concurrent zot processes writing to the same file would
interleave but JSONL line boundaries stay intact under POSIX
PIPE_BUF semantics. Good enough for an example.

Verified end-to-end: round 1 writes two notes via the slash
command, round 2 (fresh extension process, same cwd) loads
them and surfaces them via both /notes and the read_notes
tool.
2026-04-19 15:16:06 +02:00
..
extensions examples: scratchpad notes persist to .zot/scratchpad-notes.jsonl 2026-04-19 15:16:06 +02:00
rpc fix(rpc): wait for in-flight commands on stdin close, drop dup events 2026-04-19 12:35:13 +02:00
sdk feat: zotcore SDK + zot rpc subprocess protocol 2026-04-19 12:26:48 +02:00
skills feat: skills — reusable instructions discovered from SKILL.md files 2026-04-19 14:32:30 +02:00