Skip to main content

coda_core/
lib.rs

1//! CODA Core Execution Engine
2//!
3//! The core engine for orchestrating Claude agent interactions. Provides
4//! configuration management, task execution, agent profile selection, and
5//! state tracking for CODA's development workflow.
6//!
7//! # Architecture
8//!
9//! - [`Engine`] orchestrates init, plan, run, and clean operations
10//! - [`PlanSession`] manages interactive planning conversations
11//! - [`Runner`] executes phased development (dynamic dev phases → review → verify)
12//! - [`FeatureScanner`] discovers features from `.trees/` worktree directories
13//! - [`GitOps`] / [`GhOps`] abstract external CLI operations for testability
14//! - [`CodaConfig`] holds project configuration from `.coda/config.yml`
15//! - [`FeatureState`](state::FeatureState) tracks execution progress in `state.yml`
16
17pub mod config;
18mod engine;
19mod error;
20pub mod gh;
21pub mod git;
22pub mod parser;
23pub mod planner;
24pub mod profile;
25pub mod project;
26pub mod reviewer;
27pub mod runner;
28pub mod scanner;
29pub mod state;
30pub mod task;
31
32pub use config::CodaConfig;
33pub use engine::{CleanedWorktree, Engine, remove_feature_logs, validate_feature_slug};
34pub use error::CoreError;
35pub use gh::{DefaultGhOps, GhOps, PrStatus};
36pub use git::{DefaultGitOps, GitOps};
37pub use planner::{PlanOutput, PlanSession};
38pub use profile::{AgentProfile, build_safety_hooks};
39pub use project::find_project_root;
40pub use reviewer::ReviewResult;
41pub use runner::{CommitInfo, ReviewSummary, RunEvent, RunProgress, Runner, VerificationSummary};
42pub use scanner::FeatureScanner;
43pub use task::{Task, TaskResult, TaskStatus};