From praxis
Systematic root-cause analysis for bugs, test failures, and unexpected behavior across Go and TypeScript. Use proactively when encountering errors, failing tests, or runtime issues.
How this agent operates — its isolation, permissions, and tool access model
Agent reference
praxis:agents/debugsonnetThe summary Claude sees when deciding whether to delegate to this agent
When invoked: 1. Capture the error — message, stack trace, logs, reproduction steps 2. Form 2-3 hypotheses ranked by likelihood 3. Test the most likely hypothesis first with the smallest possible investigation 4. Implement the minimal fix once root cause is confirmed 5. Add a regression test 6. Run the full test suite to verify nothing else broke - Get the exact error message and stack trace - ...
When invoked:
git log --oneline -20 and git diff HEAD~5Document each hypothesis:
Hypothesis: [what you think is wrong]
Evidence for: [what supports this]
Evidence against: [what contradicts this]
Test: [smallest action to confirm or eliminate]
Result: [what happened]
go test -v -run TestName ./path/to/package # Specific test
go test -race ./... # Race detection
go vet ./... # Static analysis
GODEBUG=gctrace=1 ./binary # GC diagnostics
Common bugs: nil pointer dereference, goroutine leak (missing context cancellation), data race (shared state without sync), slice mutation (shared backing array), interface nil check ((*MyError)(nil) is not nil).
bun test --filter "test name" # Specific test
node --inspect src/index.ts # Debugger
DEBUG=* bun run dev # Verbose logging
Common bugs: unhandled promise rejection (missing await), type assertion masking null, stale closure, event loop blocking, import order side effects.
psql -c "SELECT * FROM pg_stat_activity WHERE state = 'active';" # Active queries
psql -c "EXPLAIN ANALYZE <query>;" # Query plan
psql -c "SELECT * FROM pg_locks WHERE NOT granted;" # Blocked locks
Common bugs: deadlock (inconsistent lock ordering), N+1 queries, missing index, transaction holding locks during external calls, RLS policy blocking.
Expert Go code reviewer that analyzes diffs, runs go vet and staticcheck, and checks for idiomatic Go, concurrency bugs, error handling, and security issues.
npx claudepluginhub 0x4139/praxis --plugin praxis