
LitOpenCode is an add-on for OpenCode. It makes the agent check its own work before it says "done", and leaves a note so the next session starts where this one stopped.
You ask OpenCode for a feature. It writes the code and says it is finished, and a day later you find the tests never ran. You open a new session and explain the whole project again. With LitOpenCode you add lit to the same request. The agent reads the code first, makes the change, runs the tests that cover it, and ends by telling you what it checked and what it could not. For a longer job, write lit loop: it first writes down what "finished" means as checks in .litopencode/litgoal/ and keeps going until they pass. When you stop, type handoff. The agent saves a note in HANDOFF.md, and the next session reads it and carries on.
Guide
Screens Skills
MIT νκ΅μ΄

One request from start to finish: a toast, the todo-driven bar, two lanes and COMPLETE. The LIT card and the toast are LitOpenCode's own output; the OpenCode screen around them is redrawn.
The easy way. Restart OpenCode after you install. It opens on the lit-loop agent, and Tab switches agents if another one is showing. Write your request as usual and put lit at the start or the end, for example fix the date parsing bug in src/dates.js lit. A toast reads π₯ LIT IGNITED, then the agent fixes the bug, runs the tests and tells you what it checked. Ending with lit works the same as starting with it. When the project has a test command, LitOpenCode asks one goal question and takes the words before lit as the goal, so fix the login redirect lit offers the goal fix the login redirect; answer yes to set it. lit loop, lit-loop and litwork work at either end as well, and /lit-loop <task> and /litwork <task> ask the same question. The lit-plan agent treats the same line as a planning request, so stay on lit-loop for building. A prompt without lit can still get a hint. If you write "plot this csv", the model sees a note offering the scientific plot skill, with "none" as an option, and decides; nothing loads by itself. Four hints passed the accuracy gate: plots, diagrams, Word documents and brainstorming. Other prompts get one short line listing common skills.
The full workflow. For a bigger job, go one step at a time. Each step hands its result to the next, and you can skip any step you do not need.
| Step | Type | What happens |
|---|---|---|
| 1. Explore | /lit-brainstorm <question> |
Many options, scored and cut to a short list |
| 2. Clarify | /deep-interview <idea> |
The agent reads the repository, then asks what the code cannot answer until the goal is clear |
| 3. Plan | /lit-crucible <approach> or /lit-plan <task> |
Crucible attacks the approach first and hands what survives to lit-plan; lit-plan writes a checklist and waits for your yes |
| 4. Build | /start-work once you approve the plan, or /lit-loop <task> |
The work goes one slice at a time, with tests and checks |
| 5. Review | /review-work |
Five angles on the change, worst findings first |
| 6. Hand off | handoff |
Decisions and the next step, saved to HANDOFF.md |
Install with one line, npm exec --package @litfamily/litopencode@latest -- litopencode install, then restart OpenCode. Quick start has the full first run.
| I want to⦠| Go to |
|---|---|
| Install it and run a first task | Quick start |
| See the routes and commands | What you get |
| Make decks, documents, figures or films | Extensions |
| Read the card at the bottom of the screen | The LIT card |
| Save my place before the context fills | Automatic handoff |
| Check, update or remove it | Check, update and remove |
You need Node.js with npm, and OpenCode with a model provider already set up: OpenCode 1 (1.18.29 or later), OpenCode 2, or both side by side. OpenCode 1 runs as opencode and OpenCode 2 as opencode2; the installer finds the ones you have and sets up each. Install with one command:
npm exec --package @litfamily/litopencode@latest -- litopencode installThe installer asks which models to use and how much freedom the agents get, one card at a time; arrow keys and Enter answer it. Permissions start at safe, where OpenCode asks you before acting. On the OpenAI provider, a fresh install plans and reviews with GPT-6 Astra and builds with GPT-6 Luna; you can choose others. The model menu is not limited to OpenAI and xAI. It lists every provider OpenCode knows, including one you added yourself in opencode.json, such as a company gateway or a local server that speaks the OpenAI API. Set the provider up in OpenCode first (opencode models should show it), then run the installer and pick it from the list (with many models, type a few letters to narrow it), or choose Type provider/model and type its id. Later, type /lit-model in a chat: it shows the models as a numbered list, and /lit-model 7 makes model 7 the lead and the helper (/lit-model lead 7 or /lit-model helper 7 changes one). The pick is saved in litopencode.json, so every new terminal starts with it after you restart OpenCode. From a script, --model my-gateway/deepseek-chat does the same, and the installer refuses an id OpenCode does not list.
OpenCode reads one global AGENTS.md at the start of every session. The installer offers a short marked block there that says what lit means and that nothing is pushed or published without your yes; it asks once.
| Add or run | When |
|---|---|
--dry-run |
You want to see what would change before anything is written |
--yes |
The defaults are fine and you'd rather skip the questions; it also says yes to the block |
--no-agent-file |
You want to skip the AGENTS.md block for one run |
--round |
You want the pills to end round and have no icon font yet: it adds Symbols Nerd Font Mono to your font folder |
--glyphs round, square or auto |
You have seen how the pills end on your screen and want to keep that choice |
litopencode install --agent |
You want a coding agent to read the install steps itself |
litopencode agent-file remove |
You want the block back out, with your own text untouched |
Or let a coding agent install it
Paste this into the agent you already use. It checks first, shows you the plan and waits for your yes before anything changes. litopencode install --agent prints the same steps.
Please install LitOpenCode, the lit workflow plugin for OpenCode, on this machine.
1. Check that Node.js, npm and OpenCode are installed (node --version, npm --version, opencode --version or opencode2 --version). If one is missing, stop and tell me.
2. Preview. Run: npm exec --yes --package @litfamily/litopencode@latest -- litopencode install --dry-run --round
Show me what it would change. It prints JSON and writes nothing.
3. Then ask me whether to go ahead with every default or change some:
Lead model: gpt-6-astra on OpenAI (--provider <openai|xai> --model <id>, or --model <provider/id>), effort xhigh (--effort <e>).
Helper model: gpt-6-luna on OpenAI (--subagent-model <provider/id>, together with --model), effort max (--subagent-effort <e>).
Permissions: Safe (--permission-mode <safe|balanced|yolo>). LitFamily block in AGENTS.md: Yes (--no-agent-file).
No flag, so I can choose them later: the model route with /lit-model in a chat, the output style (None) with install in my own terminal.
Icon font: --round adds SymbolsNerdFontMono-Regular.ttf to ~/Library/Fonts (macOS) or ~/.local/share/fonts (Linux), only when no icon font is here.
Visible surface: the LIT card under the prompt and the LIT panel in the sidebar, both on by default.
4. Wait for my yes. Use only the npm package @litfamily/litopencode: add no other source, edit no OpenCode config by hand, and leave hooks, trust and sign-in to me.
5. Install, with the flags for any answer I changed at the end. Run: npm exec --yes --package @litfamily/litopencode@latest -- litopencode install --yes --round
To update later, run the same line again.
6. Check. Run: npm exec --yes --package @litfamily/litopencode@latest -- litopencode doctor
It passes when install.ok, install.plugin.ok and install.nativeSkills.ok are true, and the install printed a ROUND_ENDS: line. Quote any warning.
If a step fails, show me the lines and stop.
7. Show me this and ask if both ends are round: ξΆ LIT ξ΄
Round: run npm exec --yes --package @litfamily/litopencode@latest -- litopencode install --yes --glyphs round
Boxes: the same line with --glyphs square, and tell me that my terminal's own font has to be a full Nerd Font or have Symbols Nerd Font Mono as its fallback font (iTerm2 Non-ASCII Font, VS Code fontFamily, kitty symbol_map; Terminal.app has no fallback setting).
Over SSH or on a phone: leave it as it is. --glyphs auto undoes either choice.
8. Tell me what only I can do: restart OpenCode (quit and start OpenCode 1 and 2 again), press Tab and choose lit-loop, sign in to a model provider, and approve what OpenCode asks.
Restart OpenCode, press Tab, and pick lit-loop. Then open an empty folder and send:
lit Build a to-do list in one index.html with no dependencies; check adding and completing items, then leave results and next steps.
For six seconds a toast reads π₯ LIT IGNITED with the name of the workflow that started. That tells you LitOpenCode picked up your prompt. Screens shows the installer, the toast, the health check and the planner's locked permissions, so a healthy install looks familiar.
When the work is done, you have an index.html to try and a record of what was built and checked in .litopencode/litgoal/. On another day, /lit-adhd shows a short card with what changed since you last looked and the one thing to do next; lit adhd recap reads back each session. The model inside OpenCode does the work and makes mistakes, so when a reply says something passed, open the file and check.
Each route leaves a note you can read later, so a task can stop and resume across sessions.
| Type | What happens |
|---|---|
lit at the end of a request, or /lit |
The task is framed, planned, built, verified and recapped |
Tab, then lit-plan |
The planner writes a checklist and waits for explicit user confirmation; it cannot edit files, run shell or delegate |
/start-work |
Carries the approved plan out one slice at a time; walk away and it finishes by itself, parking steps like git push for one inbox at the end (how) |
/review-work, /review-plan |
Looks at the change from five angles, worst findings first; /review-plan reviews a saved plan, including who runs each row |
A bare handoff, or /lit-handoff |
Leaves a continuation file for the next session; automatic handoff can write it before the context window fills |
/lit-adhd |
Shows what changed, the one thing to do now and the exact text to type; lit adhd recap reads back each session (the old /lit-recap opens it too) |
/litresearch |
Works in rounds and keeps a source next to each claim, along with what is still uncertain |
/lit-humanizer |
Rewrites stiff English or Korean prose, keeping the facts, the writer's voice and the qualifiers that matter |
/rules |
Loads the repository rules, once per session and again for files you edit |
There is more: debugging, refactoring, code cleanup, commits, language servers, interface work, browser automation and a project wiki. The skills gallery shows every skill with a picture of what it makes.
Most of what LitOpenCode makes, it makes inside OpenCode while you work: a card under the prompt that tracks the run, toasts at the moments that matter, questions that tell you what each answer does, and one inbox at the end for the steps it would not take on its own. Every picture down to the last row is that output, taken from the package on one Mac in a throwaway home and project, with a made-up csv-kit task as the subject.
It starts with the installer. It draws the mark and the five steps it will take, ticks each one off, and ends by telling you what to do next: restart OpenCode, press Tab, choose lit-loop.
![]() The installer opens with the mark The sunset LIT mark, the version, and the five steps it will take. | ![]() Five steps, five ticks Each step names what it did; the ready box says what comes next. |
Start a request with lit and a toast announces the discipline it started. As the work moves, more toasts mark the gates: a goal set, a criterion passed, the work complete, lanes started.
Before a plan runs, it asks one question and says what each answer does. The goal's check is written out, so you know what "done" will mean.
While it works, the LIT card sits under the prompt. It shows the stage track, the task it is on and the next one, the lanes running in parallel, how full the context window and the plan-usage windows (5h, 1w) are, and a sunset behind the words. It turns amber when the run is waiting for you.
Walk away and the run finishes by itself. Steps that reach outside the project, such as a version bump, a tag, a publish or a push, wait in one inbox at the end, each shown in full, with the answers that settle them. When nothing is parked, the plan's own check ends the run.
Coming back from a break, lit adhd answers in about six lines: what changed, the one thing to do now, and what to type. It answers in Korean by default; add --en (or say "in English") for the English card.
Decks, Word documents, drawings and interface pages come from the extension pack, wjgoarxiv-skills; the three pictures below were made with it, on example data for a made-up hydrate lab. To add the pack, see Extensions.
![]() lit-pptx Β· nine slides, computational brutalism | ![]() frontend-ui-ux Β· a run monitor page | ![]() lit-schematic Β· a P&ID on one A3 sheet |
Planning, building, review, research, handoffs and the rest of this page work with LitOpenCode alone. The skills that make files (decks, Word documents, diagrams, equipment drawings, journal figures, interfaces and their checks, films and README covers) live on the extension shelf, wjgoarxiv-skills. Install the ones you use, and LitOpenCode stays smaller.
Until you do, each keeps a small pointer folder under its own name. Ask for a deck with lit and the pointer says where the skill went and gives the command that copies it into OpenCode (the list). The installer mentions the extensions when it runs, and the first session after an install or update mentions them once more.

LitOpenCode can install them for you. Each command that changes something prints what it would do and changes nothing until --yes. It fetches the shelf with git into its own cache or uses your clone with --from <clone>, and outside a global install needs npm exec --package @litfamily/litopencode@latest -- in front.
| Command | What it does |
|---|---|
litopencode extensions list |
Shows each of the nine: installed, still a pointer, or your own folder |
litopencode extensions install lit-docx |
Names any same-name skill in OpenCode's other skill folders, and stops |
update, check, prune-backups |
Work the same way |
remove |
Moves only folders that carry the receipt |
Install stops on a same-name skill because LitOpenCode never touches those other folders. With --yes, it moves the pointer folder whole into a dated folder under ~/.config/opencode/extension-backups/, which OpenCode never reads, so nothing is deleted. Then it copies the shelf's OpenCode edition in and writes a small receipt inside it.
The nine are lit-pptx (decks), lit-docx (documents), lit-diagram-drawer, lit-schematic and lit-scientific-visualization (figures), frontend-ui-ux and visual-qa (design), and lit-typographic-motion and readme-studio (video covers). Updating from 1.0.43 or earlier? The guide says what the update backs up and what the old version left behind.
Start a new session after installing one; the film skill also needs node ~/.config/opencode/skills/lit-typographic-motion/runtime.mjs install once. litopencode install never overwrites a copy you put there, and litopencode doctor lists it as preserved, with an EXTENSIONS line that sums up litopencode extensions check.
Install an extension by hand
Clone the shelf once and run these four lines for each skill. The first only lists same-name folders; the other three move aside, copy and write the receipt. Run them again to update, or run the second line alone to remove. Use $XDG_CONFIG_HOME/opencode/ in place of ~/.config/opencode/ when that is set.
ls -d ~/.config/opencode/skills/<skill> ~/.agents/skills/<skill> ~/.claude/skills/<skill> 2>/dev/null
d=~/.config/opencode/extension-backups/$(date +%Y%m%d-%H%M%S); [ ! -e ~/.config/opencode/skills/<skill> ] || { mkdir -p "$d" && mv ~/.config/opencode/skills/<skill> "$d/"; }
mkdir -p ~/.config/opencode/skills && cp -R "<path to your wjgoarxiv-skills clone>/variants/litopencode/<skill>" ~/.config/opencode/skills/<skill>
printf '{"id":"%s","source":"%s","variant":"litopencode","installed_at":"%s"}\n' <skill> "<path to your wjgoarxiv-skills clone>/variants/litopencode/<skill>" "$(date -u +%Y-%m-%dT%H:%M:%SZ)" > ~/.config/opencode/skills/<skill>/.litfamily-extension.jsonWith LitOpenCode installed, every OpenCode session gets a small card along the bottom of the screen. It stays for the whole session and shows which step you are on, what runs right now and the skills in use. Its bottom edge shows how full the context window is and which git branch you are on. On a dark theme in a truecolor or 256-colour terminal, at 74 columns or wider, the card is drawn in full and wears a sunset: five or six rows at rest, more while tools and subagents run (nine at most), and fewer again when they finish. Pills and bars get round ends where your terminal can draw them. Its border glows from pink to cyan, and in the blank part behind the words a sun sinks into a sea. While the agent works the sea drifts, stars twinkle and a shooting star crosses now and then. When the turn ends everything dims and stands still. The sun stands three rows tall in a window of 24 rows or more, and a shorter window gives up the spare row first. It never takes a cell from the words. Any other terminal, theme or narrow window gets the plain card, which keeps the same four rows unless several lanes run, and a window under 42 columns gets one clean line. litopencode doctor prints a HUD: line that says which of these your terminal gets and why.
Ready. Before your first lit prompt the title reads π₯ LIT Β· ready with IDLE β at its right, the workflow map is dim, and the card tells you how to start.
Working. A lit prompt wakes the card: the title names the workflow and its step, and the map lights that step with its count. This lit-loop goal has passed one of three criteria, so the second row reads criterion 1/3 with a bar for the share done and the next criterion, while skipped steps on the map carry β. The running tool and its time sit at the right edge. Two subagents are at work here, so each has a row of its own.
Settled. When the turn ends the title switches to IDLE β, no step stays lit, and the card goes back to its resting height. A subagent that has finished leaves the card within a minute. Your next prompt wakes it again.
The card is on by default, and the LitOpenCode entry in OpenCode's tui.json takes these options:
| Option | What it does |
|---|---|
{ "band": false } |
Keeps the bottom of the screen clear |
{ "band": { "card": true } } |
Adds a second card underneath with the goal, the next task and any warnings |
{ "notify": true } |
Sends a desktop notification and a sound when the mission finishes |
To keep the sunset but stop all movement, add { "motion": false }. If the round ends show as boxes in your font, run litopencode install --yes --glyphs square, or set LITOPENCODE_GLYPHS=basic for one terminal. notify stays off until you add it, and works only once OpenCode's own "attention": { "enabled": true } is on as well. The guide explains how the map and the skill chips count, and the reference explains every part of the card. The installer, litopencode doctor and litopencode --help open with the synthwave LIT mark, and on a dark theme in a truecolor or 256-colour terminal the sidebar panel's title carries the same chrome as a small gradient π₯ LIT pill. Where the art would not show well, you get something plainer: with colour off the mark is drawn in one tone, and a pipe, a narrow window or a terminal without UTF-8 prints the single line LIT Β· opencode. When the pill can't be drawn, the panel keeps its usual title.
OpenCode 2.2 added /goal, which keeps a session going until a reviewer agrees the objective is met. There, lit loop, litwork and /start-work set the goal for you: your task plus what finished means here. Finished means the tests pass, the path you touch was run for real, temporary files are cleaned up and the ledger in .litopencode/litgoal/ is closed. A start-work plan opts in with its own goal: native line, or you answer yes goal when the plan is approved.
- A line for each change. Whenever LitOpenCode creates, resumes or clears a goal it prints one line that starts with
LitOpenCode goal:. - Your own goal stays yours. It manages only the goals it made. If you typed your own
/goalfirst, LitOpenCode says it left yours alone and carries on. - Only for building work. Planning, research and review requests never set a goal.
- Done needs both sides. A goal is done when OpenCode's reviewer and the ledger agree. If the reviewer says yes while the ledger is still open, you see a conflict line instead.
- Older hosts. OpenCode 1 and OpenCode 2 builds before 2.2 have no
/goal, so the ledger carries the work as always. LitOpenCode recordsnative-goal-unavailableonce, so you can see why no goal appeared.
A long conversation eventually fills the model's context window, and whatever falls out is forgotten. Automatic handoff saves your place first; it is on from the start at 70% of the window, and you can move the percent or turn it off. Send one of these as a message on its own: LitOpenCode answers with the new setting, and the model passes it on in a sentence or two.
| Message | What it does |
|---|---|
lit-handoff auto on 70 |
Turns it on at 70%, or at your own number in its place; /lit-handoff auto on 70 does the same |
lit-handoff auto status |
Tells you where things stand and where the setting came from |
lit-handoff auto off |
Turns it off and keeps your number, so a later lit-handoff auto on without a number picks it up again |

- Once the conversation reaches your percent and the current turn ends, LitOpenCode asks the model for a handoff.
- The saved file must carry the marker line from that message, so a handoff left over from earlier never counts.
- When it checks out, the plugin compacts the conversation, says so in a toast, and puts the start of the handoff in front of the model on the next turn. You never type
/compact.
If no handoff was saved, the conversation stays as it is and a toast tells you. If OpenCode refuses to compact, a toast asks you to run /compact yourself.

Pick a percent below the point where OpenCode compacts on its own, so the handoff has room to run. With the limits LitOpenCode installs that point is 90%, and litopencode doctor warns at or above it. Run from your project, doctor also shows the setting and its source: chat, a config file or the environment that starts OpenCode.

The environment and a config file can hold the setting too. The guide walks through each step and both of those, and the reference lists every setting and what is written to disk.
OpenCode loads LitOpenCode as a plugin from its config file. For each prompt or command, the plugin picks the workflow that fits and points the model at the skills it needs; its tools and hooks write down what happened in your project. lit adhd recap or the next session reads that record back, and Skills and commands follows one prompt through.

OpenCode 1 and OpenCode 2 can share a machine, and they load plugins in different ways. litopencode install reads the npm package behind opencode and opencode2 to tell which you have, starting neither, and takes the path that suits each. The guide says what install changes on each.

If you think in process flow sheets, here is the loop drawn as one. Requests enter on the left, and the plan drum feeds the build reactor through /start-work, whose output passes the review column. A controller reads the lane verdicts and sets the diverter: passing changes leave, a failed lane returns to the build, and evidence collects in the ledger /lit-recap reads later.

When something looks off, or right after installing, litopencode doctor tells you whether the plugin and skills are wired up. It only reads and changes nothing. LitOpenCode guards its run state with small lock folders under .litopencode/. If a process crashes while it holds one, the next writer takes the lock over by itself once the lock has had no owner record or a dead owner for 30 seconds, or has been held for more than 10 minutes. lit cancel gets through such a lock too. If a lock still blocks you, the error names the lock folder and its holder (a pid and an age, or no owner record). Close the OpenCode sessions in that project, delete that folder and try again; the guide lists every lock.
npm exec --package @litfamily/litopencode@latest -- litopencode doctorLitOpenCode checks for a new release when it starts interactively and after an install or doctor run succeeds. Running the install command again also updates it, keeping routes you have customized. To choose when to update, for example on a machine you keep pinned, pass --no-auto-update or set LITOPENCODE_NO_AUTO_UPDATE=1.
To remove it, first run litopencode agent-file remove if you added the block to OpenCode's global AGENTS.md. If you installed with --round, litopencode icon-font remove takes the added font back. Then remove the @litfamily/litopencode entry from the plugin array in OpenCode's opencode.jsonc and restart OpenCode. The full removal steps cover the copied commands and skills, and which files to keep if you plan to come back. If you installed it globally, also run:
npm uninstall -g @litfamily/litopencode- Guide: install options, a first task and a planned task, automatic handoff, safety and updates, troubleshooting and full removal.
- Skills and commands: every route and skill, each with a picture, plus documents, slides, design and browser notes.
- Screens: what the installer, the health check, the toast and the planner look like, and a 22-second film.
- Workflow reference: models, permissions, host hooks, every skill, and reproducible verification. In Korean: νκ΅μ΄ μμΈ μλ΄.
- Migration notes Β· Changelog Β· Privacy and network behavior Β· Artwork and licenses Β· Terminal mark and activation probes
- Release checklist, for maintainers. It stays in this repository and is not part of the npm package.
- LitFamily hub: the same
litworkflow for Claude Code, Codex CLI, Hermes Agent, Grok Build, Muse Code and Antigravity CLI. Each product installs and runs on its own.
If LitOpenCode saves you a morning of "where was I?", a GitHub star helps other OpenCode users find it, as does the short version told to a friend: add lit to an OpenCode prompt, and tomorrow's session knows where today's stopped. Bug reports and pull requests are welcome. Start with Contributing, and see Support, Security and the Code of conduct.
MIT; see LICENSE. Reference material bundled for lit-handoff keeps its own license and provenance files under vendor/, and the LitOpenCode name, logos and mascot art follow the trademark policy.
Copy ASCII logo
ββββ
βββββ ββββββββ
ββββββ βββββββ ββββββββ
ββββββ βββββββββ ββββββ
ββββββ βββββββββββββββββββββββββββββ
ββββββ βββββββββββββββββββββββββββ βββ
ββββββ βββββββββββββββββββββββββββββ
ββββββ ββββ β βββββββββββββββββββ
ββββββ β βββ βββββββββββββββββββ
ββββββ βββββ βββββββββββββββββββ
ββββββ βββββββ litopencode
ββββββ βββββββββ βββββ ββ
ββββββ βββββββ βββββ βββ
ββββββ βββββ βββββ
ββββββ βββ βββββ
ββββββ β βββββ
ββββββββββββββ βββββ
βββββββββββββ βββββ
ββββββββββββ βββββ
Icons: Lucide. ASCII glyphs: JetBrains Mono, OFL.

















