agentdebugx 0.2.12__tar.gz → 0.3.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- agentdebugx-0.3.1/PKG-INFO +590 -0
- agentdebugx-0.3.1/README.md +523 -0
- agentdebugx-0.3.1/docs/ARCHITECTURE.md +181 -0
- agentdebugx-0.3.1/docs/TRACE_SCHEMA.md +289 -0
- agentdebugx-0.3.1/docs/assets/logo.png +0 -0
- agentdebugx-0.3.1/docs/assets/overview.pdf +0 -0
- agentdebugx-0.3.1/docs/assets/overview.png +0 -0
- {agentdebugx-0.2.12 → agentdebugx-0.3.1}/pyproject.toml +87 -13
- agentdebugx-0.3.1/src/agentdebug/__init__.py +346 -0
- agentdebugx-0.3.1/src/agentdebug/batch/README.md +30 -0
- agentdebugx-0.3.1/src/agentdebug/batch/__init__.py +17 -0
- agentdebugx-0.3.1/src/agentdebug/batch/workflow.py +285 -0
- agentdebugx-0.3.1/src/agentdebug/cli/README.md +90 -0
- agentdebugx-0.3.1/src/agentdebug/cli/__init__.py +5 -0
- agentdebugx-0.3.1/src/agentdebug/cli/__main__.py +5 -0
- agentdebugx-0.3.1/src/agentdebug/cli/commands/__init__.py +1 -0
- agentdebugx-0.3.1/src/agentdebug/cli/commands/batch.py +87 -0
- agentdebugx-0.3.1/src/agentdebug/cli/commands/config.py +5 -0
- agentdebugx-0.3.1/src/agentdebug/cli/commands/diagnose.py +5 -0
- agentdebugx-0.3.1/src/agentdebug/cli/commands/doctor.py +5 -0
- agentdebugx-0.3.1/src/agentdebug/cli/commands/hub.py +5 -0
- agentdebugx-0.3.1/src/agentdebug/cli/commands/ingest.py +5 -0
- agentdebugx-0.3.1/src/agentdebug/cli/commands/integrations.py +5 -0
- agentdebugx-0.3.1/src/agentdebug/cli/commands/rerun.py +5 -0
- agentdebugx-0.3.1/src/agentdebug/cli/commands/runner.py +42 -0
- agentdebugx-0.3.1/src/agentdebug/cli/commands/serve.py +5 -0
- agentdebugx-0.3.1/src/agentdebug/cli/commands/store.py +6 -0
- agentdebugx-0.3.1/src/agentdebug/cli/legacy.py +1814 -0
- agentdebugx-0.3.1/src/agentdebug/cli/main.py +182 -0
- agentdebugx-0.3.1/src/agentdebug/core/__init__.py +65 -0
- agentdebugx-0.3.1/src/agentdebug/core/events.py +3 -0
- agentdebugx-0.3.1/src/agentdebug/core/gui_taxonomy.py +3 -0
- agentdebugx-0.3.1/src/agentdebug/core/llm.py +3 -0
- agentdebugx-0.3.1/src/agentdebug/core/llm_channel.py +3 -0
- agentdebugx-0.3.1/src/agentdebug/core/models.py +3 -0
- agentdebugx-0.3.1/src/agentdebug/core/plugins/__init__.py +3 -0
- agentdebugx-0.3.1/src/agentdebug/core/plugins/registry.py +3 -0
- agentdebugx-0.3.1/src/agentdebug/core/plugins/types.py +3 -0
- agentdebugx-0.3.1/src/agentdebug/core/storage.py +3 -0
- agentdebugx-0.3.1/src/agentdebug/core/taxonomy.py +3 -0
- agentdebugx-0.3.1/src/agentdebug/diagnose/README.md +67 -0
- agentdebugx-0.3.1/src/agentdebug/diagnose/__init__.py +76 -0
- agentdebugx-0.3.1/src/agentdebug/diagnose/actions/__init__.py +110 -0
- agentdebugx-0.3.1/src/agentdebug/diagnose/actions/attribution.py +3 -0
- agentdebugx-0.3.1/src/agentdebug/diagnose/actions/hub/__init__.py +3 -0
- agentdebugx-0.3.1/src/agentdebug/diagnose/actions/hub/backend_base.py +3 -0
- agentdebugx-0.3.1/src/agentdebug/diagnose/actions/hub/backends.py +3 -0
- agentdebugx-0.3.1/src/agentdebug/diagnose/actions/hub/bundle.py +3 -0
- agentdebugx-0.3.1/src/agentdebug/diagnose/actions/hub/scrub.py +3 -0
- agentdebugx-0.3.1/src/agentdebug/diagnose/actions/integrations/__init__.py +3 -0
- agentdebugx-0.3.1/src/agentdebug/diagnose/actions/integrations/_templates.py +3 -0
- agentdebugx-0.3.1/src/agentdebug/diagnose/actions/integrations/claude_skill.py +3 -0
- agentdebugx-0.3.1/src/agentdebug/diagnose/actions/integrations/debug_skill.py +3 -0
- agentdebugx-0.3.1/src/agentdebug/diagnose/actions/integrations/openhands.py +3 -0
- agentdebugx-0.3.1/src/agentdebug/diagnose/actions/moe.py +3 -0
- agentdebugx-0.3.1/src/agentdebug/diagnose/actions/recovery.py +3 -0
- agentdebugx-0.3.1/src/agentdebug/diagnose/analyzers.py +3 -0
- agentdebugx-0.3.1/src/agentdebug/diagnose/attribute/README.md +41 -0
- agentdebugx-0.3.1/src/agentdebug/diagnose/attribute/__init__.py +40 -0
- {agentdebugx-0.2.12/src/agentdebug → agentdebugx-0.3.1/src/agentdebug/diagnose/attribute}/attribution.py +676 -152
- agentdebugx-0.3.1/src/agentdebug/diagnose/attribute/deep_memory.py +432 -0
- agentdebugx-0.3.1/src/agentdebug/diagnose/attribute/deepdebug.py +21 -0
- agentdebugx-0.3.1/src/agentdebug/diagnose/attribute/moe.py +780 -0
- agentdebugx-0.3.1/src/agentdebug/diagnose/component_manifests/__init__.py +0 -0
- agentdebugx-0.3.1/src/agentdebug/diagnose/component_manifests/attribute/__init__.py +0 -0
- agentdebugx-0.3.1/src/agentdebug/diagnose/component_manifests/attribute/all_at_once.json +11 -0
- agentdebugx-0.3.1/src/agentdebug/diagnose/component_manifests/attribute/binary_search.json +11 -0
- agentdebugx-0.3.1/src/agentdebug/diagnose/component_manifests/attribute/counterfactual.json +11 -0
- agentdebugx-0.3.1/src/agentdebug/diagnose/component_manifests/attribute/deepdebug.json +11 -0
- agentdebugx-0.3.1/src/agentdebug/diagnose/component_manifests/attribute/heuristic.json +11 -0
- agentdebugx-0.3.1/src/agentdebug/diagnose/component_manifests/attribute/step_by_step.json +11 -0
- agentdebugx-0.3.1/src/agentdebug/diagnose/component_manifests/detect/__init__.py +0 -0
- agentdebugx-0.3.1/src/agentdebug/diagnose/component_manifests/detect/heuristic.json +11 -0
- agentdebugx-0.3.1/src/agentdebug/diagnose/component_manifests/detect/llm_judge.json +11 -0
- agentdebugx-0.3.1/src/agentdebug/diagnose/component_manifests/recover/__init__.py +0 -0
- agentdebugx-0.3.1/src/agentdebug/diagnose/component_manifests/recover/auto_manual.json +11 -0
- agentdebugx-0.3.1/src/agentdebug/diagnose/component_manifests/recover/critic.json +11 -0
- agentdebugx-0.3.1/src/agentdebug/diagnose/component_manifests/recover/deepdebug.json +11 -0
- agentdebugx-0.3.1/src/agentdebug/diagnose/component_manifests/recover/reflexion.json +11 -0
- agentdebugx-0.3.1/src/agentdebug/diagnose/component_manifests/recover/saga_rollback.json +11 -0
- agentdebugx-0.3.1/src/agentdebug/diagnose/component_manifests/recover/self_refine.json +11 -0
- agentdebugx-0.3.1/src/agentdebug/diagnose/context.py +227 -0
- agentdebugx-0.3.1/src/agentdebug/diagnose/deep.py +3 -0
- agentdebugx-0.3.1/src/agentdebug/diagnose/deep_memory.py +3 -0
- agentdebugx-0.3.1/src/agentdebug/diagnose/detect/README.md +50 -0
- agentdebugx-0.3.1/src/agentdebug/diagnose/detect/__init__.py +41 -0
- {agentdebugx-0.2.12/src/agentdebug → agentdebugx-0.3.1/src/agentdebug/diagnose/detect}/analyzers.py +88 -46
- {agentdebugx-0.2.12/src/agentdebug → agentdebugx-0.3.1/src/agentdebug/diagnose/detect}/detectors.py +27 -162
- agentdebugx-0.2.12/src/agentdebug/judges.py → agentdebugx-0.3.1/src/agentdebug/diagnose/detect/judge.py +50 -17
- agentdebugx-0.3.1/src/agentdebug/diagnose/detect/rules/__init__.py +57 -0
- agentdebugx-0.3.1/src/agentdebug/diagnose/detect/rules/agenterrorbench.py +3 -0
- agentdebugx-0.3.1/src/agentdebug/diagnose/detect/rules/base.py +64 -0
- agentdebugx-0.3.1/src/agentdebug/diagnose/detect/rules/core.py +3 -0
- agentdebugx-0.3.1/src/agentdebug/diagnose/detect/rules/gui.py +3 -0
- agentdebugx-0.3.1/src/agentdebug/diagnose/detect/rules/packs/__init__.py +1 -0
- agentdebugx-0.3.1/src/agentdebug/diagnose/detect/rules/packs/agenterrorbench/__init__.py +3 -0
- agentdebugx-0.3.1/src/agentdebug/diagnose/detect/rules/packs/agenterrorbench/manifest.json +15 -0
- agentdebugx-0.3.1/src/agentdebug/diagnose/detect/rules/packs/agenterrorbench/rules.py +102 -0
- agentdebugx-0.3.1/src/agentdebug/diagnose/detect/rules/packs/core/__init__.py +3 -0
- agentdebugx-0.3.1/src/agentdebug/diagnose/detect/rules/packs/core/manifest.json +16 -0
- agentdebugx-0.3.1/src/agentdebug/diagnose/detect/rules/packs/core/rules.py +587 -0
- agentdebugx-0.3.1/src/agentdebug/diagnose/detect/rules/packs/gui/__init__.py +3 -0
- agentdebugx-0.3.1/src/agentdebug/diagnose/detect/rules/packs/gui/manifest.json +17 -0
- agentdebugx-0.3.1/src/agentdebug/diagnose/detect/rules/packs/gui/rules.py +33 -0
- agentdebugx-0.3.1/src/agentdebug/diagnose/detect/rules/registry.py +134 -0
- agentdebugx-0.3.1/src/agentdebug/diagnose/detect/rules.py +3 -0
- agentdebugx-0.3.1/src/agentdebug/diagnose/detect/taxonomy_induction.py +545 -0
- agentdebugx-0.3.1/src/agentdebug/diagnose/detectors.py +3 -0
- agentdebugx-0.3.1/src/agentdebug/diagnose/deterministic.py +41 -0
- agentdebugx-0.3.1/src/agentdebug/diagnose/gui_rca.py +201 -0
- agentdebugx-0.3.1/src/agentdebug/diagnose/judge.py +5 -0
- agentdebugx-0.3.1/src/agentdebug/diagnose/judges.py +3 -0
- agentdebugx-0.3.1/src/agentdebug/diagnose/pipeline.py +110 -0
- agentdebugx-0.3.1/src/agentdebug/diagnose/profiles/README.md +50 -0
- agentdebugx-0.3.1/src/agentdebug/diagnose/profiles/__init__.py +17 -0
- agentdebugx-0.3.1/src/agentdebug/diagnose/profiles/deepdebug.py +536 -0
- agentdebugx-0.3.1/src/agentdebug/diagnose/recover/README.md +54 -0
- agentdebugx-0.3.1/src/agentdebug/diagnose/recover/__init__.py +36 -0
- {agentdebugx-0.2.12/src/agentdebug → agentdebugx-0.3.1/src/agentdebug/diagnose/recover}/recovery.py +232 -20
- agentdebugx-0.3.1/src/agentdebug/diagnose/registry.py +154 -0
- agentdebugx-0.3.1/src/agentdebug/diagnose/rules/__init__.py +3 -0
- agentdebugx-0.3.1/src/agentdebug/diagnose/rules/agenterrorbench.py +3 -0
- agentdebugx-0.3.1/src/agentdebug/diagnose/rules/base.py +3 -0
- agentdebugx-0.3.1/src/agentdebug/diagnose/rules/core.py +3 -0
- agentdebugx-0.3.1/src/agentdebug/diagnose/rules/gui.py +3 -0
- agentdebugx-0.3.1/src/agentdebug/diagnose/rules/registry.py +3 -0
- agentdebugx-0.3.1/src/agentdebug/diagnose/taxonomy_induction.py +3 -0
- agentdebugx-0.3.1/src/agentdebug/hub/README.md +29 -0
- {agentdebugx-0.2.12 → agentdebugx-0.3.1}/src/agentdebug/hub/backends.py +2 -2
- {agentdebugx-0.2.12 → agentdebugx-0.3.1}/src/agentdebug/hub/bundle.py +5 -2
- {agentdebugx-0.2.12 → agentdebugx-0.3.1}/src/agentdebug/hub/scrub.py +4 -4
- agentdebugx-0.3.1/src/agentdebug/ingest/README.md +42 -0
- agentdebugx-0.3.1/src/agentdebug/ingest/__init__.py +23 -0
- agentdebugx-0.3.1/src/agentdebug/ingest/adapters/__init__.py +52 -0
- {agentdebugx-0.2.12/src/agentdebug → agentdebugx-0.3.1/src/agentdebug/ingest}/adapters/base.py +1 -1
- {agentdebugx-0.2.12/src/agentdebug → agentdebugx-0.3.1/src/agentdebug/ingest}/adapters/crewai.py +84 -46
- agentdebugx-0.3.1/src/agentdebug/ingest/adapters/gaia_odr.py +287 -0
- agentdebugx-0.3.1/src/agentdebug/ingest/adapters/importers.py +2369 -0
- {agentdebugx-0.2.12/src/agentdebug → agentdebugx-0.3.1/src/agentdebug/ingest}/adapters/langgraph.py +65 -4
- {agentdebugx-0.2.12/src/agentdebug → agentdebugx-0.3.1/src/agentdebug/ingest}/adapters/openai_agents.py +3 -3
- agentdebugx-0.3.1/src/agentdebug/ingest/adapters/osworld.py +160 -0
- {agentdebugx-0.2.12/src/agentdebug → agentdebugx-0.3.1/src/agentdebug/ingest}/adapters/otel.py +3 -3
- {agentdebugx-0.2.12/src/agentdebug → agentdebugx-0.3.1/src/agentdebug/ingest}/adapters/raw.py +5 -4
- agentdebugx-0.3.1/src/agentdebug/ingest/core/__init__.py +47 -0
- agentdebugx-0.3.1/src/agentdebug/ingest/importers.py +17 -0
- {agentdebugx-0.2.12/src/agentdebug → agentdebugx-0.3.1/src/agentdebug/ingest}/instrumentation.py +4 -3
- {agentdebugx-0.2.12/src/agentdebug → agentdebugx-0.3.1/src/agentdebug/ingest}/recorder.py +3 -3
- agentdebugx-0.3.1/src/agentdebug/inspect/README.md +46 -0
- agentdebugx-0.3.1/src/agentdebug/inspect/__init__.py +30 -0
- {agentdebugx-0.2.12/src/agentdebug → agentdebugx-0.3.1/src/agentdebug/inspect}/traceback.py +11 -4
- agentdebugx-0.3.1/src/agentdebug/inspect/ui/__init__.py +14 -0
- agentdebugx-0.3.1/src/agentdebug/inspect/ui/app.py +36 -0
- agentdebugx-0.3.1/src/agentdebug/inspect/ui/branch_store.py +123 -0
- agentdebugx-0.3.1/src/agentdebug/inspect/ui/routes.py +407 -0
- agentdebugx-0.3.1/src/agentdebug/inspect/ui/server.py +60 -0
- agentdebugx-0.3.1/src/agentdebug/inspect/ui/services.py +685 -0
- agentdebugx-0.3.1/src/agentdebug/inspect/ui/views.py +8172 -0
- agentdebugx-0.3.1/src/agentdebug/integrations/README.md +36 -0
- {agentdebugx-0.2.12 → agentdebugx-0.3.1}/src/agentdebug/integrations/__init__.py +14 -1
- agentdebugx-0.3.1/src/agentdebug/integrations/_templates.py +404 -0
- agentdebugx-0.3.1/src/agentdebug/integrations/agentdebug_skill/SKILL.md +87 -0
- agentdebugx-0.3.1/src/agentdebug/integrations/agentdebug_skill/references/analysis.md +66 -0
- agentdebugx-0.3.1/src/agentdebug/integrations/agentdebug_skill/references/cli_reference.md +307 -0
- agentdebugx-0.3.1/src/agentdebug/integrations/agentdebug_skill/references/formats.md +113 -0
- agentdebugx-0.3.1/src/agentdebug/integrations/agentdebug_skill/references/recovery.md +99 -0
- agentdebugx-0.3.1/src/agentdebug/integrations/agentdebug_skill/references/safety.md +11 -0
- agentdebugx-0.3.1/src/agentdebug/integrations/agentdebug_skill/references/setup.md +146 -0
- agentdebugx-0.3.1/src/agentdebug/integrations/claude_skill.py +123 -0
- agentdebugx-0.3.1/src/agentdebug/integrations/debug_skill.py +186 -0
- {agentdebugx-0.2.12 → agentdebugx-0.3.1}/src/agentdebug/integrations/openhands.py +9 -15
- agentdebugx-0.3.1/src/agentdebug/py.typed +1 -0
- agentdebugx-0.3.1/src/agentdebug/rerun/ACTOR_TASK_SPEC.md +92 -0
- agentdebugx-0.3.1/src/agentdebug/rerun/README.md +96 -0
- agentdebugx-0.3.1/src/agentdebug/rerun/RUNNER_SPEC.md +240 -0
- agentdebugx-0.3.1/src/agentdebug/rerun/SIMULATION_SPEC.md +110 -0
- agentdebugx-0.3.1/src/agentdebug/rerun/__init__.py +94 -0
- agentdebugx-0.3.1/src/agentdebug/rerun/actor_task.py +151 -0
- agentdebugx-0.3.1/src/agentdebug/rerun/branch.py +57 -0
- agentdebugx-0.3.1/src/agentdebug/rerun/evaluators.py +36 -0
- agentdebugx-0.3.1/src/agentdebug/rerun/executors/__init__.py +39 -0
- agentdebugx-0.3.1/src/agentdebug/rerun/executors/base.py +43 -0
- agentdebugx-0.3.1/src/agentdebug/rerun/executors/http_live.py +284 -0
- agentdebugx-0.3.1/src/agentdebug/rerun/executors/llm_continuation.py +397 -0
- agentdebugx-0.3.1/src/agentdebug/rerun/executors/process_live.py +123 -0
- agentdebugx-0.3.1/src/agentdebug/rerun/http_service.py +339 -0
- agentdebugx-0.3.1/src/agentdebug/rerun/live_validation.py +64 -0
- agentdebugx-0.3.1/src/agentdebug/rerun/request.py +57 -0
- agentdebugx-0.3.1/src/agentdebug/rerun/workflow.py +478 -0
- agentdebugx-0.3.1/src/agentdebug/runtime/README.md +26 -0
- agentdebugx-0.3.1/src/agentdebug/runtime/__init__.py +26 -0
- {agentdebugx-0.2.12/src/agentdebug → agentdebugx-0.3.1/src/agentdebug/runtime}/events.py +3 -2
- agentdebugx-0.3.1/src/agentdebug/runtime/gui_taxonomy.py +106 -0
- {agentdebugx-0.2.12/src/agentdebug → agentdebugx-0.3.1/src/agentdebug/runtime}/llm.py +82 -4
- agentdebugx-0.3.1/src/agentdebug/runtime/llm_channel.py +156 -0
- agentdebugx-0.3.1/src/agentdebug/runtime/plugins/__init__.py +30 -0
- agentdebugx-0.3.1/src/agentdebug/runtime/plugins/registry.py +134 -0
- agentdebugx-0.3.1/src/agentdebug/runtime/plugins/types.py +29 -0
- {agentdebugx-0.2.12/src/agentdebug → agentdebugx-0.3.1/src/agentdebug/runtime}/storage.py +119 -6
- agentdebugx-0.3.1/src/agentdebug/schema/README.md +30 -0
- agentdebugx-0.3.1/src/agentdebug/schema/__init__.py +49 -0
- {agentdebugx-0.2.12/src/agentdebug → agentdebugx-0.3.1/src/agentdebug/schema}/models.py +53 -1
- {agentdebugx-0.2.12/src/agentdebug → agentdebugx-0.3.1/src/agentdebug/schema}/taxonomy.py +1 -1
- agentdebugx-0.2.12/PKG-INFO +0 -250
- agentdebugx-0.2.12/README.md +0 -207
- agentdebugx-0.2.12/docs/00_overview.md +0 -138
- agentdebugx-0.2.12/docs/01_literature_survey.md +0 -208
- agentdebugx-0.2.12/docs/02_architecture.md +0 -210
- agentdebugx-0.2.12/docs/03_taxonomy.md +0 -173
- agentdebugx-0.2.12/docs/04_trace_schema.md +0 -235
- agentdebugx-0.2.12/docs/05_adapters.md +0 -434
- agentdebugx-0.2.12/docs/06_detectors.md +0 -224
- agentdebugx-0.2.12/docs/07_attribution.md +0 -218
- agentdebugx-0.2.12/docs/08_recovery.md +0 -250
- agentdebugx-0.2.12/docs/09_error_database.md +0 -174
- agentdebugx-0.2.12/docs/10_taxonomy_induction.md +0 -123
- agentdebugx-0.2.12/docs/11_multimodal.md +0 -110
- agentdebugx-0.2.12/docs/12_ui_dashboard.md +0 -200
- agentdebugx-0.2.12/docs/13_class_design.md +0 -539
- agentdebugx-0.2.12/docs/14_api_reference.md +0 -311
- agentdebugx-0.2.12/docs/15_roadmap.md +0 -168
- agentdebugx-0.2.12/docs/16_governance.md +0 -107
- agentdebugx-0.2.12/docs/17_claude_code_design_patterns.md +0 -281
- agentdebugx-0.2.12/docs/18_comparison_codex_vs_design.md +0 -101
- agentdebugx-0.2.12/docs/19_error_hub.md +0 -148
- agentdebugx-0.2.12/docs/20_deep_debug.md +0 -181
- agentdebugx-0.2.12/docs/21_integrations.md +0 -196
- agentdebugx-0.2.12/docs/22_industry_track_paper_eval_plan.md +0 -260
- agentdebugx-0.2.12/docs/23_status_v0_2.md +0 -187
- agentdebugx-0.2.12/docs/ERROR_TAXONOMY.md +0 -69
- agentdebugx-0.2.12/docs/OPEN_SOURCE_DEVELOPMENT_PLAN.md +0 -259
- agentdebugx-0.2.12/docs/README.md +0 -53
- agentdebugx-0.2.12/docs/RESEARCH_SURVEY.md +0 -200
- agentdebugx-0.2.12/docs/benchmarks/e2e_v0_2_3.md +0 -373
- agentdebugx-0.2.12/docs/benchmarks/e2e_v0_2_4.md +0 -365
- agentdebugx-0.2.12/docs/benchmarks/v0_1_smoke.json +0 -182
- agentdebugx-0.2.12/docs/benchmarks/v0_1_smoke.md +0 -58
- agentdebugx-0.2.12/docs/benchmarks/who_when_v0_2_6_leaderboard.md +0 -74
- agentdebugx-0.2.12/src/agentdebug/__init__.py +0 -119
- agentdebugx-0.2.12/src/agentdebug/adapters/__init__.py +0 -10
- agentdebugx-0.2.12/src/agentdebug/cli.py +0 -535
- agentdebugx-0.2.12/src/agentdebug/deep.py +0 -554
- agentdebugx-0.2.12/src/agentdebug/integrations/claude_skill.py +0 -161
- agentdebugx-0.2.12/src/agentdebug/ui/__init__.py +0 -14
- agentdebugx-0.2.12/src/agentdebug/ui/server.py +0 -644
- {agentdebugx-0.2.12 → agentdebugx-0.3.1}/LICENSE +0 -0
- {agentdebugx-0.2.12 → agentdebugx-0.3.1}/src/agentdebug/hub/__init__.py +0 -0
- {agentdebugx-0.2.12 → agentdebugx-0.3.1}/src/agentdebug/hub/backend_base.py +0 -0
|
@@ -0,0 +1,590 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: agentdebugx
|
|
3
|
+
Version: 0.3.1
|
|
4
|
+
Summary: Portable error analysis, tracing, and recovery framework for agentic AI systems. Import as `agentdebug`.
|
|
5
|
+
License: MIT
|
|
6
|
+
License-File: LICENSE
|
|
7
|
+
Keywords: llm,agents,debugging,observability,failure-analysis,agent-debugging,agentic-ai,tracing,evaluation
|
|
8
|
+
Author: ULab @ UIUC
|
|
9
|
+
Author-email: ulab@illinois.edu
|
|
10
|
+
Requires-Python: >=3.9,<4.0
|
|
11
|
+
Classifier: Development Status :: 4 - Beta
|
|
12
|
+
Classifier: Intended Audience :: Developers
|
|
13
|
+
Classifier: Intended Audience :: Science/Research
|
|
14
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
15
|
+
Classifier: Operating System :: OS Independent
|
|
16
|
+
Classifier: Programming Language :: Python :: 3
|
|
17
|
+
Classifier: Programming Language :: Python :: 3.9
|
|
18
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
19
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
20
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
21
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
22
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
23
|
+
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
|
|
24
|
+
Classifier: Topic :: Software Development :: Debuggers
|
|
25
|
+
Classifier: Topic :: Software Development :: Quality Assurance
|
|
26
|
+
Classifier: Topic :: System :: Monitoring
|
|
27
|
+
Classifier: Typing :: Typed
|
|
28
|
+
Provides-Extra: all
|
|
29
|
+
Provides-Extra: crewai
|
|
30
|
+
Provides-Extra: gui
|
|
31
|
+
Provides-Extra: hub-hf
|
|
32
|
+
Provides-Extra: langgraph
|
|
33
|
+
Provides-Extra: openai-agents
|
|
34
|
+
Provides-Extra: otel
|
|
35
|
+
Provides-Extra: ui
|
|
36
|
+
Requires-Dist: anthropic ; extra == "gui" or extra == "all"
|
|
37
|
+
Requires-Dist: backoff ; extra == "gui" or extra == "all"
|
|
38
|
+
Requires-Dist: chromadb ; extra == "gui" or extra == "all"
|
|
39
|
+
Requires-Dist: crewai ; extra == "crewai" or extra == "all"
|
|
40
|
+
Requires-Dist: fastapi ; extra == "ui" or extra == "all"
|
|
41
|
+
Requires-Dist: httpx (>=0.24,<1.0)
|
|
42
|
+
Requires-Dist: huggingface_hub ; extra == "hub-hf" or extra == "all"
|
|
43
|
+
Requires-Dist: langchain-chroma ; extra == "gui" or extra == "all"
|
|
44
|
+
Requires-Dist: langchain-core ; extra == "langgraph" or extra == "gui" or extra == "all"
|
|
45
|
+
Requires-Dist: langchain-openai ; extra == "gui" or extra == "all"
|
|
46
|
+
Requires-Dist: matplotlib ; extra == "gui" or extra == "all"
|
|
47
|
+
Requires-Dist: numpy ; extra == "gui" or extra == "all"
|
|
48
|
+
Requires-Dist: openai ; extra == "gui" or extra == "all"
|
|
49
|
+
Requires-Dist: openai-agents ; extra == "openai-agents" or extra == "all"
|
|
50
|
+
Requires-Dist: opentelemetry-api ; extra == "otel" or extra == "all"
|
|
51
|
+
Requires-Dist: opentelemetry-sdk ; extra == "otel" or extra == "all"
|
|
52
|
+
Requires-Dist: pandas ; extra == "gui" or extra == "all"
|
|
53
|
+
Requires-Dist: pillow ; extra == "gui" or extra == "all"
|
|
54
|
+
Requires-Dist: pydantic (>=1.10,<3.0)
|
|
55
|
+
Requires-Dist: python-dotenv ; extra == "gui" or extra == "all"
|
|
56
|
+
Requires-Dist: scikit-learn ; extra == "gui" or extra == "all"
|
|
57
|
+
Requires-Dist: streamlit ; extra == "gui" or extra == "all"
|
|
58
|
+
Requires-Dist: streamlit-adjustable-columns ; extra == "gui" or extra == "all"
|
|
59
|
+
Requires-Dist: together ; extra == "gui" or extra == "all"
|
|
60
|
+
Requires-Dist: tqdm ; extra == "gui" or extra == "all"
|
|
61
|
+
Requires-Dist: uvicorn ; extra == "ui" or extra == "all"
|
|
62
|
+
Project-URL: Documentation, https://github.com/AgentDebugX/AgentDebugX
|
|
63
|
+
Project-URL: Homepage, https://www.agentdebugx.com
|
|
64
|
+
Project-URL: Repository, https://github.com/AgentDebugX/AgentDebugX
|
|
65
|
+
Description-Content-Type: text/markdown
|
|
66
|
+
|
|
67
|
+
<div align="center">
|
|
68
|
+
|
|
69
|
+
<img src="docs/assets/logo.png" alt="AgentDebugX logo" width="360">
|
|
70
|
+
|
|
71
|
+
# AgentDebugX
|
|
72
|
+
|
|
73
|
+
**A local-first debugging framework for agentic AI systems: diagnose failures, attribute root causes, recover with evidence, and validate fixes through reruns.**
|
|
74
|
+
|
|
75
|
+
<a href="https://www.agentdebugx.com"><img src="https://img.shields.io/badge/WEBSITE-208B57?style=for-the-badge&logo=googlechrome&logoColor=white" alt="AgentDebugX website"></a>
|
|
76
|
+
<a href="https://github.com/AgentDebugX/AgentDebugX"><img src="https://img.shields.io/badge/GITHUB-24292F?style=for-the-badge&logo=github&logoColor=white" alt="AgentDebugX GitHub repository"></a>
|
|
77
|
+
<a href="https://youtu.be/ztni6w0o_l8"><img src="https://img.shields.io/badge/DEMO_VIDEO-EA4335?style=for-the-badge&logo=youtube&logoColor=white" alt="AgentDebugX demo video"></a>
|
|
78
|
+
|
|
79
|
+
[](https://pypi.org/project/agentdebugx/)
|
|
80
|
+
[](LICENSE)
|
|
81
|
+
[](pyproject.toml)
|
|
82
|
+
[](https://github.com/AgentDebugX/AgentDebugX/stargazers)
|
|
83
|
+
[](https://github.com/AgentDebugX/AgentDebugX/forks)
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
</div>
|
|
87
|
+
|
|
88
|
+
---
|
|
89
|
+
|
|
90
|
+
AgentDebugX turns failed agent runs into structured, auditable debugging
|
|
91
|
+
artifacts. It ingests a live or exported trajectory, detects visible failure
|
|
92
|
+
signals, attributes them to responsible steps or agents, proposes recovery
|
|
93
|
+
actions, and prepares controlled reruns so fixes can be validated instead of
|
|
94
|
+
guessed.
|
|
95
|
+
|
|
96
|
+
The project is designed for researchers and engineers building complex LLM
|
|
97
|
+
agents: multi-agent systems, tool-using agents, computer-use agents, benchmark
|
|
98
|
+
runners, and local agent development workflows. AgentDebugX is local-first by
|
|
99
|
+
default: traces stay on your machine, sharing is opt-in, and recovery proposals
|
|
100
|
+
carry explicit policy and approval metadata into the Rerun boundary.
|
|
101
|
+
|
|
102
|
+
## System Overview
|
|
103
|
+
|
|
104
|
+
<p align="center">
|
|
105
|
+
<img src="docs/assets/overview.png" alt="AgentDebugX system overview" width="900">
|
|
106
|
+
</p>
|
|
107
|
+
|
|
108
|
+
AgentDebugX follows the two-stage loop used by the project paper:
|
|
109
|
+
|
|
110
|
+
```text
|
|
111
|
+
Diagnose = Detect -> Attribute -> Recover
|
|
112
|
+
Rerun = checkpoint -> retry directive -> branch execution -> evaluation
|
|
113
|
+
```
|
|
114
|
+
|
|
115
|
+
`Diagnose` explains what failed and why. `Rerun` tests whether the proposed
|
|
116
|
+
recovery actually improves the agent behavior.
|
|
117
|
+
|
|
118
|
+
## Why AgentDebugX
|
|
119
|
+
|
|
120
|
+
Tracing tools show what happened. AgentDebugX focuses on the debugging step that
|
|
121
|
+
usually comes next:
|
|
122
|
+
|
|
123
|
+
- Which earlier decision caused the visible failure?
|
|
124
|
+
- Which agent, tool call, memory read, handoff, or GUI action was responsible?
|
|
125
|
+
- What evidence supports that diagnosis?
|
|
126
|
+
- What concrete recovery should be tried?
|
|
127
|
+
- Did the rerun branch improve the outcome?
|
|
128
|
+
|
|
129
|
+
The output is a portable diagnostic report that can be inspected in a local UI,
|
|
130
|
+
used by a CLI workflow, stored in an Error Hub bundle, or invoked from an
|
|
131
|
+
agentic skill.
|
|
132
|
+
|
|
133
|
+
## Core Capabilities
|
|
134
|
+
|
|
135
|
+
- **Portable trace schema**: framework-agnostic trajectory, event, finding, and
|
|
136
|
+
diagnostic report models.
|
|
137
|
+
- **Ingest adapters**: normalize raw JSON, LangGraph, CrewAI, OpenAI Agents SDK,
|
|
138
|
+
OpenTelemetry, GAIA/Open Deep Research, OSWorld, and other exported traces.
|
|
139
|
+
- **Detect**: deterministic analyzers, manifest-backed rule packs, LLM judge
|
|
140
|
+
mode, GUI-aware signals, and taxonomy induction support.
|
|
141
|
+
- **Attribute**: heuristic attribution, all-at-once analysis, step-by-step
|
|
142
|
+
localization, binary search, counterfactual attribution, MOE localization,
|
|
143
|
+
and DeepDebug.
|
|
144
|
+
- **Recover**: Reflexion, CRITIC, Self-Refine, AutoManual, DeepDebug recovery,
|
|
145
|
+
and saga rollback style strategies.
|
|
146
|
+
- **Rerun**: three explicit modes for plan/export only, labeled simulation, or
|
|
147
|
+
observed execution in an application-owned process or persistent HTTP runner.
|
|
148
|
+
- **Local inspection UI**: no-build FastAPI dashboard for traces, reports,
|
|
149
|
+
saved cases, debug branches, and rerun-from-event workflows.
|
|
150
|
+
- **Error Hub**: scrubbed, shareable failure bundles for regression tests,
|
|
151
|
+
benchmark corpora, and team debugging memory.
|
|
152
|
+
- **Agent integrations**: generate host-runtime assets such as debugging skills
|
|
153
|
+
for external agent tools.
|
|
154
|
+
|
|
155
|
+
## Install
|
|
156
|
+
|
|
157
|
+
```bash
|
|
158
|
+
pip install agentdebugx
|
|
159
|
+
```
|
|
160
|
+
|
|
161
|
+
Optional extras:
|
|
162
|
+
|
|
163
|
+
```bash
|
|
164
|
+
pip install "agentdebugx[ui]" # local FastAPI dashboard
|
|
165
|
+
pip install "agentdebugx[langgraph]" # LangGraph adapter
|
|
166
|
+
pip install "agentdebugx[crewai]" # CrewAI adapter
|
|
167
|
+
pip install "agentdebugx[openai-agents]" # OpenAI Agents SDK adapter
|
|
168
|
+
pip install "agentdebugx[otel]" # OpenTelemetry ingest
|
|
169
|
+
pip install "agentdebugx[gui]" # computer-use / OSWorld GUI tooling
|
|
170
|
+
pip install "agentdebugx[all]" # all optional integrations
|
|
171
|
+
```
|
|
172
|
+
|
|
173
|
+
The package is installed as `agentdebugx` and imported as `agentdebug`:
|
|
174
|
+
|
|
175
|
+
```python
|
|
176
|
+
import agentdebug
|
|
177
|
+
```
|
|
178
|
+
|
|
179
|
+
## Quick Start: Python API
|
|
180
|
+
|
|
181
|
+
Record a trajectory and analyze it locally:
|
|
182
|
+
|
|
183
|
+
```python
|
|
184
|
+
from agentdebug import AgentDebug, EventType
|
|
185
|
+
|
|
186
|
+
debugger = AgentDebug()
|
|
187
|
+
|
|
188
|
+
with debugger.trace(
|
|
189
|
+
goal="Book a refundable NYC to SFO flight",
|
|
190
|
+
framework="my-agent",
|
|
191
|
+
) as trace:
|
|
192
|
+
trace.record(
|
|
193
|
+
EventType.PLAN,
|
|
194
|
+
agent_name="planner",
|
|
195
|
+
step_index=1,
|
|
196
|
+
output="Search for the cheapest fares.",
|
|
197
|
+
)
|
|
198
|
+
trace.record(
|
|
199
|
+
EventType.TOOL_RESULT,
|
|
200
|
+
agent_name="browser",
|
|
201
|
+
step_index=3,
|
|
202
|
+
error="Checkout failed: refund_policy is required.",
|
|
203
|
+
)
|
|
204
|
+
|
|
205
|
+
report = trace.analyze()
|
|
206
|
+
|
|
207
|
+
print(report.summary)
|
|
208
|
+
for finding in report.findings:
|
|
209
|
+
print(finding.failure_mode.mode_id, finding.step_index, finding.evidence)
|
|
210
|
+
```
|
|
211
|
+
|
|
212
|
+
The report localizes the responsible upstream step rather than only reporting
|
|
213
|
+
the final visible error.
|
|
214
|
+
|
|
215
|
+
## Quick Start: CLI
|
|
216
|
+
|
|
217
|
+
The CLI supports the complete Diagnose -> Rerun workflow. The web console is
|
|
218
|
+
optional and is not required for trace conversion, diagnosis, attribution,
|
|
219
|
+
recovery planning, or rerun preparation.
|
|
220
|
+
|
|
221
|
+
### 1. Normalize an external trace
|
|
222
|
+
|
|
223
|
+
AgentDebugX can auto-detect common JSON and JSONL exports:
|
|
224
|
+
|
|
225
|
+
```bash
|
|
226
|
+
agentdebug ingest raw_trace.json --format auto --out trace.json
|
|
227
|
+
```
|
|
228
|
+
|
|
229
|
+
Use `--format` when the source is known, for example `messages`,
|
|
230
|
+
`openai_agents_spans`, `crewai_events`, `langgraph_callbacks`, `claude_code`,
|
|
231
|
+
or `osworld`.
|
|
232
|
+
|
|
233
|
+
Process a directory of independent JSON files or every non-empty line in a
|
|
234
|
+
JSONL dataset:
|
|
235
|
+
|
|
236
|
+
```bash
|
|
237
|
+
agentdebug batch ingest AgentProcessBench/gaia_dev/test.jsonl \
|
|
238
|
+
--out-dir data/agentprocessbench/gaia_dev
|
|
239
|
+
```
|
|
240
|
+
|
|
241
|
+
Batch diagnosis normalizes each record and writes independently rerunnable
|
|
242
|
+
trajectories and reports:
|
|
243
|
+
|
|
244
|
+
```bash
|
|
245
|
+
agentdebug batch diagnose AgentProcessBench/gaia_dev/test.jsonl \
|
|
246
|
+
--mode judge \
|
|
247
|
+
--attributor all-at-once \
|
|
248
|
+
--recovery self-refine \
|
|
249
|
+
--out-dir runs/agentprocessbench/gaia_dev
|
|
250
|
+
```
|
|
251
|
+
|
|
252
|
+
Every batch writes `batch-summary.json`. Invalid records are isolated and do
|
|
253
|
+
not discard successful outputs; a partially failed CLI batch exits with code
|
|
254
|
+
`3`.
|
|
255
|
+
|
|
256
|
+
### 2. Run a fully local diagnosis
|
|
257
|
+
|
|
258
|
+
The deterministic pipeline does not require an API key:
|
|
259
|
+
|
|
260
|
+
```bash
|
|
261
|
+
agentdebug diagnose trace.json \
|
|
262
|
+
--mode heuristic \
|
|
263
|
+
--attributor heuristic \
|
|
264
|
+
--recovery reflexion \
|
|
265
|
+
--out report.json
|
|
266
|
+
```
|
|
267
|
+
|
|
268
|
+
Render the same diagnosis as a cascade-oriented traceback:
|
|
269
|
+
|
|
270
|
+
```bash
|
|
271
|
+
agentdebug diagnose trace.json \
|
|
272
|
+
--mode heuristic \
|
|
273
|
+
--attributor heuristic \
|
|
274
|
+
--recovery reflexion \
|
|
275
|
+
--traceback
|
|
276
|
+
```
|
|
277
|
+
|
|
278
|
+
### 3. Enable LLM-backed diagnosis
|
|
279
|
+
|
|
280
|
+
Save an OpenAI-compatible endpoint once:
|
|
281
|
+
|
|
282
|
+
```bash
|
|
283
|
+
agentdebug config set-llm \
|
|
284
|
+
--base-url "https://<openai-compatible-host>/v1" \
|
|
285
|
+
--api-key "<secret>" \
|
|
286
|
+
--model "<model>"
|
|
287
|
+
```
|
|
288
|
+
|
|
289
|
+
Then select the diagnosis, attribution, and recovery implementations
|
|
290
|
+
explicitly:
|
|
291
|
+
|
|
292
|
+
```bash
|
|
293
|
+
agentdebug diagnose trace.json \
|
|
294
|
+
--mode judge \
|
|
295
|
+
--attributor all-at-once \
|
|
296
|
+
--recovery self-refine \
|
|
297
|
+
--out report.json
|
|
298
|
+
```
|
|
299
|
+
|
|
300
|
+
For difficult multi-step or ambiguous failures, DeepDebug runs the complete
|
|
301
|
+
diagnosis workflow and automatically packages its evidence-backed fix as a
|
|
302
|
+
standard retry directive:
|
|
303
|
+
|
|
304
|
+
```bash
|
|
305
|
+
agentdebug diagnose trace.json \
|
|
306
|
+
--mode deepdebug \
|
|
307
|
+
--out report.json
|
|
308
|
+
```
|
|
309
|
+
|
|
310
|
+
`--recovery deepdebug` can select this packaging explicitly. Existing scripts
|
|
311
|
+
that use `--attributor none --recovery none` remain compatible; explicit
|
|
312
|
+
`--recovery none` disables the standard recovery payload.
|
|
313
|
+
|
|
314
|
+
Environment variables can be used instead of saved configuration:
|
|
315
|
+
|
|
316
|
+
```bash
|
|
317
|
+
export AGENTDEBUG_LLM_BASE_URL="https://<openai-compatible-host>/v1"
|
|
318
|
+
export AGENTDEBUG_LLM_API_KEY="<secret>"
|
|
319
|
+
export AGENTDEBUG_LLM_MODEL="<model>"
|
|
320
|
+
```
|
|
321
|
+
|
|
322
|
+
Use `agentdebug config show` to inspect masked configuration and
|
|
323
|
+
`agentdebug config doctor` to test the configured endpoint.
|
|
324
|
+
|
|
325
|
+
### 4. Execute the Rerun stage
|
|
326
|
+
|
|
327
|
+
For repeated, Docker, or remote reruns, keep the application's complete Agent
|
|
328
|
+
environment running as an HTTP runner service. Implement a project callback,
|
|
329
|
+
then start and configure it once:
|
|
330
|
+
|
|
331
|
+
```bash
|
|
332
|
+
agentdebug runner serve my_project.runner:run_agent \
|
|
333
|
+
--name my-agent \
|
|
334
|
+
--framework langgraph \
|
|
335
|
+
--host 0.0.0.0 \
|
|
336
|
+
--port 8765 \
|
|
337
|
+
--token-env MY_RUNNER_TOKEN
|
|
338
|
+
|
|
339
|
+
agentdebug config set-runner my-agent \
|
|
340
|
+
--url http://127.0.0.1:8765 \
|
|
341
|
+
--token-env MY_RUNNER_TOKEN \
|
|
342
|
+
--default
|
|
343
|
+
|
|
344
|
+
agentdebug config doctor-runner my-agent
|
|
345
|
+
```
|
|
346
|
+
|
|
347
|
+
Then run the original agent framework from the beginning of the task:
|
|
348
|
+
|
|
349
|
+
```bash
|
|
350
|
+
agentdebug rerun report.json \
|
|
351
|
+
--trajectory trace.json \
|
|
352
|
+
--out rerun.live.json
|
|
353
|
+
```
|
|
354
|
+
|
|
355
|
+
The service owns the framework, real model, tools, credentials, environment,
|
|
356
|
+
job lifecycle, and trajectory recorder. A chat-completions URL alone is not an
|
|
357
|
+
Agent environment. Submissions are idempotent, transient failures use bounded
|
|
358
|
+
retries, and unfinished remote jobs are cancelled best-effort. See
|
|
359
|
+
[the runner specification](src/agentdebug/rerun/RUNNER_SPEC.md).
|
|
360
|
+
|
|
361
|
+
For local scripts and CI, the process compatibility transport remains available:
|
|
362
|
+
|
|
363
|
+
```bash
|
|
364
|
+
agentdebug rerun report.json \
|
|
365
|
+
--trajectory trace.json \
|
|
366
|
+
--runner-command "python path/to/project_rerun_runner.py" \
|
|
367
|
+
--out rerun.json
|
|
368
|
+
```
|
|
369
|
+
|
|
370
|
+
Use `--plan-only` for trajectory-only uploads; the plan reports why real
|
|
371
|
+
execution is unavailable and which runtime capabilities are missing.
|
|
372
|
+
|
|
373
|
+
Export the same request as a pending actor task dataset when another system
|
|
374
|
+
will perform the rollout:
|
|
375
|
+
|
|
376
|
+
```bash
|
|
377
|
+
agentdebug rerun report.json \
|
|
378
|
+
--trajectory trace.json \
|
|
379
|
+
--plan-only \
|
|
380
|
+
--actor-task-format jsonl \
|
|
381
|
+
--out rerun-tasks.jsonl
|
|
382
|
+
```
|
|
383
|
+
|
|
384
|
+
Parquet is also supported with `--actor-task-format parquet` after installing
|
|
385
|
+
`pyarrow`. These rows contain actor inputs and provenance, not responses or
|
|
386
|
+
training labels. See
|
|
387
|
+
[the actor task specification](src/agentdebug/rerun/ACTOR_TASK_SPEC.md).
|
|
388
|
+
|
|
389
|
+
For prompt experiments only, `--simulate` enables the previous LLM-generated
|
|
390
|
+
trajectory flow. It returns a workflow JSON with `status=simulated`, a validated
|
|
391
|
+
`hypothetical_trajectory`, and model-generated events explicitly marked as
|
|
392
|
+
simulated. It executes no tools and is not evidence that the recovery fixed the
|
|
393
|
+
task. See
|
|
394
|
+
[the simulation specification](src/agentdebug/rerun/SIMULATION_SPEC.md).
|
|
395
|
+
|
|
396
|
+
### 5. Work with stored traces
|
|
397
|
+
|
|
398
|
+
The CLI can query SQLite or JSONL stores created by instrumented runs or the
|
|
399
|
+
local console:
|
|
400
|
+
|
|
401
|
+
```bash
|
|
402
|
+
agentdebug list --store-sqlite .agentdebug/traces.sqlite
|
|
403
|
+
agentdebug show <trace-id> --store-sqlite .agentdebug/traces.sqlite
|
|
404
|
+
agentdebug diagnose <trace-id> \
|
|
405
|
+
--store-sqlite .agentdebug/traces.sqlite \
|
|
406
|
+
--mode heuristic \
|
|
407
|
+
--attributor heuristic \
|
|
408
|
+
--recovery reflexion
|
|
409
|
+
```
|
|
410
|
+
|
|
411
|
+
### 6. Package and integrate debugging workflows
|
|
412
|
+
|
|
413
|
+
Publish a scrubbed failure bundle to a local Error Hub:
|
|
414
|
+
|
|
415
|
+
```bash
|
|
416
|
+
agentdebug hub push <trace-id> \
|
|
417
|
+
--store-sqlite .agentdebug/traces.sqlite \
|
|
418
|
+
--to local:./agentdebug-hub
|
|
419
|
+
```
|
|
420
|
+
|
|
421
|
+
Generate a debugging skill for a supported host runtime:
|
|
422
|
+
|
|
423
|
+
```bash
|
|
424
|
+
agentdebug integrations skill --platform claude --target .claude/skills
|
|
425
|
+
```
|
|
426
|
+
|
|
427
|
+
### Optional: launch the local console
|
|
428
|
+
|
|
429
|
+
Install the UI extra only when a visual inspection workflow is useful:
|
|
430
|
+
|
|
431
|
+
```bash
|
|
432
|
+
pip install "agentdebugx[ui]"
|
|
433
|
+
agentdebug serve \
|
|
434
|
+
--store-sqlite .agentdebug/traces.sqlite \
|
|
435
|
+
--host 127.0.0.1 \
|
|
436
|
+
--port 7777
|
|
437
|
+
```
|
|
438
|
+
|
|
439
|
+
## CLI Reference
|
|
440
|
+
|
|
441
|
+
| Command | Purpose |
|
|
442
|
+
| --- | --- |
|
|
443
|
+
| `agentdebug ingest` | Normalize an external trace export into AgentDebugX schema |
|
|
444
|
+
| `agentdebug diagnose` | Run detection, attribution, and recovery planning |
|
|
445
|
+
| `agentdebug batch ingest` | Normalize every JSON file or independent JSONL record |
|
|
446
|
+
| `agentdebug batch diagnose` | Normalize and diagnose a JSON/JSONL collection |
|
|
447
|
+
| `agentdebug rerun` | Execute a real framework runner or build a capability-aware plan |
|
|
448
|
+
| `agentdebug runner serve` | Expose an application callback through the live runner protocol |
|
|
449
|
+
| `agentdebug list` / `agentdebug show` | Inspect traces in a local store |
|
|
450
|
+
| `agentdebug config` | Manage and test LLM endpoints and persistent HTTP runners |
|
|
451
|
+
| `agentdebug hub` | Package, scrub, push, and pull Error Hub bundles |
|
|
452
|
+
| `agentdebug integrations` | Generate external runtime integration assets |
|
|
453
|
+
| `agentdebug act` | Compatibility namespace for Hub and integration actions |
|
|
454
|
+
| `agentdebug serve` / `agentdebug inspect` | Launch the optional local web console |
|
|
455
|
+
| `agentdebug doctor` | Report optional dependency and configuration status |
|
|
456
|
+
| `agentdebug analyze` | Compatibility entry point for heuristic diagnosis |
|
|
457
|
+
| `agentdebug convert` | Compatibility alias for `agentdebug ingest` |
|
|
458
|
+
|
|
459
|
+
Run `agentdebug <command> --help` for version-specific flags.
|
|
460
|
+
|
|
461
|
+
## Architecture
|
|
462
|
+
|
|
463
|
+
The repository mirrors the paper-level workflow:
|
|
464
|
+
|
|
465
|
+
```text
|
|
466
|
+
src/agentdebug/schema/ portable trajectory, event, report, and taxonomy contracts
|
|
467
|
+
src/agentdebug/runtime/ storage, LLM clients, event bus, and plugin registry
|
|
468
|
+
src/agentdebug/ingest/ live capture APIs and offline trace importers
|
|
469
|
+
src/agentdebug/diagnose/ Detect -> Attribute -> Recover pipeline
|
|
470
|
+
src/agentdebug/rerun/ rerun plans, requests, branch comparison, and executors
|
|
471
|
+
src/agentdebug/inspect/ traceback renderer and local inspection UI
|
|
472
|
+
src/agentdebug/hub/ scrubbed failure bundle packaging and backends
|
|
473
|
+
src/agentdebug/integrations/ host skill and runtime integration generators
|
|
474
|
+
cua_debugger/ computer-use / OSWorld GUI root-cause tooling
|
|
475
|
+
examples/ runnable examples and demo traces
|
|
476
|
+
docs/ architecture, schema, and project assets
|
|
477
|
+
```
|
|
478
|
+
|
|
479
|
+
Detailed references:
|
|
480
|
+
|
|
481
|
+
- [Architecture](docs/ARCHITECTURE.md)
|
|
482
|
+
- [Trace schema](docs/TRACE_SCHEMA.md)
|
|
483
|
+
- [System overview PDF](docs/assets/overview.pdf)
|
|
484
|
+
|
|
485
|
+
## Component Model
|
|
486
|
+
|
|
487
|
+
Diagnose components use manifest-backed discovery:
|
|
488
|
+
|
|
489
|
+
- Detect components and rule packs declare metadata under
|
|
490
|
+
`src/agentdebug/diagnose/component_manifests/detect/` and
|
|
491
|
+
`src/agentdebug/diagnose/detect/rules/packs/`.
|
|
492
|
+
- Attribute components declare metadata under
|
|
493
|
+
`src/agentdebug/diagnose/component_manifests/attribute/`.
|
|
494
|
+
- Recover components declare metadata under
|
|
495
|
+
`src/agentdebug/diagnose/component_manifests/recover/`.
|
|
496
|
+
|
|
497
|
+
The shared registry exposes:
|
|
498
|
+
|
|
499
|
+
```python
|
|
500
|
+
from agentdebug.diagnose import list_components, load_component
|
|
501
|
+
|
|
502
|
+
for component in list_components():
|
|
503
|
+
print(component.id, component.stage, component.capabilities)
|
|
504
|
+
```
|
|
505
|
+
|
|
506
|
+
This keeps the implementation extensible without turning the CLI or UI into
|
|
507
|
+
business-logic containers.
|
|
508
|
+
|
|
509
|
+
## Local UI
|
|
510
|
+
|
|
511
|
+
The inspection UI is a local FastAPI application with a no-build HTML/CSS/JS
|
|
512
|
+
frontend. It is intentionally a surface layer:
|
|
513
|
+
|
|
514
|
+
- routes live in `inspect/ui/routes.py`
|
|
515
|
+
- rendering lives in `inspect/ui/views.py`
|
|
516
|
+
- UI-facing services live in `inspect/ui/services.py`
|
|
517
|
+
- local case and branch stores live in `inspect/ui/branch_store.py`
|
|
518
|
+
- `inspect/ui/server.py` remains a compatibility import path
|
|
519
|
+
|
|
520
|
+
The UI can inspect traces, save typical error cases, prepare debug
|
|
521
|
+
continuations, and invoke a server-controlled live runner. Set
|
|
522
|
+
`AGENTDEBUG_RUNNER_URL` for the preferred persistent HTTP transport or
|
|
523
|
+
`AGENTDEBUG_RERUN_COMMAND` for process compatibility. UI reruns default to a
|
|
524
|
+
full `from_start` rollout; `from_event` requires runner capability plus the
|
|
525
|
+
explicit server policy `AGENTDEBUG_UI_RERUN_POLICY=from_event`. The browser does
|
|
526
|
+
not accept or persist runner commands, bearer tokens, or model API keys.
|
|
527
|
+
|
|
528
|
+
## Privacy and Safety
|
|
529
|
+
|
|
530
|
+
AgentDebugX is local-first:
|
|
531
|
+
|
|
532
|
+
- Trace capture and diagnosis run locally unless you explicitly configure an
|
|
533
|
+
external LLM endpoint.
|
|
534
|
+
- Error Hub publishing is opt-in.
|
|
535
|
+
- Bundle scrubbing is available before sharing traces.
|
|
536
|
+
- Recovery is suggest-only. External execution belongs to Rerun and requires an
|
|
537
|
+
explicitly configured executor. Recovery approval fields are auditable
|
|
538
|
+
metadata; deployments must enforce their own authorization policy before
|
|
539
|
+
dispatch.
|
|
540
|
+
|
|
541
|
+
Diagnostic findings are hypotheses with evidence and provenance, not ground
|
|
542
|
+
truth. LLM Judge reports retain the model's self-reported confidence;
|
|
543
|
+
Heuristic and DeepDebug reports omit uncalibrated confidence values. Configure
|
|
544
|
+
retention, access control, and redaction before collecting production traces.
|
|
545
|
+
|
|
546
|
+
## Examples
|
|
547
|
+
|
|
548
|
+
The `examples/` directory contains runnable scripts and demo artifacts:
|
|
549
|
+
|
|
550
|
+
- `basic_usage.py`
|
|
551
|
+
- `multi_agent_cascade.py`
|
|
552
|
+
- `langgraph/`
|
|
553
|
+
- `crewai/`
|
|
554
|
+
- `autogen_roundrobin_deepdebug.py`
|
|
555
|
+
- `taxonomy_induction_demo.py`
|
|
556
|
+
- `http_agent_runner.py`
|
|
557
|
+
- `live_rerun_runner.py`
|
|
558
|
+
- `claude_skill_integration/`
|
|
559
|
+
- `debug_skills/`
|
|
560
|
+
|
|
561
|
+
## Development
|
|
562
|
+
|
|
563
|
+
Run the test suite:
|
|
564
|
+
|
|
565
|
+
```bash
|
|
566
|
+
python -m pytest tests -q
|
|
567
|
+
```
|
|
568
|
+
|
|
569
|
+
Run the enforced branch-coverage baseline:
|
|
570
|
+
|
|
571
|
+
```bash
|
|
572
|
+
python -m pytest tests -q --cov=agentdebug --cov-branch --cov-fail-under=40
|
|
573
|
+
```
|
|
574
|
+
|
|
575
|
+
Compile-check the package:
|
|
576
|
+
|
|
577
|
+
```bash
|
|
578
|
+
python -m compileall -q src/agentdebug tests
|
|
579
|
+
```
|
|
580
|
+
|
|
581
|
+
Build artifacts under `dist/` should not be committed. Generate them only for
|
|
582
|
+
release workflows.
|
|
583
|
+
|
|
584
|
+
See [CONTRIBUTING.md](CONTRIBUTING.md) for test organization, optional CUA
|
|
585
|
+
tests, quality checks, and pull request expectations.
|
|
586
|
+
|
|
587
|
+
## License
|
|
588
|
+
|
|
589
|
+
MIT. See [LICENSE](LICENSE).
|
|
590
|
+
|