Skip to main content

Crate coda_core

Crate coda_core 

Source
Expand description

CODA Core Execution Engine

The core engine for orchestrating Claude agent interactions. Provides configuration management, task execution, agent profile selection, and state tracking for CODA’s development workflow.

§Architecture

  • Engine orchestrates init, plan, run, and clean operations
  • PlanSession manages interactive planning conversations
  • Runner executes phased development (dynamic dev phases → review → verify)
  • FeatureScanner discovers features from .trees/ worktree directories
  • GitOps / GhOps abstract external CLI operations for testability
  • CodaConfig holds project configuration from .coda/config.yml
  • FeatureState tracks execution progress in state.yml

Re-exports§

pub use config::CodaConfig;
pub use gh::DefaultGhOps;
pub use gh::GhOps;
pub use gh::PrStatus;
pub use git::DefaultGitOps;
pub use git::GitOps;
pub use planner::PlanOutput;
pub use planner::PlanSession;
pub use profile::AgentProfile;
pub use profile::build_safety_hooks;
pub use project::find_project_root;
pub use reviewer::ReviewResult;
pub use runner::CommitInfo;
pub use runner::ReviewSummary;
pub use runner::RunEvent;
pub use runner::RunProgress;
pub use runner::Runner;
pub use runner::VerificationSummary;
pub use scanner::FeatureScanner;
pub use task::Task;
pub use task::TaskResult;
pub use task::TaskStatus;

Modules§

config
Configuration types for CODA projects.
gh
GitHub CLI operations abstraction.
git
Git operations abstraction.
parser
Response parsing utilities for agent output.
planner
Planning session for interactive feature planning.
profile
Agent profile configuration for Claude Agent SDK.
project
Project root discovery utilities.
reviewer
Reviewer types for agent-driven code review.
runner
Runner for executing feature development through phased stages.
scanner
Feature scanning and state lookup.
state
Feature state types for tracking execution progress.
task
Task types for CODA execution.

Structs§

CleanedWorktree
Result of cleaning a single worktree.
Engine
The core execution engine for CODA.

Enums§

CoreError
Error type for coda-core operations.

Functions§

remove_feature_logs
Removes the log directory for a feature at .coda/<slug>/logs/.
validate_feature_slug
Validates that a feature slug is URL-safe and suitable for use in branch names and filesystem paths.