This reference document catalogs 50 distinct, production-ready use cases for the vybe CLI. These examples cover task management, memory persistence, resume flows, multi-agent coordination, pipeline dependencies, and automation hooks.
Creates a new task in the queue.
vybe task create --title "Refactor logger" --desc "Change log format to structured JSON"Expected Output:
{
"schema_version": "v1",
"success": true,
"data": {
"task": {
"id": "task_1716960000_2b3f",
"title": "Refactor logger",
"description": "Change log format to structured JSON",
"status": "pending",
"priority": 0,
"version": 1,
"created_at": "2026-05-30T03:38:36Z",
"updated_at": "2026-05-30T03:38:36Z"
},
"event_id": 177579
}
}Claims the task and sets its status to in_progress.
vybe task begin --id "task_1716960000_2b3f"Expected Output:
{
"schema_version": "v1",
"success": true,
"data": {
"task": {
"id": "task_1716960000_2b3f",
"title": "Refactor logger",
"description": "Change log format to structured JSON",
"status": "in_progress",
"priority": 0,
"version": 2,
"created_at": "2026-05-30T03:38:36Z",
"updated_at": "2026-05-30T03:38:37Z"
},
"status_event_id": 177580,
"focus_event_id": 177581
}
}Uses the sugar verb to complete the active task and logs a summary event.
vybe done "task_1716960000_2b3f" --note "Structured JSON logs wired to stderr"Expected Output:
{
"schema_version": "v1",
"success": true,
"data": {
"event_id": 177584,
"task_status": {
"task_id": "task_1716960000_2b3f",
"status": "completed",
"status_event_id": 177585,
"close_event_id": 177586
}
}
}Transitions the task status to blocked without designating execution failure.
vybe block "task_1716960000_2b3f" --reason "Waiting on team lead to approve configuration schema"Expected Output:
{
"schema_version": "v1",
"success": true,
"data": {
"task": {
"id": "task_1716960000_2b3f",
"title": "Refactor logger",
"description": "Change log format to structured JSON",
"status": "blocked",
"priority": 0,
"blocked_reason": "Waiting on team lead to approve configuration schema",
"version": 3,
"created_at": "2026-05-30T03:38:36Z",
"updated_at": "2026-05-30T03:38:37Z"
},
"event_id": 177582
}
}Designates a failure block so the deterministic focus selection algorithm will automatically skip it.
vybe block "task_1716960000_2b3f" --reason "Build compiler error on dependency x" --failureExpected Output:
{
"schema_version": "v1",
"success": true,
"data": {
"task": {
"id": "task_1716960000_2b3f",
"title": "Refactor logger",
"description": "Change log format to structured JSON",
"status": "blocked",
"priority": 0,
"blocked_reason": "failure:Build compiler error on dependency x",
"version": 3,
"created_at": "2026-05-30T03:38:36Z",
"updated_at": "2026-05-30T03:38:37Z"
},
"event_id": 177582
}
}Ensures this task is evaluated first in the pipeline when no active focus is set.
vybe task create --title "Patch security CVE" --priority 100 --desc "Urgent dependency update"Lists the tasks associated with a specific project directory.
vybe task list --project-id "proj_core_engine"Fetches task metadata by its ID.
vybe task get --id "task_1716960000_2b3f"Filters the task list by status.
vybe task list --status "blocked"Permanently removes a task record.
vybe task delete --id "task_1716960000_2b3f"Sets/updates active workspace context and returns the compiled prompt brief.
vybe resume --project-dir "/Users/vampire/go/src/vybe"Reads context details without consuming/advancing the agent's event cursor.
vybe resume --peekRestricts the number of event deltas fetched in this resume batch.
vybe resume --limit 50Changes active focus task directly through the resume operation.
vybe resume --focus "task_1716960000_2b3f"Re-runs resume to re-fetch the latest brief, ensuring no state is lost.
vybe resumeInitializes replica alignment by running resume under the same agent identifier.
vybe resume --agent "worker-replica-01"Extracts recent conversational prompts logged to the database.
vybe events --kind "user_prompt" --limit 5Retrieves past reasoning/thinking checkpoints logged by the agent.
vybe events --kind "reasoning" --limit 10Stores variables visible across all projects.
vybe remember "preferred_compiler=go1.22" --scope globalScopes configuration variables to a specific project.
vybe remember "build_cmd=go build ./cmd/vybe" --scope project --scope-id "proj_core"Saves transient parameters for a specific task.
vybe remember "max_refactor_loops=3" --scope task --scope-id "task_1716960000_2b3f"Scopes metrics or attributes to a specific agent identity.
vybe remember "preferred_model=gemini-2.5-pro" --scope agent --scope-id "worker-001"Creates a behavioral directive that renders under === Directives === at the top of the brief.
vybe remember "no_mock_db=Never mock SQLite in integration tests" --kind directive --scope globalStores retrospective notes with a fast-decaying default half-life (14 days).
vybe remember "use_wal_locks=WAL mode requires IMMEDIATE transaction lock" --kind lesson --scope projectRetrieves a single memory entry value.
vybe memory get --key "build_cmd" --scope project --scope-id "proj_core"Lists current memories matching the scope parameters.
vybe memory list --scope project --scope-id "proj_core"Erases a key-value entry.
vybe memory delete --key "max_refactor_loops" --scope task --scope-id "task_1716960000_2b3f"Applies a pin to force a memory entry to stay in the brief regardless of time-decay.
vybe memory pin --key "no_mock_db" --scope globalConfigures a key-value entry that expires automatically after 1 hour.
vybe memory set --key "temp_token" --value "abc123_temp" --ttl 1hSets custom mathematical relevance decay parameters (e.g. 5-day half-life).
vybe memory set --key "api_docs_cached" --value "https://..." --half-life-days 5Forces deletion of expired memory entries from the database.
vybe memory gcChecks retrieval diagnostics by querying memory details.
vybe memory get --key "preferred_compiler" --scope global(Querying increments access_count and updates last_accessed_at internally).
Ensures that subsequent memory set commands without --pin cannot unpin it.
vybe remember "important_invariant=Use atomic operations" --pinRemoves the pin explicitly.
vybe memory pin --key "important_invariant" --unpinClaims a task. If another agent claimed it concurrently, the version CAS check will reject the write.
vybe task begin --id "task_1716960000_2b3f"Logs progress and inspects output.
vybe remember "schema_ver=v2"(If a conflicting value is already written, vybe appends a memory_conflict system event details to the log).
Queries system status to retrieve agent activity telemetry.
vybe statusPerforms status updates while enforcing record version isolation.
vybe task set-status --id "task_1716960000_2b3f" --status "in_progress" --version 2Resolves conflicting cursors automatically during resumption.
vybe resume(Cursor advances to the highest event ID, resolving concurrent log updates).
Creates a task that blocks another task.
# Block task B on task A
vybe block "task_B" --reason "dependency"Transitions a blocked task back to pending.
vybe task set-status --id "task_B" --status "pending"Views future tasks ordered by priority and creation time in the brief.
vybe resume --peek(Parsed from the .data.brief.pipeline array).
Retries a failed API/CLI call safely. The request ID is unique to the attempt sequence.
vybe task create --title "Build index" --request-id "worker_task_build_index_101"Retrieves the exact cached resume response from the first attempt.
vybe resume --request-id "worker_resume_1716960000"Pushes multiple updates in a single, safe transaction.
vybe push --request-id "worker_push_1716960000" --json '{"task_id":"task_123","event":{"kind":"progress","message":"Completed setup"}}'Fetches recent events in raw output format.
vybe events --limit 20Records a structured progress event so future resumes surface the milestone.
vybe push --json '{
"task_id": "task_123",
"event": {
"kind": "progress",
"message": "Setup phase completed successfully — proceeding to implementation"
}
}'Retrieves all output paths registered to a task.
vybe artifacts --task-id "task_123"Integrates hooks into Claude Code configuration.
vybe hook installLogs code check-ins directly to the event stream.
vybe push --json "{\"task_id\":\"task_123\",\"event\":{\"kind\":\"progress\",\"message\":\"Git commit: $(git log -1 --oneline)\"}}"