name: session-workflow description: > Use when starting, running, or closing research sessions. Guides structured knowledge capture workflows: start → capture → synthesize → close. version: 1.0.0
Research Session Workflow
Sessions are the primary workflow unit in ztlctl. They provide structure, tracking, and enrichment for research activities.
Session Lifecycle
START → CAPTURE → SYNTHESIZE → CLOSE
1. Start (create_log MCP tool)
Begin a session with a clear topic:
- Creates a
LOG-NNNNentry tracking everything in this session - Only one session can be open at a time
- All content created during the session is linked via the
sessionfield
Before starting: Check the work queue and recent activity to orient yourself.
2. Capture (during session)
Create content as discoveries are made:
- Notes for insights and ideas (
create_note) - References for external sources (
create_reference) - Tasks for follow-up actions (
create_task) - Seeds for quick ideas (
garden_seed)
Best practices during capture:
- Use tags consistently (
domain/scopeformat) - Write wikilinks to connect new content to existing knowledge
- Set
topicto match the session focus for better reweave scoring - Check for existing content before creating duplicates (use
searchfirst)
3. Synthesize (before closing)
Review what was captured and create synthesis:
- Look for patterns across captured notes
- Create summary notes connecting related captures
- Run reweave to discover connections you missed
- Use graph tools (themes, gaps) to understand how new content fits
4. Close (session_close MCP tool)
Close the session with a summary. The close triggers an enrichment pipeline:
- Cross-session reweave — reweaves all notes/references created in this session
- Orphan sweep — finds notes with 0 outgoing links and attempts to connect them
- Integrity check — scans for broken links, orphan edges, missing files
- Graph materialization — persists PageRank, betweenness, cluster IDs
Always provide a summary when closing — it becomes part of the session record.
Pre-Close Checklist
Before closing a session, verify:
- Knowledge extraction — Were insights captured as notes?
- Resource capture — Were external sources saved as references?
- Decision recording — Were choices documented (decision subtype)?
- Task tracking — Were follow-ups captured as tasks?
- Connections made — Were new items linked to existing knowledge?
See references/session-checklist.md for the full checklist.
See references/enrichment.md for details on the enrichment pipeline.