lich

command module
v0.93.0-rc.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 23, 2026 License: AGPL-3.0 Imports: 52 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

lich

lich

English · Português (Brasil) · Español · 简体中文 · 日本語 · 한국어 · Русский

Release Platform License Sponsor

The multi-agent ADE: all your agents working at once, each on its own branch.
Claude Code, Codex, opencode or the agent you already use, each in its own worktree, all in one window.

Download lich · lichdotdev.github.io/lich

Four Claude Code sessions side by side in one layout, each in its own git worktree. The sidebar lists each worktree by its branch with its session under it, and the footer shows the branch, the model, the context used and the plan usage

Features

Claude Code and Codex sessions on one wall, each on its own branchSessions in the sidebar, each with its own branch and diff badgeA diff with two line comments queued to send to the sessionThe session's browser beside its terminal, with two numbered notes pinned to elements of the pageA pull request open in lich with its file tree, diff and a pending review commentThe Appearance settings with the theme picker, fonts and footer layout

Agents side by side

Put sessions on a wall and lich lays out the panes for you. See at a glance which one is busy, which one is waiting on you and how much context it has left.

A worktree per task, no setup

Branch a session off any base and lich copies your .env files and gives it a free dev-server port. Your uncommitted work can come along.

Review the diff, comment the lines

Read what the agent changed next to its session, comment on the lines that need work and send every note back as one prompt.

Point at the page, tell the agent

The agent drives a browser beside its session, and you use the same page. Point at what's wrong, leave a note on it and send every note back as one prompt.

Pull requests without the browser

Open a pull request, ask the branch's agent to write it, review it inline and merge it, all from the same window.

Make it yours

Import a theme as JSON or install one from a git repository.

Docs →

And also:

  • Sessions that delegate. One agent hands a task to another session and gets the answer back. The same works from your shell with the lich command (docs).
  • Sandboxed agents. Let an agent skip permission prompts inside a sandbox that can't see your keys, your credentials or your other repositories (limits).
  • Your dev servers in the sidebar. Save what a project keeps running and start or stop it with one click.
  • Find anything. Ctrl/Cmd+K jumps to a session by name or by something said in it.
  • Know when you're needed. A desktop notification when a session is waiting on you.

Install

curl -fsSL https://raw.githubusercontent.com/lichdotdev/lich/main/install.sh | sh

One line: it detects your distro, checks the download and installs lich with your package manager.

Platform Get it
Linux install.sh above, or AUR lich-bin (yay -S lich-bin). Needs zenity and glibc 2.34 or newer (Debian 12, Ubuntu 22.04, RHEL 9 and up).
macOS brew install --cask lichdotdev/tap/lich
Windows Installer or portable zip from Releases, or scoop install https://github.com/lichdotdev/lich/releases/latest/download/lich.json

The macOS and Windows builds are not signed yet, so Gatekeeper and SmartScreen warn on a download from Releases; Homebrew skips the Gatekeeper prompt. Per-distro packages, the Linux tarball, clearing the quarantine flag and upgrading from the old Homebrew formula are in INSTALL.md.

Getting started

  1. Open a project. The + in the tab strip lists what you closed recently and opens a folder picker. Point it at a git repository.
  2. Pick your agent. The first launch lists the agents it found on your machine. Settings › Providers sets the default and each binary's path.
  3. Start a session. New Session opens your agent in the project. The + on a checkout's header opens any agent, or a plain terminal, in that checkout.
  4. Give it a worktree (optional). Create one from any base branch and lich opens a fresh session in it.

Provider support

Every agent runs in a real terminal, resumes its conversation, works in the sandbox and reaches your other sessions. What changes from one to another is what lich can read back out of it, since each CLI records different things.

See what each agent supports
What you get Claude Code Codex Antigravity opencode oh-my-pi Crush Cursor CLI Kiro CLI
Install it from the Welcome yes yes yes yes; not on Windows yes with npm, or Homebrew on macOS yes Linux and macOS
Sign in from the Welcome yes yes no, on its first run in a terminal, with a project open in a terminal, with a project open no, on its first run in a terminal, with a project open; not on macOS in a terminal, with a project open; Linux only
Context window in the footer yes yes no no no no no yes
How much of the last turn came from the prompt cache, in the footer yes yes no in the cost tooltip in the cost tooltip no no no
The card's tooltip names the model running, and the one it opened on if it changed yes yes no no no no no yes
Cost in the footer yes yes no yes yes yes no credits
A conversation branched inside the agent's own terminal is billed once for the history it copies yes, unless the cost is the one Claude Code measured itself no no cost readout yes yes, except a turn saved without a response id cannot branch no cost readout no cost readout
How much of your plan is left yes yes yes OpenCode Go only no no yes no
What you have spent past your plan, and its cap, in the usage tooltip yes no no no no no no no
Use a limit reset your plan grants, from the profile panel in the sidebar yes no no no no no no no
The on-demand resets your account holds, in the usage tooltip no yes no no no no no no
A turn your plan's usage limit stopped picks up again once the limit resets yes yes no its own retries its own retries no no no
When another of your profiles still has quota, a notice offers to continue there at once yes yes no no no no no no
When handing off, an agent can suggest one of your profiles for its successor, and a notice lets you choose to move it yes yes no no yes no Linux and Windows Linux only
Spinner while a turn runs, ring when it ends yes yes yes yes yes from Crush 0.99.0 yes yes
The card names itself after the conversation yes after your first prompt after your first prompt yes yes, from the second turn once the first turn ends, from Crush 0.99.0 yes, once the first turn ends after your first prompt, once the first turn ends
A pull request the agent opens shows on its card when the turn ends yes yes yes yes yes from Crush 0.99.0; before it, once the window regains focus yes yes
A task you hand an agent comes back by itself when its turn ends yes yes yes yes yes from Crush 0.99.0; before it, it answers with reply_to_session in the chat; in a terminal it answers with reply_to_session yes
A task waits for the commands and subagents the agent left running in the background, instead of coming back with its interim words in a chat; in a terminal from lich-plugin's next release no no no in a terminal no background commands, in a chat no
Repaints in the new look when you switch lich between a light and a dark theme yes no no yes yes no yes no
Bell when the agent is blocked on you yes yes no yes no from Crush 0.99.0 no no
Ctrl+Shift+I jumps to the next session waiting on you yes yes no yes no from Crush 0.99.0 no no
A program in the agent's terminal can set the card (OSC 7501) while the agent runs no no no no no before Crush 0.99.0 no no
Back at a shell without prompt marks after you quit the agent, a program can set the card again yes no no no no yes yes no
The tray lists the sessions waiting on you and the ones working, and its icon takes a dot yes yes working only yes working only from Crush 0.99.0 working only working only
The card says when the conversation is being compacted in a chat in a chat only a /compact you type in a chat only a /compact or /summarize you type in a chat only a /compact you type in a chat no not verified in a chat
Sidebar filter by state: Waiting, Running, Unread yes yes no Waiting yes no Waiting from Crush 0.99.0; before it, always Idle no Waiting no Waiting
Run by your agent inside another session (claude -p, cursor-agent -p), it stays out of that session's card yes yes yes yes yes yes yes no
Besides the tools for reaching your other sessions, the agent is told when to use them (hand work to a session on its own worktree) yes yes, unless your config.toml sets developer_instructions yes yes yes yes not measured yes
Machine kept out of idle sleep while a turn runs yes yes yes yes yes from Crush 0.99.0 yes yes
Sessions trading messages with no work in between, two of them or round a loop of several, are stopped yes yes yes yes yes from Crush 0.99.0 yes yes
Review tab's Last turn, with the agent's recap yes yes yes yes yes no yes yes
Search the conversation from the palette yes yes yes yes yes yes no yes
Resume a conversation started outside lich, from the palette's History tab yes yes yes yes yes Linux; macOS and Windows untested yes yes
A long paste can land as editable text instead of a folded placeholder (Settings › Providers, off by default) yes no no yes not measured no, it becomes a paste_N.txt attachment no yes
Fork a conversation into a new worktree, or in its own checkout yes yes no yes no no no no
A fork hangs from its source session in the sidebar's tree yes yes no yes no no no no
Warned when you resume, from the agent's own app, a conversation another card has open yes on your next prompt on your next prompt, untested no yes on your next prompt from Crush 0.99.0; before it, at its next tool call no yes
Told when it edits a file another session edited minutes before, and which session it was yes yes yes yes yes from Crush 0.99 yes with your next message
Open a session at a chosen reasoning effort yes yes yes no yes no in the model name yes
Open a session with ultracode on yes no no no no no no no
Several accounts side by side as profiles, each with its own full login, and a session moved to another account carrying on in the same card (Settings › Providers) yes, with its own plugins, default model and effort in each profile and Personal's other settings shared by all of them yes, with its own plugins, default model and effort in each profile and Personal's other settings shared by all of them no yes, logged in from a terminal card; a session cannot move to another profile, since its conversations sit in the database that holds the login; the model picked last is every profile's default yes, logged in from a terminal card, with its own default models in each profile and its other settings shared by every profile not measured Linux and Windows (on macOS its login is in the Keychain), logged in from a terminal card, with mcp.json, hooks and skills shared by every profile Linux only (macOS keeps its login in the Keychain, and on Windows nothing moves it), logged in from a terminal card, with its conversations and default model shared by every profile
A folder you trusted in your main account opens without the "trust this folder?" question in every other profile yes yes no profiles asks nothing asks nothing not measured yes asks nothing
A sandboxed session opens without the "trust this folder?" question yes yes yes asks nothing asks nothing yes, and it no longer asks to initialize the project yes asks nothing
A worktree of a folder you trusted opens without the "trust this folder?" question yes yes yes asks nothing asks nothing yes, and it no longer asks to initialize the project yes asks nothing
Drive a session shown as a chat from lich control or an agent: prompt, stop, model, effort, slash command; a session in its terminal is refused yes yes; a model or effort applies from your next message yes yes yes no chat not verified yes, no effort, and a model only between turns
A subagent the agent starts runs as a lich session with its own card, in the asking session's checkout, hands its full report back and closes once done; its own subagents get cards too, one level down yes yes yes yes yes yes in a terminal; its chat runs no hooks yes
Context, cost and plan usage as the CLI measured them itself in a chat no no no no no no no
Delegate privately from a subagent or workflow step yes yes yes yes yes yes yes yes
A resumed session keeps the model and effort it was on model only yes no model yes no model model; effort untested
A result still waits for you after you interrupt a wait for it yes yes yes yes no yes yes yes
A task you hand another session reports back "unanswered" as soon as that agent ends its turn without replying yes yes yes yes yes no, waits for the deadline yes yes
lich's own messages to the agent (handed tasks, results ready, notices) in the prompt language you pick yes yes yes yes yes yes yes yes
Told at spawn, in the prompt language, to fan work out as lich sessions rather than hidden subagents yes no no no yes no no no
The session card opens a browser its agent drives, beside the session's terminal yes yes yes yes yes yes yes yes
A page the agent makes to show you (a report, a diagram, a mockup) opens in that browser from a folder of the session's own, outside the checkout, kept as long as the session yes, though Claude Code may still publish it to claude.ai with its own Artifact tool yes yes yes yes yes yes yes
A skill for writing a lich extension that runs only when you call it (/lich:extension) yes yes, as $lich:extension yes, but the agent sees it every turn: Antigravity cannot keep a skill for manual use yes, as /lich-extension (opencode 1) or from /skills (opencode 2) yes, as /skill:lich-extension yes, from the command palette yes, but the agent sees it every turn: Cursor shows the agent every skill a plugin ships no: Kiro cannot keep a skill out of the agent's context
The session can be drawn as a chat instead of its terminal, switching back and forth on the same conversation yes yes yes yes yes no not verified yes
A new session opens as a chat, or in its terminal when Settings › Providers says so yes yes yes yes yes no, always its terminal not verified yes
A session shown as a chat takes the tasks and notes other sessions send it yes yes; answering with lich's tools from the chat not verified yes; answering with lich's tools from the chat not verified yes; answering with lich's tools from the chat not verified yes; answering with lich's tools from the chat not verified no chat not verified yes; answering with lich's tools from the chat not verified
In the chat, pick the model, effort and mode the agent offers yes, including a mode that runs every tool without asking yes, including a mode that runs every tool without asking; a change applies from your next message yes yes yes no not verified model and mode, no effort
In the chat, the agent's questions come as a card you answer by click or key yes not verified yes yes on opencode 1; opencode 2 not verified yes no not verified no: Kiro asks in plain text
In the chat, a plan the agent asks to start on comes as a card with the plan, to start with every edit accepted or each one approved, or to keep planning with what to change yes; the context-clearing, bypass, auto mode and Ultraplan choices of its terminal are not offered no: the chat has no plan mode not verified not verified; opencode asks with its own question, which comes as a question card not verified no chat not verified not verified
In the chat, typing / at the start of a line lists the agent's commands and skills to complete yes, skills marked as such skills only, typed as $name yes yes yes no not verified yes
In the chat, typing @ at the start of a word lists the project's files and folders, to put a path in your message yes; Claude Code reads the file itself yes; the path goes as text and the agent opens it with its own tools yes; the path goes as text, what the agent does with it not verified yes; the path goes as text, what the agent does with it not verified yes; the path goes as text, what the agent does with it not verified no not verified yes; the path goes as text, what the agent does with it not verified
In the chat, a line that starts with ! runs as a shell command in the project, with no agent and no permission check yes; the agent gets the output and answers it, as with Claude Code's own ! yes; the agent sees it with your next message, and the chat does not show it after it restarts no: the line goes to the agent as typed yes on opencode 1, and the agent sees it; opencode 2 sends the line as typed no: the line goes to the agent as typed no no: the line goes to the agent as typed no: the line goes to the agent as typed
In the chat, a compaction shows while it runs and leaves a line with the tokens before and after yes yes only a /compact you type only a /compact or /summarize you type only a /compact you type no not verified yes, without the token counts
In the chat, Shift+Tab moves to the next mode the agent offers, never into one that runs every tool without asking yes, in Claude Code's own order yes yes yes yes no not verified yes
In the chat, /mcp lists the agent's MCP servers and their tools, to turn one off or on, reconnect it or sign in, and /skills lists its skills to turn on or off yes; a skill you turn off is written to the checkout's .claude/settings.local.json yes; in a profile other than your main account, the change is undone the next time a session starts in it no no no no no no
In the chat, /plugin lists the agent's plugins to install, update, turn off or uninstall, and its marketplaces to add, update or remove yes; an update runs once the chat restarts yes; it installs for you only, from the marketplaces on your machine, and has no plugin update no no no no no no
In the chat, /permissions lists the agent's allow, ask and deny rules and the folders it may work in, to add a rule to a settings file or remove one yes; folders are listed, not added or removed it lists the modes to pick one, Codex having no rules no no no no no no
In the chat, /hooks lists the agent's hooks by event yes; to read, as in its own /hooks yes; to trust a hook, or turn it off or on no no no no no no
In the chat, /memory lists the instruction files the agent loads and the memories it saved, to open and edit them, and turns auto-memory on or off; /agents lists its subagents, to open one's file or add one yes yes; /memory lists the AGENTS.md files the conversation loaded, and /agents the roles your config.toml declares, without the built-in ones and with no way to add one no no no no no no
In the chat, a tool call shows the moment it starts, its time counting, and keeps how long it took yes yes; a conversation read back shows no times not verified not verified not verified no not verified not verified
In the chat, a message written while the agent works waits in a queue that goes when the turn ends, or is forced into the turn running yes yes queued; forcing it stops the turn and sends it after queued; forcing it stops the turn and sends it after queued; forcing it stops the turn and sends it after no not verified queued; forcing it stops the turn and sends it after
In the chat, the agent's task list stands over the message box while it has tasks left yes; a CLAUDE_CODE_ENABLE_TODO_TOOLS you export yourself is kept, and set to 0 it hides the list on Claude 5 models yes; a conversation read back shows it once the agent updates it not verified not verified yes no chat not verified not verified
In the chat, a chip in the message box counts the commands the agent left running in the background, and opens them to read their output and stop one yes; they stop when the chat's process does, at a switch to TUI, /new or a switch to YOLO mode no no no no no chat no no
In the chat, Ctrl+B moves a command the agent is waiting on to the background, where it keeps running while the agent carries on yes; the line that shows the agent at work says when you can no no no no no chat no no
In the chat, an image you attach reaches the agent as an image, and any other file as its path in your message yes sent as an image; whether the agent sees it not verified sent as an image; whether the agent sees it not verified sent as an image; whether the agent sees it not verified sent as an image; whether the agent sees it not verified no not verified sent as an image; whether the agent sees it not verified
In the chat, when a turn you started ends, the empty message box suggests what you might write next, and Tab puts it in the box yes yes; lich asks the same model at low effort, which uses a little of your plan no no no no chat no no

Every gap is deliberate, and docs/ceilings.md says what was measured behind each one.

Configuration

  • Providers. Settings › Providers sets each agent's binary and the default for every project; a project can choose its own. With no path set, lich runs the first binary on your login shell's PATH and lich doctor warns when there is more than one version.
  • Footer. Settings › Appearance: drag its items to choose what it shows. The cost starts hidden, since it only means something when you pay per token.
  • Worktrees. A .worktreeinclude file in the project picks which gitignored files a new worktree gets.
  • Session hooks. Install the lich plugin from Settings and a session names its own card and refreshes git the moment it writes a file.
  • Scripting. docs/stability.md says which parts of lich are safe to script against.

Privacy & updates

Everything runs on your machine: no account, no sign-in, no telemetry. lich only goes to the network for:

  • Updates: a version check against GitHub Releases at startup and hourly, and the lich plugin's release list at startup.
  • Plan usage: each provider's own usage endpoint (Anthropic, OpenAI, Cursor, OpenCode Go), with the login the agent already uses, at most every five minutes. Antigravity's plan is read from agy itself.
  • Prices: LiteLLM's public price table on GitHub, once, for a model the bundled table does not know.

The Windows installer updates in place; Homebrew, Scoop, AUR and the Linux packages update through their package manager, and lich gives you the command. Something broken? lich doctor checks your setup and lich rage packs a bug report into one archive without uploading it. Settings › Help says what the log carries (paths, project and branch names, your gh login, never a session token) before you attach it. Bugs and feature requests go to Issues; what changed in each version is in CHANGELOG.md.

Build from source

lich is two binaries: lich, a static pure-Go backend, and lich-native, the window, built with cgo from native/. You need Go 1.27.0+ and Task; the window also needs a C toolchain, Gio's system packages, libjpeg-turbo's libturbojpeg and a libghostty-vt built from the commit in native/GHOSTTY_COMMIT. native/slice.sh says how, and docs/native-window.md covers the window.

task build          # backend binary -> bin/lich
task build:native   # window -> bin/lich-native
task run            # build + run
task test           # Go suites
task package        # .deb + .rpm + Arch .pkg.tar.zst in bin/ (needs nfpm)

Adding another agent touches a dozen files across two repositories: docs/adding-a-provider.md is the map.

Sponsors

lich is written and maintained by one person. Sponsoring pays for the time that goes into it and keeps the project independent: there is no paid tier of the app and there will not be one.

Become a sponsor

Backers

Nobody yet.

License

AGPL-3.0-only © 2026 omartelo

lich is free software: you can use, study, modify and redistribute it under the terms of the GNU Affero General Public License v3. Any distributed or network-served derivative must be released under the same license. Releases up to and including v0.9.0 remain MIT-licensed.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
Package api is the contract between the lich backend and its clients: the window (native/backend), `lich` and `lich mcp`.
Package api is the contract between the lich backend and its clients: the window (native/backend), `lich` and `lich mcp`.
extension module
internal
agentplugin
Package agentplugin manages the lich companion plugin inside the provider CLIs that can run it: whether it is installed, whether a newer release exists, and installing or updating it.
Package agentplugin manages the lich companion plugin inside the provider CLIs that can run it: whether it is installed, whether a newer release exists, and installing or updating it.
appkit
Package appkit makes lich's backend a macOS application, through purego rather than cgo: it runs AppKit's event loop on the main thread, which AppKit insists on, and the backend beside it.
Package appkit makes lich's backend a macOS application, through purego rather than cgo: it runs AppKit's event loop on the main thread, which AppKit insists on, and the backend beside it.
appupdate
Package appupdate checks GitHub for a newer lich release and, on a Windows install no package manager owns, downloads and runs the release's installer.
Package appupdate checks GitHub for a newer lich release and, on a Windows install no package manager owns, downloads and runs the release's installer.
artifact
Package artifact keeps the pages a session's agent writes to show the user, a report, a diagram, a mockup, one directory per session outside its checkout, so they never land in git.
Package artifact keeps the pages a session's agent writes to show the user, a report, a diagram, a mockup, one directory per session outside its checkout, so they never land in git.
awake
Package awake keeps the machine from idling into sleep while a session is working, the way a media player does while it plays.
Package awake keeps the machine from idling into sleep while a session is working, the way a media player does while it plays.
chat
Package chat runs a session as a chat (api/chat.go): its provider's CLI in the CLI's structured mode, Claude Code's stream-json, Codex's app-server or the Agent Client Protocol, read into items the window draws.
Package chat runs a session as a chat (api/chat.go): its provider's CLI in the CLI's structured mode, Claude Code's stream-json, Codex's app-server or the Agent Client Protocol, read into items the window draws.
claudeprofile
Package claudeprofile keeps more than one Claude Code account on one machine.
Package claudeprofile keeps more than one Claude Code account on one machine.
cli
Package cli is the `lich` command line — the surface a provider CLI running inside a lich session uses to reach the sessions beside it.
Package cli is the `lich` command line — the surface a provider CLI running inside a lich session uses to reach the sessions beside it.
codexhooks
Package codexhooks reads Codex's hooks/list, the app-server's account of each hook and whether the person trusted it (measured on 0.170.0), which a Codex chat and a Codex terminal session both read.
Package codexhooks reads Codex's hooks/list, the app-server's account of each hook and whether the person trusted it (measured on 0.170.0), which a Codex chat and a Codex terminal session both read.
codexprofile
Package codexprofile keeps more than one Codex login on one machine, the way internal/claudeprofile does for Claude Code.
Package codexprofile keeps more than one Codex login on one machine, the way internal/claudeprofile does for Claude Code.
doctor
Package doctor answers "would lich start on this machine, and why not".
Package doctor answers "would lich start on this machine, and why not".
drop
Package drop turns a file dropped on the terminal into a path the session can paste.
Package drop turns a file dropped on the terminal into a path the session can paste.
events
Package events pushes app events (session status, titles, touched — anything the backend pushes to the UI) to the local WebSocket client on /events (see docs/native-window.md).
Package events pushes app events (session status, titles, touched — anything the backend pushes to the UI) to the local WebSocket client on /events (see docs/native-window.md).
extensions
Package extensions runs what the user installed under lich's extensions directory: separate programs that speak the JSON lines of the extension contract over stdin and stdout.
Package extensions runs what the user installed under lich's extensions directory: separate programs that speak the JSON lines of the extension contract over stdin and stdout.
ghrelease
Package ghrelease reads the published releases of a GitHub repository — the one piece lich's two update checks (the app in internal/appupdate and the lich plugin in internal/agentplugin) share.
Package ghrelease reads the published releases of a GitHub repository — the one piece lich's two update checks (the app in internal/appupdate and the lich plugin in internal/agentplugin) share.
gitutil
Package gitutil holds the small process rules shared by git callers.
Package gitutil holds the small process rules shared by git callers.
logging
Package logging configures the process-wide slog logger: structured text with source file:line on every record, mirrored to stderr and a persistent file under the lich config dir.
Package logging configures the process-wide slog logger: structured text with source file:line on every record, mirrored to stderr and a persistent file under the lich config dir.
newtab
Package newtab serves the page a session's browser opens on: what lich already knows of the session (the project's running services, the session's artifacts, the pages its browser visited last) and an address field.
Package newtab serves the page a session's browser opens on: what lich already knows of the session (the project's running services, the session's artifacts, the pages its browser visited last) and an address field.
ompprofile
Package ompprofile keeps more than one oh-my-pi login on one machine, the way internal/claudeprofile does for Claude Code.
Package ompprofile keeps more than one oh-my-pi login on one machine, the way internal/claudeprofile does for Claude Code.
patchnotes
Package patchnotes serves the changelog section for the running build so the app can show a "what's new" popup after an update.
Package patchnotes serves the changelog section for the running build so the app can show a "what's new" popup after an update.
preview
Package preview serves a session's checkout, and its artifact directory, over loopback HTTP, so the session's browser can load a local file without a file: URL.
Package preview serves a session's checkout, and its artifact directory, over loopback HTTP, so the session's browser can load a local file without a file: URL.
pricing
Package pricing answers what a model's tokens cost, in US dollars, for the per-session cost readout.
Package pricing answers what a model's tokens cost, in US dollars, for the per-session cost readout.
profilestore
Package profilestore keeps more than one login of a provider on one machine.
Package profilestore keeps more than one login of a provider on one machine.
project
Package project opens project directories through the OS file picker.
Package project opens project directories through the OS file picker.
prompt
Package prompt holds the natural-language text lich types into an agent session, in every language a user can pick for it.
Package prompt holds the natural-language text lich types into an agent session, in every language a user can pick for it.
providers
Package providers is the registry of AI coding CLI harnesses lich can run in a session (Claude Code, Codex, Antigravity, opencode, oh-my-pi, Crush, Cursor CLI, Kiro CLI).
Package providers is the registry of AI coding CLI harnesses lich can run in a session (Claude Code, Codex, Antigravity, opencode, oh-my-pi, Crush, Cursor CLI, Kiro CLI).
quota
Package quota reads the subscription quota a provider's own account API reports: the rolling windows a plan is metered in, and how much of each one is spent.
Package quota reads the subscription quota a provider's own account API reports: the rolling windows a plan is metered in, and how much of each one is spent.
rage
Package rage collects what a lich bug report needs into one archive: the facts that decide whether a report is actionable (version, platform, window, provider and plugin state), the environment lich was launched with, and the log generations — with the loopback token masked wherever it appeared.
Package rage collects what a lich bug report needs into one archive: the facts that decide whether a report is actionable (version, platform, window, provider and plugin state), the environment lich was launched with, and the log generations — with the loopback token masked wherever it appeared.
relay
Package relay lets one lich session hand a prompt to another and get an answer back, for the providers whose own CLI has no cross-session channel of its own.
Package relay lets one lich session hand a prompt to another and get an answer back, for the providers whose own CLI has no cross-session channel of its own.
relpath
Package relpath validates the repo-relative paths lich receives from the page — a file picked in the review panel, a path parsed out of git's diff output — before they are joined onto a work-tree root.
Package relpath validates the repo-relative paths lich receives from the page — a file picked in the review panel, a path parsed out of git's diff output — before they are joined onto a work-tree root.
restart
Package restart owns how a running lich ends.
Package restart owns how a running lich ends.
routes
Package routes exposes the services api declares on an rpc.Handler, one function per service.
Package routes exposes the services api declares on an rpc.Handler, one function per service.
rpc
Package rpc exposes the app's Go services to the window, `lich` and `lich mcp` over plain HTTP on the local transport listener: the window is its own process and never imports internal/ (docs/native-window.md).
Package rpc exposes the app's Go services to the window, `lich` and `lich mcp` over plain HTTP on the local transport listener: the window is its own process and never imports internal/ (docs/native-window.md).
sandbox
Package sandbox confines a session's process tree to the work it was opened for: a private empty home, the rest of the machine read-only, and write access only inside the checkout and the provider's own state directory.
Package sandbox confines a session's process tree to the work it was opened for: a private empty home, the rest of the machine read-only, and write access only inside the checkout and the provider's own state directory.
scope
Package scope is what a confined session may ask of lich's loopback listener.
Package scope is what a confined session may ask of lich's loopback listener.
semver
Package semver compares release versions well enough for lich's update checks: MAJOR.MINOR.PATCH plus the SemVer rule that a pre-release precedes the release it qualifies.
Package semver compares release versions well enough for lich's update checks: MAJOR.MINOR.PATCH plus the SemVer rule that a pre-release precedes the release it qualifies.
services
Package services runs a project's services: commands the user saved once (a container, a tunnel, a dev server) that lich starts on a PTY of their own and shows as up or down, outside the session list.
Package services runs a project's services: commands the user saved once (a container, a tunnel, a dev server) that lich starts on a PTY of their own and shows as up or down, outside the session list.
shellintegration
Package shellintegration marks a shell session's prompt for the terminal with OSC 133, the way Ghostty's shell integration does, so the native window's terminal (libghostty-vt) clears the prompt on a resize instead of leaving the lines a reflow wrapped above the one the shell draws again.
Package shellintegration marks a shell session's prompt for the terminal with OSC 133, the way Ghostty's shell integration does, so the native window's terminal (libghostty-vt) clears the prompt on a resize instead of leaving the lines a reflow wrapped above the one the shell draws again.
shquote
Package shquote quotes a string for a shell command line.
Package shquote quotes a string for a shell command line.
singleton
Package singleton keeps a second lich launch from racing the pinned listener port and dying with a bare error.
Package singleton keeps a second lich launch from racing the pinned listener port and dying with a bare error.
snippet
Package snippet cuts the stretch of text around a search hit that a result row shows.
Package snippet cuts the stretch of text around a search hit that a result row shows.
spawn
Package spawn opens new lich sessions for a caller that is not the window: the `lich` command line and the MCP tools beside it (internal/cli).
Package spawn opens new lich sessions for a caller that is not the window: the `lich` command line and the MCP tools beside it (internal/cli).
store
Package store is lich's persistence layer: a single SQLite database holding open projects, their terminal sessions and the settings scoped globally or to one project — provider binaries and defaults, the permission and sandbox rungs, the gh account.
Package store is lich's persistence layer: a single SQLite database holding open projects, their terminal sessions and the settings scoped globally or to one project — provider binaries and defaults, the permission and sandbox rungs, the gh account.
subagent
Package subagent decides what becomes of a provider's own subagent call: lich's /subagent endpoint (docs/hooks/subagent-cards.md).
Package subagent decides what becomes of a provider's own subagent call: lich's /subagent endpoint (docs/hooks/subagent-cards.md).
system
Package system holds the few OS integrations the window needs that are not tied to any domain service — opening a URL in the user's default browser, opening a work-tree file in their editor, raising a desktop notification, and the handful of facts a bug report needs (version, platform, where the log lives).
Package system holds the few OS integrations the window needs that are not tied to any domain service — opening a URL in the user's default browser, opening a work-tree file in their editor, raising a desktop notification, and the handful of facts a bug report needs (version, platform, where the log lives).
terminal
Package terminal spawns PTY-backed shell sessions and bridges their I/O to the window over the local WebSocket transport (transport.go), falling back to the /events channel.
Package terminal spawns PTY-backed shell sessions and bridges their I/O to the window over the local WebSocket transport (transport.go), falling back to the /events channel.
themes
Package themes stores user-imported color themes and exposes them to the UI.
Package themes stores user-imported color themes and exposes them to the UI.
tray
Package tray keeps lich in the system tray: the one thing on screen that says a lich whose window is closed is still running its sessions, and the way back to the window or out of lich from there.
Package tray keeps lich in the system tray: the one thing on screen that says a lich whose window is closed is still running its sessions, and the way back to the window or out of lich from there.
xdgprofile
Package xdgprofile keeps more than one login of opencode, Cursor CLI and Kiro CLI on one machine, the way internal/claudeprofile does for Claude Code.
Package xdgprofile keeps more than one login of opencode, Cursor CLI and Kiro CLI on one machine, the way internal/claudeprofile does for Claude Code.
Package pagescript holds the scripts that read a page for the browser pane's notes, run as they are by every engine that draws a page: Chrome for the agent's page, and the web view the window holds itself.
Package pagescript holds the scripts that read a page for the browser pane's notes, run as they are by every engine that draws a page: Chrome for the agent's page, and the web view the window holds itself.
Package themes owns the canonical bundled theme definitions.
Package themes owns the canonical bundled theme definitions.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL