cc-viewer 1.6.342 → 1.6.344

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.
Files changed (47) hide show
  1. package/README.md +1 -1
  2. package/dist/assets/App-BjHJ9KJ6.css +1 -0
  3. package/dist/assets/App-D-TSp4Vf.js +2 -0
  4. package/dist/assets/{MdxEditorPanel-CaDMFlsk.js → MdxEditorPanel-BneOGbUW.js} +1 -1
  5. package/dist/assets/{Mobile-C22UBGse.js → Mobile-COacALMA.js} +1 -1
  6. package/dist/assets/index-C1YvPKov.js +2 -0
  7. package/dist/assets/seqResourceLoaders-BPIKMDJV.js +2 -0
  8. package/dist/assets/{seqResourceLoaders-g06U0FFU.css → seqResourceLoaders-CFOTQBIe.css} +1 -1
  9. package/dist/index.html +1 -1
  10. package/package.json +1 -1
  11. package/server/lib/create_system_prompt.js +525 -0
  12. package/server/lib/system-prompt-presets.js +68 -0
  13. package/server/routes/expert.js +21 -0
  14. package/server/system-prompt-templates/presets/GLM-5.2.md +67 -0
  15. package/server/system-prompt-templates/presets/Qwen-3.7-Max.md +67 -0
  16. package/server/system-prompt-templates/presets/deepseek-v4-flash.md +62 -0
  17. package/server/system-prompt-templates/presets/deepseek-v4-pro.md +70 -0
  18. package/server/system-prompt-templates/presets/index.json +47 -0
  19. package/server/system-prompt-templates/presets/kimi-k2.7-code.md +69 -0
  20. package/server/system-prompt-templates/reference/claude-code-cli-startup-options.md +325 -0
  21. package/server/system-prompt-templates/reference/prompt-control-tokens-deepseek-v4.md +178 -0
  22. package/server/system-prompt-templates/reference/prompt-control-tokens-qwen3.md +227 -0
  23. package/server/system-prompt-templates/reference/prompt-xml-tags-fable-5.md +101 -0
  24. package/server/system-prompt-templates/reference/prompt-xml-tags-opus-4-8.md +113 -0
  25. package/server/system-prompt-templates/systemPromptModel.md +168 -0
  26. package/server/system-prompt-templates/systemPromptVariables.ar.md +113 -0
  27. package/server/system-prompt-templates/systemPromptVariables.da.md +113 -0
  28. package/server/system-prompt-templates/systemPromptVariables.de.md +113 -0
  29. package/server/system-prompt-templates/systemPromptVariables.es.md +113 -0
  30. package/server/system-prompt-templates/systemPromptVariables.fr.md +113 -0
  31. package/server/system-prompt-templates/systemPromptVariables.it.md +113 -0
  32. package/server/system-prompt-templates/systemPromptVariables.ja.md +113 -0
  33. package/server/system-prompt-templates/systemPromptVariables.ko.md +113 -0
  34. package/server/system-prompt-templates/systemPromptVariables.md +113 -0
  35. package/server/system-prompt-templates/systemPromptVariables.no.md +113 -0
  36. package/server/system-prompt-templates/systemPromptVariables.pl.md +113 -0
  37. package/server/system-prompt-templates/systemPromptVariables.pt-BR.md +113 -0
  38. package/server/system-prompt-templates/systemPromptVariables.ru.md +113 -0
  39. package/server/system-prompt-templates/systemPromptVariables.th.md +113 -0
  40. package/server/system-prompt-templates/systemPromptVariables.tr.md +113 -0
  41. package/server/system-prompt-templates/systemPromptVariables.uk.md +113 -0
  42. package/server/system-prompt-templates/systemPromptVariables.zh-TW.md +113 -0
  43. package/server/system-prompt-templates/systemPromptVariables.zh.md +113 -0
  44. package/dist/assets/App-BFcpzWEl.js +0 -2
  45. package/dist/assets/App-D5BI6yGO.css +0 -1
  46. package/dist/assets/index-CtSbjm-X.js +0 -2
  47. package/dist/assets/seqResourceLoaders-BqKidNto.js +0 -2
@@ -0,0 +1,113 @@
1
+ # variabili di systemPromptModel.md
2
+
3
+ Questo file documenta solo le variabili in `systemPromptModel.md` che devono essere risolte in fase di esecuzione. Ogni variabile foglia si risolve in una stringa, un numero o una stringa vuota `""`; quando non è possibile ottenere un valore, torna uniformemente a una stringa vuota.
4
+
5
+ ## Spazio di lavoro e ambiente utente
6
+
7
+ | Variable | Description | Example |
8
+ |---|---|---|
9
+ | `${environment.cwd}` | Attuale directory di lavoro principale. | `/Users/sky/claude-code` |
10
+ | `${environment.originalCwd}` | Directory di lavoro originale all'avvio del processo/sessione. | `/Users/sky/claude-code` |
11
+ | `${environment.home}` | Directory home dell'utente, utilizzata per risolvere `~`. | `/Users/sky` |
12
+ | `${environment.user}` | Nome utente del sistema corrente. | `sky` |
13
+ | `${environment.workspaceRoots}` | Radici dello spazio di lavoro per la sessione attuale; può essere renderizzato come una stringa separata da interruzioni di riga. | `/Users/sky/claude-code` |
14
+ | `${environment.path}` | PATH del processo corrente. | `/opt/homebrew/bin:/usr/bin:/bin` |
15
+ | `${environment.lang}` | Impostazioni locali correnti o ambiente linguistico. | `zh_CN.UTF-8` |
16
+
17
+ ## Sistema operativo
18
+
19
+ | Variable | Description | Example |
20
+ |---|---|---|
21
+ | `${os.platform}` | Piattaforma identificata da Node.js. | `darwin` |
22
+ | `${os.type}` | Tipo di sistema operativo. | `Darwin` |
23
+ | `${os.arch}` | Architettura della CPU. | `arm64` |
24
+ | `${os.shell}` | Shell corrente. | `/bin/zsh` |
25
+ | `${os.version}` | Descrizione della versione del sistema operativo. | `Darwin Kernel Version ...` |
26
+ | `${os.release}` | Release del sistema operativo. | `24.5.0` |
27
+ | `${os.hostname}` | Hostname corrente. | `MacBook-Pro.local` |
28
+ | `${os.availableParallelism}` | Parallelismo disponibile. | `10` |
29
+ | `${os.totalMemory}` | Memoria totale del sistema, in byte. | `34359738368` |
30
+ | `${os.freeMemory}` | Memoria libera, in byte. | `8589934592` |
31
+ | `${os.uptime}` | Tempo di attività del sistema, in secondi. | `123456` |
32
+
33
+ ## Runtime di Node.js
34
+
35
+ | Variable | Description | Example |
36
+ |---|---|---|
37
+ | `${runtime.nodeVersion}` | Versione di Node.js corrente. | `v24.14.0` |
38
+ | `${runtime.execPath}` | Percorso dell'eseguibile Node.js corrente. | `/opt/homebrew/bin/node` |
39
+ | `${runtime.pid}` | ID del processo corrente. | `12345` |
40
+ | `${runtime.ppid}` | ID del processo padre. | `1234` |
41
+
42
+ ## Ora
43
+
44
+ | Variable | Description | Example |
45
+ |---|---|---|
46
+ | `${time.current}` | Stringa di ora locale corrente. | `Thu Jul 09 2026 18:22:09 GMT+0800 (China Standard Time)` |
47
+ | `${time.iso}` | Ora ISO corrente. | `2026-07-09T10:22:09.000Z` |
48
+ | `${time.date}` | Data locale corrente. | `2026-07-09` |
49
+ | `${time.timezone}` | Fuso orario del sistema corrente. | `Asia/Shanghai` |
50
+
51
+ ## Autorizzazioni e sandbox
52
+
53
+ | Variable | Description | Example |
54
+ |---|---|---|
55
+ | `${permissions.mode}` | Modalità di autorizzazione dello strumento corrente. | `default` |
56
+ | `${permissions.approvalsReviewer}` | Criterio di approvazione corrente o modalità di revisione. | `auto_review` |
57
+ | `${sandbox.mode}` | Modalità sandbox del sistema file. | `workspace-write` |
58
+ | `${sandbox.networkAccess}` | Stato dell'accesso di rete. | `enabled` |
59
+ | `${sandbox.writableRoots}` | Directory in cui la sandbox consente la scrittura; può essere renderizzato come una stringa separata da interruzioni di riga. | `/Users/sky/Documents/Playground` |
60
+
61
+ ## Terminale
62
+
63
+ | Variable | Description | Example |
64
+ |---|---|---|
65
+ | `${terminal.term}` | TERM corrente. | `xterm-256color` |
66
+ | `${terminal.colorTerm}` | COLORTERM corrente. | `truecolor` |
67
+ | `${terminal.columns}` | Numero di colonne del terminale corrente. | `120` |
68
+ | `${terminal.rows}` | Numero di righe del terminale corrente. | `40` |
69
+
70
+ ## File system
71
+
72
+ | Variable | Description | Example |
73
+ |---|---|---|
74
+ | `${filesystem.tmpdir}` | Directory temporanea del sistema. | `/var/folders/.../T` |
75
+ | `${filesystem.pathSeparator}` | Separatore del percorso file. | `/` |
76
+ | `${filesystem.pathDelimiter}` | Delimitatore della voce PATH. | `:` |
77
+
78
+ ## Modello
79
+
80
+ | Variable | Description | Example |
81
+ |---|---|---|
82
+ | `${model.name}` | Nome o ID del modello corrente. | `claude-opus-4-6` |
83
+ | `${model.knowledgeCutoff}` | Limite di conoscenza del modello corrente; questo valore non può essere derivato dal sistema operativo e deve essere iniettato tramite configurazione esterna o un override. | `May 2025` |
84
+
85
+ ## Git
86
+
87
+ | Variable | Description | Example |
88
+ |---|---|---|
89
+ | `${git.isRepository}` | Se la directory corrente si trova all'interno di un repository Git, come stringa. | `true` |
90
+ | `${git.root}` | Directory radice del repository Git. | `/Users/sky/project` |
91
+ | `${git.branch}` | Branch Git corrente o hash HEAD breve. | `main` |
92
+ | `${git.mainBranch}` | Branch principale predefinito, normalmente utilizzato come destinazione di PR o merge. | `main` |
93
+ | `${git.userName}` | Attuale Git `user.name`. | `Sky` |
94
+ | `${git.status}` | Output di `git status --short`. | `M src/index.ts` |
95
+ | `${git.recentCommits}` | Riepilogo dei commit recenti. | `abc1234 Fix prompt builder` |
96
+
97
+ ## Memoria
98
+
99
+ Le variabili di memoria descrivono la directory della memoria persistente basata su file. `${memory.dir}` viene risolto dall'override `CC_MEMORY_DIR` / `CLAUDE_MEMORY_DIR` quando impostato; in caso contrario, viene calcolato come `<home>/.claude/projects/<slug>/memory/`, dove `<slug>` è la directory di lavoro principale con ogni carattere non alfanumerico sostituito da `-`. `${memory.index}` contiene il contenuto di `MEMORY.md` in quella directory (l'indice caricato ogni sessione), e `${memory.enabled}` indica se la memoria è disponibile. Le sezioni `# Memory` e `# Memory index` vengono assemblate solo quando la memoria è abilitata.
100
+
101
+ | Variable | Description | Example |
102
+ |---|---|---|
103
+ | `${memory.dir}` | Directory della memoria risolta. | `/Users/sky/.claude/projects/-Users-sky-project/memory/` |
104
+ | `${memory.index}` | Contenuto di `MEMORY.md`, o `""` quando assente. | `# Memory index\n- [Commit to main](commit-to-main.md) — hook` |
105
+ | `${memory.enabled}` | Se la memoria è disponibile, come stringa. | `true` |
106
+
107
+ ## Scratchpad
108
+
109
+ La directory scratchpad è specifica della sessione e non può essere derivata dal sistema operativo; deve essere iniettata tramite l'override `CC_SCRATCHPAD_DIR` / `CLAUDE_SCRATCHPAD_DIR`. Se non impostato, torna a `""`, e la sezione `# Scratchpad Directory` viene omessa dall'assemblaggio.
110
+
111
+ | Variable | Description | Example |
112
+ |---|---|---|
113
+ | `${scratchpad.dir}` | Directory temporanea specifica della sessione. | `/private/tmp/claude-501/<slug>/<session>/scratchpad` |
@@ -0,0 +1,113 @@
1
+ # systemPromptModel.md 変数
2
+
3
+ このファイルは、`systemPromptModel.md`内で実行時に解決する必要がある変数のみを文書化しています。すべてのリーフ変数は文字列、数値、または空の文字列 `""` に解決されます。値を取得できない場合、統一的に空の文字列にフォールバックします。
4
+
5
+ ## ワークスペースとユーザー環境
6
+
7
+ | Variable | Description | Example |
8
+ |---|---|---|
9
+ | `${environment.cwd}` | 現在のプライマリ作業ディレクトリです。 | `/Users/sky/claude-code` |
10
+ | `${environment.originalCwd}` | プロセス/セッション開始時の元の作業ディレクトリです。 | `/Users/sky/claude-code` |
11
+ | `${environment.home}` | ユーザーホームディレクトリで、`~` を解決するために使用されます。 | `/Users/sky` |
12
+ | `${environment.user}` | 現在のシステムユーザー名です。 | `sky` |
13
+ | `${environment.workspaceRoots}` | 現在のセッションのワークスペースルート。改行区切りの文字列として表示される場合があります。 | `/Users/sky/claude-code` |
14
+ | `${environment.path}` | 現在のプロセスPATHです。 | `/opt/homebrew/bin:/usr/bin:/bin` |
15
+ | `${environment.lang}` | 現在のロケールまたは言語環境です。 | `zh_CN.UTF-8` |
16
+
17
+ ## オペレーティングシステム
18
+
19
+ | Variable | Description | Example |
20
+ |---|---|---|
21
+ | `${os.platform}` | Node.js により識別されたプラットフォームです。 | `darwin` |
22
+ | `${os.type}` | オペレーティングシステムのタイプです。 | `Darwin` |
23
+ | `${os.arch}` | CPUアーキテクチャです。 | `arm64` |
24
+ | `${os.shell}` | 現在のシェルです。 | `/bin/zsh` |
25
+ | `${os.version}` | オペレーティングシステムのバージョン説明です。 | `Darwin Kernel Version ...` |
26
+ | `${os.release}` | オペレーティングシステムのリリースです。 | `24.5.0` |
27
+ | `${os.hostname}` | 現在のホスト名です。 | `MacBook-Pro.local` |
28
+ | `${os.availableParallelism}` | 利用可能な並列性です。 | `10` |
29
+ | `${os.totalMemory}` | システム総メモリ(バイト単位)です。 | `34359738368` |
30
+ | `${os.freeMemory}` | 空きメモリ(バイト単位)です。 | `8589934592` |
31
+ | `${os.uptime}` | システムアップタイム(秒単位)です。 | `123456` |
32
+
33
+ ## Node.js ランタイム
34
+
35
+ | Variable | Description | Example |
36
+ |---|---|---|
37
+ | `${runtime.nodeVersion}` | 現在のNode.jsバージョンです。 | `v24.14.0` |
38
+ | `${runtime.execPath}` | 現在のNode.js実行可能ファイルへのパスです。 | `/opt/homebrew/bin/node` |
39
+ | `${runtime.pid}` | 現在のプロセスIDです。 | `12345` |
40
+ | `${runtime.ppid}` | 親プロセスIDです。 | `1234` |
41
+
42
+ ## 時間
43
+
44
+ | Variable | Description | Example |
45
+ |---|---|---|
46
+ | `${time.current}` | 現在のローカル時刻文字列です。 | `Thu Jul 09 2026 18:22:09 GMT+0800 (China Standard Time)` |
47
+ | `${time.iso}` | 現在のISO時刻です。 | `2026-07-09T10:22:09.000Z` |
48
+ | `${time.date}` | 現在のローカル日付です。 | `2026-07-09` |
49
+ | `${time.timezone}` | 現在のシステムタイムゾーンです。 | `Asia/Shanghai` |
50
+
51
+ ## 権限とサンドボックス
52
+
53
+ | Variable | Description | Example |
54
+ |---|---|---|
55
+ | `${permissions.mode}` | 現在のツール権限モードです。 | `default` |
56
+ | `${permissions.approvalsReviewer}` | 現在の承認ポリシーまたはレビュアーモードです。 | `auto_review` |
57
+ | `${sandbox.mode}` | ファイルシステムサンドボックスモードです。 | `workspace-write` |
58
+ | `${sandbox.networkAccess}` | ネットワークアクセスの状態です。 | `enabled` |
59
+ | `${sandbox.writableRoots}` | サンドボックスが書き込みを許可するディレクトリです。改行区切りの文字列として表示される場合があります。 | `/Users/sky/Documents/Playground` |
60
+
61
+ ## ターミナル
62
+
63
+ | Variable | Description | Example |
64
+ |---|---|---|
65
+ | `${terminal.term}` | 現在のTERMです。 | `xterm-256color` |
66
+ | `${terminal.colorTerm}` | 現在のCOLORTERMです。 | `truecolor` |
67
+ | `${terminal.columns}` | 現在のターミナル列数です。 | `120` |
68
+ | `${terminal.rows}` | 現在のターミナル行数です。 | `40` |
69
+
70
+ ## ファイルシステム
71
+
72
+ | Variable | Description | Example |
73
+ |---|---|---|
74
+ | `${filesystem.tmpdir}` | システム一時ディレクトリです。 | `/var/folders/.../T` |
75
+ | `${filesystem.pathSeparator}` | ファイルパス区切り記号です。 | `/` |
76
+ | `${filesystem.pathDelimiter}` | PATHエントリ区切り記号です。 | `:` |
77
+
78
+ ## モデル
79
+
80
+ | Variable | Description | Example |
81
+ |---|---|---|
82
+ | `${model.name}` | 現在のモデル名またはIDです。 | `claude-opus-4-6` |
83
+ | `${model.knowledgeCutoff}` | 現在のモデルナレッジカットオフ。この値はオペレーティングシステムから導出することはできず、外部構成またはオーバーライドを通じて注入する必要があります。 | `May 2025` |
84
+
85
+ ## Git
86
+
87
+ | Variable | Description | Example |
88
+ |---|---|---|
89
+ | `${git.isRepository}` | 現在のディレクトリがgitリポジトリ内にあるかどうかを、文字列で示します。 | `true` |
90
+ | `${git.root}` | Gitリポジトリのルートディレクトリです。 | `/Users/sky/project` |
91
+ | `${git.branch}` | 現在のgitブランチまたは短いHEADハッシュです。 | `main` |
92
+ | `${git.mainBranch}` | デフォルトのメインブランチで、通常PRまたはマージターゲットとして使用されます。 | `main` |
93
+ | `${git.userName}` | 現在のgit `user.name` です。 | `Sky` |
94
+ | `${git.status}` | `git status --short` の出力です。 | `M src/index.ts` |
95
+ | `${git.recentCommits}` | 最近のコミットの概要です。 | `abc1234 Fix prompt builder` |
96
+
97
+ ## メモリ
98
+
99
+ メモリ変数は、永続的なファイルベースのメモリディレクトリを説明します。`CC_MEMORY_DIR` / `CLAUDE_MEMORY_DIR` オーバーライドが設定されている場合、`${memory.dir}` はそこから解決されます。そうでない場合は、`<home>/.claude/projects/<slug>/memory/` として計算されます。ここで `<slug>` はプライマリ作業ディレクトリで、すべての英数字以外の文字が `-` に置き換えられます。`${memory.index}` はそのディレクトリ内の `MEMORY.md` の内容を保持し(各セッションで読み込まれるインデックス)、`${memory.enabled}` はメモリが利用可能かどうかを報告します。`# Memory` および `# Memory index` セクションは、メモリが有効な場合にのみ組み立てられます。
100
+
101
+ | Variable | Description | Example |
102
+ |---|---|---|
103
+ | `${memory.dir}` | 解決されたメモリディレクトリです。 | `/Users/sky/.claude/projects/-Users-sky-project/memory/` |
104
+ | `${memory.index}` | `MEMORY.md` の内容、または存在しない場合は `""` です。 | `# Memory index\n- [Commit to main](commit-to-main.md) — hook` |
105
+ | `${memory.enabled}` | メモリが利用可能かどうかを、文字列で示します。 | `true` |
106
+
107
+ ## スクラッチパッド
108
+
109
+ スクラッチパッドディレクトリはセッション固有であり、オペレーティングシステムから導出することはできません。`CC_SCRATCHPAD_DIR` / `CLAUDE_SCRATCHPAD_DIR` オーバーライドを通じて注入する必要があります。設定されていない場合は `""` にフォールバックし、`# Scratchpad Directory` セクションは組み立てから省略されます。
110
+
111
+ | Variable | Description | Example |
112
+ |---|---|---|
113
+ | `${scratchpad.dir}` | セッション固有の一時ディレクトリです。 | `/private/tmp/claude-501/<slug>/<session>/scratchpad` |
@@ -0,0 +1,113 @@
1
+ # systemPromptModel.md 변수
2
+
3
+ 이 파일은 `systemPromptModel.md`에서 런타임에 해결해야 하는 변수만 문서화합니다. 모든 리프 변수는 문자열, 숫자 또는 빈 문자열 `""`로 해결되며, 값을 얻을 수 없을 때 일반적으로 빈 문자열로 대체됩니다.
4
+
5
+ ## 작업 공간 및 사용자 환경
6
+
7
+ | Variable | Description | Example |
8
+ |---|---|---|
9
+ | `${environment.cwd}` | 현재 주 작업 디렉토리입니다. | `/Users/sky/claude-code` |
10
+ | `${environment.originalCwd}` | 프로세스/세션이 시작된 시점의 원본 작업 디렉토리입니다. | `/Users/sky/claude-code` |
11
+ | `${environment.home}` | 사용자 홈 디렉토리로 `~`을 해결하는 데 사용됩니다. | `/Users/sky` |
12
+ | `${environment.user}` | 현재 시스템 사용자 이름입니다. | `sky` |
13
+ | `${environment.workspaceRoots}` | 현재 세션의 작업 공간 루트입니다. 줄 바꿈으로 구분된 문자열로 렌더링될 수 있습니다. | `/Users/sky/claude-code` |
14
+ | `${environment.path}` | 현재 프로세스 PATH입니다. | `/opt/homebrew/bin:/usr/bin:/bin` |
15
+ | `${environment.lang}` | 현재 로컬 또는 언어 환경입니다. | `zh_CN.UTF-8` |
16
+
17
+ ## 운영 체제
18
+
19
+ | Variable | Description | Example |
20
+ |---|---|---|
21
+ | `${os.platform}` | Node.js에서 식별한 플랫폼입니다. | `darwin` |
22
+ | `${os.type}` | 운영 체제 유형입니다. | `Darwin` |
23
+ | `${os.arch}` | CPU 아키텍처입니다. | `arm64` |
24
+ | `${os.shell}` | 현재 셸입니다. | `/bin/zsh` |
25
+ | `${os.version}` | 운영 체제 버전 설명입니다. | `Darwin Kernel Version ...` |
26
+ | `${os.release}` | 운영 체제 릴리스입니다. | `24.5.0` |
27
+ | `${os.hostname}` | 현재 호스트 이름입니다. | `MacBook-Pro.local` |
28
+ | `${os.availableParallelism}` | 사용 가능한 병렬성입니다. | `10` |
29
+ | `${os.totalMemory}` | 시스템 총 메모리(바이트 단위)입니다. | `34359738368` |
30
+ | `${os.freeMemory}` | 사용 가능한 메모리(바이트 단위)입니다. | `8589934592` |
31
+ | `${os.uptime}` | 시스템 가동 시간(초 단위)입니다. | `123456` |
32
+
33
+ ## Node.js 런타임
34
+
35
+ | Variable | Description | Example |
36
+ |---|---|---|
37
+ | `${runtime.nodeVersion}` | 현재 Node.js 버전입니다. | `v24.14.0` |
38
+ | `${runtime.execPath}` | 현재 Node.js 실행 파일의 경로입니다. | `/opt/homebrew/bin/node` |
39
+ | `${runtime.pid}` | 현재 프로세스 ID입니다. | `12345` |
40
+ | `${runtime.ppid}` | 부모 프로세스 ID입니다. | `1234` |
41
+
42
+ ## 시간
43
+
44
+ | Variable | Description | Example |
45
+ |---|---|---|
46
+ | `${time.current}` | 현재 로컬 시간 문자열입니다. | `Thu Jul 09 2026 18:22:09 GMT+0800 (China Standard Time)` |
47
+ | `${time.iso}` | 현재 ISO 시간입니다. | `2026-07-09T10:22:09.000Z` |
48
+ | `${time.date}` | 현재 로컬 날짜입니다. | `2026-07-09` |
49
+ | `${time.timezone}` | 현재 시스템 시간대입니다. | `Asia/Shanghai` |
50
+
51
+ ## 권한 및 샌드박스
52
+
53
+ | Variable | Description | Example |
54
+ |---|---|---|
55
+ | `${permissions.mode}` | 현재 도구 권한 모드입니다. | `default` |
56
+ | `${permissions.approvalsReviewer}` | 현재 승인 정책 또는 검토자 모드입니다. | `auto_review` |
57
+ | `${sandbox.mode}` | 파일 시스템 샌드박스 모드입니다. | `workspace-write` |
58
+ | `${sandbox.networkAccess}` | 네트워크 액세스 상태입니다. | `enabled` |
59
+ | `${sandbox.writableRoots}` | 샌드박스가 쓰기를 허용하는 디렉토리입니다. 줄 바꿈으로 구분된 문자열로 렌더링될 수 있습니다. | `/Users/sky/Documents/Playground` |
60
+
61
+ ## 터미널
62
+
63
+ | Variable | Description | Example |
64
+ |---|---|---|
65
+ | `${terminal.term}` | 현재 TERM입니다. | `xterm-256color` |
66
+ | `${terminal.colorTerm}` | 현재 COLORTERM입니다. | `truecolor` |
67
+ | `${terminal.columns}` | 현재 터미널 열 개수입니다. | `120` |
68
+ | `${terminal.rows}` | 현재 터미널 행 개수입니다. | `40` |
69
+
70
+ ## 파일 시스템
71
+
72
+ | Variable | Description | Example |
73
+ |---|---|---|
74
+ | `${filesystem.tmpdir}` | 시스템 임시 디렉토리입니다. | `/var/folders/.../T` |
75
+ | `${filesystem.pathSeparator}` | 파일 경로 구분 기호입니다. | `/` |
76
+ | `${filesystem.pathDelimiter}` | PATH 항목 구분 기호입니다. | `:` |
77
+
78
+ ## 모델
79
+
80
+ | Variable | Description | Example |
81
+ |---|---|---|
82
+ | `${model.name}` | 현재 모델 이름 또는 ID입니다. | `claude-opus-4-6` |
83
+ | `${model.knowledgeCutoff}` | 현재 모델 지식 차단일입니다. 이 값은 운영 체제에서 파생될 수 없으며 외부 구성 또는 재정의를 통해 주입되어야 합니다. | `May 2025` |
84
+
85
+ ## Git
86
+
87
+ | Variable | Description | Example |
88
+ |---|---|---|
89
+ | `${git.isRepository}` | 현재 디렉토리가 git 저장소 내부에 있는지 여부(문자열)입니다. | `true` |
90
+ | `${git.root}` | Git 저장소 루트 디렉토리입니다. | `/Users/sky/project` |
91
+ | `${git.branch}` | 현재 git 분기 또는 짧은 HEAD 해시입니다. | `main` |
92
+ | `${git.mainBranch}` | 기본 주 분기로 일반적으로 PR 또는 병합 대상으로 사용됩니다. | `main` |
93
+ | `${git.userName}` | 현재 git `user.name`입니다. | `Sky` |
94
+ | `${git.status}` | `git status --short`의 출력입니다. | `M src/index.ts` |
95
+ | `${git.recentCommits}` | 최근 커밋의 요약입니다. | `abc1234 Fix prompt builder` |
96
+
97
+ ## 메모리
98
+
99
+ 메모리 변수는 영구 파일 기반 메모리 디렉토리를 설명합니다. `CC_MEMORY_DIR` / `CLAUDE_MEMORY_DIR` 재정의가 설정되면 `${memory.dir}`에서 해결됩니다. 그렇지 않으면 `<home>/.claude/projects/<slug>/memory/`로 계산되며, 여기서 `<slug>`는 주 작업 디렉토리이고 모든 영숫자가 아닌 문자는 `-`로 대체됩니다. `${memory.index}`는 해당 디렉토리 내 `MEMORY.md`의 내용(각 세션에 로드되는 인덱스)을 보유하고, `${memory.enabled}`는 메모리 사용 가능 여부를 보고합니다. `# Memory` 및 `# Memory index` 섹션은 메모리가 활성화된 경우에만 조립됩니다.
100
+
101
+ | Variable | Description | Example |
102
+ |---|---|---|
103
+ | `${memory.dir}` | 해결된 메모리 디렉토리입니다. | `/Users/sky/.claude/projects/-Users-sky-project/memory/` |
104
+ | `${memory.index}` | `MEMORY.md`의 내용 또는 없을 때 `""`입니다. | `# Memory index\n- [Commit to main](commit-to-main.md) — hook` |
105
+ | `${memory.enabled}` | 메모리 사용 가능 여부(문자열)입니다. | `true` |
106
+
107
+ ## 스크래치패드
108
+
109
+ 스크래치패드 디렉토리는 세션별이며 운영 체제에서 파생될 수 없습니다. `CC_SCRATCHPAD_DIR` / `CLAUDE_SCRATCHPAD_DIR` 재정의를 통해 주입되어야 합니다. 설정되지 않으면 `""`로 대체되고 `# Scratchpad Directory` 섹션은 조립에서 생략됩니다.
110
+
111
+ | Variable | Description | Example |
112
+ |---|---|---|
113
+ | `${scratchpad.dir}` | 세션별 임시 디렉토리입니다. | `/private/tmp/claude-501/<slug>/<session>/scratchpad` |
@@ -0,0 +1,113 @@
1
+ # systemPromptModel.md variables
2
+
3
+ This file documents only the variables in `systemPromptModel.md` that must be resolved at runtime. Every leaf variable resolves to a string, a number, or an empty string `""`; when a value cannot be obtained it falls back uniformly to an empty string.
4
+
5
+ ## Workspace and user environment
6
+
7
+ | Variable | Description | Example |
8
+ |---|---|---|
9
+ | `${environment.cwd}` | Current primary working directory. | `/Users/sky/claude-code` |
10
+ | `${environment.originalCwd}` | Original working directory when the process/session started. | `/Users/sky/claude-code` |
11
+ | `${environment.home}` | User home directory, used to resolve `~`. | `/Users/sky` |
12
+ | `${environment.user}` | Current system username. | `sky` |
13
+ | `${environment.workspaceRoots}` | Workspace roots for the current session; may render as a newline-separated string. | `/Users/sky/claude-code` |
14
+ | `${environment.path}` | Current process PATH. | `/opt/homebrew/bin:/usr/bin:/bin` |
15
+ | `${environment.lang}` | Current locale or language environment. | `zh_CN.UTF-8` |
16
+
17
+ ## Operating system
18
+
19
+ | Variable | Description | Example |
20
+ |---|---|---|
21
+ | `${os.platform}` | Platform as identified by Node.js. | `darwin` |
22
+ | `${os.type}` | Operating system type. | `Darwin` |
23
+ | `${os.arch}` | CPU architecture. | `arm64` |
24
+ | `${os.shell}` | Current shell. | `/bin/zsh` |
25
+ | `${os.version}` | Operating system version description. | `Darwin Kernel Version ...` |
26
+ | `${os.release}` | Operating system release. | `24.5.0` |
27
+ | `${os.hostname}` | Current hostname. | `MacBook-Pro.local` |
28
+ | `${os.availableParallelism}` | Available parallelism. | `10` |
29
+ | `${os.totalMemory}` | Total system memory, in bytes. | `34359738368` |
30
+ | `${os.freeMemory}` | Free memory, in bytes. | `8589934592` |
31
+ | `${os.uptime}` | System uptime, in seconds. | `123456` |
32
+
33
+ ## Node.js runtime
34
+
35
+ | Variable | Description | Example |
36
+ |---|---|---|
37
+ | `${runtime.nodeVersion}` | Current Node.js version. | `v24.14.0` |
38
+ | `${runtime.execPath}` | Path to the current Node.js executable. | `/opt/homebrew/bin/node` |
39
+ | `${runtime.pid}` | Current process ID. | `12345` |
40
+ | `${runtime.ppid}` | Parent process ID. | `1234` |
41
+
42
+ ## Time
43
+
44
+ | Variable | Description | Example |
45
+ |---|---|---|
46
+ | `${time.current}` | Current local time string. | `Thu Jul 09 2026 18:22:09 GMT+0800 (China Standard Time)` |
47
+ | `${time.iso}` | Current ISO time. | `2026-07-09T10:22:09.000Z` |
48
+ | `${time.date}` | Current local date. | `2026-07-09` |
49
+ | `${time.timezone}` | Current system timezone. | `Asia/Shanghai` |
50
+
51
+ ## Permissions and sandbox
52
+
53
+ | Variable | Description | Example |
54
+ |---|---|---|
55
+ | `${permissions.mode}` | Current tool permission mode. | `default` |
56
+ | `${permissions.approvalsReviewer}` | Current approval policy or reviewer mode. | `auto_review` |
57
+ | `${sandbox.mode}` | Filesystem sandbox mode. | `workspace-write` |
58
+ | `${sandbox.networkAccess}` | Network access status. | `enabled` |
59
+ | `${sandbox.writableRoots}` | Directories the sandbox allows writing to; may render as a newline-separated string. | `/Users/sky/Documents/Playground` |
60
+
61
+ ## Terminal
62
+
63
+ | Variable | Description | Example |
64
+ |---|---|---|
65
+ | `${terminal.term}` | Current TERM. | `xterm-256color` |
66
+ | `${terminal.colorTerm}` | Current COLORTERM. | `truecolor` |
67
+ | `${terminal.columns}` | Current terminal column count. | `120` |
68
+ | `${terminal.rows}` | Current terminal row count. | `40` |
69
+
70
+ ## Filesystem
71
+
72
+ | Variable | Description | Example |
73
+ |---|---|---|
74
+ | `${filesystem.tmpdir}` | System temporary directory. | `/var/folders/.../T` |
75
+ | `${filesystem.pathSeparator}` | File path separator. | `/` |
76
+ | `${filesystem.pathDelimiter}` | PATH entry delimiter. | `:` |
77
+
78
+ ## Model
79
+
80
+ | Variable | Description | Example |
81
+ |---|---|---|
82
+ | `${model.name}` | Current model name or ID. | `claude-opus-4-6` |
83
+ | `${model.knowledgeCutoff}` | Current model knowledge cutoff; this value cannot be derived from the operating system and must be injected via external configuration or an override. | `May 2025` |
84
+
85
+ ## Git
86
+
87
+ | Variable | Description | Example |
88
+ |---|---|---|
89
+ | `${git.isRepository}` | Whether the current directory is inside a git repository, as a string. | `true` |
90
+ | `${git.root}` | Git repository root directory. | `/Users/sky/project` |
91
+ | `${git.branch}` | Current git branch or short HEAD hash. | `main` |
92
+ | `${git.mainBranch}` | Default main branch, typically used as the PR or merge target. | `main` |
93
+ | `${git.userName}` | Current git `user.name`. | `Sky` |
94
+ | `${git.status}` | Output of `git status --short`. | `M src/index.ts` |
95
+ | `${git.recentCommits}` | Summary of recent commits. | `abc1234 Fix prompt builder` |
96
+
97
+ ## Memory
98
+
99
+ The memory variables describe the persistent file-based memory directory. `${memory.dir}` is resolved from the `CC_MEMORY_DIR` / `CLAUDE_MEMORY_DIR` override when set; otherwise it is computed as `<home>/.claude/projects/<slug>/memory/`, where `<slug>` is the primary working directory with every non-alphanumeric character replaced by `-`. `${memory.index}` holds the contents of `MEMORY.md` inside that directory (the index loaded each session), and `${memory.enabled}` reports whether memory is available. The `# Memory` and `# Memory index` sections are only assembled when memory is enabled.
100
+
101
+ | Variable | Description | Example |
102
+ |---|---|---|
103
+ | `${memory.dir}` | Resolved memory directory. | `/Users/sky/.claude/projects/-Users-sky-project/memory/` |
104
+ | `${memory.index}` | Contents of `MEMORY.md`, or `""` when absent. | `# Memory index\n- [Commit to main](commit-to-main.md) — hook` |
105
+ | `${memory.enabled}` | Whether memory is available, as a string. | `true` |
106
+
107
+ ## Scratchpad
108
+
109
+ The scratchpad directory is session-specific and cannot be derived from the operating system; it must be injected via the `CC_SCRATCHPAD_DIR` / `CLAUDE_SCRATCHPAD_DIR` override. When unset it falls back to `""`, and the `# Scratchpad Directory` section is omitted from assembly.
110
+
111
+ | Variable | Description | Example |
112
+ |---|---|---|
113
+ | `${scratchpad.dir}` | Session-specific temporary directory. | `/private/tmp/claude-501/<slug>/<session>/scratchpad` |
@@ -0,0 +1,113 @@
1
+ # systemPromptModel.md variabler
2
+
3
+ Denne filen dokumenterer bare variablene i `systemPromptModel.md` som må løses under kjøring. Hver bladnode-variabel løses til en streng, et tall eller en tom streng `""`; når en verdi ikke kan oppnås, faller den enhetlig tilbake til en tom streng.
4
+
5
+ ## Arbeidsområde og brukermiljø
6
+
7
+ | Variable | Description | Example |
8
+ |---|---|---|
9
+ | `${environment.cwd}` | Gjeldende primær arbeidskatalog. | `/Users/sky/claude-code` |
10
+ | `${environment.originalCwd}` | Opprinnelig arbeidskatalog når prosessen/økten startet. | `/Users/sky/claude-code` |
11
+ | `${environment.home}` | Brukerens hjemmekatalog, brukt til å løse `~`. | `/Users/sky` |
12
+ | `${environment.user}` | Gjeldende systembryger navn. | `sky` |
13
+ | `${environment.workspaceRoots}` | Arbeidsromroter for den gjeldende økten; kan gjengi seg som en linjeskilt streng. | `/Users/sky/claude-code` |
14
+ | `${environment.path}` | Gjeldende prosess PATH. | `/opt/homebrew/bin:/usr/bin:/bin` |
15
+ | `${environment.lang}` | Gjeldende regional innstilling eller språkmiljø. | `zh_CN.UTF-8` |
16
+
17
+ ## Operativsystem
18
+
19
+ | Variable | Description | Example |
20
+ |---|---|---|
21
+ | `${os.platform}` | Plattform som identifisert av Node.js. | `darwin` |
22
+ | `${os.type}` | Operativsystem type. | `Darwin` |
23
+ | `${os.arch}` | CPU-arkitektur. | `arm64` |
24
+ | `${os.shell}` | Gjeldende skal. | `/bin/zsh` |
25
+ | `${os.version}` | Operativsystem versjon beskrivelse. | `Darwin Kernel Version ...` |
26
+ | `${os.release}` | Operativsystem frigjøring. | `24.5.0` |
27
+ | `${os.hostname}` | Gjeldende vertsnavn. | `MacBook-Pro.local` |
28
+ | `${os.availableParallelism}` | Tilgjengelig parallellisme. | `10` |
29
+ | `${os.totalMemory}` | Total systemhukommelse i bytes. | `34359738368` |
30
+ | `${os.freeMemory}` | Ledig hukommelse i bytes. | `8589934592` |
31
+ | `${os.uptime}` | System oppetid i sekunder. | `123456` |
32
+
33
+ ## Node.js-kjøretid
34
+
35
+ | Variable | Description | Example |
36
+ |---|---|---|
37
+ | `${runtime.nodeVersion}` | Gjeldende Node.js versjon. | `v24.14.0` |
38
+ | `${runtime.execPath}` | Sti til den gjeldende Node.js kjørbar. | `/opt/homebrew/bin/node` |
39
+ | `${runtime.pid}` | Gjeldende prosess ID. | `12345` |
40
+ | `${runtime.ppid}` | Overordnet prosess ID. | `1234` |
41
+
42
+ ## Tid
43
+
44
+ | Variable | Description | Example |
45
+ |---|---|---|
46
+ | `${time.current}` | Gjeldende lokal tidsstreng. | `Thu Jul 09 2026 18:22:09 GMT+0800 (China Standard Time)` |
47
+ | `${time.iso}` | Gjeldende ISO tid. | `2026-07-09T10:22:09.000Z` |
48
+ | `${time.date}` | Gjeldende lokaldato. | `2026-07-09` |
49
+ | `${time.timezone}` | Gjeldende systemtidssone. | `Asia/Shanghai` |
50
+
51
+ ## Tillatelser og sandkasse
52
+
53
+ | Variable | Description | Example |
54
+ |---|---|---|
55
+ | `${permissions.mode}` | Gjeldende verktøytillatelse tilstand. | `default` |
56
+ | `${permissions.approvalsReviewer}` | Gjeldende godkjennings policy eller anmeldertilstand. | `auto_review` |
57
+ | `${sandbox.mode}` | Filsystem sandkasse tilstand. | `workspace-write` |
58
+ | `${sandbox.networkAccess}` | Nettverksadgang status. | `enabled` |
59
+ | `${sandbox.writableRoots}` | Kataloger som sandkassen tillater skriving til; kan gjengi seg som en linjeskilt streng. | `/Users/sky/Documents/Playground` |
60
+
61
+ ## Terminal
62
+
63
+ | Variable | Description | Example |
64
+ |---|---|---|
65
+ | `${terminal.term}` | Gjeldende TERM. | `xterm-256color` |
66
+ | `${terminal.colorTerm}` | Gjeldende COLORTERM. | `truecolor` |
67
+ | `${terminal.columns}` | Gjeldende terminal kolonne tall. | `120` |
68
+ | `${terminal.rows}` | Gjeldende terminal rad tall. | `40` |
69
+
70
+ ## Filsystem
71
+
72
+ | Variable | Description | Example |
73
+ |---|---|---|
74
+ | `${filesystem.tmpdir}` | System midlertidig katalog. | `/var/folders/.../T` |
75
+ | `${filesystem.pathSeparator}` | Fil sti separator. | `/` |
76
+ | `${filesystem.pathDelimiter}` | PATH oppføring skilletegn. | `:` |
77
+
78
+ ## Modell
79
+
80
+ | Variable | Description | Example |
81
+ |---|---|---|
82
+ | `${model.name}` | Gjeldende modell navn eller ID. | `claude-opus-4-6` |
83
+ | `${model.knowledgeCutoff}` | Gjeldende modell kunnskaps avskjæring; denne verdien kan ikke utledes fra operativsystemet og må injiseres via ekstern konfigurering eller en overstyring. | `May 2025` |
84
+
85
+ ## Git
86
+
87
+ | Variable | Description | Example |
88
+ |---|---|---|
89
+ | `${git.isRepository}` | Hvorvidt gjeldende katalog er innenfor et git arkiv, som en streng. | `true` |
90
+ | `${git.root}` | Git arkiv rot katalog. | `/Users/sky/project` |
91
+ | `${git.branch}` | Gjeldende git gren eller kort HEAD hash. | `main` |
92
+ | `${git.mainBranch}` | Standard hoved gren, typisk brukt som PR eller sammensmeltings mål. | `main` |
93
+ | `${git.userName}` | Gjeldende git `user.name`. | `Sky` |
94
+ | `${git.status}` | Utdata fra `git status --short`. | `M src/index.ts` |
95
+ | `${git.recentCommits}` | Oppsummering av nylige commits. | `abc1234 Fix prompt builder` |
96
+
97
+ ## Minne
98
+
99
+ Minnevariablene beskriver den vedvarende filbaserte minnemappen. `${memory.dir}` løses fra `CC_MEMORY_DIR` / `CLAUDE_MEMORY_DIR` overstyring når den er satt; ellers beregnes det som `<home>/.claude/projects/<slug>/memory/`, der `<slug>` er den primære arbeidskatalogen med hvert ikke-alfanumerisk tegn erstattet med `-`. `${memory.index}` inneholder innholdet av `MEMORY.md` inne i den katalogen (indeksen som lastes hver økt), og `${memory.enabled}` rapporterer om minne er tilgjengelig. Avsnittene `# Memory` og `# Memory index` settes bare sammen når minne er aktivert.
100
+
101
+ | Variable | Description | Example |
102
+ |---|---|---|
103
+ | `${memory.dir}` | Løst minne katalog. | `/Users/sky/.claude/projects/-Users-sky-project/memory/` |
104
+ | `${memory.index}` | Innhold av `MEMORY.md`, eller `""` når fraværende. | `# Memory index\n- [Commit to main](commit-to-main.md) — hook` |
105
+ | `${memory.enabled}` | Hvorvidt minne er tilgjengelig, som en streng. | `true` |
106
+
107
+ ## Kladd-område
108
+
109
+ Kladd-områdets katalog er øktspesifikk og kan ikke hentes fra operativsystemet; den må injiseres via `CC_SCRATCHPAD_DIR` / `CLAUDE_SCRATCHPAD_DIR` overstyring. Når den ikke er satt, faller den tilbake til `""`, og delen `# Scratchpad Directory` utelates fra samlingen.
110
+
111
+ | Variable | Description | Example |
112
+ |---|---|---|
113
+ | `${scratchpad.dir}` | Økt-spesifikk midlertidig katalog. | `/private/tmp/claude-501/<slug>/<session>/scratchpad` |