LitOpenCode
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.
Two ways to use it
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. The lit-plan agent treats the same line as a planning request, so stay on lit-loop for building.
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 |
Quick start
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 install
The installer asks which models to use and how much freedom the agents get. 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.
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 |
litopencode agent-file remove |
You want the block back out, with your own text untouched |
Paste this into the agent you already use. It checks first, shows you the plan and waits for your yes before anything changes.
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). If one is missing, stop and tell me.
2. Use only the official npm package @litfamily/litopencode. No forks, mirrors, curl scripts or other packages.
3. Before changing anything, run: npm exec --package @litfamily/litopencode@latest -- litopencode install --dry-run
Show me what it would change and ask me whether to go ahead with the defaults.
4. When I say yes, run: npm exec --package @litfamily/litopencode@latest -- litopencode install --yes
Do not edit OpenCode's config files by hand.
5. Run: npm exec --package @litfamily/litopencode@latest -- litopencode doctor
Tell me whether install.ok, install.plugin.ok and install.nativeSkills.ok are true, and quote any warning.
6. Remind me to restart OpenCode, press Tab and choose lit-loop.
Your first task
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.
What you get
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 |
/review-work |
Looks at the change from five angles, worst findings first |
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.
What you can make
Each picture below came out of LitOpenCode on one Mac, from the skill named under it; none is a mock-up. The deck, the page and the drawing use example data for a made-up hydrate lab, and each says so. Those three skills have since moved to wjgoarxiv-skills, so install them from there to make the same.
Extensions
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.
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.json
The LIT card
With LitOpenCode installed, every OpenCode session gets a small card along the bottom of the screen. It stays for the whole session and keeps the same four rows whether anything is running or not, so your prompt never jumps. Its bottom edge shows how full the context window is and which git branch you are on.
Ready. Before your first lit prompt the title reads 🔥 LIT · ready with ○ IDLE beside it, 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 map reads CRITERION 1/3 and skipped steps carry –. The bar shows the share done, with a running tool's name and time beside it.
Settled. When the turn ends the title switches to ○ IDLE, no step stays lit, and the next open item takes the place of the live step. 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 |
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.
Goals on OpenCode 2