@litfamily/litmuse 0.1.12 → 0.1.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -11,11 +11,40 @@
11
11
  <a href="https://github.com/wjgoarxiv/litmuse/stargazers"><img src="https://img.shields.io/github/stars/wjgoarxiv/litmuse?style=flat" alt="GitHub stars" /></a>
12
12
  </p>
13
13
 
14
- <p align="center"><a href="#inside-one-lit-turn">How it works</a> &nbsp; <a href="#in-the-muse-app-too">Muse app</a> &nbsp; <a href="#install">Install</a> &nbsp; <a href="#quick-start">Quick start</a> &nbsp; <a href="#the-status-card">Status card</a> &nbsp; <a href="#automatic-handoff">Handoff</a> &nbsp; <a href="#safety-and-uninstall">Safety</a> &nbsp; <a href="./README_ko-KR.md">한국어</a></p>
14
+ <p align="center"><a href="#inside-one-lit-turn">How it works</a> &nbsp; <a href="#in-the-muse-app-too">Muse app</a> &nbsp; <a href="#install">Install</a> &nbsp; <a href="#quick-start">Quick start</a> &nbsp; <a href="#the-status-card">Status card</a> &nbsp; <a href="#automatic-handoff">Handoff</a> &nbsp; <a href="#safety">Safety</a> &nbsp; <a href="./README_ko-KR.md">한국어</a></p>
15
15
 
16
- ## What a session looks like
16
+ > [!TIP]
17
+ > One `npx` line installs LitMuse as a Muse plugin; then open Muse and start a prompt with `lit`, for example
18
+ > `lit plan a tiny todo app`. [Quick start](#quick-start) has the lines.
17
19
 
18
- <p align="center"><img src="./docs/assets/readme/demo.webp" width="960" alt="Terminal card of three real commands in a test project. muse --version prints Muse Code 1.4.14. litmuse status --card shows the lit-plan route active for 30s with plan 0/2 in plans/todo-app.md and next row 1, Add the shout flag. litmuse models lists muse-spark-1.3 (default) and muse-spark-1.2 with their effort levels." /></p>
20
+ ## Pick your path
21
+
22
+ | I want to… | Do this | Go to |
23
+ | --- | --- | --- |
24
+ | Try it now | Install, check, type `lit plan` | [Quick start](#quick-start) |
25
+ | Know what the installer writes | Read the four install steps | [Install](#install) |
26
+ | See what one `lit` prompt does | Follow the route and the plant | [Inside one lit turn](#inside-one-lit-turn) |
27
+ | Make decks, documents or figures | Add extensions from wjgoarxiv-skills | [Extensions](#extensions) |
28
+ | See what is running | Open the status card | [The status card](#the-status-card) |
29
+ | Update or remove LitMuse | Rerun install, or uninstall | [Update and uninstall](#update-and-uninstall) |
30
+ | Look up hooks, safety, the rules-file block | Read the reference | [Reference](#reference) |
31
+
32
+ ## Quick start
33
+
34
+ You need Node.js 20 or newer and Muse Code, signed in once.
35
+
36
+ 1. Run the two lines below. The installer shows every destination first, then asks once whether to approve the hooks and agents.
37
+ 2. `doctor` ends with `LitMuse doctor: PASS` when everything is in place.
38
+ 3. Open Muse in a project with `muse`. `/skills` shows the LitMuse skills and `/plugins` the plugin.
39
+ 4. Start a prompt with `lit`. Plain `lit` runs lit-loop; a word after it picks the route: `lit plan`, `lit review`, `lit research`, `lit debug`, `lit handoff`, `lit recap`, `lit korean`.
40
+ 5. Approve a plan, then type `/start-work` to build it row by row with tests. Before you stop, `lit handoff`; next time, `lit recap` reads where you were.
41
+
42
+ Run from any folder:
43
+
44
+ ```bash
45
+ npx @litfamily/litmuse install
46
+ npx @litfamily/litmuse doctor
47
+ ```
19
48
 
20
49
  Stripped to three lines, a planning session goes like this:
21
50
 
@@ -25,70 +54,69 @@ it does loads lit-plan, reads the repo, writes plans/todo-app.md with ordere
25
54
  it ends "Plan saved. Run /start-work when you are happy with it."
26
55
  ```
27
56
 
28
- LitMuse suits people who run Muse Code on real projects and want two things from it: proof before done, and sessions that pick up where the last one stopped. It helps most on work that runs longer than one sitting: a feature with tests, a refactor, a research question. It also builds slides and Word reports and cleans up stiff Korean or English prose.
29
-
30
- Muse runs the session while lit adds the routine around it.
57
+ <p align="center"><img src="./docs/assets/readme/demo.webp" width="960" alt="Terminal card of three real commands in a test project. muse --version prints Muse Code 1.4.14. litmuse status --card shows the lit-plan route active for 30s with plan 0/2 in plans/todo-app.md and next row 1, Add the shout flag. litmuse models lists muse-spark-1.3 (default) and muse-spark-1.2 with their effort levels." /></p>
31
58
 
32
- | The host | What lit adds |
33
- | --- | --- |
34
- | Takes a line and gets to work | Pins the goal and writes the failing test first |
35
- | Fills its context over a long session | Writes the handoff before compaction, reads it back after |
36
- | Opens the next session blank | `lit recap` reads the handoff and names the next step |
37
- | Calls it done when the model says so | Checks the plan with tests and real-surface proof |
59
+ Headless runs work the same way: `muse exec --json "lit plan a tiny todo app" < /dev/null`.
38
60
 
39
- ## Why LitMuse
61
+ ## What you can make
40
62
 
41
- Muse Code starts fast: you type a line in the terminal and it gets to work. The trouble shows up later. A long session fills its context, the next session begins without what the last one learned, and "done" often means the model said so. You end up re-explaining where you were and checking by hand what really works.
63
+ Four real outputs rendered on a Mac during the quality parity round, each opened, read, and fixed until it looked right. The deck, the P&ID and the page came from skills that are now LitFamily extensions; [Extensions](#extensions) says how to add them alongside LitMuse.
42
64
 
43
- LitMuse gives each session a routine. Start a prompt with `lit` and the plugin's prompt hook tells Muse which LitMuse skill to load before it touches anything. A bigger change gets a written plan in `plans/` first. The work is checked against that plan with tests and a look at the real surface, and anything nobody could check is marked as unverified. Before you stop, a handoff in `.litmuse/handoff/` records what was built, how it was checked and what is left.
65
+ <p align="center"><img src="./docs/assets/parity/lit-adhd-brief.png" width="960" alt="Terminal card of litmuse rewind, the lit-adhd brief: a rainbow headline with 2 sessions and 0 waiting on you, a table of the two ended sessions in todo-app, the roadmap gauge for plans/todo-app.md at 1/2, and a boxed recommended next step to start the plan." /></p>
44
66
 
45
- Muse still runs the session and picks the model. LitMuse adds the way of working, and it lives in plain files you can read.
67
+ `lit-adhd` opens with a KPI board: the one thing to do now and the exact text to type, done / in progress / waiting on you / left counts with an overall bar, and milestone rows with ten-cell bars. It also lists what you finished lately, what is still to do, and reminders such as uncommitted changes or a plan untouched for a week. `lit adhd detail` adds the per-session brief pictured above: session cards with status badges, an ended table and a boxed recommended step, in colour on a TTY with no internal field names leaking.
46
68
 
47
- ## Inside one lit turn
69
+ <p align="center"><img src="./docs/assets/parity/lit-pptx-deck.png" width="960" alt="A lit-pptx status deck: KPI row and a column chart of suite growth per wave." /></p>
48
70
 
49
- A prompt that starts with `lit` goes through four steps, and each one leaves something you can open later. First the prompt hook reads the word after `lit` and picks the route. `lit plan` goes to lit-plan, plain `lit` goes to lit-loop, and another `lit` while that route is still running carries it on. Muse then loads the route's skill, which may hand parts of the work to child agents such as `litmuse/lit-verifier`. During a planning turn the PreToolUse hook lets writes land only under `plans/` and `.litmuse/`. At the end, review decides. The work counts as done when the tests pass and someone looked at the real surface; anything nobody could check is marked unverified. While plan rows are still open, the Stop hook keeps the turn going.
71
+ `lit-pptx` compiles real decks from data: this one charts the port's own test-suite growth, wave by wave.
50
72
 
51
- The bottom row shows where all of this ends up. Three of the four live in your project. The route state sits in your home folder, where a planning turn cannot reach it.
73
+ <p align="center"><img src="./docs/assets/parity/lit-schematic-pid.png" width="960" alt="A lit-schematic P&ID of a hypochlorite dosing skid, marked as a worked example with invented values: tank TK-101 with LT-101 and LIA-101, isolation valve HV-101 and strainer STR-101, duty and standby pumps P-101A and P-101B with check valves, PSV-101 set at 8 barg relieving back to the tank, PI-101 and FIT-101 on the discharge, line numbers, a legend, and title block EX-PID-001 rev B." /></p>
52
74
 
53
- <p align="center">
54
- <picture>
55
- <source media="(prefers-color-scheme: dark)" srcset="./docs/assets/diagrams/lit-route.en.dark.png">
56
- <img src="./docs/assets/diagrams/lit-route.en.light.png" width="900" alt="Four steps of a lit turn in Muse Code. 1, you type lit plan or /lit review. 2, the UserPromptSubmit hook picks the route from the next word and the reply opens with LIT IGNITED. 3, the skill plugin:litmuse:<route> works, child agents run as litmuse/<agent>, and PreToolUse keeps plan turns in plans/. 4, review-work and litmuse/lit-verifier decide; a Stop hook above holds the turn while plan rows are open. Below, the files each step leaves: .litmuse/handoff/latest.md, which SessionStart reads back; route state in ~/.local/state/litmuse/; plans/<slug>.md and .litmuse/ledger/*.jsonl, appended by PostToolUse; and .litmuse/evidence/<slug>/.">
57
- </picture>
58
- </p>
75
+ `lit-schematic` draws QA-checked P&IDs: a dosing skid with real symbols, a drawn legend, line numbers and a title block, after seven look rounds until every label read cleanly.
59
76
 
60
- Here is the same turn drawn as a small process plant. A prompt comes in on the left, and the route check sends it to the plan unit or straight to the build unit. Work leaves the build unit through a valve that the Stop hook keeps shut while plan rows are open, then passes the review analyser. Checked work leaves on the right with its evidence, and anything that fails review goes back to be built again. Underneath, the hooks fill two tanks: the ledger of tool events, and the handoff that the next session reads back. The stream table says which file each stream becomes.
77
+ <p align="center"><img src="./docs/assets/parity/lit-frontend-page.png" width="960" alt="A frontend-ui-ux gallery page: dark ledger, phosphor accents, one plate per render, checked at phone, tablet, and desktop widths." /></p>
61
78
 
62
- <p align="center">
63
- <picture>
64
- <source media="(prefers-reduced-motion: reduce) and (prefers-color-scheme: dark)" srcset="./docs/assets/schematic/lit-plant.en.dark.png">
65
- <source media="(prefers-reduced-motion: reduce)" srcset="./docs/assets/schematic/lit-plant.en.light.png">
66
- <source media="(prefers-color-scheme: dark)" srcset="./docs/assets/schematic/lit-plant-loop.en.dark.webp">
67
- <img src="./docs/assets/schematic/lit-plant-loop.en.light.webp" width="900" alt="Process flow diagram of a lit turn inside one Muse Code session, with flow moving along the lines. A lit <task> prompt enters on the left; UserPromptSubmit picks the route, sending lit plan to the plan unit (lit-plan, PreToolUse keeps writes in plans/) and plain lit to the build unit (start-work). The plan file flows into the build unit. Its outlet valve is held by a level controller labelled Stop: holds while rows are open. The draft passes an analyser for review-work and lit-verifier, whose diverter sends checked work out as Done, with proof and Evidence, or back to the build unit as rework. Below, a hook signal fills the ledger tank and the handoff tank feeds the next session, which SessionStart reads back. A stream table lists what each stream leaves on disk: plans/<slug>.md, .litmuse/evidence/, .litmuse/ledger/ and .litmuse/handoff/.">
68
- </picture>
69
- </p>
79
+ `frontend-ui-ux` builds the page around them: one gallery, one plate per render, checked at phone, tablet, and desktop widths.
70
80
 
71
- ## In the Muse app too
81
+ ## What you get
72
82
 
73
- Meta ships two Muse products. Muse Code is the terminal agent this README is about. The Muse app is the desktop agent with a chat window, side chats, notes and tasks. LitFamily also works inside the Muse app: its lit skills load there the same way, and a reply opens with the same ignition mark you see in the terminal.
83
+ Muse still runs the session and picks the model; LitMuse adds the way of working around it, kept in plain files you can read. It suits people who run Muse Code on real projects and want proof before done and sessions that pick up where the last one stopped. It helps most on work longer than one sitting (a feature with tests, a refactor, a research question), and it also cleans up stiff Korean or English prose and, with [extensions](#extensions), builds slides and Word reports.
74
84
 
75
- The capture below is one new side chat in the Muse app. The prompt asks `/lit-brainstorm` for names for a small open-source note tool you use from the terminal. The answer opens with `🔥 LIT IGNITED · lit-brainstorm 🔥`, sets weighted criteria before scoring, first drops the names that are already taken (`jot`, `memo`, `mnemo`, `scratch`, `margin`), and then shows a scored table of the top ten.
85
+ | The host | What lit adds |
86
+ | --- | --- |
87
+ | Takes a line and gets to work | Pins the goal and writes the failing test first |
88
+ | Fills its context over a long session | Writes the handoff before compaction, reads it back after |
89
+ | Opens the next session blank | `lit recap` reads the handoff and names the next step |
90
+ | Calls it done when the model says so | Checks the plan with tests and real-surface proof |
76
91
 
77
- <p align="center"><img src="./docs/assets/muse-app/lit-brainstorm.webp" width="420" alt="One side chat in the Muse desktop app titled 터미널 메모 도구 이름 추천. The user prompt reads /lit-brainstorm followed by a Korean request for name ideas and scores for a small open-source terminal note tool. The reply starts with 🔥 LIT IGNITED · lit-brainstorm 🔥, says 32 candidates were drawn and taken names were removed first, lists weighted criteria on a 100-point scale, names jot, memo, mnemo, scratch and margin as dropped, and shows a top-10 score table led by termemo 87%, jotlet 80% and memlet 80%." /></p>
92
+ **33 skills** load on demand, each a dense Muse skill with the references and scripts it needs inside its own folder. The catalog holds only their short descriptions, so they keep their place even next to a large personal skill collection. Nine short stubs stand in for the skills that became LitFamily extensions (see [Extensions](#extensions)).
78
93
 
79
- ## Install
94
+ | Area | Skills | Role |
95
+ | --- | --- | --- |
96
+ | Work loop | lit-loop, litgoal, litwork | Goal pinned, failing test first, record left |
97
+ | Plan and build | lit-plan, start-work, lit-code, debugging, refactor, lit-commit, lsp, lsp-setup | Written plan, then row-by-row build |
98
+ | Ideas first | lit-brainstorm, deep-interview, lit-crucible | Diverge, clarify, pressure-test |
99
+ | Review and cleanup | review-work, comment-checker, lit-burnoff, lit-burnoff-file | Second look, then residue stripped |
100
+ | Research | litresearch, autoresearch, autoconference, wikify, lit-comprehend | Parallel searchers, traced claims |
101
+ | Teams | lit-team | Child agents behind one packet |
102
+ | Prose | lit-humanizer | Korean and English cleanup, facts kept |
103
+ | Continuity | lit-recap, lit-handoff, lit-init, rules | Handoffs, recaps, orientation |
104
+ | Tools | structural-search, browser-drive | Syntax-shaped search, live pages |
80
105
 
81
- You need Node.js 20 or newer and Muse Code, signed in once. In a terminal, run:
106
+ The skills call programs already on your machine: Python 3.10 to 3.14 for autoresearch (a newer `python3` is passed over for the newest `python3.X` in that range), Chrome or Chromium for browser-drive, ast-grep and the language checkers the `lsp` skill drives. `doctor` lists what is missing and the command that installs it; LitMuse installs nothing globally.
82
107
 
83
- ```bash
84
- npx @litfamily/litmuse install
85
- ```
108
+ | Part | What it is |
109
+ | --- | --- |
110
+ | **4 commands** | `/lit <route> <task>`, `/lit-korean <file or text>`, `/lit-status`, `/lit-hud` |
111
+ | **10 hooks** | Routing, plan limits, the ledger, handoffs and the live card ([each hook](./docs/reference.md#hooks)) |
112
+ | **11 agents** | Spawned as `litmuse/<name>` (list below) |
113
+ | **Models** | `npx @litfamily/litmuse models` reads them from Muse's own catalog |
86
114
 
87
- The installer shows every destination first. It copies the plugin to `~/.local/share/litmuse/bundle`, backs up the Muse files it is about to change, and runs `muse plugins install` at user scope, so LitMuse is available in every project. Skills and commands work right away.
115
+ The agents are lit-planner, lit-executor, lit-verifier, qa-runner, quality-reviewer, librarian-researcher and five Korean prose agents; reviewers and the Korean agents get read and search tools only. `models` lists the models and effort tiers your Muse install offers, so a model Meta adds later shows up there with no LitMuse update.
88
116
 
89
- Muse runs a plugin's hooks and agents only after you approve them. The installer lists the 21 capabilities (10 hooks, 11 agents) and asks you once whether to approve them all. Say no and it prints the `muse plugins approve ...` lines for later. Muse re-arms the agent approvals whenever the plugin is updated, so after an update the installer asks once more for those.
117
+ ## Install
90
118
 
91
- The picture follows one install from left to right. The top row is what the installer does, and the row under it is where each step writes. The preview writes nothing, and `--dry-run` stops there. Staging fills LitMuse's own folder, the `muse` CLI records the plugin in Muse's plugin store, and your yes to the approval question is kept in Muse's settings. The bottom row covers three more things: why an update may ask you again, what install leaves alone, and the one file it writes only after you agree.
119
+ The [Quick start](#quick-start) line installs LitMuse at user scope, so it is available in every project. The picture follows one install from left to right: the top row is what the installer does, and the row under it is where each step writes.
92
120
 
93
121
  <p align="center">
94
122
  <picture>
@@ -97,29 +125,25 @@ The picture follows one install from left to right. The top row is what the inst
97
125
  </picture>
98
126
  </p>
99
127
 
100
- Then check the result:
128
+ 1. **Preview** shows every destination and writes nothing; `--dry-run` stops here.
129
+ 2. **Stage** backs up the Muse files it is about to change and copies the plugin to `~/.local/share/litmuse/bundle`, LitMuse's own folder.
130
+ 3. **Install in Muse** runs `muse plugins install` at user scope, and the `muse` CLI records the plugin in Muse's plugin store. Skills and commands work right away.
131
+ 4. **Approve** covers the 21 capabilities (10 hooks, 11 agents) that Muse runs only after you approve them. The installer asks you once whether to approve them all and keeps your yes in Muse's settings; say no and it prints the `muse plugins approve ...` lines for later.
101
132
 
102
- ```bash
103
- npx @litfamily/litmuse doctor
104
- ```
133
+ The bottom row of the picture covers why an update may ask again, what install leaves alone, and the one file it writes only after you agree ([the rules-file block](./docs/reference.md#a-short-block-in-muses-own-rules-file)). Muse re-arms the agent approvals whenever the plugin is updated, so after an update the installer asks once more for those. In `doctor`, each capability that still waits for approval appears as `APPROVAL NEEDED` together with the exact command.
105
134
 
106
- `doctor` ends with `LitMuse doctor: PASS` when everything is in place. Each capability that still waits for approval appears as `APPROVAL NEEDED` together with the exact command.
135
+ <details>
136
+ <summary>Install switches</summary>
107
137
 
108
- To update, run the install command again. To remove everything, see Safety and uninstall below.
138
+ - **`--dry-run`** previews and writes nothing.
139
+ - **`--yes`** lets an agent or CI shell install; a shell without a terminal otherwise only previews.
140
+ - **`--approve`** approves the capabilities without the question, for scripts.
141
+ - **`--scope project`** installs for one project.
109
142
 
110
- The lifecycle runs through this table.
143
+ </details>
111
144
 
112
- | Task | Command |
113
- | --- | --- |
114
- | Install | `npx @litfamily/litmuse install` |
115
- | Preview first | `npx @litfamily/litmuse install --dry-run` |
116
- | Update | `npx @litfamily/litmuse install` |
117
- | Check | `npx @litfamily/litmuse doctor` |
118
- | Remove | `npx @litfamily/litmuse uninstall` |
119
-
120
- Useful switches: `--dry-run` previews and writes nothing; `--yes` lets an agent or CI shell install (a shell without a terminal otherwise only previews); `--approve` approves the capabilities without the question, for scripts; `--scope project` installs for one project.
121
-
122
- ### Let a coding agent install it
145
+ <details>
146
+ <summary>Let a coding agent install it</summary>
123
147
 
124
148
  Paste this into a coding agent opened in any folder:
125
149
 
@@ -135,20 +159,15 @@ Use only the official npm package @litfamily/litmuse. Show me your plan and wait
135
159
  5. Tell me what was written (the installer prints a "Written:" list) and anything it refused.
136
160
  ```
137
161
 
138
- ## Quick start
139
-
140
- 1. Open Muse in a project: `muse`. Type `/skills` to see the LitMuse skills and `/plugins` to see the plugin.
141
- 2. Start a prompt with `lit`. Plain `lit` runs lit-loop; a word after it picks the route: `lit plan`, `lit review`, `lit research`, `lit debug`, `lit handoff`, `lit recap`, `lit korean`.
142
- 3. Approve a plan, then type `/start-work` to build it row by row with tests.
143
- 4. Before you stop, `lit handoff`. Next time, `lit recap` reads where you were.
162
+ </details>
144
163
 
145
- Headless runs work the same way: `muse exec --json "lit plan a tiny todo app" < /dev/null`.
164
+ ## Features
146
165
 
147
- ## The status card
166
+ ### The status card
148
167
 
149
- Muse's `/hud` is a fixed list of on/off fields, so plugins add nothing to it. LitMuse keeps its own live record instead: the route, the plan progress, and the child agents running right now. `/lit-status` and `litmuse status --card` show that record. For the terminal chrome around the card, the recommended `/hud` and theme preset lives in [docs/hud-preset.md](./docs/hud-preset.md).
168
+ Muse's `/hud` is a fixed list of on/off fields, so plugins add nothing to it. LitMuse keeps its own live record of the route, the plan progress and the child agents running right now, and `/lit-status` and `litmuse status --card` show it. The recommended `/hud` and theme preset for the terminal chrome around the card lives in [docs/hud-preset.md](./docs/hud-preset.md).
150
169
 
151
- Read the card from top to bottom. The first line names the workflow and how long it has run, or says no route is active in this workspace. A second line names the plan file with ticked and total rows and the next open row. A lanes line names each running tool with its elapsed time, then each finished lane.
170
+ Read the card from top to bottom. The first line names the workflow and how long it has run, or says no route is active in this workspace; a second line names the plan file with ticked and total rows and the next open row. A lanes line names each running tool with its elapsed time, then each finished lane.
152
171
 
153
172
  At rest the card reports no active route:
154
173
 
@@ -162,11 +181,11 @@ Ticking a row moves the count and the next-row pointer:
162
181
 
163
182
  <p align="center"><img src="./docs/assets/card/after.webp" width="960" alt="The same card after row 1 is ticked: plan 1/2 in plans/todo-app.md, next row 2, Write the tests." /></p>
164
183
 
165
- The card reads the hook-kept state under `~/.local/state/litmuse/`, outside the project.
184
+ The card reads the hook-kept state under `~/.local/state/litmuse/`, outside the project. How it lists other sessions is in [the reference](./docs/reference.md#the-live-record-behind-the-card).
166
185
 
167
- ## Automatic handoff
186
+ ### Automatic handoff
168
187
 
169
- A long session fills the model's context, and when Muse compacts it, detail drops out of the summary. Before the compaction, the PreCompact hook writes a handoff file; after it, SessionStart reads the fresh file back into the conversation. Two commands put this to work: `lit handoff` before you stop, `lit recap` when you return. The packet names what was built, how it was checked, and what is left.
188
+ A long session fills the model's context, and when Muse compacts it, detail drops out of the summary. So the PreCompact hook writes a handoff file before the compaction, and SessionStart reads the fresh file back into the conversation after it. Type `lit handoff` before you stop and `lit recap` when you return; the packet names what was built, how it was checked, and what is left.
170
189
 
171
190
  The hook answers with one recorded line:
172
191
 
@@ -176,62 +195,28 @@ The snapshot names the trigger, the session, the route, the plan with its open r
176
195
 
177
196
  <p align="center"><img src="./docs/assets/handoff/latest.webp" width="960" alt="Terminal card of cat .litmuse/handoff/latest.md: the LitMuse compaction snapshot with trigger manual, session readme-demo-01, route lit-plan, plan plans/todo-app.md with 0 ticked and 2 open, the next open row, and two recent ledger lines for read_file and write_file." /></p>
178
197
 
179
- ## What you can make
198
+ ### In the Muse app too
180
199
 
181
- Four real outputs rendered on a Mac during the quality parity round, each opened, read, and fixed until it looked right:
200
+ Meta ships two Muse products: Muse Code is the terminal agent this README is about, and the Muse app is the desktop agent with a chat window, side chats, notes and tasks. LitFamily also works inside the Muse app. Its lit skills load there the same way, and a reply opens with the same ignition mark you see in the terminal.
182
201
 
183
- <p align="center"><img src="./docs/assets/parity/lit-adhd-brief.png" width="960" alt="Terminal card of litmuse rewind, the lit-adhd brief: a rainbow headline with 2 sessions and 0 waiting on you, a table of the two ended sessions in todo-app, the roadmap gauge for plans/todo-app.md at 1/2, and a boxed recommended next step to start the plan." /></p>
202
+ The capture is one new side chat that asks `/lit-brainstorm` for names for a small open-source note tool you use from the terminal. The answer opens with `🔥 LIT IGNITED · lit-brainstorm 🔥` and sets weighted criteria before scoring. It first drops the names that are already taken (`jot`, `memo`, `mnemo`, `scratch`, `margin`), then shows a scored table of the top ten.
184
203
 
185
- `lit-adhd` opens with a KPI board: the one thing to do now and the exact text to type, done / in progress / waiting on you / left counts with an overall bar, milestone rows with ten-cell bars, what you finished lately, what is still to do, and reminders such as uncommitted changes or a plan untouched for a week. `lit adhd detail` adds the per-session brief pictured above: session cards with status badges, an ended table, and a boxed recommended step — colour on TTY, no internal field names leaking.
186
-
187
- <p align="center"><img src="./docs/assets/parity/lit-pptx-deck.png" width="960" alt="A lit-pptx status deck: KPI row and a column chart of suite growth per wave." /></p>
188
-
189
- `lit-pptx` compiles real decks from data: this one charts the port's own test-suite growth, wave by wave.
190
-
191
- <p align="center"><img src="./docs/assets/parity/lit-schematic-pid.png" width="960" alt="A lit-schematic P&ID of a hypochlorite dosing skid, marked as a worked example with invented values: tank TK-101 with LT-101 and LIA-101, isolation valve HV-101 and strainer STR-101, duty and standby pumps P-101A and P-101B with check valves, PSV-101 set at 8 barg relieving back to the tank, PI-101 and FIT-101 on the discharge, line numbers, a legend, and title block EX-PID-001 rev B." /></p>
192
-
193
- `lit-schematic` draws QA-checked P&IDs: a dosing skid with real symbols, a drawn legend, line numbers, and a title block — seven look rounds until every label read cleanly.
194
-
195
- <p align="center"><img src="./docs/assets/parity/lit-frontend-page.png" width="960" alt="A frontend-ui-ux gallery page: dark ledger, phosphor accents, one plate per render, checked at phone, tablet, and desktop widths." /></p>
196
-
197
- `frontend-ui-ux` builds the page around them: one gallery, one plate per render, checked at phone, tablet, and desktop widths.
198
-
199
- The deck, the P&ID and the page came from skills that are now LitFamily extensions; [Extensions](#extensions) below says how to add them alongside LitMuse.
200
-
201
- ## What you get
202
-
203
- **33 skills**, each a dense Muse skill loaded on demand, with the references and scripts it needs inside its own folder, plus nine short stubs for the skills that became LitFamily extensions (see [Extensions](#extensions)). The catalog only holds their short descriptions, so they keep their place even next to a large personal skill collection.
204
-
205
- Every skill below ships in its own folder and loads on demand. Find the row that matches the task at hand.
206
-
207
- | Area | Skills | Role |
208
- | --- | --- | --- |
209
- | Work loop | lit-loop, litgoal, litwork | Goal pinned, failing test first, record left |
210
- | Plan and build | lit-plan, start-work, lit-code, debugging, refactor, lit-commit, lsp, lsp-setup | Written plan, then row-by-row build |
211
- | Ideas first | lit-brainstorm, deep-interview, lit-crucible | Diverge, clarify, pressure-test |
212
- | Review and cleanup | review-work, comment-checker, lit-burnoff, lit-burnoff-file | Second look, then residue stripped |
213
- | Research | litresearch, autoresearch, autoconference, wikify, lit-comprehend | Parallel searchers, traced claims |
214
- | Teams | lit-team | Child agents behind one packet |
215
- | Prose | lit-humanizer | Korean and English cleanup, facts kept |
216
- | Continuity | lit-recap, lit-handoff, lit-init, rules | Handoffs, recaps, orientation |
217
- | Tools | structural-search, browser-drive | Syntax-shaped search, live pages |
218
-
219
- The skills call programs already on your machine: Python 3.10 to 3.14 for autoresearch (a newer `python3` is passed over for the newest `python3.X` in that range), Chrome or Chromium for browser-drive, ast-grep and the language checkers the `lsp` skill drives. `doctor` lists what is missing and the command that installs it; LitMuse installs nothing globally.
204
+ <p align="center"><img src="./docs/assets/muse-app/lit-brainstorm.webp" width="420" alt="One side chat in the Muse desktop app titled 터미널 메모 도구 이름 추천. The user prompt reads /lit-brainstorm followed by a Korean request for name ideas and scores for a small open-source terminal note tool. The reply starts with 🔥 LIT IGNITED · lit-brainstorm 🔥, says 32 candidates were drawn and taken names were removed first, lists weighted criteria on a 100-point scale, names jot, memo, mnemo, scratch and margin as dropped, and shows a top-10 score table led by termemo 87%, jotlet 80% and memlet 80%." /></p>
220
205
 
221
206
  ### Extensions
222
207
 
223
- LitMuse's core is complete and works on its own: planning, building, review, research, handoffs and the rest of the table above need nothing else. The nine skills that make files (decks, documents, figures, design and video covers) are LitFamily extensions. They live on the extension shelf, [wjgoarxiv-skills](https://github.com/wjgoarxiv/wjgoarxiv-skills), and you install the ones you use alongside LitMuse to get the full LitFamily experience. The installer says this when you install or update, and the first Muse session after it says it once more.
208
+ LitMuse's core is complete and works on its own: planning, building, review, research, handoffs and the rest of the skills table need nothing else. The nine skills that make files (decks, documents, figures, design and video covers) are LitFamily extensions on the extension shelf, [wjgoarxiv-skills](https://github.com/wjgoarxiv/wjgoarxiv-skills); install the ones you use alongside LitMuse to get the full LitFamily experience. The installer says this when you install or update, and the first Muse session after it says it once more.
224
209
 
225
- The picture puts the two halves side by side. Everything in the core on the left ships with LitMuse and works on its own. The nine stubs on the right keep their ids and `lit` routes, and each one points to its Muse edition on the extension shelf. Installing an edition copies one folder into Muse's user skills. LitMuse never writes that folder, so an update of LitMuse leaves your copy where it is.
210
+ The picture puts the core on the left, which ships with LitMuse, beside nine stubs that keep their ids and `lit` routes and each point to their Muse edition on the shelf. The row below is one install in four steps: check every folder Muse reads for the same name, move an occupied folder aside, copy the edition into Muse's user skills, and let Muse record it in its lock.
226
211
 
227
212
  <p align="center">
228
213
  <picture>
229
214
  <source media="(prefers-color-scheme: dark)" srcset="./docs/assets/diagrams/core-extensions.en.dark.png">
230
- <img src="./docs/assets/diagrams/core-extensions.en.light.png" width="900" alt="The LitMuse plugin lists 42 skills in plugin.json. The core, 33 skills complete on their own, in nine groups: work loop, ideas first, teams, prose, plan and build, tools, review and cleanup, research, continuity. Beside it, nine stubs in five families (decks lit-pptx; documents lit-docx; figures lit-diagram-drawer, lit-schematic, lit-scientific-visualization; design frontend-ui-ux, visual-qa; video-covers lit-typographic-motion, readme-studio) each point to wjgoarxiv-skills, where the Muse editions sit in variants/litmuse/<id>/. muse skills install <clone>/variants/litmuse/<id> --scope user copies one into ~/.config/muse/skills/<id>/, which LitMuse install, update and uninstall never write. When a lit route reaches a stub, Muse loads the installed copy, or the stub shows the install line.">
215
+ <img src="./docs/assets/diagrams/core-extensions.en.light.png" width="900" alt="The LitMuse plugin lists 42 skills in plugin.json. The core, 33 skills complete on their own, in nine groups: work loop, ideas first, teams, prose, plan and build, tools, review and cleanup, research, continuity. Beside it, nine stubs in five families (decks lit-pptx; documents lit-docx; figures lit-diagram-drawer, lit-schematic, lit-scientific-visualization; design frontend-ui-ux, visual-qa; video-covers lit-typographic-motion, readme-studio) each point to wjgoarxiv-skills, where the Muse editions sit in variants/litmuse/<id>/. Installing one is four steps: check every folder Muse reads for the same name and stop on one; move an occupied folder whole into extension-backups/<stamp>/; muse skills install <clone>/variants/litmuse/<id> --scope user copies the edition into ~/.config/muse/skills/<id>/; Muse records source, time and file hashes in skills/.muse/lock.json. npx @litfamily/litmuse extensions (list, check, install, update, remove, prune-backups) runs those steps and shows only its plan until --yes. LitMuse install and update leave the copy alone. When a lit route reaches a stub, Muse loads the installed copy, or the stub shows the install line.">
231
216
  </picture>
232
217
  </p>
233
218
 
234
- LitMuse keeps a same-name stub for each extension: the id, its `lit` routes and its catalog entry stay, and the stub either hands over to your installed copy or tells you how to install it. It never builds a stand-in.
219
+ Each stub keeps the id, its `lit` routes and its catalog entry, and either hands over to your installed copy or tells you how to install it. It never builds a stand-in.
235
220
 
236
221
  | Family | Skills |
237
222
  | --- | --- |
@@ -241,54 +226,158 @@ LitMuse keeps a same-name stub for each extension: the id, its `lit` routes and
241
226
  | `design` | frontend-ui-ux, visual-qa |
242
227
  | `video-covers` | lit-typographic-motion, readme-studio |
243
228
 
244
- Clone the shelf once, then install each extension on its own into Muse's user skills, from the Muse edition that wjgoarxiv-skills keeps for it:
229
+ **Install one extension.** Clone the shelf once, then install each extension on its own into Muse's user skills, from the Muse edition that wjgoarxiv-skills keeps for it. You can type the steps yourself or let `extensions install` run them (below).
245
230
 
246
231
  ```bash
247
232
  git clone https://github.com/wjgoarxiv/wjgoarxiv-skills
233
+ ```
234
+
235
+ Then, for each extension, run three lines from the project you work in, with `<skill>` replaced by its id:
236
+
237
+ - **Line 1** only reads: it prints each folder Muse could load under that id (your Muse user skills, the personal `~/.claude/skills` and `~/.codex/skills` that Muse also loads, and the project's `.agents/skills` and `.claude/skills`).
238
+ - **Line 2** moves an existing copy in Muse's user skills, whole and with any file you added, into a dated folder under `extension-backups/` beside them, where Muse does not look; with nothing there it does nothing.
239
+ - **Line 3** installs.
240
+
241
+ ```bash
242
+ command ls -d "${XDG_CONFIG_HOME:-$HOME/.config}/muse/skills/<skill>" "$HOME/.claude/skills/<skill>" "$HOME/.codex/skills/<skill>" .agents/skills/<skill> .claude/skills/<skill> 2>/dev/null
243
+ D="${XDG_CONFIG_HOME:-$HOME/.config}/muse/skills/<skill>"; B="${XDG_CONFIG_HOME:-$HOME/.config}/muse/extension-backups/$(date +%Y%m%d-%H%M%S)"; [ -e "$D" ] && mkdir -p "$B" && mv "$D" "$B/" && echo "moved to $B/<skill>"
248
244
  muse skills install <path to your wjgoarxiv-skills clone>/variants/litmuse/<skill> --scope user
249
245
  ```
250
246
 
251
- A Muse edition is the skill rewritten to stand alone in Muse: it carries its own helpers, fonts and lockfiles, uses Muse's tools, and sets up any engine it needs (the office runtime, the diagram renderer, matplotlib, the motion engine) on first use from the installed folder, so it needs no LitMuse hook, approval or runtime command. The next session lists the copy as a user skill under the same id; `lit` routes then load it, and `doctor` reports it as `INFO moved` rather than an overlap. The copy lives in `$CONFIG_DIR/skills/<skill>/`, which LitMuse's installer, its updates and its uninstaller never write or remove, so upgrading LitMuse keeps it; run the install line again with `--force` to take a newer edition, and `muse skills uninstall <skill>` to take it out.
247
+ To update, run the three lines again. To remove one, run the second line and then `muse skills uninstall <skill>`, which then only drops Muse's record of it. LitMuse's installer, its updates and its uninstaller never write that folder, so upgrading LitMuse keeps your copy where it is.
248
+
249
+ <details>
250
+ <summary>What a Muse edition is, and how Muse ranks the copies</summary>
251
+
252
+ - **Self-contained.** A Muse edition is the skill rewritten to stand alone in Muse: it carries its own helpers, fonts and lockfiles and uses Muse's tools. It sets up any engine it needs (the office runtime, the diagram renderer, matplotlib, the motion engine) on first use from the installed folder, so it needs no LitMuse hook, approval or runtime command.
253
+ - **Same id.** The next session lists the copy as a user skill under the same id; `lit` routes then load it, and `doctor` reports it as `INFO moved` rather than an overlap.
254
+ - **Where it lives.** The copy lives in `$CONFIG_DIR/skills/<skill>/`, which LitMuse's installer, its updates and its uninstaller never write or remove.
255
+ - **Muse's lock.** Muse records each install in its own lock (`$CONFIG_DIR/skills/.muse/lock.json`: source folder, time, file hashes) and refuses to install over a folder that is already there, which is why the second line comes first.
256
+ - **Ranking.** A personal copy in `~/.claude/skills` or `~/.codex/skills` ranks below the user skill and shows as shadowed; a project copy in `.agents/skills` or `.claude/skills` ranks above it inside that project.
257
+ - **Updating.** Leave out `--force` and `muse skills update`: both rewrite the shipped files in place and keep every other file, so anything a newer edition dropped would stay behind.
258
+
259
+ </details>
260
+
261
+ **Let LitMuse run the lines.** `npx @litfamily/litmuse extensions install <skill>` runs the same steps and keeps Muse's lock as the receipt. Every verb that writes first prints its plan and changes nothing until you add `--yes`.
262
+
263
+ <details>
264
+ <summary>The <code>extensions</code> verbs and what each one checks</summary>
265
+
266
+ `install` looks first, stops and names any same-name skill in another folder Muse reads (it never touches that one; `--allow-shadow` installs anyway and only warns), moves an occupied folder aside into a dated `extension-backups/` folder, and then calls `muse skills install`. It takes several ids, `--family <name>` or `--all`. `--from <clone>` uses your own clone; without it LitMuse keeps a shallow clone of only `variants/litmuse` in `~/.cache/litmuse/extensions-src` and refreshes it on each run, and when git or the network is missing it stops before changing anything and suggests `--from`.
267
+
268
+ | Verb | What it does |
269
+ | --- | --- |
270
+ | `list` | Each extension: not installed, installed (source, time), user-managed, same-name copies |
271
+ | `check` | What needs a look, each with the line that fixes it |
272
+ | `update` | Reinstalls only the extensions whose files changed on the shelf |
273
+ | `remove` | Moves the folder into the backups, then runs `muse skills uninstall` |
274
+ | `prune-backups` | Deletes only dated folders inside `extension-backups/` |
275
+
276
+ ```bash
277
+ npx @litfamily/litmuse extensions list
278
+ npx @litfamily/litmuse extensions check
279
+ npx @litfamily/litmuse extensions install lit-docx --yes
280
+ npx @litfamily/litmuse extensions update --yes
281
+ npx @litfamily/litmuse extensions remove lit-docx --yes
282
+ npx @litfamily/litmuse extensions prune-backups --older-than 30 --yes
283
+ ```
284
+
285
+ `remove` refuses a folder Muse has no record of, or one installed from somewhere other than a wjgoarxiv-skills edition, and names its path. `prune-backups` is the only verb that deletes. `doctor` runs the same check and prints one line, and the installer adds a line pointing at `extensions check` when it finds something; nothing changes on its own.
286
+
287
+ </details>
288
+
289
+ ## Inside one lit turn
290
+
291
+ A prompt that starts with `lit` goes through four steps, and each one leaves something you can open later. The bottom row shows where all of this ends up: three of the four live in your project, and the route state sits in your home folder, where a planning turn cannot reach it.
292
+
293
+ <p align="center">
294
+ <picture>
295
+ <source media="(prefers-color-scheme: dark)" srcset="./docs/assets/diagrams/lit-route.en.dark.png">
296
+ <img src="./docs/assets/diagrams/lit-route.en.light.png" width="900" alt="Four steps of a lit turn in Muse Code. 1, you type lit plan or /lit review. 2, the UserPromptSubmit hook picks the route from the next word and the reply opens with LIT IGNITED. 3, the skill plugin:litmuse:<route> works, child agents run as litmuse/<agent>, and PreToolUse keeps plan turns in plans/. 4, review-work and litmuse/lit-verifier decide; a Stop hook above holds the turn while plan rows are open. Below, the files each step leaves: .litmuse/handoff/latest.md, which SessionStart reads back; route state in ~/.local/state/litmuse/; plans/<slug>.md and .litmuse/ledger/*.jsonl, appended by PostToolUse; and .litmuse/evidence/<slug>/.">
297
+ </picture>
298
+ </p>
252
299
 
253
- **4 commands**: `/lit <route> <task>`, `/lit-korean <file or text>`, `/lit-status`, `/lit-hud`.
300
+ <details>
301
+ <summary>The four steps, one by one</summary>
254
302
 
255
- **10 hooks**: SessionStart (LitMuse context and routes; after a compaction it re-injects the saved handoff once, and it adds the answer style you chose with `litmuse style`), UserPromptSubmit (`lit` activation; a later `lit` while its route is active continues it, `lit <other route>` switches, a bare `lit` resumes a started plan, `lit new` or `lit restart` starts over), PreToolUse (during lit-plan: writes through write_file, edit_file, apply_patch or delete_file stay inside `plans/` and `.litmuse/`, shell commands are read-only, and only read-only LitMuse agents may be spawned; on every route: guards against clustered negations and clustered hedges that a write adds to Markdown or text prose), PostToolUse (the tool ledger, plus the whole-line comments an edit added for comment-checker and an advisory lit-humanizer check on written prose), PostToolUseFailure (ledger), Stop (a lit-plan turn ends after its plan file exists, and a one-word `go` in the same session within 30 minutes then starts that plan with start-work; start-work keeps going while plan rows are open and litgoal while criteria are open, each at most 3 holds in a row without progress), PreCompact (writes `.litmuse/handoff/latest.md` before Muse compacts), SubagentStart (the return format for child agents), SubagentStop and SessionEnd (ledger lines). The hooks also keep a live record of the route, plan progress and running child agents, plus each session's liveness (PostToolUse says alive, Stop idle, SessionEnd ended), which `/lit-status` and `npx @litfamily/litmuse status --card` show, because Muse's `/hud` shows fixed fields only. The card lists other sessions of the project running first, then idle, keeps a finished start-work as done for a minute, names a herdr pane session `<skill> · <pane>`, and says `restart to <version>` when a newer LitMuse was installed after the session started.
303
+ 1. **Route.** The prompt hook reads the word after `lit` and picks the route. `lit plan` goes to lit-plan, plain `lit` goes to lit-loop, and another `lit` while that route is still running carries it on.
304
+ 2. **Load.** Muse loads the route's skill, which may hand parts of the work to child agents such as `litmuse/lit-verifier`.
305
+ 3. **Work.** During a planning turn the PreToolUse hook lets writes land only under `plans/` and `.litmuse/`.
306
+ 4. **Review.** The work counts as done when the tests pass and someone looked at the real surface; anything nobody could check is marked unverified. While plan rows are still open, the Stop hook keeps the turn going.
256
307
 
257
- **11 agents**, spawned as `litmuse/<name>`: lit-planner, lit-executor, lit-verifier, qa-runner, quality-reviewer, librarian-researcher, and five Korean prose agents. Reviewers and the Korean agents get read and search tools only.
308
+ </details>
258
309
 
259
- **Models**: `npx @litfamily/litmuse models` lists the models and effort tiers your Muse install offers, read from Muse's own catalog. A model Meta adds later shows up there with no LitMuse update.
310
+ Here is the same turn drawn as a small process plant. A prompt comes in on the left, the route check sends it to the plan unit or straight to the build unit, and checked work leaves on the right with its evidence. The stream table says which file each stream becomes.
260
311
 
261
- ## What a planning turn may do
312
+ <p align="center">
313
+ <picture>
314
+ <source media="(prefers-reduced-motion: reduce) and (prefers-color-scheme: dark)" srcset="./docs/assets/schematic/lit-plant.en.dark.png">
315
+ <source media="(prefers-reduced-motion: reduce)" srcset="./docs/assets/schematic/lit-plant.en.light.png">
316
+ <source media="(prefers-color-scheme: dark)" srcset="./docs/assets/schematic/lit-plant-loop.en.dark.webp">
317
+ <img src="./docs/assets/schematic/lit-plant-loop.en.light.webp" width="900" alt="Process flow diagram of a lit turn inside one Muse Code session, with flow moving along the lines. A lit <task> prompt enters on the left; UserPromptSubmit picks the route, sending lit plan to the plan unit (lit-plan, PreToolUse keeps writes in plans/) and plain lit to the build unit (start-work). The plan file flows into the build unit. Its outlet valve is held by a level controller labelled Stop: holds while rows are open. The draft passes an analyser for review-work and lit-verifier, whose diverter sends checked work out as Done, with proof and Evidence, or back to the build unit as rework. Below, a hook signal fills the ledger tank and the handoff tank feeds the next session, which SessionStart reads back. A stream table lists what each stream leaves on disk: plans/<slug>.md, .litmuse/evidence/, .litmuse/ledger/ and .litmuse/handoff/.">
318
+ </picture>
319
+ </p>
320
+
321
+ <details>
322
+ <summary>Reading the plant</summary>
323
+
324
+ Work leaves the build unit through a valve that the Stop hook keeps shut while plan rows are open, then passes the review analyser. Anything that fails review goes back to be built again. Underneath, the hooks fill two tanks: the ledger of tool events, and the handoff that the next session reads back.
325
+
326
+ </details>
327
+
328
+ ### What a planning turn may do
329
+
330
+ `lit plan` turns are planning only, and the PreToolUse hook holds that line with an allowlist. Anything unlisted is refused, including MCP tools and tools a later Muse release adds. If the route state goes missing or breaks during a plan turn, the limit stays on.
331
+
332
+ <details>
333
+ <summary>The allowlist, tool by tool</summary>
334
+
335
+ - **Read-only tools:** `read_file`, `search`, `read_skill`, `web_search`, `web_fetch`, `read_memory`, `work_status`, `work_list`, `subagent_status`, `subagent_wait`, `subagent_read_result`, `subagent_cancel`, `request_user_input`, `get_goal`, `cron_list`.
336
+ - **File writes** (`write_file`, `edit_file`, `apply_patch`, `delete_file`) only inside `plans/` and `.litmuse/`, after `..` and symlinks are resolved.
337
+ - **Shell** (`bash`, `exec_command`, `shell`) only for one plain command from `ls`, `cat`, `head`, `tail`, `wc`, `rg` or `git log|status|diff|show`, with listed flags and no `;`, `&`, `|`, `<`, `>`, backticks, `$` or line breaks. `bash_input` is refused.
338
+ - **Child agents** only as read-only `litmuse/*` agents (lit-planner, librarian-researcher, lit-verifier, quality-reviewer and the Korean prose agents).
339
+
340
+ Route state lives outside the project, under `~/.local/state/litmuse/`, so no tool in a planning turn reaches it. Each hook's declared command carries a digest of its code, so when an update changes a hook, Muse asks you to approve it again.
341
+
342
+ </details>
343
+
344
+ ## Update and uninstall
345
+
346
+ To update, run the install line again. To remove everything, run `uninstall` (add `--dry-run` to preview); it takes the rules-file block out too, and plans and `.litmuse/` folders in your projects stay where they are.
347
+
348
+ | Task | Command |
349
+ | --- | --- |
350
+ | Install | `npx @litfamily/litmuse install` |
351
+ | Preview first | `npx @litfamily/litmuse install --dry-run` |
352
+ | Update | `npx @litfamily/litmuse install` |
353
+ | Check | `npx @litfamily/litmuse doctor` |
354
+ | Remove | `npx @litfamily/litmuse uninstall` |
262
355
 
263
- `lit plan` turns are planning only, and the PreToolUse hook holds that line with an allowlist. Anything unlisted is refused, including MCP tools and tools a later Muse release adds.
356
+ ## Troubleshooting
264
357
 
265
- - Read-only tools: `read_file`, `search`, `read_skill`, `web_search`, `web_fetch`, `read_memory`, `work_status`, `work_list`, `subagent_status`, `subagent_wait`, `subagent_read_result`, `subagent_cancel`, `request_user_input`, `get_goal`, `cron_list`.
266
- - File writes (`write_file`, `edit_file`, `apply_patch`, `delete_file`) only inside `plans/` and `.litmuse/`, after `..` and symlinks are resolved.
267
- - Shell (`bash`, `exec_command`, `shell`) only for one plain command from `ls`, `cat`, `head`, `tail`, `wc`, `rg` or `git log|status|diff|show`, with listed flags and no `;`, `&`, `|`, `<`, `>`, backticks, `$` or line breaks. `bash_input` is refused.
268
- - Child agents only as read-only `litmuse/*` agents (lit-planner, librarian-researcher, lit-verifier, quality-reviewer and the Korean prose agents).
358
+ **Muse also loads my personal rules and skills from other tools.** Muse reads personal rules and skills written for other coding tools, such as a user rules file or a personal skills folder, and LitMuse leaves that on because those rules are yours. Its session context asks Muse to use the LitMuse skill for every lit route.
269
359
 
270
- Route state lives outside the project, under `~/.local/state/litmuse/`, so no tool in a planning turn reaches it. If that state goes missing or breaks during a plan turn, the limit stays on. Each hook's declared command carries a digest of its code, so when an update changes a hook, Muse asks you to approve it again.
360
+ **`doctor` warns about a personal skill.** It shares a name with a LitMuse skill or comes from another tool's plugin folder. For a clean run, switch off "Personal rules fallback" and "Personal skills fallback" in `/settings`; a headless run takes `muse exec --no-foreign-personal-context` (the interactive `muse` rejects that flag on 1.4.11).
271
361
 
272
- ## Living next to other tools
362
+ **`doctor` shows `INFO leftover`.** LitMuse ships no engine runtime any more; releases up to 0.1.11 cached them under `~/.local/share/litmuse/runtime/`, and `uninstall` never removed that folder. Nothing reads it now (an extension sets up its own engines), so delete it to free the space.
273
363
 
274
- Muse also reads personal rules and skills written for other coding tools, such as a user rules file or a personal skills folder. LitMuse leaves that on, because those rules are yours. Its session context asks Muse to use the LitMuse skill for every lit route, and `doctor` warns when a personal skill shares a name with a LitMuse skill or comes from another tool's plugin folder. For a clean run, switch off "Personal rules fallback" and "Personal skills fallback" in `/settings`; a headless run takes `muse exec --no-foreign-personal-context` (the interactive `muse` rejects that flag on 1.4.11).
364
+ ## Reference
275
365
 
276
- ## A short block in Muse's own rules file
366
+ [docs/reference.md](./docs/reference.md) holds what a first install does not need: [every hook](./docs/reference.md#hooks), [the live record behind the card](./docs/reference.md#the-live-record-behind-the-card), and [the short block in Muse's own rules file](./docs/reference.md#a-short-block-in-muses-own-rules-file).
277
367
 
278
- Muse keeps one user rules file of its own, `~/.config/muse/AGENTS.md` (`$XDG_CONFIG_HOME/muse/AGENTS.md` when that is set), and loads it as user-scope rules at the start of every session, trusted workspace or not. LitMuse's hooks already carry the full guidance, so the file gets only a short block of ground rules: `lit` is LitMuse's activation word, where plans and handoffs live, never push, publish, tag or bump a version without a yes, and call work done only after the tests pass and the changed surface was checked.
368
+ ### Safety
279
369
 
280
- You decide whether it goes in. An interactive install asks once (the default is yes; a No is remembered), `--yes` adds it, and an install without a terminal and without `--yes` never writes it. `--no-agent-file` skips it for one run. `npx @litfamily/litmuse config agentFile off` removes the block at once and keeps it off; `config agentFile on` puts it back.
370
+ The installer writes to `~/.local/share/litmuse/` and, through the `muse` CLI, to Muse's own plugin store and settings, and it writes nothing under `~/.claude` or `~/.codex`. Hooks fail open: if one breaks, your session continues.
281
371
 
282
- Only the lines between `<!-- litfamily:litmuse:start … -->` and `<!-- litfamily:litmuse:end -->` are LitMuse's. Your own text stays byte for byte: removing the block returns the file exactly as it was (a file the block created is deleted again), Windows line endings are kept, and a copy of your file goes to `~/.local/share/litmuse/backups/` the first time the block goes in. A symbolic link, a non-UTF-8 file or a damaged marker pair is left alone and reported. Muse cuts a rules file after 32,000 bytes, so on a file that long the installer writes nothing and `doctor` says the block would never be read. `doctor` and `status` show the state as `present`, `stale`, `absent`, `malformed` or `off`. If you run `/rules import` in Muse and choose to overwrite the file, the block goes with it; `install` puts it back.
372
+ <details>
373
+ <summary>Everything the installer and <code>extensions</code> write, back up and refuse</summary>
283
374
 
284
- ## Safety and uninstall
375
+ - **Backups first.** The installer backs up `~/.config/muse/settings.json` and Muse's `installed.json` first, and it reads Muse's credential file in no step. The one file it edits outside those is Muse's user rules file, and only inside its own marked block ([details](./docs/reference.md#a-short-block-in-muses-own-rules-file)).
376
+ - **Refusals.** It refuses to replace a bundle directory that is a symbolic link, holds someone else's files, or was edited after install.
377
+ - **Pinned by a test.** It writes nothing under `~/.claude` or `~/.codex`; a test pins that.
378
+ - **`extensions`** writes only when you add `--yes`, and then only three places: Muse's user skills (through `muse skills install` and `uninstall`), `~/.config/muse/extension-backups/`, and its own clone in `~/.cache/litmuse/extensions-src`. A linked folder in any of them stops it before the first change.
285
379
 
286
- - The installer writes to `~/.local/share/litmuse/` and, through the `muse` CLI, to Muse's own plugin store and settings. It backs up `~/.config/muse/settings.json` and Muse's `installed.json` first, and it reads Muse's credential file in no step. The one file it edits outside those is Muse's user rules file, and only inside its own marked block (see above).
287
- - It refuses to replace a bundle directory that is a symbolic link, holds someone else's files, or was edited after install.
288
- - It writes nothing under `~/.claude` or `~/.codex`; a test pins that.
289
- - Hooks fail open: if one breaks, your session continues.
290
- - LitMuse ships no engine runtime any more. Releases up to 0.1.11 cached them under `~/.local/share/litmuse/runtime/`, and `uninstall` never removed that folder. Nothing reads it now (an extension sets up its own engines), so delete it to free the space; `doctor` shows it as `INFO leftover` while it is there.
291
- - Remove everything with `npx @litfamily/litmuse uninstall` (add `--dry-run` to preview); it takes the rules-file block out too. Plans and `.litmuse/` folders in your projects stay where they are.
380
+ </details>
292
381
 
293
382
  ## Family
294
383