Skip to content

Enrich debug traces and add bashkit-debug skill#21

Merged
jbreite merged 4 commits intomainfrom
enrich-debug-traces
Mar 7, 2026
Merged

Enrich debug traces and add bashkit-debug skill#21
jbreite merged 4 commits intomainfrom
enrich-debug-traces

Conversation

@jbreite
Copy link
Copy Markdown
Owner

@jbreite jbreite commented Mar 7, 2026

Summary

  • Add output data to debugEnd calls for bash, grep, read, and task tools so trace files capture what each tool actually returned
  • Bump debug truncation limits (strings: 1000→4000 chars, arrays: 10→20 items) to preserve more useful context in traces
  • Add bashkit-debug skill (skills/bashkit-debug/) with SKILL.md and summarize-trace.sh for analyzing debug trace files with Claude Code or other agents

Test plan

  • Run BASHKIT_DEBUG=file:/tmp/trace.jsonl with an agent and verify output fields appear in trace
  • Run skills/bashkit-debug/summarize-trace.sh /tmp/trace.jsonl and verify clean output
  • bun run typecheck passes
  • bun run test passes

🤖 Generated with Claude Code

jbreite and others added 4 commits March 7, 2026 10:23
- Add output data to debugEnd calls for bash, grep, read, and task tools
  so trace files capture what each tool actually returned
- Bump truncation limits (strings: 1000→4000 chars, arrays: 10→20 items)
  to preserve more useful data in traces
- Add bashkit-debug skill with SKILL.md and summarize-trace.sh for
  analyzing debug trace files with Claude Code or other agents

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…te join

- Update summarize() JSDoc and AGENTS.md to reflect current truncation
  limits (4000 chars, 20 items)
- Add output field to read tool's directory-listing debug trace
- Extract selectedLines.join() to avoid computing it twice

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@jbreite jbreite marked this pull request as ready for review March 7, 2026 16:22
@jbreite jbreite merged commit aeb2635 into main Mar 7, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant