Upgrade workspace to edition 2024, add --local flag to agent run
Edition 2024 changes: - gen is reserved: rename variable in query/engine.rs - set_var is unsafe: wrap in unsafe block in cli/agent.rs - match ergonomics: add explicit & in spectral.rs filter closure New --local flag for `poc-memory agent run` bypasses the daemon and runs the agent directly in-process. Useful for testing agent prompt changes without waiting in the daemon queue. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
c153daacd5
commit
0a62832fe3
7 changed files with 1515 additions and 56 deletions
|
|
@ -587,6 +587,9 @@ enum AgentCmd {
|
|||
/// Debug — print full prompt and response
|
||||
#[arg(long)]
|
||||
debug: bool,
|
||||
/// Run locally instead of queuing to daemon
|
||||
#[arg(long)]
|
||||
local: bool,
|
||||
},
|
||||
/// Show spaced repetition replay queue
|
||||
#[command(name = "replay-queue")]
|
||||
|
|
@ -832,8 +835,8 @@ fn main() {
|
|||
AgentCmd::FactMine { path, batch, dry_run, output, min_messages }
|
||||
=> cli::agent::cmd_fact_mine(&path, batch, dry_run, output.as_deref(), min_messages),
|
||||
AgentCmd::FactMineStore { path } => cli::agent::cmd_fact_mine_store(&path),
|
||||
AgentCmd::Run { agent, count, target, query, dry_run, debug }
|
||||
=> cli::agent::cmd_run_agent(&agent, count, &target, query.as_deref(), dry_run, debug),
|
||||
AgentCmd::Run { agent, count, target, query, dry_run, debug, local }
|
||||
=> cli::agent::cmd_run_agent(&agent, count, &target, query.as_deref(), dry_run, debug, local),
|
||||
AgentCmd::ReplayQueue { count } => cli::agent::cmd_replay_queue(count),
|
||||
AgentCmd::Evaluate { matchups, model, dry_run }
|
||||
=> cli::agent::cmd_evaluate_agents(matchups, &model, dry_run),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue