Shell integration is what lets Rumus know where one command ends and the next begins. With it on, you get colored decorations for command success or failure, accurate working-directory tracking, and tighter AI agent behavior. Without it, terminals still work — you just lose those niceties.Documentation Index
Fetch the complete documentation index at: https://www.rumus.ai/docs/llms.txt
Use this file to discover all available pages before exploring further.
What you get when it’s on
Command decorations
A small circle in the gutter next to each command line — purple for success, red vertical line for non-zero exit.
Working directory
Rumus knows your current directory at any moment, which improves AI suggestions and tab tooltips.
Cleaner prompt boundaries
Search and selection respect command boundaries — you can scroll back and reach “the previous prompt” precisely.
Better AI context
The agent uses prompt and exit-code markers to understand what just ran and how it ended.
How it works
Shell integration is built on the standard OSC 133 escape sequences — the same convention VS Code, WezTerm, and friends use:| Marker | Meaning |
|---|---|
OSC 133;A | Prompt start |
OSC 133;B | Command start (after the prompt) |
OSC 133;C | Command execution begins |
OSC 133;D;exitcode | Command finished, with exit code |
Turning it on
Shell integration is configured per profile in Settings → Profiles. Each profile has a toggle — labeled something like “Enable script injection for command decorations and working directory detection” — that injects the necessary markers into the shell when a tab using that profile starts. Built-in profiles (the bash/zsh/PowerShell entries Rumus auto-detects) ship with this on. If you’ve created a custom profile that wraps a non-standard shell, you have two options:- Leave the toggle on and let Rumus inject standard markers.
- Turn the toggle off and add
OSC 133markers manually in your shell’s startup config.
Supported shells
The auto-injection covers the major shells:- bash and zsh — markers added to your prompt via
PROMPT_COMMAND/precmd. - PowerShell — markers added to your prompt function.
- fish — markers added via
fish_promptevent handlers. - cmd — limited; some markers are not feasible due to the shell’s prompt model.
When it doesn’t work
A few things can break shell integration:- A custom prompt that overwrites the markers. If you have your own
PROMPT_COMMANDorprecmdthat doesn’t preserve Rumus’s hooks, decorations stop appearing. Make sure your prompt logic is appended rather than replacing the existing one. - Connecting to an old shell over SSH. Older
bashversions or minimaldashshells may not support all the prompt hooks needed. - Programs that take over the screen. Full-screen TUIs (vim, htop, k9s) intentionally suppress prompts; decorations resume after the program exits.
- Open a new tab using the affected profile.
- Run a quick command (
ls). - Confirm the toggle is on for that profile.
- Check that your shell’s RC file isn’t overwriting the integration hooks.
Privacy
Shell integration runs entirely on your device. The markers it injects are local-only — they’re inserted by your shell, parsed by your terminal, and never sent anywhere.Shell-integration not behaving the way you expected? Ask in the Rumus community — the more shell variations we hear about, the better the integration gets.
Next steps
Profiles
Configure the per-profile toggle and add custom shells.
Search
Search across the prompt boundaries that shell integration creates.