umbr

agent
Security Audit
Pass
Health Pass
  • License — License: MIT
  • Description — Repository has a description
  • Active repo — Last push 0 days ago
  • Community trust — 70 GitHub stars
Code Pass
  • Code scan — Scanned 12 files during light audit, no dangerous patterns found
Permissions Pass
  • Permissions — No dangerous permissions requested

No AI report is available for this listing yet.

SUMMARY

Orchestrate AI coding agents locally: accounts, panes, handoff, architecture maps and model checking

README.md

Umbr

Umbr is a small, local tool that works with Claude Code, Codex and Pi. The name comes from the umbra, the darkest part of the shadow of the moon, where a total eclipse occurs. The logo is the "diamond ring" of the eclipse: the dark moon with one last point of light. The sources of the logo are in gui/src-tauri/icons/source/.

  • It isolates accounts with CLAUDE_CONFIG_DIR.
  • It hands off transcripts between profiles when you tell it to.
  • It has a short statusline with two lines.
  • It has no API proxy and no telemetry. It does not read credentials and does not install dependencies.

Install

Before you start, install Rust and Claude Code.

You install the desktop app separately. Refer to gui/README.md.

cargo install --path rust --bin umbr --bin ub
umbr add personal
umbr add work

After you make the profiles, use this command:

umbr   # or the short name: ub

Umbr keeps its data in ~/.umbr. An installation under an earlier name continues to use its folder (~/.tayson or ~/.claude-cockpit) while ~/.umbr does not exist. scripts/migrate-data-dir.ps1 moves the data to ~/.umbr.

Umbr reads items with the earlier names and writes them with the new name:

Before Now
CPIT_*, CLAUDE_COCKPIT_* settings UMBR_* (the old names still work)
.cockpit/ in a repository .umbr/ (umbr moves it the first time that it looks)
.cockpit-system-prompt.md, .cockpit-quota.json .umbr-system-prompt.md, .umbr-quota.json
<!-- cockpit:begin ... -->, cockpit:model, cockpit:flow-reviewed in pages umbr: (a page keeps its old markers until umbr writes it again)
*.cpit-branch.json *.umbr-branch.json
# ccpit in .gitignore, ccpit:path in the master notes # umbr, umbr:path

Umbr opens a color account picker. Then it starts Claude with the isolated profile that you select. When you stop Claude (/exit, or Ctrl+C two times), you go back to the primary screen, not to the shell. Thus you do not type the command again to change accounts. To stop umbr, push q or Esc in the menu.

Key Function
Up / Down (or k / j) Move in the list.
Enter Start Claude.
→ Show the data of the selected account.
a Add an account.
i Import an existing login.
d Delete the selected profile (type its name to confirm).
s Synchronize.
r Update the session counts.
q / Esc Stop umbr.

→ opens a read-only view:

  • The identity of the account: email, plan, organization and token expiry.
  • Activity and storage: starts, number and size of sessions, and disk use.
  • A list of all plugins, skills and MCP servers, with the size of each on the disk and an estimate of its tokens.

Push Enter on one of these items to see its screen. For a plugin, the screen shows the version, install date, commit, size of the instructions and contents. For a skill, it shows the description and files. For an MCP server, it shows the type and command. The token numbers are estimates (instruction bytes ÷ 4), not the live tool budgets.

If you are already logged in to an account on this computer, import its configuration. Then you do not log in again, and you keep its sessions, plugins, skills and settings:

ub import main            # copies ~/.claude + ~/.claude.json into profile "main"
ub import main <dir>      # or copy from a specific config dir

Before you import, close all Claude Code programs. This makes sure that the copy is consistent.

To delete a profile from the command line, add the confirmation flag:

ub delete main --yes

CAUTION: Make sure that the profile name is correct before you delete it. The command removes the data of the profile.

Copy plugins, skills and MCP servers between profiles

Profiles are isolated, but you can copy these items from one profile to a different profile. Use sync (menu key s, or the command):

ub sync main work            # copy plugins + skills + MCP servers
ub sync main work plugins    # just one of: plugins | skills | mcp | all

In the menu:

  1. Push s on a profile.
  2. Select the target account.
  3. Select the types to copy. To select only some plugins, skills or MCP servers, push → on a type.
  4. Select → Go.

The copy only adds items. It removes nothing from the target. Umbr merges the plugin settings into settings.json (enabledPlugins, extraKnownMarketplaces). It copies each skill folder. It merges MCP servers by name into settings.json and .claude.json. Then start Claude Code again in the target profile.

Do profiles share data?

No. Each profile has a separate CLAUDE_CONFIG_DIR. Thus user memory (<profile>/CLAUDE.md and <profile>/memory/), credentials, sessions, plugins, skills, MCP servers and settings belong to one profile. An import copies them one time. After that, they can become different.

Profiles share only the data in a project that you open. Claude reads ./CLAUDE.md and ./.claude/ of a repository from the work folder, not from the configuration folder. Thus all profiles see the same project memory in that repository.

You can also use these views, which are not interactive:

umbr dashboard
umbr sessions work
umbr open work
umbr sessions --all

When you add an account, umbr makes its isolated profile. When Claude opens, log in with /login.

To continue a transcript with a different account, use handoff (or h on the primary screen). Umbr can also do this automatically. Refer to "Session handoff".

Each profile has its own credentials, sessions, plugins and settings in this folder:

%USERPROFILE%\.umbr\profiles\<name>

Log in to each profile separately:

umbr login personal
# inside Claude: /login

umbr login work
# inside Claude: /login

Run them in separate terminals:

umbr run personal
umbr run work

All profiles get the umbr statusline automatically. add and import add it to the settings.json of the profile. import does this only if the imported configuration does not have a statusLine. To install it manually, for example after you edit settings.json, run this command:

umbr install-statusline work

The command makes a backup of settings.json, adds the statusLine command of Claude Code, and uses the status renderer of the profile. Then start Claude Code again.

Session handoff

Profiles do not share sessions. This is intentional. To continue a session with a different account, run these commands:

umbr handoff <session-id> personal work
umbr run work --resume <session-id>

You can also do this in the cockpit:

  1. Push h on a profile.
  2. Select the session.
  3. Select the target profile. Umbr then offers to start the session there.

The handoff makes a local copy of the session. The copy contains:

  • The transcript, without the thinking blocks. These blocks work only with the account that made them.
  • The transcripts of the subagents and the saved tool results. Umbr changes the paths to point to the copies.
  • The file history that code rewind uses.
  • The session system prompt, if there is one.

The next turn of Claude sends this history again as context. Thus the copy uses no tokens, but the next turn uses context and quota.

Auto-handoff

Each time the statusline shows, the umbr hook writes .umbr-quota.json into the configuration folder of the profile. The file contains the last 5h and 7d usage percentages. The hook gets this data only while Claude runs and calls the statusline command.

When you stop Claude, umbr reads this file. If the profile used 95% or more in one of the two windows, umbr selects the other profile with the lowest saved usage. It copies the session to that profile and asks if you want to continue there. A window with a reset time in the past does not count. With plain Claude, this occurs immediately after the Claude process stops.

In the panes of umbr, umbr does a check of the file each few seconds. When the account of a pane gets to its limit, umbr marks the pane limit and tells you one time. To move the session of the focused pane to a different account, push Ctrl+\ and then o. The session continues in the same position. You can do this on each Claude pane at all times. Umbr refuses if the target account already has a copy of that session.

Transcript editor (umbr)

To edit a session block by block, open it from the session browser.

  • / searches the full text of all blocks. n and N go to the next and the previous match. f filters. v shows a full block at the match.
  • o opens the outline: one line for each prompt, slash command or ! command. Each line shows the number of tool calls and changed files. The outline also shows compactions, notices and pinned parts. Enter goes to the item.

Table of contents in a live session (umbr)

Sessions that umbr starts load a small Claude Code plugin. Type /toc to open a pane. The pane lists your prompts, slash commands and ! commands, with the number of tool calls and changed files for each. It also shows a preview of the selected item.

Key Function
↑ / ↓ Move in the list. The list starts at the newest item and continues from one end to the other.
Enter Show the details: the prompt, all the answers of Claude and the changed files.
↑ / ↓ in the details Scroll.
Enter in the details Scroll the conversation to the prompt.
s Search prompts and names of changed files. Enter goes to the matches. Push s again to remove the filter.
Esc Go back, or close the pane.
  • To search the full conversation, use Ctrl+O and then / in Claude Code.
  • The function that scrolls to a prompt needs the full-screen mode of Claude Code. If it cannot scroll, the details tell you why.
  • If the terminal has 110 columns or more, the pane is adjacent to the chat. If not, it is above the prompt, without the preview.
  • After a compaction, the pane lists only the later prompts. The outline of the transcript editor (o) lists all of them.
  • This function needs a Claude Code version with plugin hook modules. To start without it, set UMBR_NO_PLUGIN=1.

Agents and the desktop app

An account is for Claude Code, Codex or Pi: umbr add <name> --agent codex [--home <existing folder>]. Handoff and the transcript editor work only with Claude Code. gui/README.md describes the desktop app and the functions of each agent.

Map, docs and rules (umbr)

Run these commands in a git repository. They do not use AI.

umbr map                 modules, areas and dependency loops
umbr docs check          are the pages in docs/architecture current? exit 1 if not
umbr docs write          write or update them
umbr rules check         what needs a look: exit 1 if anything does
umbr rules run <id>      run a rule's test
  • Map. Each Rust, Python, Java, Go, C, C++, Zig, JavaScript or TypeScript file is a module. Umbr parses all of these languages, except JavaScript and TypeScript, and does not include their tests. It reads JavaScript as text.
    • A Go file refers to the files that declare the names that it uses.
    • A C or C++ file refers to the headers that it includes.
    • A Zig file refers to the files that it imports.
    • To make your own groups of modules, add .umbr/map.json: {"areas":[{"name":"…","paths":["src/x/","src/y.rs"]}]}. If you drag areas in the desktop app, umbr also keeps their order there, as "order".
  • Docs. A package diagram, and the modules and public types of each area, in Markdown with Mermaid. Umbr replaces only the text between umbr:begin and umbr:end.
  • Rules. .umbr/rules.json contains the statements that must be true, the related code and an optional test command. The code is a file, or one function, type or method in Rust, Python, Java, Go, C, C++ or Zig. Umbr puts a flag on a rule when that code changes, in this worktree or in the work of a different worktree. It ignores changes to comments and layout. Umbr keeps the results on this computer, with the commit and a hash of the code.

CAUTION: Examine a test command before you approve it. The command comes from the repository and can cause damage to your computer. A test runs only after you approve that exact command on this computer.

A flag does not mean that the code breaks a rule. A test that passes shows only the result of that command.

Processes. The pages in docs/architecture/flows/ contain Mermaid state diagrams or sequence diagrams. You write them, or you tell an agent to write a draft. A comment above a step gives a link to the related code:

%% code: rust/src/handoff.rs#copy_between
checking --> refused : target already has it

In the Processes screen of the desktop app, you can add, rename, link and delete states, steps and participants. These actions change the Mermaid text of the page. If you drag a participant, you change its order in the page. If you drag a state, you change only the position in umbr, which .umbr/layout.json contains. GitHub uses its own layout for diagrams.

A page is a draft until a person marks it as reviewed. Only the Processes screen of the desktop app does this. Then umbr docs check reports the page when the related code or the diagram changes, and when a link goes nowhere. Umbr does not make sure that a diagram is correct. It does not monitor steps without a link.

Models. A process page can give the name of its Quint model, in a comment that GitHub does not show:

<!-- umbr:model docs/models/handoff.qnt main=locked invariant=safe -->

The Model tab of the Processes screen then has Check model. This function examines all states that the model can get to. If the invariant is false in a state, it shows the steps to that state. It needs Node and Java 17 or later. Before the first check, umbr asks if it can install Quint in its data folder. Then Quint downloads its model checker into ~/.quint. Each result shows the version of the model. A model only describes the code. A correct result tells nothing about code that the model does not include. Refer to docs/models/README.md.

The terminal app and the desktop app at the same time

The two programs can run at the same time. Each program records the panes that it runs. A program does not open, edit or delete a session that the other program has open. It does not remove a worktree in which a pane of the other program works. Instead, it shows you where the session is open.

Umbr does not record a session that you start without panes (umbr with session wrapping off). Versions before this one do not record their panes. Thus umbr thinks that all their panes run.

Open panes (umbr)

When session wrapping is on, each action that opens Claude (an account, resume, handoff) opens a pane. The new pane is adjacent to the panes that run.

  • The add-pane picker (p, or F7 in a split) has three columns: account, folder and session. ← and → change the column. Enter on an account or folder starts a new session. Enter on a session continues it. / searches the sessions of all accounts. w marks a folder for a new worktree.
  • If a session is already open, umbr goes to it and does not open it again.
  • Ctrl+\ and then m opens the primary screen as a pane. Each item that you open from it becomes a different pane. q closes it. Umbr does not save it with the layout.
  • Ctrl+B (or Ctrl+\ and then d) goes to the full primary screen. The panes continue to run.

Type, mouse and folders in panes (umbr)

  • If you paste more than one line into a pane, the program gets one paste, not one message for each line.
  • Ctrl+← and Ctrl+→ move one word. The program also gets the other movement keys with modifiers.
  • A click in the focused pane goes to its program. A click on a different pane only moves the focus. Drag to select and copy.
  • A folder prompt shows the folders for the text that you typed, in a grid.
Key in a folder prompt Function
Tab and Shift+Tab Go through the folders. If there is only one match, umbr opens it immediately.
Enter or a slash Open the folder.
Enter again Confirm.
Esc Show your typed text again.
Ctrl+Backspace (or Alt+↑) Go up one folder.
↑ / ↓ Go into the grid. There, the arrows move, Enter opens and Esc goes back to the text.

Restore panes (umbr)

Umbr saves the open panes: account, folder, worktree, layout and the Claude session of each pane (it also records /clear and /resume). At the next start, it asks if you want to restore them. On the home screen, o lists the saved layouts, and d removes one.

  • Ctrl+Q, a closed window, a crash or a restart of the computer keep all panes. Umbr removes a pane that you close (F8) or that stops correctly (/exit). It keeps a pane that fails.
  • If the folder, worktree or account of a pane is missing, umbr does not restore the pane and tells you why.
  • Umbr saves only panes. It does not save sessions that you open with session wrapping off.
  • The record of /clear and /resume uses a hook in the umbr plugin. Thus it is off with UMBR_NO_PLUGIN=1.

Statusline

Claude Code sends JSON to a statusline command on stdin. Set the statusLine command in the settings.json of the profile to run src/statusline.js. This is an example for Windows:

{
  "statusLine": {
    "type": "command",
    "command": "node C:/path/to/umbr/src/statusline.js"
  }
}

The output has the same style as Claude: one warm orange color for emphasis, a ✻ mark at the start and · separators:

✻ my-project · main · 12± · 3d · Opus 4.7 · 01:33 GMT+7 46m
  ctx 84% · 5h 24% 06:33 · 7d 17% · $8.42 · +616 -215 · 164.3k

The percentages are green below 50%, yellow below 80% and red above 80%.

When the data is available, the statusline shows the project, branch, changes, age of the last commit, Node version and model. It also shows the session time, context, cost, quota, token counts and Git diff numbers. It shows -- for a value that is not available. A missing value does not stop the Claude session.

Set the time zone of the clock with UMBR_TZ. The default is Asia/Bangkok.

Select a color theme with UMBR_THEME: default, ocean, dracula, nord or mono.

$env:UMBR_THEME = 'dracula'
node src/cli.js run work

Set the variable before you start Claude, so that the statusline process gets it. To remove the ANSI colors, set NO_COLOR=1.

Project notes: TODO.md and PLAN.md

When you start Claude in a project through ub (run, login, ub <profile> or an account from the menu), the project automatically gets:

  • A TODO.md and a PLAN.md at the root of the project. The root is the top folder of the git repository, or the folder in which you ran ub. Umbr makes the files one time, empty. It does not write on top of existing files.
  • A .gitignore entry for the two files, in a block with the # umbr marker. Umbr does not add the entry two times. This also occurs in a folder that is not a git repository. If git already tracks one of the files, umbr tells you to run git rm --cached. It does not do this itself.
  • Two-way synchronization with one master TODO.md and PLAN.md, while the Claude session runs. A change in the project file goes to the section of the project in the master file. A change in that section goes back to the project file.

Each project has one section in the master file, which the path of the project identifies (<!-- umbr:path=... -->). The link stays while the path does not change. Two projects with the same folder name have different sections.

If the two sides changed, the newer change replaces the older one. Umbr uses a hash of the contents to find the newer side. If there is no synchronization history, it uses the file time. Umbr also does a synchronization at the start and the end of each session.

The master files are ~/.umbr/TODO.md and ~/.umbr/PLAN.md by default. To use a different folder, set UMBR_NOTES_DIR. To set the function to off, set UMBR_NOTES=0.

If the synchronization stops and does not continue, set UMBR_NOTES_DEBUG=1 and do the operation again. Each step (git calls, file creation, synchronization, monitor start and stop) writes a line with the time to ~/.umbr/notes-debug.log. The last line shows the call that did not return.

View and edit from the primary screen:

  1. Push n.
  2. Select a file.
  3. Push Enter to open the file in the small text editor of umbr, in the terminal. To use $VISUAL or $EDITOR instead, push e (without these, umbr uses notepad or nano).
Key in the editor Function
Arrow keys Move.
Backspace / Delete Delete text.
Ctrl+S Save and stay in the editor.
Esc Save and close.
Ctrl+C Close and do not save.

When you close the file, umbr synchronizes it immediately. To synchronize from the command line, run ub notes [dir].

$env:UMBR_NOTES_DIR = 'C:\Users\you\notes'
$env:UMBR_NOTES = '0'   # disable entirely

Design limits

Umbr does not change the live credential files of Claude. Auto-handoff only copies a session transcript between profiles that you own, after one of them gets to its usage limit. It does not bypass a limit. It moves the conversation to an account that has available quota. Use it only with accounts that you own, and obey the terms of Anthropic.

Reviews (0)

No results found