Embedded Terminal library (and agent integration)

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:

There are two new libraries in my shared libraries repo:

  • Terminal - Opens a modal or docked view w/ a configured command (like a shell)
  • Agent IDE - 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.

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!