poc-memory agent run --debug: dump prompt and response
Add --debug flag that prints the full prompt and LLM response to stdout, making it easy to iterate on agent prompts. Also adds prompt field to AgentResult so callers can inspect what was sent. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
c7509a0c2d
commit
7fe55e28bd
4 changed files with 32 additions and 7 deletions
|
|
@ -568,6 +568,9 @@ enum AgentCmd {
|
|||
/// Dry run — set POC_MEMORY_DRY_RUN=1 so mutations are no-ops
|
||||
#[arg(long)]
|
||||
dry_run: bool,
|
||||
/// Debug — print full prompt and response
|
||||
#[arg(long)]
|
||||
debug: bool,
|
||||
},
|
||||
/// Show spaced repetition replay queue
|
||||
#[command(name = "replay-queue")]
|
||||
|
|
@ -811,8 +814,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, dry_run }
|
||||
=> cli::agent::cmd_run_agent(&agent, count, dry_run),
|
||||
AgentCmd::Run { agent, count, dry_run, debug }
|
||||
=> cli::agent::cmd_run_agent(&agent, count, dry_run, debug),
|
||||
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