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:
Kent Overstreet 2026-03-16 19:09:18 -04:00
parent c7509a0c2d
commit 7fe55e28bd
4 changed files with 32 additions and 7 deletions

View file

@ -548,6 +548,7 @@ pub fn resolve_naming(
/// Result of running a single agent through the common pipeline.
pub struct AgentResult {
pub prompt: String,
pub output: String,
pub actions: Vec<Action>,
pub no_ops: usize,
@ -693,6 +694,7 @@ pub fn run_one_agent(
}
Ok(AgentResult {
prompt: agent_batch.prompt,
output,
actions,
no_ops,