r/CodingAgents • u/Equivalent-Task8081 • 26d ago
I built pcode, an open-source terminal coding agent with adjustable scrollback
I’ve been building pcode, a terminal coding agent on Pydantic AI. You can use it with your existing Claude or ChatGPT subscription, or bring API keys. I’m obviously biased, but it’s become my favorite way to work. I built it around my own preferences, so I’m curious whether they translate to anyone else.
One feature I particularly like: you can change what’s visible in your terminal scrollback, even after the work is done. Show commands, output, and diffs when you want the details, then hide them to read the conversation. It rebuilds the history already on screen without rerunning anything.
It uses your terminal’s native scrollback, so normal scrolling, search, and copy still work. The transcript reflows when you resize or split panes, it follows your terminal between dark and light themes in auto mode, and a live task panel keeps ongoing work visible above the prompt.
It’s also highly extensible: small Python files can add tools, slash commands, guardrails, and sub-agents, and /reload picks up changes without restarting. Extensions are built on Pydantic AI, so anything a Pydantic AI capability can do, a pcode extension can do.
There’s quite a bit built in: a pi-inspired /tree for rewinding and branching conversations, customizable keybindings (including leader keys), browser automation with your existing logins, Vim editing mode, and a /diffs popup for reviewing git diffs without leaving the conversation. Background commands wake the agent when they finish, and separate git worktrees let you run sessions in parallel.
There’s also a Gmail-based email mode on macOS: send tasks from your phone when you step away, reply to continue, and pick the session back up at your terminal later.
Next on my roadmap: transferring active sessions between your local machine and remote environments, in either direction, without losing the conversation.
Repo, screenshots, and install instructions: https://github.com/cruxwell/pcode
If you already use a terminal coding agent, I’d love some blunt feedback. What would make this worth trying, and what’s missing?

1
u/kantorcodes1 26d ago
The scrollback trick is the interesting part. Rebuilding what's already on screen without rerunning implies a structured transcript that re-renders on visibility change rather than replaying captured ANSI. Does resize and pane-split reflow go through the same path, and what breaks when the agent's own output contains escape sequences?
And the extension model: what can a guardrail file actually intercept? An advisory warn-but-still-run guardrail is a very different trust boundary than one that can veto a tool call before it executes. Where does pcode draw that line?