scud/sync/mod.rs
1//! Sync SCUD tasks to Claude Code's Tasks format
2//!
3//! This module provides bidirectional sync between SCUD's task storage
4//! and Claude Code's native Tasks system (`~/.claude/tasks/`).
5//!
6//! # Overview
7//!
8//! Claude Code has a built-in Tasks feature that agents can access via
9//! `TaskList`, `TaskUpdate`, `TaskCreate` tools. By syncing SCUD tasks
10//! to this format, agents can see the full task list and dependencies
11//! during execution.
12//!
13//! # Usage
14//!
15//! ```no_run
16//! use scud::sync::claude_tasks;
17//! use scud::models::phase::Phase;
18//!
19//! let phase = Phase::new("my-feature".to_string());
20//! // ... add tasks to phase ...
21//!
22//! // Sync to Claude Tasks format
23//! let task_file = claude_tasks::sync_phase(&phase, "my-feature").unwrap();
24//! println!("Synced to: {}", task_file.display());
25//!
26//! // Get the task list ID for environment variable
27//! let list_id = claude_tasks::task_list_id("my-feature");
28//! // Set CLAUDE_CODE_TASK_LIST_ID={list_id} when spawning agents
29//! ```
30
31pub mod claude_tasks;
32
33pub use claude_tasks::*;