Skip to content

Commit d5e2ff1

Browse files
committed
debugger: --metrics and --full-output replace --verbose; logs sit under their step; logs --last
- --verbose is gone; its two effects are separate flags: --metrics (per-reply latency and turn duration) and --full-output (untruncated tool results). - say --logs now prints a turn's log lines beneath the event they belong to, so a failing tool's traceback appears under the tool's error line rather than above it. - logs --lines/-n is now logs --last (with -n kept as the short form).
1 parent d798bcf commit d5e2ff1

5 files changed

Lines changed: 83 additions & 41 deletions

File tree

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -493,7 +493,7 @@ lk agent debugger say "Hi, what can you do?" # prints tool calls (with argument
493493
lk agent debugger say "Book a table for two tonight"
494494
lk agent debugger listen --timeout 15s # wait for the agent to speak unprompted (a timer, a follow-up after silence)
495495
lk agent debugger history # the whole conversation so far
496-
lk agent debugger logs -n 40 # the agent process's logs (tracebacks, warnings)
496+
lk agent debugger logs --last 40 # the agent process's logs (tracebacks, warnings)
497497
lk agent debugger status # active agent, its tools, state, log file
498498
lk agent debugger stop --transcript # closing summary, plus the whole conversation
499499
```
@@ -502,10 +502,10 @@ lk agent debugger stop --transcript # closing summary, plus the whole
502502
503503
Useful options:
504504
505-
- `say --logs` interleaves the agent's log lines with the turn, so a tool's traceback shows up next to the sanitized error the user would hear.
505+
- `say --logs` shows the agent's log lines beneath the step they belong to, so a tool's traceback appears right under the sanitized error the user would hear.
506506
- `say --timeout 30s` bounds how long to wait for the reply (default 2 minutes); the exit code is non-zero if the turn failed or timed out.
507507
- `--json` on any command prints machine-readable output. Each turn is a document with `text`, `reply`, `duration_ms`, and an `events` list of `message`, `tool_call`, `handoff`, `config`, `error`, and `log` entries.
508-
- `--verbose` shows full tool output and per-turn latency metrics.
508+
- `--metrics` adds per-turn latency metrics (time to first token, end-to-end) and `--full-output` shows tool results in full instead of a capped excerpt.
509509
- `restart` relaunches the agent with a fresh conversation after the code changes.
510510
- `listen --timeout 15s` waits for the agent to speak unprompted, for example after a tool set a timer, and prints whatever it says.
511511
- `--port` runs several sessions side by side (one agent per port).

0 commit comments

Comments
 (0)