All updates

Gateway Events & Agent UX

Lifecycle events for handoff observability, pretty markdown rendering in generated agents, and dynamic trik reload.

feature
improvement

Gateway Lifecycle Events

The gateway now emits typed events (handoff:start, handoff:thinking, handoff:error, handoff:transfer_back, etc.) for real-time observability. Generated agent templates subscribe to these events and show status feedback during handoffs.

Pretty Markdown Rendering

Generated agent templates now render trik responses as formatted markdown in the terminal — bold, italic, code blocks, and syntax highlighting. Opt out with --no-pretty. Available in both TypeScript and Python templates.

Dynamic Trik Reload

The gateway emits trik:loaded and trik:unloaded lifecycle events. A new createAgent factory pattern automatically rebuilds the agent when triks change — no restart required.

Linter: SQLite Detection

The scanner now flags direct SQLite imports (node:sqlite, sqlite3, better-sqlite3, sql.js) as filesystem capability, closing a storage scoping bypass.