Files
zeekayandHanzo Dev 6d67c32358 Initial commit: Hanzo REPL
- IPython-based REPL with direct MCP tool access
- Chat integration with AI that can use MCP tools
- Magic commands for enhanced interaction
- Live self-editing capability
- Comprehensive test suite
- PyPI-ready packaging as hanzo-repl

Co-authored-by: Hanzo Dev <[email protected]>
2025-06-26 17:53:07 -04:00

31 lines
810 B
Python

"""CLI entry point for Hanzo REPL."""
import click
import asyncio
from .repl import HanzoREPL
from .ipython_repl import main as ipython_main
@click.command()
@click.option('--mode', default='ipython', type=click.Choice(['basic', 'ipython']),
help='REPL mode to use')
@click.option('--debug', is_flag=True, help='Enable debug mode')
@click.option('--model', help='LLM model to use')
def main(mode, debug, model):
"""Hanzo REPL - Interactive testing environment."""
if mode == 'ipython':
# Use IPython-based REPL (recommended)
ipython_main()
else:
# Use basic REPL
config = {
'debug': debug,
'model': model
}
repl = HanzoREPL(config)
asyncio.run(repl.run())
if __name__ == "__main__":
main()