cc-viewer 1.6.343 → 1.6.345
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/concepts/ar/Tool-Artifact.md +28 -0
- package/concepts/ar/Tool-DesignSync.md +33 -0
- package/concepts/ar/Tool-ReportFindings.md +28 -0
- package/concepts/ar/Tools.md +33 -0
- package/concepts/da/Tool-Artifact.md +28 -0
- package/concepts/da/Tool-DesignSync.md +33 -0
- package/concepts/da/Tool-ReportFindings.md +28 -0
- package/concepts/da/Tools.md +33 -0
- package/concepts/de/Tool-Artifact.md +28 -0
- package/concepts/de/Tool-DesignSync.md +33 -0
- package/concepts/de/Tool-ReportFindings.md +28 -0
- package/concepts/de/Tools.md +33 -0
- package/concepts/en/Tool-Artifact.md +28 -0
- package/concepts/en/Tool-DesignSync.md +33 -0
- package/concepts/en/Tool-ReportFindings.md +28 -0
- package/concepts/en/Tools.md +33 -0
- package/concepts/es/Tool-Artifact.md +28 -0
- package/concepts/es/Tool-DesignSync.md +33 -0
- package/concepts/es/Tool-ReportFindings.md +28 -0
- package/concepts/es/Tools.md +33 -0
- package/concepts/fr/Tool-Artifact.md +28 -0
- package/concepts/fr/Tool-DesignSync.md +33 -0
- package/concepts/fr/Tool-ReportFindings.md +28 -0
- package/concepts/fr/Tools.md +33 -0
- package/concepts/it/Tool-Artifact.md +28 -0
- package/concepts/it/Tool-DesignSync.md +33 -0
- package/concepts/it/Tool-ReportFindings.md +28 -0
- package/concepts/it/Tools.md +33 -0
- package/concepts/ja/Tool-Artifact.md +28 -0
- package/concepts/ja/Tool-DesignSync.md +33 -0
- package/concepts/ja/Tool-ReportFindings.md +28 -0
- package/concepts/ja/Tools.md +33 -0
- package/concepts/ko/Tool-Artifact.md +28 -0
- package/concepts/ko/Tool-DesignSync.md +33 -0
- package/concepts/ko/Tool-ReportFindings.md +28 -0
- package/concepts/ko/Tools.md +33 -0
- package/concepts/no/Tool-Artifact.md +28 -0
- package/concepts/no/Tool-DesignSync.md +33 -0
- package/concepts/no/Tool-ReportFindings.md +28 -0
- package/concepts/no/Tools.md +33 -0
- package/concepts/pl/Tool-Artifact.md +28 -0
- package/concepts/pl/Tool-DesignSync.md +33 -0
- package/concepts/pl/Tool-ReportFindings.md +28 -0
- package/concepts/pl/Tools.md +33 -0
- package/concepts/pt-BR/Tool-Artifact.md +28 -0
- package/concepts/pt-BR/Tool-DesignSync.md +33 -0
- package/concepts/pt-BR/Tool-ReportFindings.md +28 -0
- package/concepts/pt-BR/Tools.md +33 -0
- package/concepts/ru/Tool-Artifact.md +28 -0
- package/concepts/ru/Tool-DesignSync.md +33 -0
- package/concepts/ru/Tool-ReportFindings.md +28 -0
- package/concepts/ru/Tools.md +33 -0
- package/concepts/th/Tool-Artifact.md +28 -0
- package/concepts/th/Tool-DesignSync.md +33 -0
- package/concepts/th/Tool-ReportFindings.md +28 -0
- package/concepts/th/Tools.md +33 -0
- package/concepts/tr/Tool-Artifact.md +28 -0
- package/concepts/tr/Tool-DesignSync.md +33 -0
- package/concepts/tr/Tool-ReportFindings.md +28 -0
- package/concepts/tr/Tools.md +33 -0
- package/concepts/uk/Tool-Artifact.md +28 -0
- package/concepts/uk/Tool-DesignSync.md +33 -0
- package/concepts/uk/Tool-ReportFindings.md +28 -0
- package/concepts/uk/Tools.md +33 -0
- package/concepts/zh/Tool-Artifact.md +28 -0
- package/concepts/zh/Tool-DesignSync.md +33 -0
- package/concepts/zh/Tool-ReportFindings.md +28 -0
- package/concepts/zh/Tools.md +33 -0
- package/concepts/zh-TW/Tool-Artifact.md +28 -0
- package/concepts/zh-TW/Tool-DesignSync.md +33 -0
- package/concepts/zh-TW/Tool-ReportFindings.md +28 -0
- package/concepts/zh-TW/Tools.md +33 -0
- package/dist/assets/App-BjHJ9KJ6.css +1 -0
- package/dist/assets/App-CCmR0aki.js +2 -0
- package/dist/assets/{MdxEditorPanel-DJtY-RZu.js → MdxEditorPanel-C8ITEOzT.js} +1 -1
- package/dist/assets/{Mobile-BSe9GgwO.js → Mobile-DCHg97f1.js} +1 -1
- package/dist/assets/index-CfPXhStV.js +2 -0
- package/dist/assets/{seqResourceLoaders-g06U0FFU.css → seqResourceLoaders-B3TSSS6T.css} +1 -1
- package/dist/assets/seqResourceLoaders-CAYxnMSH.js +2 -0
- package/dist/index.html +1 -1
- package/package.json +1 -1
- package/server/lib/create_system_prompt.js +23 -2
- package/server/lib/system-prompt-presets.js +4 -3
- package/server/routes/expert.js +4 -1
- package/server/system-prompt-templates/presets/GLM-5.2.md +7 -3
- package/server/system-prompt-templates/presets/Qwen-3.7-Max.md +7 -3
- package/server/system-prompt-templates/presets/deepseek-v4-flash.md +4 -2
- package/server/system-prompt-templates/presets/deepseek-v4-pro.md +6 -1
- package/server/system-prompt-templates/presets/index.json +12 -4
- package/server/system-prompt-templates/presets/kimi-k2.7-code.md +69 -0
- package/server/system-prompt-templates/systemPromptVariables.ar.md +113 -0
- package/server/system-prompt-templates/systemPromptVariables.da.md +113 -0
- package/server/system-prompt-templates/systemPromptVariables.de.md +113 -0
- package/server/system-prompt-templates/systemPromptVariables.es.md +113 -0
- package/server/system-prompt-templates/systemPromptVariables.fr.md +113 -0
- package/server/system-prompt-templates/systemPromptVariables.it.md +113 -0
- package/server/system-prompt-templates/systemPromptVariables.ja.md +113 -0
- package/server/system-prompt-templates/systemPromptVariables.ko.md +113 -0
- package/server/system-prompt-templates/systemPromptVariables.no.md +113 -0
- package/server/system-prompt-templates/systemPromptVariables.pl.md +113 -0
- package/server/system-prompt-templates/systemPromptVariables.pt-BR.md +113 -0
- package/server/system-prompt-templates/systemPromptVariables.ru.md +113 -0
- package/server/system-prompt-templates/systemPromptVariables.th.md +113 -0
- package/server/system-prompt-templates/systemPromptVariables.tr.md +113 -0
- package/server/system-prompt-templates/systemPromptVariables.uk.md +113 -0
- package/server/system-prompt-templates/systemPromptVariables.zh-TW.md +113 -0
- package/server/system-prompt-templates/systemPromptVariables.zh.md +113 -0
- package/dist/assets/App-DkT8kHeT.js +0 -2
- package/dist/assets/App-Pkp5KFXT.css +0 -1
- package/dist/assets/index-5v2dgTRS.js +0 -2
- package/dist/assets/seqResourceLoaders-BlUz36Ig.js +0 -2
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
# systemPromptModel.md-Variablen
|
|
2
|
+
|
|
3
|
+
Diese Datei dokumentiert nur die Variablen in `systemPromptModel.md`, die zur Laufzeit aufgelöst werden müssen. Jede Blattvariable wird zu einem String, einer Zahl oder einem leeren String `""`; wenn ein Wert nicht erhalten werden kann, wird uniform auf einen leeren String zurückgegriffen.
|
|
4
|
+
|
|
5
|
+
## Arbeitsbereich und Benutzerumgebung
|
|
6
|
+
|
|
7
|
+
| Variable | Description | Example |
|
|
8
|
+
|---|---|---|
|
|
9
|
+
| `${environment.cwd}` | Aktuelles primäres Arbeitsverzeichnis. | `/Users/sky/claude-code` |
|
|
10
|
+
| `${environment.originalCwd}` | Ursprüngliches Arbeitsverzeichnis beim Prozess-/Sessionstart. | `/Users/sky/claude-code` |
|
|
11
|
+
| `${environment.home}` | Benutzer-Stammverzeichnis, wird zur Auflösung von `~` verwendet. | `/Users/sky` |
|
|
12
|
+
| `${environment.user}` | Aktueller Systembenutzername. | `sky` |
|
|
13
|
+
| `${environment.workspaceRoots}` | Arbeitsbereichs-Stammverzeichnisse für die aktuelle Session; kann als Zeilenumbruch-getrennter String dargestellt werden. | `/Users/sky/claude-code` |
|
|
14
|
+
| `${environment.path}` | Aktuelles Prozess-PATH. | `/opt/homebrew/bin:/usr/bin:/bin` |
|
|
15
|
+
| `${environment.lang}` | Aktuelle Gebietsschema- oder Sprachumgebung. | `zh_CN.UTF-8` |
|
|
16
|
+
|
|
17
|
+
## Betriebssystem
|
|
18
|
+
|
|
19
|
+
| Variable | Description | Example |
|
|
20
|
+
|---|---|---|
|
|
21
|
+
| `${os.platform}` | Plattform wie von Node.js identifiziert. | `darwin` |
|
|
22
|
+
| `${os.type}` | Betriebssystemtyp. | `Darwin` |
|
|
23
|
+
| `${os.arch}` | CPU-Architektur. | `arm64` |
|
|
24
|
+
| `${os.shell}` | Aktuelle Shell. | `/bin/zsh` |
|
|
25
|
+
| `${os.version}` | Betriebssystem-Versionsbeschreibung. | `Darwin Kernel Version ...` |
|
|
26
|
+
| `${os.release}` | Betriebssystem-Release. | `24.5.0` |
|
|
27
|
+
| `${os.hostname}` | Aktueller Hostname. | `MacBook-Pro.local` |
|
|
28
|
+
| `${os.availableParallelism}` | Verfügbarer Parallelismus. | `10` |
|
|
29
|
+
| `${os.totalMemory}` | Gesamtspeicher des Systems in Bytes. | `34359738368` |
|
|
30
|
+
| `${os.freeMemory}` | Freier Speicher in Bytes. | `8589934592` |
|
|
31
|
+
| `${os.uptime}` | Systemlaufzeit in Sekunden. | `123456` |
|
|
32
|
+
|
|
33
|
+
## Node.js-Laufzeit
|
|
34
|
+
|
|
35
|
+
| Variable | Description | Example |
|
|
36
|
+
|---|---|---|
|
|
37
|
+
| `${runtime.nodeVersion}` | Aktuelle Node.js-Version. | `v24.14.0` |
|
|
38
|
+
| `${runtime.execPath}` | Pfad zur aktuellen Node.js-Executable. | `/opt/homebrew/bin/node` |
|
|
39
|
+
| `${runtime.pid}` | Aktuelle Prozess-ID. | `12345` |
|
|
40
|
+
| `${runtime.ppid}` | Übergeordnete Prozess-ID. | `1234` |
|
|
41
|
+
|
|
42
|
+
## Zeit
|
|
43
|
+
|
|
44
|
+
| Variable | Description | Example |
|
|
45
|
+
|---|---|---|
|
|
46
|
+
| `${time.current}` | Aktuelle lokale Zeitzeichenkette. | `Thu Jul 09 2026 18:22:09 GMT+0800 (China Standard Time)` |
|
|
47
|
+
| `${time.iso}` | Aktuelle ISO-Zeit. | `2026-07-09T10:22:09.000Z` |
|
|
48
|
+
| `${time.date}` | Aktuelles lokales Datum. | `2026-07-09` |
|
|
49
|
+
| `${time.timezone}` | Aktuelle Systemzeitzone. | `Asia/Shanghai` |
|
|
50
|
+
|
|
51
|
+
## Berechtigungen und Sandbox
|
|
52
|
+
|
|
53
|
+
| Variable | Description | Example |
|
|
54
|
+
|---|---|---|
|
|
55
|
+
| `${permissions.mode}` | Aktueller Tool-Berechtigungsmodus. | `default` |
|
|
56
|
+
| `${permissions.approvalsReviewer}` | Aktuelle Genehmigungsrichtlinie oder Reviewer-Modus. | `auto_review` |
|
|
57
|
+
| `${sandbox.mode}` | Dateisystem-Sandboxmodus. | `workspace-write` |
|
|
58
|
+
| `${sandbox.networkAccess}` | Netzwerkzugriffsstatus. | `enabled` |
|
|
59
|
+
| `${sandbox.writableRoots}` | Verzeichnisse, in die die Sandbox schreiben darf; kann als Zeilenumbruch-getrennter String dargestellt werden. | `/Users/sky/Documents/Playground` |
|
|
60
|
+
|
|
61
|
+
## Terminal
|
|
62
|
+
|
|
63
|
+
| Variable | Description | Example |
|
|
64
|
+
|---|---|---|
|
|
65
|
+
| `${terminal.term}` | Aktuelles TERM. | `xterm-256color` |
|
|
66
|
+
| `${terminal.colorTerm}` | Aktuelles COLORTERM. | `truecolor` |
|
|
67
|
+
| `${terminal.columns}` | Aktuelle Terminal-Spaltenzahl. | `120` |
|
|
68
|
+
| `${terminal.rows}` | Aktuelle Terminal-Zeilenzahl. | `40` |
|
|
69
|
+
|
|
70
|
+
## Dateisystem
|
|
71
|
+
|
|
72
|
+
| Variable | Description | Example |
|
|
73
|
+
|---|---|---|
|
|
74
|
+
| `${filesystem.tmpdir}` | Systemverzeichnis für temporäre Dateien. | `/var/folders/.../T` |
|
|
75
|
+
| `${filesystem.pathSeparator}` | Dateipfad-Trennzeichen. | `/` |
|
|
76
|
+
| `${filesystem.pathDelimiter}` | PATH-Eintragsabgrenzung. | `:` |
|
|
77
|
+
|
|
78
|
+
## Modell
|
|
79
|
+
|
|
80
|
+
| Variable | Description | Example |
|
|
81
|
+
|---|---|---|
|
|
82
|
+
| `${model.name}` | Aktueller Modellname oder ID. | `claude-opus-4-6` |
|
|
83
|
+
| `${model.knowledgeCutoff}` | Aktueller Wissensstand des Modells; dieser Wert kann nicht vom Betriebssystem abgeleitet werden und muss über externe Konfiguration oder einen Override injiziert werden. | `May 2025` |
|
|
84
|
+
|
|
85
|
+
## Git
|
|
86
|
+
|
|
87
|
+
| Variable | Description | Example |
|
|
88
|
+
|---|---|---|
|
|
89
|
+
| `${git.isRepository}` | Ob sich das aktuelle Verzeichnis in einem Git-Repository befindet, als String. | `true` |
|
|
90
|
+
| `${git.root}` | Stammverzeichnis des Git-Repositories. | `/Users/sky/project` |
|
|
91
|
+
| `${git.branch}` | Aktueller Git-Branch oder kurzer HEAD-Hash. | `main` |
|
|
92
|
+
| `${git.mainBranch}` | Standard-Hauptbranch, typischerweise als PR- oder Merge-Ziel verwendet. | `main` |
|
|
93
|
+
| `${git.userName}` | Aktueller Git `user.name`. | `Sky` |
|
|
94
|
+
| `${git.status}` | Ausgabe von `git status --short`. | `M src/index.ts` |
|
|
95
|
+
| `${git.recentCommits}` | Zusammenfassung der letzten Commits. | `abc1234 Fix prompt builder` |
|
|
96
|
+
|
|
97
|
+
## Speicher
|
|
98
|
+
|
|
99
|
+
Die Speichervariablen beschreiben das persistente dateibasierte Speicherverzeichnis. `${memory.dir}` wird aus dem Override `CC_MEMORY_DIR` / `CLAUDE_MEMORY_DIR` aufgelöst, wenn gesetzt; ansonsten wird es als `<home>/.claude/projects/<slug>/memory/` berechnet, wobei `<slug>` das primäre Arbeitsverzeichnis mit jedem nicht-alphanumerischen Zeichen ist, das durch `-` ersetzt wird. `${memory.index}` enthält den Inhalt von `MEMORY.md` in diesem Verzeichnis (der Index, der jede Session geladen wird), und `${memory.enabled}` meldet, ob Speicher verfügbar ist. Die Abschnitte `# Memory` und `# Memory index` werden nur zusammengestellt, wenn Speicher aktiviert ist.
|
|
100
|
+
|
|
101
|
+
| Variable | Description | Example |
|
|
102
|
+
|---|---|---|
|
|
103
|
+
| `${memory.dir}` | Aufgelöstes Speicherverzeichnis. | `/Users/sky/.claude/projects/-Users-sky-project/memory/` |
|
|
104
|
+
| `${memory.index}` | Inhalt von `MEMORY.md` oder `""` wenn nicht vorhanden. | `# Memory index\n- [Commit to main](commit-to-main.md) — hook` |
|
|
105
|
+
| `${memory.enabled}` | Ob Speicher verfügbar ist, als String. | `true` |
|
|
106
|
+
|
|
107
|
+
## Scratchpad
|
|
108
|
+
|
|
109
|
+
Das Scratchpad-Verzeichnis ist sessionspezifisch und kann nicht vom Betriebssystem abgeleitet werden; es muss über den Override `CC_SCRATCHPAD_DIR` / `CLAUDE_SCRATCHPAD_DIR` injiziert werden. Wenn nicht gesetzt, wird auf `""` zurückgegriffen, und der Abschnitt `# Scratchpad Directory` wird aus der Montage weggelassen.
|
|
110
|
+
|
|
111
|
+
| Variable | Description | Example |
|
|
112
|
+
|---|---|---|
|
|
113
|
+
| `${scratchpad.dir}` | Sessionspezifisches temporäres Verzeichnis. | `/private/tmp/claude-501/<slug>/<session>/scratchpad` |
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
# variables de systemPromptModel.md
|
|
2
|
+
|
|
3
|
+
Este archivo documenta únicamente las variables en `systemPromptModel.md` que deben resolverse en tiempo de ejecución. Cada variable hoja se resuelve en una cadena, un número o una cadena vacía `""`; cuando no se puede obtener un valor, vuelve uniformemente a una cadena vacía.
|
|
4
|
+
|
|
5
|
+
## Espacio de trabajo y entorno del usuario
|
|
6
|
+
|
|
7
|
+
| Variable | Description | Example |
|
|
8
|
+
|---|---|---|
|
|
9
|
+
| `${environment.cwd}` | Directorio de trabajo principal actual. | `/Users/sky/claude-code` |
|
|
10
|
+
| `${environment.originalCwd}` | Directorio de trabajo original cuando se inició el proceso/sesión. | `/Users/sky/claude-code` |
|
|
11
|
+
| `${environment.home}` | Directorio de inicio del usuario, se utiliza para resolver `~`. | `/Users/sky` |
|
|
12
|
+
| `${environment.user}` | Nombre de usuario del sistema actual. | `sky` |
|
|
13
|
+
| `${environment.workspaceRoots}` | Raíces del espacio de trabajo para la sesión actual; puede representarse como una cadena separada por saltos de línea. | `/Users/sky/claude-code` |
|
|
14
|
+
| `${environment.path}` | PATH del proceso actual. | `/opt/homebrew/bin:/usr/bin:/bin` |
|
|
15
|
+
| `${environment.lang}` | Entorno de configuración regional o idioma actual. | `zh_CN.UTF-8` |
|
|
16
|
+
|
|
17
|
+
## Sistema operativo
|
|
18
|
+
|
|
19
|
+
| Variable | Description | Example |
|
|
20
|
+
|---|---|---|
|
|
21
|
+
| `${os.platform}` | Plataforma identificada por Node.js. | `darwin` |
|
|
22
|
+
| `${os.type}` | Tipo de sistema operativo. | `Darwin` |
|
|
23
|
+
| `${os.arch}` | Arquitectura de CPU. | `arm64` |
|
|
24
|
+
| `${os.shell}` | Shell actual. | `/bin/zsh` |
|
|
25
|
+
| `${os.version}` | Descripción de la versión del sistema operativo. | `Darwin Kernel Version ...` |
|
|
26
|
+
| `${os.release}` | Versión del sistema operativo. | `24.5.0` |
|
|
27
|
+
| `${os.hostname}` | Nombre de host actual. | `MacBook-Pro.local` |
|
|
28
|
+
| `${os.availableParallelism}` | Paralelismo disponible. | `10` |
|
|
29
|
+
| `${os.totalMemory}` | Memoria total del sistema, en bytes. | `34359738368` |
|
|
30
|
+
| `${os.freeMemory}` | Memoria libre, en bytes. | `8589934592` |
|
|
31
|
+
| `${os.uptime}` | Tiempo de actividad del sistema, en segundos. | `123456` |
|
|
32
|
+
|
|
33
|
+
## Tiempo de ejecución de Node.js
|
|
34
|
+
|
|
35
|
+
| Variable | Description | Example |
|
|
36
|
+
|---|---|---|
|
|
37
|
+
| `${runtime.nodeVersion}` | Versión actual de Node.js. | `v24.14.0` |
|
|
38
|
+
| `${runtime.execPath}` | Ruta al ejecutable de Node.js actual. | `/opt/homebrew/bin/node` |
|
|
39
|
+
| `${runtime.pid}` | ID de proceso actual. | `12345` |
|
|
40
|
+
| `${runtime.ppid}` | ID de proceso padre. | `1234` |
|
|
41
|
+
|
|
42
|
+
## Tiempo
|
|
43
|
+
|
|
44
|
+
| Variable | Description | Example |
|
|
45
|
+
|---|---|---|
|
|
46
|
+
| `${time.current}` | Cadena de hora local actual. | `Thu Jul 09 2026 18:22:09 GMT+0800 (China Standard Time)` |
|
|
47
|
+
| `${time.iso}` | Hora ISO actual. | `2026-07-09T10:22:09.000Z` |
|
|
48
|
+
| `${time.date}` | Fecha local actual. | `2026-07-09` |
|
|
49
|
+
| `${time.timezone}` | Zona horaria del sistema actual. | `Asia/Shanghai` |
|
|
50
|
+
|
|
51
|
+
## Permisos y sandbox
|
|
52
|
+
|
|
53
|
+
| Variable | Description | Example |
|
|
54
|
+
|---|---|---|
|
|
55
|
+
| `${permissions.mode}` | Modo de permiso de herramienta actual. | `default` |
|
|
56
|
+
| `${permissions.approvalsReviewer}` | Política de aprobación actual o modo de revisor. | `auto_review` |
|
|
57
|
+
| `${sandbox.mode}` | Modo de sandbox del sistema de archivos. | `workspace-write` |
|
|
58
|
+
| `${sandbox.networkAccess}` | Estado de acceso a la red. | `enabled` |
|
|
59
|
+
| `${sandbox.writableRoots}` | Directorios en los que el sandbox permite escribir; puede representarse como una cadena separada por saltos de línea. | `/Users/sky/Documents/Playground` |
|
|
60
|
+
|
|
61
|
+
## Terminal
|
|
62
|
+
|
|
63
|
+
| Variable | Description | Example |
|
|
64
|
+
|---|---|---|
|
|
65
|
+
| `${terminal.term}` | TERM actual. | `xterm-256color` |
|
|
66
|
+
| `${terminal.colorTerm}` | COLORTERM actual. | `truecolor` |
|
|
67
|
+
| `${terminal.columns}` | Recuento de columnas del terminal actual. | `120` |
|
|
68
|
+
| `${terminal.rows}` | Recuento de filas del terminal actual. | `40` |
|
|
69
|
+
|
|
70
|
+
## Sistema de archivos
|
|
71
|
+
|
|
72
|
+
| Variable | Description | Example |
|
|
73
|
+
|---|---|---|
|
|
74
|
+
| `${filesystem.tmpdir}` | Directorio temporal del sistema. | `/var/folders/.../T` |
|
|
75
|
+
| `${filesystem.pathSeparator}` | Separador de ruta de archivo. | `/` |
|
|
76
|
+
| `${filesystem.pathDelimiter}` | Delimitador de entrada PATH. | `:` |
|
|
77
|
+
|
|
78
|
+
## Modelo
|
|
79
|
+
|
|
80
|
+
| Variable | Description | Example |
|
|
81
|
+
|---|---|---|
|
|
82
|
+
| `${model.name}` | Nombre o ID del modelo actual. | `claude-opus-4-6` |
|
|
83
|
+
| `${model.knowledgeCutoff}` | Corte de conocimiento del modelo actual; este valor no se puede derivar del sistema operativo y debe inyectarse a través de configuración externa o una anulación. | `May 2025` |
|
|
84
|
+
|
|
85
|
+
## Git
|
|
86
|
+
|
|
87
|
+
| Variable | Description | Example |
|
|
88
|
+
|---|---|---|
|
|
89
|
+
| `${git.isRepository}` | Si el directorio actual está dentro de un repositorio de Git, como cadena. | `true` |
|
|
90
|
+
| `${git.root}` | Directorio raíz del repositorio de Git. | `/Users/sky/project` |
|
|
91
|
+
| `${git.branch}` | Rama de Git actual o hash HEAD corto. | `main` |
|
|
92
|
+
| `${git.mainBranch}` | Rama principal predeterminada, típicamente utilizada como destino de PR o fusión. | `main` |
|
|
93
|
+
| `${git.userName}` | `user.name` de Git actual. | `Sky` |
|
|
94
|
+
| `${git.status}` | Salida de `git status --short`. | `M src/index.ts` |
|
|
95
|
+
| `${git.recentCommits}` | Resumen de commits recientes. | `abc1234 Fix prompt builder` |
|
|
96
|
+
|
|
97
|
+
## Memoria
|
|
98
|
+
|
|
99
|
+
Las variables de memoria describen el directorio de memoria persistente basado en archivos. `${memory.dir}` se resuelve desde la anulación `CC_MEMORY_DIR` / `CLAUDE_MEMORY_DIR` cuando está configurada; de lo contrario, se calcula como `<home>/.claude/projects/<slug>/memory/`, donde `<slug>` es el directorio de trabajo principal con cada carácter no alfanumérico reemplazado por `-`. `${memory.index}` contiene el contenido de `MEMORY.md` dentro de ese directorio (el índice cargado cada sesión), y `${memory.enabled}` informa si la memoria está disponible. Las secciones `# Memory` e `# Memory index` solo se ensamblan cuando la memoria está habilitada.
|
|
100
|
+
|
|
101
|
+
| Variable | Description | Example |
|
|
102
|
+
|---|---|---|
|
|
103
|
+
| `${memory.dir}` | Directorio de memoria resuelto. | `/Users/sky/.claude/projects/-Users-sky-project/memory/` |
|
|
104
|
+
| `${memory.index}` | Contenido de `MEMORY.md`, o `""` cuando está ausente. | `# Memory index\n- [Commit to main](commit-to-main.md) — hook` |
|
|
105
|
+
| `${memory.enabled}` | Si la memoria está disponible, como cadena. | `true` |
|
|
106
|
+
|
|
107
|
+
## Scratchpad
|
|
108
|
+
|
|
109
|
+
El directorio scratchpad es específico de la sesión y no se puede derivar del sistema operativo; debe inyectarse a través de la anulación `CC_SCRATCHPAD_DIR` / `CLAUDE_SCRATCHPAD_DIR`. Cuando no está configurado, vuelve a `""`, y la sección `# Scratchpad Directory` se omite del ensamblaje.
|
|
110
|
+
|
|
111
|
+
| Variable | Description | Example |
|
|
112
|
+
|---|---|---|
|
|
113
|
+
| `${scratchpad.dir}` | Directorio temporal específico de la sesión. | `/private/tmp/claude-501/<slug>/<session>/scratchpad` |
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
# variables de systemPromptModel.md
|
|
2
|
+
|
|
3
|
+
Ce fichier documente uniquement les variables dans `systemPromptModel.md` qui doivent être résolues au moment de l'exécution. Chaque variable feuille se résout en une chaîne, un nombre ou une chaîne vide `""`; quand une valeur ne peut pas être obtenue, elle revient uniformément à une chaîne vide.
|
|
4
|
+
|
|
5
|
+
## Espace de travail et environnement utilisateur
|
|
6
|
+
|
|
7
|
+
| Variable | Description | Example |
|
|
8
|
+
|---|---|---|
|
|
9
|
+
| `${environment.cwd}` | Répertoire de travail principal actuel. | `/Users/sky/claude-code` |
|
|
10
|
+
| `${environment.originalCwd}` | Répertoire de travail d'origine au démarrage du processus/session. | `/Users/sky/claude-code` |
|
|
11
|
+
| `${environment.home}` | Répertoire personnel de l'utilisateur, utilisé pour résoudre `~`. | `/Users/sky` |
|
|
12
|
+
| `${environment.user}` | Nom d'utilisateur du système actuel. | `sky` |
|
|
13
|
+
| `${environment.workspaceRoots}` | Racines d'espace de travail pour la session actuelle; peut être rendu sous la forme d'une chaîne séparée par des sauts de ligne. | `/Users/sky/claude-code` |
|
|
14
|
+
| `${environment.path}` | PATH du processus actuel. | `/opt/homebrew/bin:/usr/bin:/bin` |
|
|
15
|
+
| `${environment.lang}` | Paramètres régionaux actuels ou environnement de langue. | `zh_CN.UTF-8` |
|
|
16
|
+
|
|
17
|
+
## Système d'exploitation
|
|
18
|
+
|
|
19
|
+
| Variable | Description | Example |
|
|
20
|
+
|---|---|---|
|
|
21
|
+
| `${os.platform}` | Plateforme identifiée par Node.js. | `darwin` |
|
|
22
|
+
| `${os.type}` | Type de système d'exploitation. | `Darwin` |
|
|
23
|
+
| `${os.arch}` | Architecture du processeur. | `arm64` |
|
|
24
|
+
| `${os.shell}` | Shell actuel. | `/bin/zsh` |
|
|
25
|
+
| `${os.version}` | Description de la version du système d'exploitation. | `Darwin Kernel Version ...` |
|
|
26
|
+
| `${os.release}` | Version du système d'exploitation. | `24.5.0` |
|
|
27
|
+
| `${os.hostname}` | Nom d'hôte actuel. | `MacBook-Pro.local` |
|
|
28
|
+
| `${os.availableParallelism}` | Parallélisme disponible. | `10` |
|
|
29
|
+
| `${os.totalMemory}` | Mémoire totale du système, en octets. | `34359738368` |
|
|
30
|
+
| `${os.freeMemory}` | Mémoire libre, en octets. | `8589934592` |
|
|
31
|
+
| `${os.uptime}` | Temps de fonctionnement du système, en secondes. | `123456` |
|
|
32
|
+
|
|
33
|
+
## Exécution de Node.js
|
|
34
|
+
|
|
35
|
+
| Variable | Description | Example |
|
|
36
|
+
|---|---|---|
|
|
37
|
+
| `${runtime.nodeVersion}` | Version actuelle de Node.js. | `v24.14.0` |
|
|
38
|
+
| `${runtime.execPath}` | Chemin de l'exécutable Node.js actuel. | `/opt/homebrew/bin/node` |
|
|
39
|
+
| `${runtime.pid}` | ID du processus actuel. | `12345` |
|
|
40
|
+
| `${runtime.ppid}` | ID du processus parent. | `1234` |
|
|
41
|
+
|
|
42
|
+
## Heure
|
|
43
|
+
|
|
44
|
+
| Variable | Description | Example |
|
|
45
|
+
|---|---|---|
|
|
46
|
+
| `${time.current}` | Chaîne d'heure locale actuelle. | `Thu Jul 09 2026 18:22:09 GMT+0800 (China Standard Time)` |
|
|
47
|
+
| `${time.iso}` | Heure ISO actuelle. | `2026-07-09T10:22:09.000Z` |
|
|
48
|
+
| `${time.date}` | Date locale actuelle. | `2026-07-09` |
|
|
49
|
+
| `${time.timezone}` | Fuseau horaire du système actuel. | `Asia/Shanghai` |
|
|
50
|
+
|
|
51
|
+
## Permissions et sandbox
|
|
52
|
+
|
|
53
|
+
| Variable | Description | Example |
|
|
54
|
+
|---|---|---|
|
|
55
|
+
| `${permissions.mode}` | Mode de permission de l'outil actuel. | `default` |
|
|
56
|
+
| `${permissions.approvalsReviewer}` | Politique d'approbation actuelle ou mode de révision. | `auto_review` |
|
|
57
|
+
| `${sandbox.mode}` | Mode de bac à sable du système de fichiers. | `workspace-write` |
|
|
58
|
+
| `${sandbox.networkAccess}` | État d'accès au réseau. | `enabled` |
|
|
59
|
+
| `${sandbox.writableRoots}` | Répertoires où le bac à sable autorise l'écriture; peut être rendu sous la forme d'une chaîne séparée par des sauts de ligne. | `/Users/sky/Documents/Playground` |
|
|
60
|
+
|
|
61
|
+
## Terminal
|
|
62
|
+
|
|
63
|
+
| Variable | Description | Example |
|
|
64
|
+
|---|---|---|
|
|
65
|
+
| `${terminal.term}` | TERM actuel. | `xterm-256color` |
|
|
66
|
+
| `${terminal.colorTerm}` | COLORTERM actuel. | `truecolor` |
|
|
67
|
+
| `${terminal.columns}` | Nombre actuel de colonnes du terminal. | `120` |
|
|
68
|
+
| `${terminal.rows}` | Nombre actuel de lignes du terminal. | `40` |
|
|
69
|
+
|
|
70
|
+
## Système de fichiers
|
|
71
|
+
|
|
72
|
+
| Variable | Description | Example |
|
|
73
|
+
|---|---|---|
|
|
74
|
+
| `${filesystem.tmpdir}` | Répertoire temporaire du système. | `/var/folders/.../T` |
|
|
75
|
+
| `${filesystem.pathSeparator}` | Séparateur de chemin de fichier. | `/` |
|
|
76
|
+
| `${filesystem.pathDelimiter}` | Délimiteur d'entrée PATH. | `:` |
|
|
77
|
+
|
|
78
|
+
## Modèle
|
|
79
|
+
|
|
80
|
+
| Variable | Description | Example |
|
|
81
|
+
|---|---|---|
|
|
82
|
+
| `${model.name}` | Nom ou ID du modèle actuel. | `claude-opus-4-6` |
|
|
83
|
+
| `${model.knowledgeCutoff}` | Limite de connaissances du modèle actuel; cette valeur ne peut pas être dérivée du système d'exploitation et doit être injectée via la configuration externe ou une substitution. | `May 2025` |
|
|
84
|
+
|
|
85
|
+
## Git
|
|
86
|
+
|
|
87
|
+
| Variable | Description | Example |
|
|
88
|
+
|---|---|---|
|
|
89
|
+
| `${git.isRepository}` | Si le répertoire actuel se trouve dans un référentiel Git, en tant que chaîne. | `true` |
|
|
90
|
+
| `${git.root}` | Répertoire racine du référentiel Git. | `/Users/sky/project` |
|
|
91
|
+
| `${git.branch}` | Branche Git actuelle ou hachage HEAD court. | `main` |
|
|
92
|
+
| `${git.mainBranch}` | Branche principale par défaut, généralement utilisée comme cible de PR ou de fusion. | `main` |
|
|
93
|
+
| `${git.userName}` | Élément `user.name` Git actuel. | `Sky` |
|
|
94
|
+
| `${git.status}` | Sortie de `git status --short`. | `M src/index.ts` |
|
|
95
|
+
| `${git.recentCommits}` | Résumé des commits récents. | `abc1234 Fix prompt builder` |
|
|
96
|
+
|
|
97
|
+
## Mémoire
|
|
98
|
+
|
|
99
|
+
Les variables de mémoire décrivent le répertoire de mémoire persistant basé sur des fichiers. `${memory.dir}` est résolu à partir de la substitution `CC_MEMORY_DIR` / `CLAUDE_MEMORY_DIR` lorsqu'elle est définie; sinon, elle est calculée comme `<home>/.claude/projects/<slug>/memory/`, où `<slug>` est le répertoire de travail principal avec chaque caractère non-alphanumérique remplacé par `-`. `${memory.index}` contient le contenu de `MEMORY.md` dans ce répertoire (l'index chargé chaque session), et `${memory.enabled}` indique si la mémoire est disponible. Les sections `# Memory` et `# Memory index` ne sont assemblées que lorsque la mémoire est activée.
|
|
100
|
+
|
|
101
|
+
| Variable | Description | Example |
|
|
102
|
+
|---|---|---|
|
|
103
|
+
| `${memory.dir}` | Répertoire de mémoire résolu. | `/Users/sky/.claude/projects/-Users-sky-project/memory/` |
|
|
104
|
+
| `${memory.index}` | Contenu de `MEMORY.md`, ou `""` s'il est absent. | `# Memory index\n- [Commit to main](commit-to-main.md) — hook` |
|
|
105
|
+
| `${memory.enabled}` | Si la mémoire est disponible, sous forme de chaîne. | `true` |
|
|
106
|
+
|
|
107
|
+
## Bloc-notes
|
|
108
|
+
|
|
109
|
+
Le répertoire du bloc-notes est spécifique à la session et ne peut pas être dérivé du système d'exploitation; il doit être injecté via la substitution `CC_SCRATCHPAD_DIR` / `CLAUDE_SCRATCHPAD_DIR`. S'il n'est pas défini, il revient à `""`, et la section `# Scratchpad Directory` est omise de l'assemblage.
|
|
110
|
+
|
|
111
|
+
| Variable | Description | Example |
|
|
112
|
+
|---|---|---|
|
|
113
|
+
| `${scratchpad.dir}` | Répertoire temporaire spécifique à la session. | `/private/tmp/claude-501/<slug>/<session>/scratchpad` |
|
|
@@ -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` |
|