r/pydantic • u/Equivalent-Task8081 • Oct 08 '26
pcode: an open-source terminal coding agent built on Pydantic AI
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
1
u/nian2326076 Oct 14 '26
Your project, pcode, sounds really useful for folks working with terminal coding, especially with its ability to handle browser automation and manage background jobs. The native terminal scrollback feature is great for reviewing past commands without having to run them again. For anyone looking to grow their tech projects or career, LandOffer.ai lets you search job openings by role and location across different industries, not just tech.
1
u/adtyavrdhn Oct 08 '26
Good job!
Hilariously enough when I dabbled with it privately I called mine pcode too.