Skip to content

Commit 0903778

Browse files
author
StackMemory Bot (CLI)
committed
docs: add snapshot, preflight, and conductor to README and CLAUDE.md
Document new CLI commands (snapshot/snap, preflight/pf, conductor) in features list, CLI reference section, and project config.
1 parent 0b4b646 commit 0903778

2 files changed

Lines changed: 46 additions & 0 deletions

File tree

CLAUDE.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@ docs/ # Documentation
2525
- MCP Server: src/integrations/mcp/server.ts
2626
- Frame Manager: src/core/context/frame-manager.ts
2727
- Database: src/core/database/sqlite-adapter.ts
28+
- Snapshot: src/core/worktree/capture.ts
29+
- Preflight: src/core/worktree/preflight.ts
30+
- Conductor: src/cli/commands/orchestrator.ts
31+
- Shared Utils: src/core/utils/{git,text,fs}.ts
2832

2933
## Detailed Guides
3034

@@ -55,6 +59,10 @@ npm run linear:sync # Sync with Linear
5559
# StackMemory CLI
5660
stackmemory capture # Save session state for handoff
5761
stackmemory restore # Restore from captured state
62+
stackmemory snapshot save # Post-run context snapshot (alias: snap)
63+
stackmemory snapshot list # List recent snapshots
64+
stackmemory preflight # File overlap check for parallel tasks (alias: pf)
65+
stackmemory conductor start # Autonomous Linear→worktree→agent orchestrator
5866
```
5967

6068
## Working Directory

README.md

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ StackMemory is a **production-ready memory runtime** for AI coding tools that pr
2222
- **Multi-wrapper support**`claude-sm`, `codex-sm`, `opencode-sm` with auto context loading
2323
- **Skills system** with `/spec` and `/linear-run` for Claude Code
2424
- **Automatic hooks** for task tracking, Linear sync, and spec progress
25+
- **Snapshot capture** — post-run context snapshots for session handoff (`snapshot save`)
26+
- **Pre-flight overlap check** — predict file conflicts before parallel task dispatch (`preflight`)
27+
- **Conductor orchestrator** — polls Linear, creates worktrees, spawns agents with bounded concurrency
2528
- **Memory monitor daemon** with automatic capture/clear on RAM pressure
2629
- **Auto-save service** for periodic context persistence
2730
- **Comprehensive test coverage** across all core modules
@@ -63,6 +66,8 @@ Tools forget decisions and constraints between sessions. StackMemory makes conte
6366
- **Hooks**: automatic context save, task tracking, Linear sync, PROMPT_PLAN updates, cord tracing
6467
- **Prompt Forge**: watches CLAUDE.md and AGENTS.md for prompt optimization (GEPA)
6568
- **Safe branches**: worktree isolation with `--worktree` or `-w`
69+
- **Snapshot**: post-run context capture — records what changed, commits, and decisions (`stackmemory snapshot`)
70+
- **Pre-flight check**: file overlap prediction before parallel task dispatch (`stackmemory preflight`)
6671
- **Persistent context**: frames, anchors, decisions, retrieval
6772
- **Integrations**: Linear (API key + OAuth), DiffMem, Browser MCP, log-mcp (log analysis)
6873

@@ -351,6 +356,39 @@ npm run mcp:dev
351356

352357
See [docs/cli.md](https://github.com/stackmemoryai/stackmemory/blob/main/docs/cli.md) for the full command reference.
353358

359+
### Snapshot (`snapshot` / `snap`)
360+
361+
Capture a point-in-time snapshot of what changed on your branch — files modified, commits, and key decisions. Useful for session handoff and post-task review.
362+
363+
```bash
364+
# Save a snapshot of current branch state
365+
stackmemory snapshot save --task "add auth middleware"
366+
367+
# Save with explicit decisions
368+
stackmemory snap save -d "chose JWT over session cookies" -d "switched to argon2"
369+
370+
# List recent snapshots
371+
stackmemory snap list
372+
373+
# Show latest snapshot (or by branch)
374+
stackmemory snap show feature/auth
375+
```
376+
377+
### Pre-flight Check (`preflight` / `pf`)
378+
379+
Predict file overlaps before running parallel tasks. Uses git history, import graphs, and keyword matching to flag conflicts.
380+
381+
```bash
382+
# Check if two tasks can safely run in parallel
383+
stackmemory preflight "add user auth" "refactor database layer"
384+
385+
# With explicit file hints
386+
stackmemory pf "auth work" "db migration" -f "task1:src/auth.ts;task2:src/db.ts"
387+
388+
# JSON output for programmatic use
389+
stackmemory pf "task A" "task B" "task C" --json
390+
```
391+
354392
---
355393

356394
## Documentation

0 commit comments

Comments
 (0)