forked from kent/consciousness
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:
parent
543e1bdc8a
commit
e3f7d6bd3c
4 changed files with 13 additions and 20 deletions
|
|
@ -132,7 +132,7 @@ fn job_targeted_agent(
|
|||
log_event(&job_name, "progress", msg);
|
||||
};
|
||||
super::knowledge::run_one_agent_with_keys(
|
||||
&mut store, &agent, std::slice::from_ref(&key), 5, "daemon", &log, false,
|
||||
&mut store, &agent, std::slice::from_ref(&key), 5, "daemon", &log,
|
||||
)?;
|
||||
ctx.log_line("done");
|
||||
Ok(())
|
||||
|
|
@ -217,7 +217,7 @@ fn job_consolidation_agent(
|
|||
// Use run_one_agent_with_keys — we already selected seeds above,
|
||||
// no need to re-run the query.
|
||||
let result = super::knowledge::run_one_agent_with_keys(
|
||||
&mut store, &agent, &claimed_keys, batch, "consolidate", &log, false,
|
||||
&mut store, &agent, &claimed_keys, batch, "consolidate", &log,
|
||||
).map(|_| ());
|
||||
|
||||
// Release all claimed keys (seeds + neighbors)
|
||||
|
|
@ -247,7 +247,7 @@ fn job_rename_agent(
|
|||
ctx.log_line(format!("running rename agent (batch={})", batch));
|
||||
|
||||
let log = |msg: &str| ctx.log_line(msg);
|
||||
let result = super::knowledge::run_one_agent(&mut store, "rename", batch, "consolidate", &log, false)?;
|
||||
let result = super::knowledge::run_one_agent(&mut store, "rename", batch, "consolidate", &log)?;
|
||||
|
||||
// Parse RENAME actions from response (rename uses its own format, not WRITE_NODE/LINK/REFINE)
|
||||
let mut applied = 0;
|
||||
|
|
|
|||
|
|
@ -54,7 +54,7 @@ pub fn run_and_apply_excluded(
|
|||
log: &(dyn Fn(&str) + Sync),
|
||||
exclude: &std::collections::HashSet<String>,
|
||||
) -> Result<(), String> {
|
||||
let result = run_one_agent_excluded(store, agent_name, batch_size, llm_tag, log, false, exclude)?;
|
||||
let result = run_one_agent_excluded(store, agent_name, batch_size, llm_tag, log, exclude)?;
|
||||
|
||||
// Mark conversation segments as mined after successful processing
|
||||
if agent_name == "observation" {
|
||||
|
|
@ -72,7 +72,6 @@ pub fn run_one_agent_with_keys(
|
|||
count: usize,
|
||||
llm_tag: &str,
|
||||
log: &(dyn Fn(&str) + Sync),
|
||||
debug: bool,
|
||||
) -> Result<AgentResult, String> {
|
||||
let def = super::defs::get_def(agent_name)
|
||||
.ok_or_else(|| format!("no .agent file for {}", agent_name))?;
|
||||
|
|
@ -91,7 +90,7 @@ pub fn run_one_agent_with_keys(
|
|||
store.record_agent_visits(&agent_batch.node_keys, agent_name).ok();
|
||||
}
|
||||
|
||||
run_one_agent_inner(store, agent_name, &def, agent_batch, llm_tag, log, debug)
|
||||
run_one_agent_inner(store, agent_name, &def, agent_batch, llm_tag, log)
|
||||
}
|
||||
|
||||
pub fn run_one_agent(
|
||||
|
|
@ -100,9 +99,8 @@ pub fn run_one_agent(
|
|||
batch_size: usize,
|
||||
llm_tag: &str,
|
||||
log: &(dyn Fn(&str) + Sync),
|
||||
debug: bool,
|
||||
) -> Result<AgentResult, String> {
|
||||
run_one_agent_excluded(store, agent_name, batch_size, llm_tag, log, debug, &Default::default())
|
||||
run_one_agent_excluded(store, agent_name, batch_size, llm_tag, log, &Default::default())
|
||||
}
|
||||
|
||||
/// Like run_one_agent but excludes nodes currently being worked on by other agents.
|
||||
|
|
@ -112,7 +110,6 @@ pub fn run_one_agent_excluded(
|
|||
batch_size: usize,
|
||||
llm_tag: &str,
|
||||
log: &(dyn Fn(&str) + Sync),
|
||||
debug: bool,
|
||||
exclude: &std::collections::HashSet<String>,
|
||||
) -> Result<AgentResult, String> {
|
||||
let def = super::defs::get_def(agent_name)
|
||||
|
|
@ -122,7 +119,7 @@ pub fn run_one_agent_excluded(
|
|||
let effective_count = def.count.unwrap_or(batch_size);
|
||||
let agent_batch = super::defs::run_agent(store, &def, effective_count, exclude)?;
|
||||
|
||||
run_one_agent_inner(store, agent_name, &def, agent_batch, llm_tag, log, debug)
|
||||
run_one_agent_inner(store, agent_name, &def, agent_batch, llm_tag, log)
|
||||
}
|
||||
|
||||
fn run_one_agent_inner(
|
||||
|
|
@ -132,7 +129,6 @@ fn run_one_agent_inner(
|
|||
agent_batch: super::prompts::AgentBatch,
|
||||
_llm_tag: &str,
|
||||
log: &(dyn Fn(&str) + Sync),
|
||||
debug: bool,
|
||||
) -> Result<AgentResult, String> {
|
||||
let prompt_kb = agent_batch.prompt.len() / 1024;
|
||||
let tools_desc = if def.tools.is_empty() { "no tools".into() }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue