# Embedded Terminal library (and agent integration)

**URL:** <https://community.silverbullet.md/t/embedded-terminal-library-and-agent-integration/4428>\
**Category:** Plugs and Libraries\
**Created:** [October 7, 2026, 8:29am UTC](https://community.silverbullet.md/t/embedded-terminal-library-and-agent-integration/4428 "2026-10-07T08:29:13Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![justyns](https://community.silverbullet.md/user_avatar/community.silverbullet.md/justyns/32/132_2.png) [@justyns](https://community.silverbullet.md/u/justyns)\
**Post date:** [October 7, 2026, 8:29am UTC](https://community.silverbullet.md/t/embedded-terminal-library-and-agent-integration/4428/1 "2026-10-07T08:29:13Z")

</div>

Hello!

I know @zef likes to say how he always wants to turn SilverBullet into a real coding IDE, so I thought it'd be fun to see if it was possible to embed a terminal into SB.

Some screenshots first:

 ![screenshot_20261007_032210-region](https://community.silverbullet.md/uploads/default/original/2X/a/a9bfcf15b8305c2f31fe7927cd6c82e5425df31d.png)  
 ![screenshot_20261007_031257-region](https://community.silverbullet.md/uploads/default/original/2X/3/3df7d7ad235d3e7b9ace6daa2a01d26d26a3b845.png)  
 ![screenshot_20261007_031439-region](https://community.silverbullet.md/uploads/default/original/2X/7/776de5ce34ddac0e2b355e4e69eed040b9de9f60.png)  
 ![screenshot_20261007_031332-region](https://community.silverbullet.md/uploads/default/original/2X/d/d1768c58006f1af35c7261a6f64f14d60a5b0a6b.png)

There are two new libraries in my [shared libraries](https://github.com/justyns/silverbullet-libraries/tree/master) repo:

- [Terminal](https://github.com/justyns/silverbullet-libraries/blob/master/Terminal/Terminal.md) - Opens a modal or docked view w/ a configured command (like a shell)
- [Agent IDE](https://github.com/justyns/silverbullet-libraries/blob/master/Agent%20IDE/Agent%20IDE.md) - Uses the Terminal library to run claude code or codex in a modal/view with some basic IDE integration

You can install both as libraries. They bundle the necessary xterm.js/css files in them so no cdn is needed. Read the descriptions first though, both of them require `shell.run` and run a python script in the background that acts a bridge between xterm.js and the command.

Also full disclosure, both libraries were mostly llm-assisted and I've only used them on the SilverBullet+ Electron Desktop app on linux w/ flatpak.

---

<div class="post-metadata">

**Author:** ![justyns](https://community.silverbullet.md/user_avatar/community.silverbullet.md/justyns/32/132_2.png) [@justyns](https://community.silverbullet.md/u/justyns)\
**Post date:** [October 9, 2026, 12:17am UTC](https://community.silverbullet.md/t/embedded-terminal-library-and-agent-integration/4428/2 "2026-10-09T00:17:47Z")

</div>

Renamed the claude code library to be more generic and added ide integration for the codex cli.

I'm not really sure what other agents have ide integrations or if it's all that helpful yet. It's kind of nice for it to know what file you have open though.

Also now with tabs!

 ![screenshot_20261008_191710-region](https://community.silverbullet.md/uploads/default/original/2X/4/41262333d5be13d834bfbdb40be0e6c1ede20264.png)
