How vmvarela/ztd works
ZTD is a local, single-user task and continuity system for people working with an AI agent. Its main workflow captures an inbox note, processes it into an outcome such as work items, commits priorities to a plan, and prepares a read-only daily brief. The product also supports focus sessions, reviews, routines, knowledge and documents, source ingestion, provenance tracing, database preservation, and a local stdio MCP interface. The README documents these capabilities and the database as the authority; source excerpts do not include the Zig runtime, so internal call ownership beyond those documented flows is not inferred.
Main entry points: cli.zig Command interface · mcp.zig Stdio MCP server · core.zig SQLite store · install.zig Asset installer
Components 17
Interfaces
- Command interface
src/cli.zig - Stdio MCP server
src/mcp.zig - Asset installer
src/install.zig
Task workflow
- Capture inbox
src/cli.zig - Process outcomes
src/cli.zig - Goals and plans
src/cli.zig - Daily prepare
src/cli.zig - Focus sessions
src/cli.zig - Routines
src/cli.zig
Continuity
- Reviews and metrics
src/cli.zig - Knowledge documents
src/cli.zig - Source ingestion
src/cli.zig - Provenance trace
src/cli.zig - Scopes and context
src/domain.zig
Data and preservation
- SQLite store
src/store/core.zig - Export and snapshots
src/cli.zig
Other components
- Person or agent
Connections 17
- Person or agent → Command interface: runs commands
README.md - Person or agent → Stdio MCP server: connects over stdio
README.md - Command interface → Capture inbox: captures notes
README.md - Command interface → Process outcomes: processes inbox
README.md - Command interface → Goals and plans: commits plans
README.md - Command interface → Daily prepare: reads brief
README.md - Command interface → Focus sessions: runs sessions
README.md - Command interface → Routines: tracks routines
README.md - Command interface → Reviews and metrics: records reviews
README.md - Command interface → Knowledge documents: manages documents
README.md - Command interface → Source ingestion: feeds batches
README.md - Command interface → Provenance trace: traces links
README.md - Command interface → Scopes and context: binds commands
README.md - Command interface → SQLite store: reads and writes
README.md - Stdio MCP server → SQLite store: uses database authority
- Command interface → Export and snapshots: exports and snapshots
README.md - Person or agent → Asset installer: publishes assets
README.md