How to use the workspace indicator
The workspace indicator shows 🔒 jailoc / <name> in the agent's interface, so you can tell a jailoc session from one on the host. Every built-in agent shows it:
| Agent | Where it shows | How jailoc loads it |
|---|---|---|
OpenCode 1 (opencode1) |
Sidebar | TUI plugin listed in the TUI config that OPENCODE_TUI_CONFIG points at |
OpenCode 2 (opencode, opencode2) |
Sidebar, inside a session | TUI plugin listed in OPENCODE_CLI_CONFIG_CONTENT |
Claude Code (claude) |
Status line | --settings /etc/jailoc-tui-plugin/claude-settings.json |
GitHub Copilot CLI (copilot) |
Status line | statusLine in ~/.copilot/settings.json |
OmO (omo) |
Footer status | --extension /etc/jailoc-tui-plugin/pi.js |
pi (pi) |
Footer status | --extension /etc/jailoc-tui-plugin/pi.js |
Antigravity CLI (agy) |
Status line | statusLine in ~/.gemini/antigravity-cli/settings.json |
Load the indicator
The indicator is bundled with jailoc and needs no configuration. At jailoc up, jailoc writes the agent's indicator files to its cache directory and shares them read-only into the VM at /etc/jailoc-tui-plugin. Where you have your own configuration, it interacts like this:
- OpenCode 2:
OPENCODE_CLI_CONFIG_CONTENTlists the plugins ofcli.jsonin your OpenCode config directory (or oftui.jsonwhen there's nocli.json) followed by the jailoc plugin. The list replaces the plugins ofcli.json; its other settings still apply. Both files may contain comments and trailing commas. jailoc reads the file when the VM starts, so runjailoc restart <name>after changing the plugins;jailoc reloadreports the change but doesn't apply it. If the file can't be parsed, jailoc warns and doesn't load its plugin, leaving your configuration as it is. - Claude Code: the
--settingsfile replaces the status line of your settings. The jailoc status line runs thestatusLinecommand of your settings (.claude/settings.local.jsonor.claude/settings.jsonin the project, thensettings.jsonin the Claude config directory) and puts the workspace before its first line. The status line is a Node.js script, so it needsnodeonPATH. - GitHub Copilot CLI: Copilot reads a status line only from its user settings, so jailoc adds a
printfstatus line tosettings.jsonin the agent's persistent state directory when the file sets none. If you set your ownstatusLinethere, jailoc leaves it alone and Copilot shows yours instead; it only replaces the Node.js status line of an older jailoc. jailoc doesn't touch the file when you mount~/.copilotfrom the host. - Antigravity CLI: the same as GitHub Copilot CLI, with
antigravity-cli/settings.jsonin the agent's state directory (~/.gemini)./statusline <command>sets your own status line there, and/statusline deleteremoves it, so jailoc adds its own again at the next start.
Get notifications from OpenCode
The OpenCode 1 and OpenCode 2 plugins also report when the agent finishes or needs input, and jailoc turns the reports into session notifications. The reports are private terminal sequences that jailoc removes from the session output, so they never reach your terminal as they are. Subagent sessions don't report. Claude Code, GitHub Copilot CLI, OmO, pi and Antigravity CLI don't report either, so jailoc sends no notifications for them.
| Report | OpenCode 1 | OpenCode 2 |
|---|---|---|
| Finished | A top-level session's turn ends with a completed reply, without an error or an abort | A top-level session's run succeeds; while its subagents still run, the report waits for them, at most 3 seconds after the last one ends |
| Needs input | A top-level session asks for a permission or asks a question | A top-level session asks for a permission or opens a form |
When OpenCode is configured to show notifications itself, the plugin reports nothing, so you don't get both:
- OpenCode 1:
attention.enabledandattention.notificationsin the TUI configuration, with the built-ininternal:notificationsplugin active. - OpenCode 2:
attention.notifications = trueincli.jsonorOPENCODE_CLI_CONFIG_CONTENT, with the built-inopencode.notificationsplugin enabled. When there's nocli.json, OpenCode 2 takesattention,pluginandplugin_enabledfromtui.json, and so does the plugin. Atui.jsonwithoutattention.notifications = trueleaves OpenCode 2's notifications off.
OpenCode's own notifications follow OpenCode's settings, not jailoc's focus gate, fixed text or interval. Turn OpenCode's off to get jailoc's.
Update the indicator
The indicator files, including the notification reports, are written at jailoc up. After upgrading jailoc, restart the workspace:
jailoc restart <name>
Fix a missing indicator
The agent doesn't show the workspace
Check the environment inside a session:
env | grep -E 'JAILOC|OPENCODE_TUI_CONFIG|OPENCODE_CLI_CONFIG_CONTENT'
You should see:
JAILOC=1andJAILOC_WORKSPACE=<name>; the OpenCode plugins and the pi extension (also used by OmO) render nothing withoutJAILOC;- OpenCode 1:
OPENCODE_TUI_CONFIG=/etc/jailoc-cache/tui-container.json; - OpenCode 2:
OPENCODE_CLI_CONFIG_CONTENTwithfile:///etc/jailoc-tui-pluginamong itsplugins. OpenCode 2 shows the sidebar inside a session, not on the home screen.
Claude Code shows no status line until you trust the workspace folder, or when your settings set disableAllHooks.
The indicator files are missing
Check that the indicator directory is visible in the VM:
ls /etc/jailoc-tui-plugin/
If it's empty or missing, run jailoc restart <name>. See Troubleshooting for other session problems.