remove --debug flag from agent run

The log file has everything now; --debug was redundant.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Kent Overstreet 2026-03-22 02:04:51 -04:00
parent 543e1bdc8a
commit e3f7d6bd3c
4 changed files with 13 additions and 20 deletions

View file

@ -3,13 +3,13 @@
use crate::store;
use crate::agents::llm;
pub fn cmd_run_agent(agent: &str, count: usize, target: &[String], query: Option<&str>, dry_run: bool, debug: bool, local: bool) -> Result<(), String> {
pub fn cmd_run_agent(agent: &str, count: usize, target: &[String], query: Option<&str>, dry_run: bool, local: bool) -> Result<(), String> {
if dry_run {
// SAFETY: single-threaded at this point (CLI startup, before any agent work)
unsafe { std::env::set_var("POC_MEMORY_DRY_RUN", "1"); }
}
let needs_local = local || debug || dry_run;
let needs_local = local || dry_run;
let has_targets = !target.is_empty() || query.is_some();
// Fast path: no explicit targets, daemon available — just queue via RPC
@ -51,7 +51,7 @@ pub fn cmd_run_agent(agent: &str, count: usize, target: &[String], query: Option
println!("[{}] [{}/{}] {}", agent, i + 1, resolved_targets.len(), key);
if i > 0 { store = store::Store::load()?; }
if let Err(e) = crate::agents::knowledge::run_one_agent_with_keys(
&mut store, agent, &[key.clone()], count, "test", &log, debug,
&mut store, agent, &[key.clone()], count, "test", &log,
) {
println!("[{}] ERROR on {}: {}", agent, key, e);
}
@ -71,7 +71,7 @@ pub fn cmd_run_agent(agent: &str, count: usize, target: &[String], query: Option
} else {
// Local execution (--local, --debug, dry-run, or daemon unavailable)
crate::agents::knowledge::run_one_agent(
&mut store, agent, count, "test", &log, debug,
&mut store, agent, count, "test", &log,
)?;
}
Ok(())