afk.debugger.Debugger to run agents in a structured debug mode without changing your core runtime architecture.
Quick start
Attach to a run handle
Redaction behavior
Whenredact_secrets=True, payload keys containing any of these markers are masked:
api_keytokensecretauthorizationpassword
Verbosity modes
basic: lightweight metadata and step markers.detailed: includes payload previews and step metadata.trace: highest detail for deep diagnostics.
Background tool scenario (coding + build + docs)
- Agent writes code.
- Agent calls
build_projectand receivestool_deferred. - Agent continues with
write_docsor other tasks. - Runner emits
tool_background_resolvedwhen build completes. - Agent uses resolved build output in a later step to finalize/fix.
External worker completion
For out-of-process execution, an external worker can complete a ticket by writing background state into memory:tool_background_resolved or
tool_background_failed, and injects a synthetic tool message for the next step.