I've been playing around with Claude Code and OpenCode and wanted something simpler and more hackable that I could run locally, understand end-to-end, and extend for my own workflows.

This resulted in building a small Python package called PatchPal.

PatchPal is a Claude Code-inspired AI coding agent that helps you build software, debug issues, and automate tasks, supporting both cloud and local models. Like Claude Code, it supports agent skills, tool use, and executable Python generation, enabling interactive workflows for tasks such as data analysis, visualization, web scraping, API interactions, and topic research with synthesized findings.

One of the goals of this project is to approximate the core interaction model of Claude Code and OpenCode while remaining lean, accessible, and highly configurable.

    $ ls ./patchpal
    __init__.py agent.py  cli.py context.py permissions.py  skills.py system_prompt.md tools.py

See the GitHub README for more details: https://github.com/amaiya/patchpal

Enjoy!