manage-memory-capture
Memory Capture
Usage
$manage-memory-capture
$manage-memory-capture "compact"
$manage-memory-capture "tip Always check state.json before phase operations --tag workflow,state"
$manage-memory-capture "compact Full auth implementation session"
Modes: compact (full session compression) or tip (quick note with tags).
No arguments: auto-detect or ask user.
Implementation
Step 1: Validate
test -d .workflow || exit 1 # E001: not initialized
Create .workflow/memory/ if it does not exist.
Step 2: Detect Mode
Parse first token as mode (compact or tip).
If absent or ambiguous, ask user via AskUserQuestion.
Step 3: Capture Content
Compact mode:
- Analyze current conversation for: objective, key decisions, modified files, current plan state, pending work
- Generate entry ID:
MEM-{YYYYMMDD}-{NNN} - Write
.workflow/memory/MEM-{id}.mdwith sections:- Objective, Key Decisions, Files Modified (absolute paths), Execution Plan (verbatim), Pending Work, Context Notes
Tip mode:
- Extract content (everything after
tip) and parse--tagflag - Generate entry ID:
TIP-{YYYYMMDD}-{NNN} - Write
.workflow/memory/TIP-{id}.mdwith: content, tags, timestamp, context
Step 4: Update Index
Read or create .workflow/memory/memory-index.json.
Append new entry metadata:
{
"id": "{entry_id}",
"type": "compact|tip",
"date": "{ISO}",
"title": "{short title}",
"tags": ["tag1", "tag2"],
"file": "{filename}"
}
Step 5: Confirm
=== MEMORY CAPTURED ===
ID: {entry_id}
Type: {compact|tip}
File: .workflow/memory/{filename}
Error Handling
| Code | Severity | Description |
|---|---|---|
| E001 | error | .workflow/ not initialized -- run Skill({ skill: "maestro-init" }) first |
| E002 | error | Empty note content in tip mode |
| W001 | warning | No active workflow session -- compact captures conversation only |
| W002 | warning | No explicit plan found -- using inferred plan |
More from catlog22/maestro-flow
spec-map
Analyze codebase with 4 parallel mapper agents via CSV wave pipeline. Produces .workflow/codebase/ documents for tech-stack, architecture, features, and cross-cutting concerns.
1manage-codebase-rebuild
Full codebase documentation rebuild via CSV wave pipeline. Spawns 5 parallel doc generator agents to scan project and produce complete .workflow/codebase/ documentation set. Replaces manage-codebase-rebuild command.
1maestro-quick
Fast-track single task execution with workflow guarantees — analyze, plan, execute in one pass
1quality-sync
Sync codebase docs after code changes -- traces git diff through component/feature/requirement layers
1maestro-roadmap
Lightweight roadmap generation via 2-wave CSV pipeline. Wave 1 runs parallel requirement analysis agents (scope, risk, dependency). Wave 2 runs roadmap assembly agent producing roadmap.md with phases, milestones, and success criteria. Replaces maestro-roadmap command.
1manage-memory
Manage memory entries across workflow and system stores (list, search, view, edit, delete, prune)
1