pub struct AgentConfig {
pub port: u16,
pub claude_dir: PathBuf,
pub data_dir: PathBuf,
pub theme: Theme,
pub max_concurrency: usize,
pub testing_ratio: f64,
pub batch_size: usize,
pub yolo_mode: bool,
pub public_dir: Option<PathBuf>,
pub open_browser: bool,
}Expand description
Configuration for the agent monitoring system.
Fields§
§port: u16Port for the web server (default: 3456).
claude_dir: PathBufRoot directory for Claude/agent data (e.g., ~/.claude).
data_dir: PathBufData directory for application state.
theme: ThemeUI theme.
max_concurrency: usizeMaximum number of concurrent agent operations.
testing_ratio: f64Testing ratio for validation (0.0-1.0).
batch_size: usizeBatch size for bulk operations.
yolo_mode: boolEnable yolo mode (skip confirmations).
public_dir: Option<PathBuf>Optional custom public directory for static assets.
open_browser: boolOpen browser on server start.
Implementations§
Source§impl AgentConfig
impl AgentConfig
Sourcepub fn projects_dir(&self) -> PathBuf
pub fn projects_dir(&self) -> PathBuf
Get the projects directory path (~/.claude/projects).
Sourcepub fn features_db_path(&self, project: &str) -> PathBuf
pub fn features_db_path(&self, project: &str) -> PathBuf
Get the features database path for a specific project.
Sourcepub fn with_claude_dir(self, dir: PathBuf) -> Self
pub fn with_claude_dir(self, dir: PathBuf) -> Self
Set a custom claude directory.
Sourcepub const fn with_theme(self, theme: Theme) -> Self
pub const fn with_theme(self, theme: Theme) -> Self
Set a custom theme.
Sourcepub const fn with_yolo_mode(self, enabled: bool) -> Self
pub const fn with_yolo_mode(self, enabled: bool) -> Self
Set yolo mode.
Sourcepub fn with_public_dir(self, dir: PathBuf) -> Self
pub fn with_public_dir(self, dir: PathBuf) -> Self
Set custom public directory.
Sourcepub const fn with_open_browser(self, open: bool) -> Self
pub const fn with_open_browser(self, open: bool) -> Self
Set whether to open browser on start.
Trait Implementations§
Source§impl Clone for AgentConfig
impl Clone for AgentConfig
Source§fn clone(&self) -> AgentConfig
fn clone(&self) -> AgentConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AgentConfig
impl Debug for AgentConfig
Auto Trait Implementations§
impl Freeze for AgentConfig
impl RefUnwindSafe for AgentConfig
impl Send for AgentConfig
impl Sync for AgentConfig
impl Unpin for AgentConfig
impl UnwindSafe for AgentConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more