@litfamily/litclaude 1.0.59 → 1.0.60

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/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.0.60 - 2026-11-22
4
+
5
+ - The goal question now comes with an answer guide, so a first-time user knows what to type. Under
6
+ lit-plan's approval question and lit-loop's goal question, Claude shows a short table of each answer
7
+ (`yes`, `edit`, `no`) and what it does, ending `Type the word alone.` The descriptions follow the
8
+ user's language; the answer words stay the same. The question the prompt hook prints carries the same
9
+ guide as plain lines.
10
+ - A whole prompt of `lit handoff` now opens the handoff the same way `handoff` does.
11
+ `lit deep interview <idea>`, `lit deep-interview <idea>` and `lit interview <idea>` start the
12
+ clarifying interview. `litclaude-ai why` reports both routes as the prompt hook takes them.
13
+ - The English and Korean READMEs, on GitHub and on npm, open with a plain one-line pitch and a "Two ways
14
+ to use it" section: the easy way, with `lit` added to an ordinary request, and the full step-by-step
15
+ workflow from brainstorm to handoff.
16
+
3
17
  ## 1.0.59 - 2026-11-21
4
18
 
5
19
  - A test command at the end of a leading `&&` chain keeps its own exit in the receipt when a pipe or
package/README.md CHANGED
@@ -1,20 +1,47 @@
1
- <p align="center"><picture><source media="(prefers-reduced-motion: reduce)" srcset="https://cdn.jsdelivr.net/npm/@litfamily/litclaude@1.0.59/docs/assets/cover-motion-still.webp" /><img src="https://cdn.jsdelivr.net/npm/@litfamily/litclaude@1.0.59/docs/assets/cover-motion.webp" width="100%" alt="LitFamily motion cover: seven armored robots power on one by one, the LitClaude robot wakes with glowing eyes and a lit frame, then LITFAMILY and KEEP THE WORK LIT. light up." /></picture></p>
1
+ <p align="center"><picture><source media="(prefers-reduced-motion: reduce)" srcset="https://cdn.jsdelivr.net/npm/@litfamily/litclaude@1.0.60/docs/assets/cover-motion-still.webp" /><img src="https://cdn.jsdelivr.net/npm/@litfamily/litclaude@1.0.60/docs/assets/cover-motion.webp" width="100%" alt="LitFamily motion cover: seven armored robots power on one by one, the LitClaude robot wakes with glowing eyes and a lit frame, then LITFAMILY and KEEP THE WORK LIT. light up." /></picture></p>
2
2
 
3
3
  <h1 align="center">LitClaude</h1>
4
4
  <p align="center"><strong>Keep the work lit.</strong></p>
5
- <p align="center">A Claude Code plugin that helps every session plan the work, build it, check it, and leave a note the next session can pick up.</p>
5
+ <p align="center">LitClaude is an add-on for Claude Code. It makes Claude check its own work before it says "done", and leaves a note so the next session starts where this one stopped.</p>
6
6
  <p align="center">
7
- <img src="https://cdn.jsdelivr.net/npm/@litfamily/litclaude@1.0.59/docs/assets/readme/badge-version.svg" alt="1.0.59" />
8
- <a href="https://cdn.jsdelivr.net/npm/@litfamily/litclaude@1.0.59/LICENSE"><img src="https://cdn.jsdelivr.net/npm/@litfamily/litclaude@1.0.59/docs/assets/readme/badge-license.svg" alt="MIT license" /></a>
7
+ <img src="https://cdn.jsdelivr.net/npm/@litfamily/litclaude@1.0.60/docs/assets/readme/badge-version.svg" alt="1.0.60" />
8
+ <a href="https://cdn.jsdelivr.net/npm/@litfamily/litclaude@1.0.60/LICENSE"><img src="https://cdn.jsdelivr.net/npm/@litfamily/litclaude@1.0.60/docs/assets/readme/badge-license.svg" alt="MIT license" /></a>
9
9
  </p>
10
10
  <p align="center">
11
- <a href="https://github.com/wjgoarxiv/litclaude#readme">Full guide and skills gallery on GitHub</a> · <a href="https://cdn.jsdelivr.net/npm/@litfamily/litclaude@1.0.59/README_ko-KR.md">한국어</a>
11
+ <a href="https://github.com/wjgoarxiv/litclaude#readme">Full guide and skills gallery on GitHub</a> · <a href="https://cdn.jsdelivr.net/npm/@litfamily/litclaude@1.0.60/README_ko-KR.md">한국어</a>
12
12
  </p>
13
13
 
14
- Add `lit` to a Claude Code prompt and Claude pins the goal, writes a failing test first,
15
- checks the real result and leaves a record in your project. Type `handoff` when you stop, and
16
- the next session reads that record and picks up where this one left off. It suits people who
17
- use Claude Code on real projects and want proof before "done".
14
+ You ask Claude for a feature. It writes the code and says it is finished, and a day later you find the tests
15
+ never ran. You open a new session and explain the whole project again.
16
+
17
+ With LitClaude you add `lit` to the same request. Claude first writes down what "finished" means for this
18
+ task, adds a test that fails, makes it pass, and ends by telling you what it checked and what it could not.
19
+ When you stop, type `handoff`. Claude saves a note, and the next session reads it and carries on.
20
+
21
+ ## Two ways to use it
22
+
23
+ **The easy way.** Write your request as usual and put `lit` at the start or at the end:
24
+
25
+ ```text
26
+ fix the date parsing bug in src/dates.js lit
27
+ ```
28
+
29
+ Claude sets the goal, writes a failing test, fixes the bug, checks the result and tells you what it checked.
30
+ Most tasks need nothing more.
31
+
32
+ **The full workflow.** For a bigger job, go one step at a time. Each step leaves a file the next step reads,
33
+ and you can skip any step you do not need.
34
+
35
+ | Step | Type | What happens |
36
+ | --- | --- | --- |
37
+ | 1. Explore | `/litclaude:lit-brainstorm <question>` | Many options, scored, cut to a short list |
38
+ | 2. Clarify | `/litclaude:deep-interview <idea>` | Claude asks questions until the goal is clear |
39
+ | 3. Plan | `lit-crucible <approach>` or `/litclaude:lit-plan <task>` | Crucible attacks the approach first, then plans; lit-plan writes the steps and waits for your yes |
40
+ | 4. Build | `yes` to the plan, or `/litclaude:lit-loop <task>` | Claude works through it with tests and checks |
41
+ | 5. Review | `/litclaude:review-work` | A review in five lanes, findings first |
42
+ | 6. Hand off | `handoff` | Decisions and the next step, saved to a file |
43
+
44
+ Install with one line (the next section has the details), then start Claude Code in your project.
18
45
 
19
46
  ## Install
20
47
 
@@ -83,7 +110,7 @@ the `/plugin` menu.
83
110
  ## More
84
111
 
85
112
  - [Full guide and skills gallery on GitHub](https://github.com/wjgoarxiv/litclaude#readme)
86
- - [Privacy and network behavior](https://cdn.jsdelivr.net/npm/@litfamily/litclaude@1.0.59/docs/privacy.md)
87
- - [Migration and ownership conflicts](https://cdn.jsdelivr.net/npm/@litfamily/litclaude@1.0.59/docs/migration.md)
88
- - [Release history](https://cdn.jsdelivr.net/npm/@litfamily/litclaude@1.0.59/CHANGELOG.md)
89
- - [MIT license](https://cdn.jsdelivr.net/npm/@litfamily/litclaude@1.0.59/LICENSE)
113
+ - [Privacy and network behavior](https://cdn.jsdelivr.net/npm/@litfamily/litclaude@1.0.60/docs/privacy.md)
114
+ - [Migration and ownership conflicts](https://cdn.jsdelivr.net/npm/@litfamily/litclaude@1.0.60/docs/migration.md)
115
+ - [Release history](https://cdn.jsdelivr.net/npm/@litfamily/litclaude@1.0.60/CHANGELOG.md)
116
+ - [MIT license](https://cdn.jsdelivr.net/npm/@litfamily/litclaude@1.0.60/LICENSE)
package/README_ko-KR.md CHANGED
@@ -1,20 +1,42 @@
1
- <p align="center"><picture><source media="(prefers-reduced-motion: reduce)" srcset="https://cdn.jsdelivr.net/npm/@litfamily/litclaude@1.0.59/docs/assets/cover-motion-still.webp" /><img src="https://cdn.jsdelivr.net/npm/@litfamily/litclaude@1.0.59/docs/assets/cover-motion.webp" width="100%" alt="LitFamily 모션 커버: 일곱 로봇 패널이 차례로 켜지고, LitClaude 로봇의 눈과 테두리가 빛난 뒤 LITFAMILY와 KEEP THE WORK LIT. 문구가 밝아지는 영상" /></picture></p>
1
+ <p align="center"><picture><source media="(prefers-reduced-motion: reduce)" srcset="https://cdn.jsdelivr.net/npm/@litfamily/litclaude@1.0.60/docs/assets/cover-motion-still.webp" /><img src="https://cdn.jsdelivr.net/npm/@litfamily/litclaude@1.0.60/docs/assets/cover-motion.webp" width="100%" alt="LitFamily 모션 커버: 일곱 로봇 패널이 차례로 켜지고, LitClaude 로봇의 눈과 테두리가 빛난 뒤 LITFAMILY와 KEEP THE WORK LIT. 문구가 밝아지는 영상" /></picture></p>
2
2
 
3
3
  <h1 align="center">LitClaude</h1>
4
4
  <p align="center"><strong>Keep the work lit.</strong></p>
5
- <p align="center">Claude Code에서 세션마다 계획하고, 만들고, 확인한 뒤 다음 세션이 이어받을 기록을 남기게 돕는 플러그인입니다.</p>
5
+ <p align="center">LitClaude는 Claude Code에 붙이는 추가 기능입니다. Claude가 "다 됐어요"라고 말하기 전에 자기 작업을 직접 확인하게 하고, 다음 세션이 이어서 시작할 수 있도록 기록을 남기게 합니다.</p>
6
6
  <p align="center">
7
- <img src="https://cdn.jsdelivr.net/npm/@litfamily/litclaude@1.0.59/docs/assets/readme/badge-version.svg" alt="1.0.59" />
8
- <a href="https://cdn.jsdelivr.net/npm/@litfamily/litclaude@1.0.59/LICENSE"><img src="https://cdn.jsdelivr.net/npm/@litfamily/litclaude@1.0.59/docs/assets/readme/badge-license.svg" alt="MIT license" /></a>
7
+ <img src="https://cdn.jsdelivr.net/npm/@litfamily/litclaude@1.0.60/docs/assets/readme/badge-version.svg" alt="1.0.60" />
8
+ <a href="https://cdn.jsdelivr.net/npm/@litfamily/litclaude@1.0.60/LICENSE"><img src="https://cdn.jsdelivr.net/npm/@litfamily/litclaude@1.0.60/docs/assets/readme/badge-license.svg" alt="MIT license" /></a>
9
9
  </p>
10
10
  <p align="center">
11
- <a href="https://github.com/wjgoarxiv/litclaude/blob/main/README_ko-KR.md">전체 안내와 스킬 갤러리는 GitHub에서</a> · <a href="https://cdn.jsdelivr.net/npm/@litfamily/litclaude@1.0.59/README.md">English</a>
11
+ <a href="https://github.com/wjgoarxiv/litclaude/blob/main/README_ko-KR.md">전체 안내와 스킬 갤러리는 GitHub에서</a> · <a href="https://cdn.jsdelivr.net/npm/@litfamily/litclaude@1.0.60/README.md">English</a>
12
12
  </p>
13
13
 
14
- Claude Code 프롬프트에 `lit`을 붙이면 Claude가 목표를 고정하고, 실패하는 테스트를 먼저 쓰고,
15
- 실제 결과를 확인한 뒤 프로젝트에 기록을 남깁니다. 작업을 멈출 때 `handoff`를 입력하면 다음
16
- 세션이 그 기록을 읽고 이어갑니다. Claude Code로 실제 프로젝트를 하면서 Claude가 "다 됐습니다"라고
17
- 말하기 전에 근거를 보고 싶은 분께 맞습니다.
14
+ Claude에게 기능을 하나 부탁하면 코드를 쓰고 끝났다고 말합니다. 그런데 다음 날 보니 테스트는 한 번도 돌지 않았습니다. 새 세션을 열면 프로젝트 설명을 처음부터 다시 해야 합니다.
15
+
16
+ LitClaude를 쓰면 같은 요청에 `lit`만 붙이면 됩니다. Claude는 먼저 이 작업에서 "끝났다"가 무슨 뜻인지 적고, 실패하는 테스트를 추가해 통과시킨 뒤, 무엇을 확인했고 무엇을 확인하지 못했는지 알려 줍니다. 작업을 멈출 때 `handoff`라고 치면 Claude가 기록을 남기고, 다음 세션이 그 기록을 읽고 이어서 합니다.
17
+
18
+ ## 두 가지 사용법
19
+
20
+ **간단하게.** 평소처럼 요청을 쓰고, 앞이나 끝에 `lit`을 붙입니다.
21
+
22
+ ```text
23
+ src/dates.js의 날짜 파싱 버그 고쳐줘 lit
24
+ ```
25
+
26
+ Claude가 목표를 정하고, 실패하는 테스트를 쓰고, 버그를 고치고, 결과를 확인한 뒤 확인한 내용을 알려 줍니다. 대부분의 작업은 이것으로 충분합니다.
27
+
28
+ **본격적으로.** 큰 작업은 한 단계씩 나아갑니다. 각 단계가 남긴 파일을 다음 단계가 읽고, 필요 없는 단계는 건너뛰면 됩니다.
29
+
30
+ | 단계 | 입력 | 하는 일 |
31
+ | --- | --- | --- |
32
+ | 1. 넓게 보기 | `/litclaude:lit-brainstorm <질문>` | 선택지를 많이 낸 뒤 점수를 매겨 몇 개로 추립니다 |
33
+ | 2. 구체화 | `/litclaude:deep-interview <아이디어>` | 목표가 분명해질 때까지 Claude가 질문합니다 |
34
+ | 3. 계획 | `lit-crucible <접근법>` 또는 `/litclaude:lit-plan <작업>` | crucible은 접근법의 약점을 먼저 찌른 뒤 계획으로 넘기고, lit-plan은 단계를 쓰고 승인을 기다립니다 |
35
+ | 4. 실행 | 계획에 `yes`, 또는 `/litclaude:lit-loop <작업>` | 테스트와 확인을 거치며 작업합니다 |
36
+ | 5. 검토 | `/litclaude:review-work` | 다섯 갈래로 검토하고 발견한 문제부터 알려 줍니다 |
37
+ | 6. 넘겨주기 | `handoff` | 결정과 다음 할 일을 파일로 남깁니다 |
38
+
39
+ 설치는 한 줄입니다(자세한 내용은 바로 아래 설치 절에 있습니다). 그다음 프로젝트에서 Claude Code를 실행하세요.
18
40
 
19
41
  ## 설치
20
42
 
@@ -81,7 +103,7 @@ npx @litfamily/litclaude@latest uninstall
81
103
  ## 더 보기
82
104
 
83
105
  - [전체 안내와 스킬 갤러리 (GitHub)](https://github.com/wjgoarxiv/litclaude/blob/main/README_ko-KR.md)
84
- - [개인정보와 네트워크 동작](https://cdn.jsdelivr.net/npm/@litfamily/litclaude@1.0.59/docs/privacy.md)
85
- - [이전과 소유권 충돌](https://cdn.jsdelivr.net/npm/@litfamily/litclaude@1.0.59/docs/migration.md)
86
- - [변경 이력](https://cdn.jsdelivr.net/npm/@litfamily/litclaude@1.0.59/CHANGELOG.md)
87
- - [MIT 라이선스](https://cdn.jsdelivr.net/npm/@litfamily/litclaude@1.0.59/LICENSE)
106
+ - [개인정보와 네트워크 동작](https://cdn.jsdelivr.net/npm/@litfamily/litclaude@1.0.60/docs/privacy.md)
107
+ - [이전과 소유권 충돌](https://cdn.jsdelivr.net/npm/@litfamily/litclaude@1.0.60/docs/migration.md)
108
+ - [변경 이력](https://cdn.jsdelivr.net/npm/@litfamily/litclaude@1.0.60/CHANGELOG.md)
109
+ - [MIT 라이선스](https://cdn.jsdelivr.net/npm/@litfamily/litclaude@1.0.60/LICENSE)
@@ -1 +1 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" width="146" height="20" role="img" aria-label="release: 1.0.59"><title>release: 1.0.59</title><g shape-rendering="crispEdges"><rect width="49" height="20" fill="#080d14"/><rect x="49" width="97" height="20" fill="#ff6337"/></g><g fill="#fff" text-anchor="middle" font-family="Verdana,Geneva,DejaVu Sans,sans-serif" text-rendering="geometricPrecision" font-size="110"><text x="255" y="140" textLength="390" transform="scale(.1)">release</text><text x="965" y="140" textLength="870" transform="scale(.1)" fill="#080D14">1.0.59</text></g></svg>
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="146" height="20" role="img" aria-label="release: 1.0.60"><title>release: 1.0.60</title><g shape-rendering="crispEdges"><rect width="49" height="20" fill="#080d14"/><rect x="49" width="97" height="20" fill="#ff6337"/></g><g fill="#fff" text-anchor="middle" font-family="Verdana,Geneva,DejaVu Sans,sans-serif" text-rendering="geometricPrecision" font-size="110"><text x="255" y="140" textLength="390" transform="scale(.1)">release</text><text x="965" y="140" textLength="870" transform="scale(.1)" fill="#080D14">1.0.60</text></g></svg>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@litfamily/litclaude",
3
- "version": "1.0.59",
3
+ "version": "1.0.60",
4
4
  "description": "Claude Code plugin: add lit to a prompt and Claude plans, tests, checks and reviews the work, then leaves a handoff for the next session.",
5
5
  "type": "module",
6
6
  "bin": {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "litclaude",
3
3
  "description": "Claude Code-native workflow plugin with a bounded-authority start-work lifecycle.",
4
- "version": "1.0.59",
4
+ "version": "1.0.60",
5
5
  "author": {
6
6
  "name": "LitClaude contributors"
7
7
  },
@@ -68,11 +68,11 @@ import { checkBackDenial, clearTimerStarted, isCheckBackPrompt, takeCheckBack, t
68
68
  import { inviteMessage, parseInvitePrompt, recordInvite, shareLine } from "../lib/invite.mjs";
69
69
  import { claimSessionExtensionsNotice } from "../lib/extensions-notice.mjs";
70
70
  import { buildSkillPlan, installedExtensionPlugins, parseSkillHatch, skillPlanContext, skillPlanIds } from "../lib/skill-plan.mjs";
71
- import { GOAL_STATUS, consentAnswer, consentIsLive } from "../lib/goal-pipeline.mjs";
71
+ import { GOAL_STATUS, consentAnswer, consentIsLive, goalGuidePlain } from "../lib/goal-pipeline.mjs";
72
72
  import { dropGoalFile, goalAskedSinceClose, markGoalAsked, readGoalFile, requestGoalClear, writeGoalFile } from "../lib/goal-files.mjs";
73
73
  import { archiveStaleSessions } from "../lib/session-state.mjs";
74
74
  import { detectCheck, proposeLoopGoal } from "../scripts/goal-propose.mjs";
75
- import { bareLitPattern, containsSlashCommandMention, findWorkflowTrigger, hasLitTrigger, hasReviewModifier, naturalLitCompanions, normalizedTriggerText, rawTriggerText, restartLitPattern, resumeLitPattern, withoutCode } from "../lib/route-match.mjs";
75
+ import { bareLitPattern, containsSlashCommandMention, findWorkflowTrigger, hasLitTrigger, hasReviewModifier, isExactBareHandoff, naturalLitCompanions, normalizedTriggerText, rawTriggerText, restartLitPattern, resumeLitPattern, withoutCode } from "../lib/route-match.mjs";
76
76
  import { planCheckRewrite, recordCheckRun, recordCodeEdit } from "../lib/receipts.mjs";
77
77
  import { evaluateReceiptGate, readReceiptGateMode } from "../lib/receipt-gate.mjs";
78
78
 
@@ -483,7 +483,6 @@ const gitHistoryCommand = /^\s*git\s+(?:commit|rebase|cherry-pick|reset|revert|b
483
483
  const isGitHistoryCommand = (input) =>
484
484
  input?.tool_name === "Bash" && typeof input?.tool_input?.command === "string" && gitHistoryCommand.test(input.tool_input.command);
485
485
 
486
- const isExactBareHandoff = (prompt) => /^\s*handoff\s*$/iu.test(prompt);
487
486
  // The handoff adapter has the same disable-model-invocation shape as the sci-vis adapter below.
488
487
  const isTypedHandoffCommand = (prompt) => /^\s*\/litclaude:lit-handoff(?=$|\s)/u.test(prompt);
489
488
  const isExactBareScientificVisualization = (prompt) => /^\s*lit-scientific-visualization\s*$/iu.test(prompt);
@@ -509,12 +508,12 @@ const handoffContext = ({ typed = false } = {}) => {
509
508
  `HANDOFF MODE ENABLED: ${probeInstruction("lit-handoff")}`,
510
509
  typed
511
510
  ? "The user typed /litclaude:lit-handoff. The adapter and canonical source are below because calling Skill(lit-handoff) only reopens the command; follow them and take the destination, emphasis or auto mode from the command arguments."
512
- : "Treat this exact bare prompt as an explicit request for /litclaude:lit-handoff and Skill(lit-handoff).",
511
+ : "Treat this exact bare prompt (handoff or lit handoff) as an explicit request for /litclaude:lit-handoff and Skill(lit-handoff).",
513
512
  llmContractReference,
514
513
  `Canonical source root: ${inertFilesystemData(canonicalRoot)}. Read and follow the complete canonical source body below; resolve its template, example, and eval resources relative to this absolute installed source root rather than the process cwd or ~/skills.`,
515
514
  typed
516
515
  ? "Prompt safety: the command arguments stay with the command and are never echoed into hook context."
517
- : "Prompt safety: this route accepts only the exact bare word handoff after outer whitespace. Mentions, quoted or fenced text, compound prompts, slash commands, and secret-bearing material remain inert and are never echoed into hook context.",
516
+ : "Prompt safety: this route accepts only the exact whole prompt handoff or lit handoff after outer whitespace. Mentions, quoted or fenced text, compound prompts, slash commands, and secret-bearing material remain inert and are never echoed into hook context.",
518
517
  ...(typed ? staticSkillBodyContext({ skillId: "lit-handoff" }) : []),
519
518
  `<litclaude-canonical-source name="handoff">
520
519
  ${canonicalBody}
@@ -585,7 +584,7 @@ const objectiveTail = (prompt) => {
585
584
 
586
585
  // A run route gets one question and the mod sets the goal on the user's yes; litgoal, the hand-held
587
586
  // goal tool, keeps its ready-to-paste line.
588
- const LOOP_GOAL_LINE = "Native goal: LitClaude can set /goal for this run. Once one failing check proves the objective (after the RED test), run `node \"${CLAUDE_PLUGIN_ROOT}/scripts/goal-propose.mjs\" --loop --check \"<check>\" <objective>` and ask the line it prints once, as the last line of your reply; only the user's exact `yes` on the next prompt lets the LitClaude mod run /goal when that turn ends. If it prints `No goal set: <reason>`, or no single check proves the objective, go on without a goal and keep the durable `litgoal` ledger authoritative. Never type or send /goal yourself.";
587
+ const LOOP_GOAL_LINE = "Native goal: LitClaude can set /goal for this run. Once one failing check proves the objective (after the RED test), run `node \"${CLAUDE_PLUGIN_ROOT}/scripts/goal-propose.mjs\" --loop --check \"<check>\" <objective>` and end your reply once with what it prints: the question, then its answer guide; only the user's exact `yes` on the next prompt lets the LitClaude mod run /goal when that turn ends. If it prints `No goal set: <reason>`, or no single check proves the objective, go on without a goal and keep the durable `litgoal` ledger authoritative. Never type or send /goal yourself.";
589
588
 
590
589
  const RUN_GOAL_ROUTES = new Set(["lit-loop", "native-workflow", "litwork", "lit-hijack"]);
591
590
 
@@ -978,7 +977,7 @@ const goalConsentTurn = ({ cwd, consent, answer }, sessionId) => {
978
977
  ? ["The user answered no to the plan approval question: start-work did not start. Ask how to go on with the plan in one sentence; start nothing.", "LitClaude plan: not started."]
979
978
  : [`The user answered no to the plan approval question: start-work did not start and no goal is set. Reply with exactly \`${GOAL_STATUS.skipped("you said no")}\` and ask how to go on with the plan; start nothing.`, "LitClaude goal: not set."];
980
979
  }
981
- return [`The user wants to edit the goal. Ask what to change in the plan's \`## Done when\` check (one question), update ${consent.plan}, run \`node "\${CLAUDE_PLUGIN_ROOT}/scripts/goal-propose.mjs" ${consent.plan}\` again and ask its line again. Start and set nothing yourself.`, "LitClaude goal: edit."];
980
+ return [`The user wants to edit the goal. Ask what to change in the plan's \`## Done when\` check (one question), update ${consent.plan}, run \`node "\${CLAUDE_PLUGIN_ROOT}/scripts/goal-propose.mjs" ${consent.plan}\` again and ask its line again with the answer guide it prints under it. Start and set nothing yourself.`, "LitClaude goal: edit."];
982
981
  };
983
982
  // After an approving yes: the start-work the hook just ran decides the goal. A start that holds (new,
984
983
  // already running here on that plan, or taken over) arms it; a refused start arms nothing.
@@ -1497,7 +1496,7 @@ switch (eventName) {
1497
1496
  // A repeat of an already activated discipline carries a new objective, so it asks too; a bare `lit`,
1498
1497
  // `lit continue` or start-work resume (stackHandled) only carries on and never asks.
1499
1498
  const loopGoal = (reentry?.stackHandled ?? false) || trigger.safetyBlock ? null : offerLoopGoal(trigger.discipline, input);
1500
- const systemMessage = loopGoal ? `${activationMessage(effectiveDiscipline)}\n${loopGoal.line}` : activationMessage(effectiveDiscipline);
1499
+ const systemMessage = loopGoal ? `${activationMessage(effectiveDiscipline)}\n${loopGoal.line}\n${goalGuidePlain("loopAsked")}` : activationMessage(effectiveDiscipline);
1501
1500
  let context = reentry?.context ?? (["frontend-ui-ux", "visual-qa"].includes(trigger.discipline)
1502
1501
  ? uiuxActivationContext({ ...trigger, uiMode: interfaceMode(normalizedTriggerText(prompt)) })
1503
1502
  : ["lit-diagram-drawer", "lit-schematic", "lit-typographic-motion", "readme-studio"].includes(trigger.discipline)
@@ -9,7 +9,7 @@ import {
9
9
  } from "../lib/wikify-knowledge.mjs";
10
10
 
11
11
  const protocolVersion = "2024-11-05";
12
- const serverVersion = "1.0.59";
12
+ const serverVersion = "1.0.60";
13
13
 
14
14
  const publicSourceReadTool = {
15
15
  name: "public_source_read",
@@ -90,7 +90,10 @@ The plan must include Claude Code-native bootstrap steps:
90
90
 
91
91
  - End the plan with a `## Done when` block holding one `check: \`<command>\`` line,
92
92
  run `node "${CLAUDE_PLUGIN_ROOT}/scripts/goal-propose.mjs" plans/<slug>.md`, and
93
- add the one line it prints to the approval question. LitClaude sets the native goal itself: lit-plan asks once (`Approve plan, start work and set goal: /goal <cond>? (yes / edit / no)`), and only the user's exact `yes` starts start-work on that plan, with the grants a typed `/litclaude:start-work <plan>` gets, and lets the LitClaude mod run `/goal <cond>` when that turn ends; it clears only the goal it set.
93
+ add the one line it prints to the approval question. Under it, render the answer guide the script
94
+ prints (a quoted `**▶ Answer: …**` block with a `| Type | What happens |` table, one row per answer,
95
+ ending `Type the word alone.`) in the user's language, keeping `yes` / `edit` / `no` as the exact
96
+ words. LitClaude sets the native goal itself: lit-plan asks once (`Approve plan, start work and set goal: /goal <cond>? (yes / edit / no)`), and only the user's exact `yes` starts start-work on that plan, with the grants a typed `/litclaude:start-work <plan>` gets, and lets the LitClaude mod run `/goal <cond>` when that turn ends; it clears only the goal it set.
94
97
  - Add no `/goal` step to the plan itself: start-work's Stop
95
98
  continuation and the ledger carry the run, and `/goal` stays the user's option.
96
99
  - For independent, risky, parallel, or long-running work, include when Claude
@@ -17,7 +17,7 @@ import { createHash } from "node:crypto";
17
17
  import { GOAL_DIR, GOAL_STATUS } from "./mod/goal.mjs";
18
18
  import { parsePlanTaskRows } from "./plan-task-rows.mjs";
19
19
 
20
- export { GOAL_DIR, GOAL_STATUS, STALL_CHECKS, goalStateFromTranscript, goalStep, lastAssistantText, transcriptPathFor } from "./mod/goal.mjs";
20
+ export { GOAL_ANSWERS, GOAL_DIR, GOAL_STATUS, STALL_CHECKS, goalGuideMarkdown, goalGuidePlain, goalStateFromTranscript, goalStep, lastAssistantText, transcriptPathFor } from "./mod/goal.mjs";
21
21
 
22
22
  export const GOAL_MAX_CHARS = 500;
23
23
  export const CONSENT_TTL_MS = 30 * 60 * 1000;
@@ -7,11 +7,39 @@ export const GOAL_DIR = ".litclaude/goal";
7
7
  export const SESSION_STATE_ID = /^[A-Za-z0-9-]{1,80}$/u;
8
8
  export const sessionGoalDir = (sessionId) => (typeof sessionId === "string" && SESSION_STATE_ID.test(sessionId) ? `.litclaude/sessions/${sessionId}/goal` : null);
9
9
 
10
+ // The answers each goal question takes and what each one does. The question's `(yes / …)` tail and
11
+ // the answer guide shown under it are both built from these lists, so the two cannot drift apart.
12
+ export const GOAL_ANSWERS = Object.freeze({
13
+ asked: [["yes", "starts the work now and sets this goal when this reply ends"], ["edit", "change the goal's check first"], ["no", "nothing starts"]],
14
+ startOnly: [["yes", "starts the work now, with no goal"], ["no", "nothing starts"]],
15
+ loopAsked: [["yes", "set this goal when this turn ends"], ["no", "keep working without a goal"]],
16
+ });
17
+ const GUIDE_TITLES = Object.freeze({ asked: "approve plan · start work · set goal", startOnly: "approve plan · start work", loopAsked: "set goal for this lit-loop" });
18
+ const answerTail = (kind) => `(${GOAL_ANSWERS[kind].map(([word]) => word).join(" / ")})`;
19
+
20
+ /** The guide for plain terminal text (hook systemMessage): aligned lines, no Markdown. */
21
+ export const goalGuidePlain = (kind) => {
22
+ const width = Math.max(...GOAL_ANSWERS[kind].map(([word]) => word.length));
23
+ return [...GOAL_ANSWERS[kind].map(([word, does]) => ` ${word.padEnd(width)} → ${does}`), " Type the word alone."].join("\n");
24
+ };
25
+
26
+ /** The guide for a model-written reply: a quoted Markdown table the model renders under the question. */
27
+ export const goalGuideMarkdown = (kind, cond = null) => [
28
+ `**▶ Answer: ${GUIDE_TITLES[kind]}**`,
29
+ ...(cond ? ["", `Goal: \`\` /goal ${cond} \`\``] : []),
30
+ "",
31
+ "| Type | What happens |",
32
+ "|---|---|",
33
+ ...GOAL_ANSWERS[kind].map(([word, does]) => `| **\`${word}\`** | ${does[0].toUpperCase()}${does.slice(1)} |`),
34
+ "",
35
+ "Type the word alone.",
36
+ ].map((line) => (line ? `> ${line}` : ">")).join("\n");
37
+
10
38
  // Fixed status lines, one per outcome. The mod and the CLI print these and nothing else.
11
39
  export const GOAL_STATUS = Object.freeze({
12
- asked: (cond) => `Approve plan, start work and set goal: /goal ${cond}? (yes / edit / no)`,
13
- startOnly: "Approve plan and start work? (yes / no)",
14
- loopAsked: (cond) => `Set goal for this lit-loop: /goal ${cond}? (yes / no)`,
40
+ asked: (cond) => `Approve plan, start work and set goal: /goal ${cond}? ${answerTail("asked")}`,
41
+ startOnly: `Approve plan and start work? ${answerTail("startOnly")}`,
42
+ loopAsked: (cond) => `Set goal for this lit-loop: /goal ${cond}? ${answerTail("loopAsked")}`,
15
43
  skipped: (reason) => `No goal set: ${reason}`,
16
44
  notStarted: (why) => `No goal set: start-work did not start (${why})`,
17
45
  armed: (id) => `LitClaude goal armed [lit:${id}]; it is set when this turn ends.`,
@@ -314,6 +314,13 @@ const hasExplicitBrainstormRoute = (normalized) => /\blit(?:work)?\s+(?:brainsto
314
314
  // hijack" and "lit review the hijack ledger" keep their own routes, and the bare word never activates.
315
315
  // `lit ultra-brainstorm <topic>` (the hyphen reads as a space here); ahead of the plain brainstorm route.
316
316
  const hasExplicitUltraBrainstormRoute = (normalized) => /\blit(?:work)?\s+ultra\s?brainstorm(?:ing)?(?=$|[^\w-])/u.test(normalized);
317
+ // `lit deep interview <idea>`, `lit deep-interview <idea>`, `lit interview <idea>`: the clarifying interview
318
+ // before a plan. The route word must sit directly after `lit`, so "lit fix the interview scheduler" stays a
319
+ // loop. Ahead of plan and review: "lit deep interview a plan for the launch" asks to be interviewed.
320
+ const hasExplicitInterviewRoute = (normalized) => /\blit(?:work)?\s+(?:deep\s?interview|interview|인터뷰|딥\s?인터뷰)(?=$|[^\w-])/u.test(normalized);
321
+ // A whole prompt of `handoff` or `lit handoff` (outer whitespace aside). The hook answers it before the
322
+ // cascade below with the handoff payload; explainRoute reports it as `exact:handoff`.
323
+ const isExactBareHandoff = (prompt) => typeof prompt === "string" && /^\s*(?:lit\s+)?handoff\s*$/iu.test(prompt);
317
324
  const hasExplicitHijackRoute = (normalized) => /\blit(?:work)?\s+(?:hijack(?:ing)?|하이재킹|하이잭)(?=$|[^\w-])/u.test(normalized);
318
325
  const hasExplicitTeamRoute = (normalized) => /\blit(?:work)?\s+(?:team(?:\s+mode)?|teammates)\b/u.test(normalized);
319
326
  // A casual one-line request ends with `lit` ("… 조사해줘 lit"), so the research verb is not next to
@@ -522,6 +529,7 @@ const findNaturalLitTrigger = (prompt) => {
522
529
  // Ahead of plan, review and research for the same reason: "lit hijack the review lanes into my plan
523
530
  // skill" names other skills as material, not as the route.
524
531
  if (hasExplicitHijackRoute(normalized)) return { ...triggerByToken["lit-hijack"], source: "natural-language" };
532
+ if (hasExplicitInterviewRoute(normalized)) return { ...triggerByToken["deep-interview"], source: "natural-language" };
525
533
  if (containsPlainWord(normalized, "plan") && hasReviewModifier(prompt)) {
526
534
  return { ...triggerByToken["lit-plan"], source: "natural-language" };
527
535
  }
@@ -649,6 +657,7 @@ const ROUTE_RULES = [
649
657
  { id: "natural:ultra-brainstorm", lit: true, match: ({ normalized }) => hasExplicitUltraBrainstormRoute(normalized) && routeOf("ultra-brainstorm") },
650
658
  { id: "natural:brainstorm", lit: true, match: ({ normalized }) => hasExplicitBrainstormRoute(normalized) && routeOf("lit-brainstorm") },
651
659
  { id: "natural:hijack", lit: true, match: ({ normalized }) => hasExplicitHijackRoute(normalized) && routeOf("lit-hijack") },
660
+ { id: "natural:deep-interview", lit: true, match: ({ normalized }) => hasExplicitInterviewRoute(normalized) && routeOf("deep-interview") },
652
661
  { id: "natural:plan-review-modifier", lit: true, match: ({ normalized, prompt }) => containsPlainWord(normalized, "plan") && hasReviewModifier(prompt) && routeOf("lit-plan") },
653
662
  { id: "natural:review", lit: true, match: ({ normalized }) => containsPlainWord(normalized, "review") && routeOf("review-work") },
654
663
  { id: "natural:debug", lit: true, match: ({ normalized }) => (containsPlainWord(normalized, "debug") || containsPlainWord(normalized, "debugging")) && routeOf("debugging") },
@@ -679,10 +688,11 @@ const ROUTE_RULES = [
679
688
  // `{route, ruleId, runnerUp, inert}` for one prompt. route is the discipline the hook ignites (null for
680
689
  // none); runnerUp is the next non-fallback rule that matched a different route. inert is true when no
681
690
  // route fired because text was set aside (a fence, inline code, a host block) or a stop rule held.
682
- // Routes the hook decides before this cascade (an exact `handoff`, a `lit +…` skill plan, start-work
683
- // invocations and replies) are outside it.
691
+ // An exact `handoff` / `lit handoff` is reported as the hook answers it. Other routes the hook decides
692
+ // before this cascade (a `lit +…` skill plan, start-work invocations and replies) are outside it.
684
693
  export const explainRoute = (prompt) => {
685
694
  if (typeof prompt !== "string") return { route: null, ruleId: null, runnerUp: null, inert: false };
695
+ if (isExactBareHandoff(prompt)) return { route: "lit-handoff", ruleId: "exact:handoff", runnerUp: null, inert: false };
686
696
  const route = findWorkflowTrigger(prompt)?.discipline ?? null;
687
697
  const raw = rawTriggerText(prompt);
688
698
  const context = { prompt, raw, normalized: normalizedTriggerText(prompt), lit: hasLitTrigger(raw) };
@@ -719,6 +729,7 @@ export {
719
729
  findWorkflowTrigger,
720
730
  hasLitTrigger,
721
731
  hasReviewModifier,
732
+ isExactBareHandoff,
722
733
  naturalLitCompanions,
723
734
  normalizedTriggerText,
724
735
  rawTriggerText,
@@ -12,7 +12,7 @@ import { dirname, isAbsolute, join, relative, resolve } from "node:path";
12
12
  import { pathToFileURL } from "node:url";
13
13
 
14
14
  import { goalWritePath } from "../lib/goal-files.mjs";
15
- import { GOAL_STATUS, compileCondition, compileLoopCondition, conditionHash, falsify, falsifyLoop, lintCondition, parseDoneWhen, startOnlyHash } from "../lib/goal-pipeline.mjs";
15
+ import { GOAL_STATUS, compileCondition, goalGuideMarkdown, compileLoopCondition, conditionHash, falsify, falsifyLoop, lintCondition, parseDoneWhen, startOnlyHash } from "../lib/goal-pipeline.mjs";
16
16
  import { normalizeGoalObjective } from "../lib/native-goal-binding.mjs";
17
17
  import { prepareStateDir, STATE_WRITE_FLAG } from "../lib/project-state-root.mjs";
18
18
 
@@ -40,7 +40,7 @@ export const proposeGoal = ({ cwd, planArg, sessionId = null, now = Date.now(),
40
40
  const startOnly = (reason) => {
41
41
  const consent = { version: 1, condition: null, hash: startOnlyHash(plan), id: null, plan, reason, askedAt };
42
42
  record(cwd, sessionId, consent);
43
- return { line: `${GOAL_STATUS.startOnly}\n${GOAL_STATUS.skipped(reason)}`, consent };
43
+ return { line: `${GOAL_STATUS.startOnly}\n${GOAL_STATUS.skipped(reason)}`, guide: goalGuideMarkdown("startOnly"), consent };
44
44
  };
45
45
  if (/^goal:\s*never\s*$/mu.test(planText)) return startOnly("this plan is marked goal: never");
46
46
  const done = parseDoneWhen(planText);
@@ -53,7 +53,7 @@ export const proposeGoal = ({ cwd, planArg, sessionId = null, now = Date.now(),
53
53
  if (!dry.ok) return startOnly(dry.reason);
54
54
  const consent = { version: 1, condition: built.condition, hash: conditionHash(built.condition), id: built.id, plan, askedAt };
55
55
  record(cwd, sessionId, consent);
56
- return { line: GOAL_STATUS.asked(built.condition), consent };
56
+ return { line: GOAL_STATUS.asked(built.condition), guide: goalGuideMarkdown("asked", built.condition), consent };
57
57
  };
58
58
 
59
59
  // `goal-propose.mjs --loop --check "<cmd>" <objective...>`: lit-loop's question, once its failing check
@@ -85,7 +85,7 @@ export const proposeLoopGoal = ({ cwd, check, objective, sessionId = null, now =
85
85
  if (!dry.ok) return { line: GOAL_STATUS.skipped(dry.reason) };
86
86
  const consent = { version: 1, kind: "loop", condition: built.condition, hash: conditionHash(built.condition), id: built.id, plan: null, objective: goal, askedAt: new Date(now).toISOString() };
87
87
  record(cwd, sessionId, consent);
88
- return { line: GOAL_STATUS.loopAsked(built.condition), consent };
88
+ return { line: GOAL_STATUS.loopAsked(built.condition), guide: goalGuideMarkdown("loopAsked", built.condition), consent };
89
89
  };
90
90
 
91
91
  if (process.argv[1] && import.meta.url === pathToFileURL(process.argv[1]).href) {
@@ -93,12 +93,13 @@ if (process.argv[1] && import.meta.url === pathToFileURL(process.argv[1]).href)
93
93
  // Claude Code names the session in the Bash tool's environment; without it the shared path is used.
94
94
  const sessionId = process.env.CLAUDE_CODE_SESSION_ID || null;
95
95
  let line;
96
+ let guide;
96
97
  try {
97
- ({ line } = first === "--loop" && rest[0] === "--check"
98
+ ({ line, guide } = first === "--loop" && rest[0] === "--check"
98
99
  ? proposeLoopGoal({ cwd: process.cwd(), sessionId, check: rest[1], objective: rest.slice(2).join(" ") })
99
100
  : proposeGoal({ cwd: process.cwd(), sessionId, planArg: first }));
100
101
  } catch (error) {
101
102
  line = GOAL_STATUS.skipped(error instanceof Error ? error.message : "the question could not be recorded");
102
103
  }
103
- process.stdout.write(`${line}\n`);
104
+ process.stdout.write(guide ? `${line}\n\n${guide}\n` : `${line}\n`);
104
105
  }
@@ -179,7 +179,10 @@ like this:
179
179
  `Set goal for this lit-loop: /goal <cond>? (yes / no)` itself at the loop's first activation; do
180
180
  not ask it again. Without one, once a failing check proves the objective (after the RED step), run
181
181
  `node "${CLAUDE_PLUGIN_ROOT}/scripts/goal-propose.mjs" --loop --check "<check>" <objective>` and end
182
- the reply with the line it prints; a check that already passes, cannot run or is not allowlisted
182
+ the reply with the line it prints and, under it, the answer guide it prints (a quoted table of
183
+ `yes` / `no` and what each does, ending `Type the word alone.`; descriptions in the user's
184
+ language, answer words unchanged). The hook's own question already carries that guide as plain
185
+ lines. A check that already passes, cannot run or is not allowlisted
183
186
  prints `No goal set: <reason>` and records nothing. Either way only the user's exact `yes` on a
184
187
  later prompt arms it, and the LitClaude mod runs `/goal <cond>` when that turn ends.
185
188
  - Without an armed goal, go on in degraded mode with the local evidence ledger. LitClaude never
@@ -315,7 +315,12 @@ unavailable:
315
315
  `Approve plan, start work and set goal: /goal <cond>? (yes / edit / no)`, or, when no goal can
316
316
  be set, `Approve plan and start work? (yes / no)` followed by `No goal set: <reason>`. A start
317
317
  that is refused (another run active, plan gone) arms no goal and prints
318
- `No goal set: start-work did not start (<why>)`. LitClaude sets the native goal itself: lit-plan asks once (`Approve plan, start work and set goal: /goal <cond>? (yes / edit / no)`), and only the user's exact `yes` starts start-work on that plan, with the grants a typed `/litclaude:start-work <plan>` gets, and lets the LitClaude mod run `/goal <cond>` when that turn ends; it clears only the goal it set. If a `ProposeGoal` tool is in your live tool
318
+ `No goal set: start-work did not start (<why>)`.
319
+ - Under the question, render the answer guide the script prints after a blank line: a quoted block
320
+ headed `**▶ Answer: …**`, the `/goal` line when there is one, a `| Type | What happens |` table
321
+ with one row per answer (`yes` / `edit` / `no`, or `yes` / `no` for a start-only question) and
322
+ `Type the word alone.` Translate the descriptions into the user's language but keep the answer
323
+ words exactly `yes`, `edit` and `no`; the question line above it stays unchanged. LitClaude sets the native goal itself: lit-plan asks once (`Approve plan, start work and set goal: /goal <cond>? (yes / edit / no)`), and only the user's exact `yes` starts start-work on that plan, with the grants a typed `/litclaude:start-work <plan>` gets, and lets the LitClaude mod run `/goal <cond>` when that turn ends; it clears only the goal it set. If a `ProposeGoal` tool is in your live tool
319
324
  list, you may call it with `ask_user=true` instead of printing the line; never
320
325
  otherwise. Avoid clobbering a different active goal without explicit replacement.
321
326
  - Write no `/goal` line into the plan: start-work's