Phasm: Why I Built a Native IDE Around the Terminal and AI Agents
By day, I'm an Android developer, and I've spent my whole career in IntelliJ IDEA (Android Studio). It's the best IDE ever. Yet for almost a year now, out of its entire massive toolset, I've mostly been using just the t
By day, I'm an Android developer, and I've spent my whole career in IntelliJ IDEA (Android Studio). It's the best IDE ever.
Yet for almost a year now, out of its entire massive toolset, I've mostly been using just the terminal, occasionally the file tree, and even more rarely the code editor (mostly just for diffs). Still, whenever I start any projectβeven a tiny twenty-line scriptβI end up opening a heavyweight IDE. Even outside of work, when I just need to run some document through an LLM, I launch Android Studio again. Firing up a combine harvester, warming up the JVM, and waiting for indexing just to read a single text fileβsounds like a solid plan.
Why not just a plain terminal? I still need a basic IDE minimum: a file list, a visual git diff, a code tab, and a general sense of what the agent has actually done to the project. Meanwhile, the lighter VS Code still doesn't feel right to meβand I have little desire to drag in yet another Chrome in disguise just for a couple of tabs.
Why the Classic IDE Layout No Longer Works
Previously, the workflow revolved around the code editor: we jumped between file tabs while the logger, debugger, and terminal lived in side panels around the edges. You had to look at code, cross-check logs, and inspect state in the debuggerβputting all of that around a central editor made complete sense.
Now the workflow has flipped. My primary tool is a CLI agent in the terminal. But you can't build comfortable side panels for code, a file list, and logs around a terminal. I triedβit's horribly awkward, roughly like trying to lay out a spreadsheet on a smartwatch screen.
Then a simple idea hit me: why not put everything I need into tabs? Just as we used to switch between code tabs, we can now switch between terminals, code, diffs, and the file list.
And while I'm at it, why not go further and radically strip down the IDE itself: throw out everything unnecessary, keep only the essentials, add native integration with CLI agents, and build the whole thing without Electron. I'll build my own IDEβwith Ghostty and tabs!
That's how my AIDE was bornβPhasm (Phantasm, named after the embedded Ghostty terminal). It's written completely natively for macOS 15+ (Apple Silicon) in Swift and AppKit, with an editor based on STTextView and Tree-sitter syntax highlighting. No WebViews, and no fans spinning up to takeoff speed just from an empty window.
Inside Phasm
The Left Sidebar β Only What Matters
The left panel holds only what actually gets used and fits neatly in a compact sidebar:
- Workspace list β the repositories I work on simultaneously as part of a single project. An SDK, a host app, a personal playgroundβall right at hand in one window, without a zoo of five identical IDE windows. Each workspace has its own isolated scope of tabs.
-
Running terminals β from all workspaces at once, gathered in one place. Phasm has built-in support for agent hooks, so I can always see which terminal is hard at work, which one is politely waiting for my input, and which one has already finished and is ready for praise (or fixes). With
βJ, I can instantly jump to the next terminal that needs my attention. - Git β a list of modified files for quick review, so I can catch it in time if an agent decides to "helpfully refactor" half the project.
The Center β One Unified Tab Space
The central, main area holds tabs for code, terminals, the file tree, and git diff within the active workspace. If needed, you can split the screen into panes and drag tabs between them.
Want to open some code? I switch to its tab. Need to check the folder structure? Into the file tree. The rest of the time I spend in the diff view and a couple of terminals running CLI agents.
The built-in Git diff is tailored for working with agents: you don't just view changesβyou can leave an inline comment right on a specific line, and it goes straight into the active agent's terminal along with the file path and line number. No more copy-pasting "hey, take a look at FooBar.kt around line 142".
How It Plays Out in a Real Workflow
This dead-simple combination covers both work and non-work tasks completely:
- Need to quickly peek into a neighboring repository? I attach the folder as a workspace, grab what I need, run a few commands in the terminal, and remove it. The main project isn't even touched.
- Need to dissect a downloaded document or a wall of impenetrable logs? I attach
Downloads, run the analysis through an agent, and bring the result back to my main project.
Everything is fast, lightweight, and dead simple. Minimum tools, maximum productivity.
Agent Integration and Configuration
Out of the box, Phasm supports hooks for Claude Code (assuming you haven't hit your usage limit yet), Codex, and Antigravity, includes a built-in preset for OpenCode, and lets you wire up any custom CLI agent via the config file (~/.config/phasm/config.toml).
Be sure to enable hooks for whichever tool you useβthey're what power the live terminal statuses (Working, Needs Input, Done, Error), so you don't have to click through every tab hunting for the one agent that's been sitting there for ten minutes waiting for your y.
Launching each agent is easy to customize, too. For instance, if you're a thrill-seeker who trusts an LLM more than yourself on a Friday evening, you can add --dangerously-skip-permissions to the claude launch command or pass any environment variables you need. There's also support for simple declarative plugins if you ever want to extend functionalityβall configured in the same file.
Where to Try It
The project is open source (MIT license), and prebuilt binaries for macOS 15+ (Apple Silicon) are available on the releases page:
- GitHub: github.com/yushman/phasm
- Download: GitHub Releases
- Website: yushman.github.io/phasm
Give it a try β I think you'll like it. I'd really appreciate feedback, ideas, and bug reports in GitHub Issues.
Are you still running a heavyweight IDE just for a single terminal with an agent, or have you already put together something lighter?
Originally published by Dev.to AI. Aggregated on AIWithGhost for educational purposes β full credit and traffic to the original publisher.



