Files
python-sdk/pkg/hanzo-tools-reasoning
zeekay 8c05bf99d6 fix(ci): pin black <26.1 to avoid internal error, lower requires-python to 3.12
Black 26.1.0 crashes on multiple exception types in parentheses.
The requires-python bump to 3.14 broke CI which runs Python 3.12.
2026-03-01 16:01:16 -08:00
..
2025-12-27 15:00:11 -08:00

hanzo-tools-reasoning

Reasoning and analysis tools for Hanzo MCP.

Installation

pip install hanzo-tools-reasoning

Tools

think - Structured Reasoning

Record thoughts for complex reasoning or brainstorming.

think(thought="Analyzing the architecture: The codebase uses...")

Use cases:

  • Bug exploration and fix brainstorming
  • Test failure analysis
  • Complex refactoring planning
  • Feature design decisions
  • Issue investigation

critic - Critical Analysis

Play devil's advocate and ensure high standards.

critic(analysis="Review this implementation for bugs and edge cases...")

What it checks:

  • Potential bugs and edge cases
  • Error handling gaps
  • Test coverage issues
  • Performance problems
  • Security vulnerabilities
  • Code quality and design

Example output:

Code Review Analysis:
- Implementation Issues:
  * No error handling for network failures
  * Race condition in concurrent updates
  
- Test Coverage Gaps:
  * No tests for error scenarios
  * Missing edge case: empty input
  
- Recommendations:
  1. Add retry logic with exponential backoff
  2. Use database transactions

License

MIT