sync¶
Synchronize execution state with target systems.
Synopsis¶
Description¶
The sync command performs bidirectional synchronization between VisionSpec projects and execution targets. It reads the current state from the target system and updates the project's execution state.
Arguments¶
| Argument | Description |
|---|---|
target |
Target system to sync: speckit, gsd, gastown |
Flags¶
| Flag | Description |
|---|---|
-p, --project |
Project name |
--dry-run |
Show what would be synced without making changes |
--format |
Output format: text, json (default: text) |
Supported Targets¶
SpecKit¶
Syncs with .specify/tasks.md file.
Parses task checkboxes:
[ ]- todo[x]- done
GSD¶
Syncs with STATE.md file.
Parses task markers:
[ ]- todo[~]- in_progress[x]- done
GasTown¶
Syncs with beads/*.toml files.
Parses TOML status field:
status = "ready"- todostatus = "blocked"- blockedstatus = "done"- done
Examples¶
Basic Sync¶
# Sync with SpecKit
visionspec sync speckit -p user-onboarding
# Sync with GSD
visionspec sync gsd -p api-refactor
# Sync with GasTown
visionspec sync gastown -p multi-agent-workflow
Dry Run¶
JSON Output¶
Execution State¶
After sync, the project's visionspec.yaml includes execution state:
execution:
target: speckit
synced_at: 2024-01-15T10:30:00Z
tasks:
- id: TASK-001
title: Implement user login
status: done
- id: TASK-002
title: Add password reset
status: in_progress
summary:
total_tasks: 10
todo_count: 3
in_progress: 2
done_count: 5
Status Integration¶
Use with status command to see execution progress: