I built pcode, an MIT-licensed terminal coding agent built on Pydantic AI. Sharing it here as a Pydantic AI ecosystem project, rather than a data-validation library.
Its extension interface uses Pydantic AI capabilities: Python files can add tools, slash commands, guardrails and sub-agents. The application builds on Pydantic AI's Harness coder and adds terminal interaction, saved conversations, browser automation with your existing logins, background jobs and worktree-based sessions.
One UI detail is native terminal scrollback whose detail level can change after a turn finishes. Commands, output and diffs can be shown or hidden without rerunning anything; ordinary terminal scrolling, search and copy still work. You can also rewind and branch conversations, customize keybindings or use Vim editing, and inspect changes in a diff popup.
Long-running commands can continue as background jobs and wake the agent on completion. Separate git worktrees support parallel sessions. It works with existing Claude/ChatGPT subscriptions or API keys; model access is separate from the open-source application. It edits files and runs shell commands with your permissions and no approval prompt, so read the tool-permissions documentation first.
Code, screenshots and documentation: https://github.com/cruxwell/pcode