/inbox — Quick Capture & Process
Dual-mode command for fast capture and later processing.
Context
Today's date: !date +%Y-%m-%d
Inbox contents: !ls inbox/*.md 2>/dev/null
Reference template: @_templates/inbox.md Config: @_core/config.yaml Processing logic: @_core/PROCESSING.md
Input
User input: $ARGUMENTS
Mode Detection
- •Capture mode: If $ARGUMENTS has content
- •Process mode: If $ARGUMENTS is empty
Capture Mode (with content)
- •
Auto-detect
- •Project: Look for project names from config
- •Type: daily, decision, blocker, meeting, doc
- •
Create Inbox Note
- •Filename:
inbox/{date}-{slug}.md - •Tag with detected project/type
- •Status: unprocessed
- •Filename:
- •
Output
codeCaptured to: inbox/{filename} Detected: {project} / {type} Process later with: /inbox
Process Mode (no content)
Use session tasks for batch visibility:
code
TaskCreate: "Scan and classify inbox items" activeForm: "Scanning inbox..." TaskCreate: "Route items to destinations" activeForm: "Routing inbox items..."
- •
Scan Inbox
- •List all
.mdfiles ininbox/ - •Read and classify each
- •List all
- •
Present Plan
code## Processing Plan | # | Content Preview | Type | Project | Action | |---|-----------------|------|---------|--------| | 1 | "Shipped login..." | daily | project-a | Update daily | | 2 | "Blocked on API..." | blocker | project-a | Create blocker | Proceed? (y/n/edit)
- •
Route Items
- •For each confirmed item:
- •Route to appropriate handler (/daily, /block, /decide, etc.)
- •Mark processed inbox files
- •For each confirmed item:
- •
Output
codeProcessed: {count} items - Daily updates: {count} - Blockers: {count} - Decisions: {count}