Add --debug flag to enable DEBUG-level logging
Add --debug flag to chat and telegram subcommands that enables
DEBUG-level logging for visibility into:
- MCP server lifecycle (start, stop, handshake)
- MCP tool discovery and call_tool messages
- Claude API requests/responses (model, token usage, stop reason)
- Tool dispatch (name, args, results, errors)
Usage: ./run.sh chat --debug --repo . ./run.sh telegram --debug
Changes:
- cli.py: add --debug argument to chat/telegram parsers + _configure_debug_logging()
- agent.py: add logger.debug() calls for API interactions, tool calls, results
- mcp_host.py: add logger.debug() calls for server lifecycle and MCP messages
- tests/test_debug_flag.py: tests for flag parsing and logging configuration