OmniscioGuidesStatus line examplesClickable link
Claude Code status line with a clickable link
This is Anthropic's clickable-link example, printed whole, with the settings entry in its own section below. Under them is what a link actually is on the status line, how to check it before you trust it, and the terminal settings that decide whether your click opens a browser or does nothing.
Checked on November 26, 2026 against the Claude Code 2.1.332 documentation. By the Omniscio team. Updated .
What it shows
One row: the model in brackets, a chain-link glyph, and the repository's name. Only the name carries the escape sequence, so it is the only clickable part of the row.
[Opus] ๐ my-appIn a terminal that supports hyperlinks, hold Cmd on macOS or Ctrl on Windows and Linux, then click the name, and it opens the repository in your browser. Outside a git repository, or in one with no origin remote, the script prints the model on its own.
The link is not a Claude Code feature. It is a terminal feature: the script writes an OSC 8 escape sequence, and a terminal that understands it draws clickable text. That is why the same script can look perfect in one terminal and like plain text in another.
The full script
Save this as ~/.claude/statusline.sh. It is Anthropic's clickable links example, printed here so you do not have to assemble it from the documentation.
#!/bin/bash
input=$(cat)
MODEL=$(echo "$input" | jq -r '.model.display_name')
REMOTE=$(git remote get-url origin 2>/dev/null | sed 's/git@github.com:/https:\/\/github.com\//' | sed 's/\.git$//')
if [ -n "$REMOTE" ]; then
REPO_NAME=$(basename "$REMOTE")
printf '%b' "[$MODEL] ๐ \e]8;;${REMOTE}\a${REPO_NAME}\e]8;;\a\n"
else
echo "[$MODEL]"
fiThen make it executable, because the command runs in a shell:
chmod +x ~/.claude/statusline.shBefore it works, jq has to be installed. The script calls it to read the JSON, and it is a command-line JSON parser Anthropic's Bash examples use throughout. It is a separate download from jqlang.org; check with jq --version before you blame the link for an empty row.
The one line worth reading twice is the printf. An OSC 8 link is an opening sequence, the visible text, and a closing sequence: \e]8;; then the URL then \a opens it, the name is the text, and \e]8;;\a closes it. The script uses printf '%b' rather than echo -e because Anthropic recommends it for more reliable escape handling across shells.
The settings entry
Add this to ~/.claude/settings.json, or to a project's settings file if you want the row only there. type is always "command"; command is the script.
{
"statusLine": {
"type": "command",
"command": "~/.claude/statusline.sh"
}
}Add the object beside whatever else the file holds, inside the same braces; it is not a whole file to paste over. Claude Code reloads settings and runs the script as soon as you save it, so there is nothing to restart.
On Windows write the path with forward slashes. When the command runs through Git Bash, an unquoted backslash in command is eaten before the script runs, and the command fails without a visible error. The PowerShell page in this set is the Windows-native alternative.
What each field means
Your script gets one JSON object on stdin. This script reads one field from it and everything else from git; the payload does carry a repository identity, and it is worth knowing why the example does not use it.
| Field | What it holds |
|---|---|
model.display_name | The model's display name, the text in brackets. model.id is the identifier if you would rather switch on that |
workspace.repo.host, owner, name | The repository identity parsed from the origin remote, such as github.com, anthropics and claude-code. Absent outside a git repository or with no origin, which is why the documented example keeps its own git call and fallback |
workspace.current_dir | The directory you are in now. This script does not read it at all; the git call discovers the repository from the shell's working directory |
cwd | The same directory under its other name. Anthropic prefers workspace.current_dir for consistency with workspace.project_dir |
The distinction matters when you adapt the script. workspace.repo gives you the host, owner and name without a process, but it only exists for a repository with an origin remote. The documented example reads git remote get-url origin instead, which works for any HTTPS remote, at the cost of one git call per update. Note that its sed rewrites only the git@github.com: SSH form, so a GitLab or Bitbucket SSH remote stays a raw SSH string rather than a link.
How to confirm it renders
Test the script before you trust the setting. Anthropic's tip is to pipe mock JSON into it:
echo '{"model":{"display_name":"Opus"},"workspace":{"current_dir":"/home/you/my-app"},"context_window":{"used_percentage":25},"session_id":"test"}' | ~/.claude/statusline.shRun it inside a git repository with an origin remote and you get the linked name. Run it from a folder that is not a repository and you get [Opus] on its own. Both are correct, and seeing both is the proof that the fallback works.
Inside Claude Code, claude --debug logs the script's stderr on every invocation and its exit code on the first invocation in a session. Claude Code displays output only after the script exits 0, so a non-zero exit or no output leaves the row blank, and stderr is where a broken jq call shows up.
Then check the part no script test can promise: hold Cmd or Ctrl and click the name. If the text is there but the click does nothing, the escape sequence arrived and your terminal or connection refused to act on it.
Why the link stops working
A clickable link has two independent halves: Claude Code has to print the escape sequence, and the terminal has to understand it. A script that runs perfectly can still produce a link nobody can click.
| What you see | Check |
|---|---|
| No row at all | The folder is trusted, the script is executable, and claude --debug shows its exit code. A row is hidden until the workspace trust dialog is accepted |
| The name appears but the click does nothing | Your terminal. Terminal.app does not support clickable links; iTerm2, Kitty and WezTerm do |
| A terminal that should work still refuses | Claude Code may not have detected hyperlink support. Set FORCE_HYPERLINK=1 before launching claude |
Literal text like \e]8;; | Use printf '%b' instead of echo -e; printf '%b' interprets the escapes more reliably |
| The link works locally but not over SSH or tmux | Those sessions can strip OSC sequences depending on their configuration |
| The whole row looks garbled | Complex escape sequences can collide with other UI updates. Anthropic's first move is to simplify the script to plain text |
A blank row has its own list, and it is the same for every script in this set: the folder is trusted, the script exits 0, and it prints to stdout rather than stderr. The examples library collects those checks in one place.
More in this set
Each page carries a complete setup, not a fragment.
- Rate limit usage โ the 5-hour and weekly windows, and the spend limit behind a gateway
- A fast git row โ cache git output so the row never stalls
- One inline command โ the same model and context row with no script file
- Python scripts โ the context bar, git status and cost rows in Python
- Git branch and changes
- The status line itself โ the setting, the payload, and why a row is blank
Where Omniscio fits
The status line is Claude Code's own, and nothing on this page needs Omniscio. Omniscio is a desktop app for running several Claude Code agents side by side, in one list rather than a wall of terminals.
Its agent sessions run Claude Code in print mode, so they show Omniscio's session list rather than a terminal row. A status line you configure still applies to any claude you run yourself in a terminal.
The features page lists what the app does today.
How this page was checked
Every statement here about Claude Code comes from Anthropic's own documentation, read in its Markdown form on November 26, 2026: the status line page, the settings reference and the changelog. The version line comes from the changelog, whose newest release is 2.1.332, dated November 25, 2026.
The script is Anthropic's clickable links example reproduced in full, with Anthropic's three inline comments removed and HTML entity escaping applied. It was not written for this page and not run on our machine; where the page says what it prints, it is repeating what that example is documented to print.
What this page says about Omniscio comes from our own pages. If Anthropic's page and this one ever disagree about Claude Code, Anthropic's page is right, because this part of Claude Code changes on nearly every release.
Sources
- Customize your status line: the setting, the full JSON and every field, the clickable links example, the OSC 8 notes, terminal support and the whole troubleshooting section
- Settings reference: the
statusLineentry and its fields - The changelog: release 2.1.332, the newest listed
- jq: the JSON parser the script calls
Omniscio's own pages, for what this section says about this app:
- Omniscio's homepage: the product description
- Features: what the app does today
- Claude Code status line: the setting and the payload this page assumes
Common questions
Why is the link on my Claude Code status line not clickable?
The link is an OSC 8 escape sequence, and whether it is clickable depends on your terminal. Terminal.app does not support clickable links; iTerm2, Kitty and WezTerm do. Claude Code also has to detect hyperlink support, which you can force with FORCE_HYPERLINK=1 before launching claude. SSH and tmux can strip the sequence on the way through.
What does the status line script do to make the repository name a link?
It reads the origin remote with git remote get-url origin, converts the SSH form git@github.com:owner/repo.git to https://github.com/owner/repo, then wraps the name in OSC 8 escape codes: the URL, then the text, then a closing sequence. The Bash version prints with printf '%b' because it handles backslash escapes more reliably than echo -e.
Can I build the link from the status line JSON instead of git?
Partly. The payload carries workspace.repo.host, workspace.repo.owner and workspace.repo.name, parsed from the origin remote, so you can compose a URL without running git. It is absent outside a git repository and when no origin remote is configured, so a script still needs a fallback. The documented example reads git directly.
Why does the escape sequence print as literal text?
The documented fix is to use printf '%b' instead of echo -e, which interprets the backslash escapes more reliably across shells. If a whole row looks garbled, Anthropic advises simplifying the script to plain text, because complex escape sequences can occasionally collide with other UI updates.
Run those Claude Code sessions from one window
Install Omniscio, keep your Claude Code sessions in one list, and see what each one needs without hunting through terminals. The features page lists what is in it today.