@neikyun/ciel 6.8.0 → 6.9.0
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/assets/.claude/hooks/memory-bootstrap.sh +287 -0
- package/assets/.claude/hooks/memory-engine.py +718 -0
- package/assets/.claude/hooks/session-start.sh +99 -0
- package/assets/.claude/hooks/user-prompt-submit.sh +112 -0
- package/assets/commands/ciel-audit.md +77 -17
- package/assets/commands/ciel-memory-bootstrap.md +160 -0
- package/assets/commands/ciel-status.md +1 -1
- package/assets/platforms/opencode/.opencode/agents/ciel-explorer.md +1 -1
- package/assets/platforms/opencode/.opencode/agents/ciel-improver.md +2 -2
- package/assets/platforms/opencode/.opencode/agents/ciel-researcher.md +1 -1
- package/assets/platforms/opencode/.opencode/commands/ciel-audit.md +40 -22
- package/package.json +1 -1
- package/scripts/postinstall.cjs +4 -0
|
@@ -1,15 +1,10 @@
|
|
|
1
1
|
---
|
|
2
|
-
description:
|
|
3
|
-
subtask: false
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
---
|
|
7
|
-
description: Audits the current Claude Code session for Ciel paradigm violations (missed Task dispatches, inline gathering, hook inactivity, skill overlaps, intent routing misses). Produces a structured report with a Ciel Health Score (0-100). If score < 75, creates a GitHub Issue on the Ciel repository with the findings and session timeline. Hook-independent — works even when Ciel hooks are broken.
|
|
2
|
+
description: Audits the current Claude Code session for Ciel paradigm violations (missed Task dispatches, inline gathering, hook inactivity, skill overlaps, intent routing misses). Produces a structured report with a Ciel Health Score (0-100). If score < 90, creates a GitHub Issue on the Ciel repository with the findings and session timeline. Hook-independent — works even when Ciel hooks are broken.
|
|
8
3
|
---
|
|
9
4
|
|
|
10
5
|
# /ciel-audit — Session post-mortem
|
|
11
6
|
|
|
12
|
-
*Generates a structured report of Ciel behavior violations observed in the current session. Calculates a Ciel Health Score (0-100). If the score is below
|
|
7
|
+
*Generates a structured report of Ciel behavior violations observed in the current session. Calculates a Ciel Health Score (0-100). If the score is below 90, creates a GitHub Issue on the Ciel repository (github.com/KaosKyun/Ciel) with the full timeline and findings — otherwise produces the report only without creating an issue.*
|
|
13
8
|
|
|
14
9
|
Usage: `/ciel-audit`
|
|
15
10
|
|
|
@@ -90,17 +85,42 @@ If npm version > local version, include an **Update notification** in the report
|
|
|
90
85
|
|
|
91
86
|
#### Dimension 8: Platform health — penalty up to -5
|
|
92
87
|
|
|
93
|
-
Check
|
|
88
|
+
Check that Ciel platform installations exist and are valid. Ciel currently supports two platforms: **claude** and **opencode**.
|
|
89
|
+
|
|
90
|
+
**Claude Code** — check for expected agent and hook files:
|
|
91
|
+
```bash
|
|
92
|
+
CLAUDE_AGENTS=$(ls .claude/agents/ciel-*.md 2>/dev/null | wc -l | tr -d ' ')
|
|
93
|
+
CLAUDE_HOOK=$(test -f .claude/hooks/session-start.sh && echo "1" || echo "0")
|
|
94
|
+
CLAUDE_SETTINGS=$(test -f .claude/settings.json && echo "1" || echo "0")
|
|
95
|
+
echo "Claude: agents=$CLAUDE_AGENTS hook=$CLAUDE_HOOK settings=$CLAUDE_SETTINGS"
|
|
96
|
+
if [ "$CLAUDE_AGENTS" -ge 3 ] && [ "$CLAUDE_HOOK" = "1" ] && [ "$CLAUDE_SETTINGS" = "1" ]; then
|
|
97
|
+
echo "Claude platform: OK"
|
|
98
|
+
else
|
|
99
|
+
echo "Claude platform: INCOMPLETE"
|
|
100
|
+
fi
|
|
101
|
+
```
|
|
102
|
+
Expected: at least 3 agent files + session-start.sh + settings.json
|
|
94
103
|
|
|
104
|
+
**OpenCode** — check for expected plugin, agent, and command files:
|
|
95
105
|
```bash
|
|
96
|
-
|
|
106
|
+
OPENCODE_PLUGIN=$(test -f .opencode/plugins/ciel.ts && echo "1" || echo "0")
|
|
107
|
+
OPENCODE_AGENTS=$(ls .opencode/agents/ciel-*.md 2>/dev/null | wc -l | tr -d ' ')
|
|
108
|
+
OPENCODE_COMMANDS=$(ls .opencode/commands/ciel*.md 2>/dev/null | wc -l | tr -d ' ')
|
|
109
|
+
echo "OpenCode: plugin=$OPENCODE_PLUGIN agents=$OPENCODE_AGENTS commands=$OPENCODE_COMMANDS"
|
|
110
|
+
if [ "$OPENCODE_PLUGIN" = "1" ] && [ "$OPENCODE_AGENTS" -ge 3 ] && [ "$OPENCODE_COMMANDS" -ge 5 ]; then
|
|
111
|
+
echo "OpenCode platform: OK"
|
|
112
|
+
else
|
|
113
|
+
echo "OpenCode platform: INCOMPLETE"
|
|
114
|
+
fi
|
|
97
115
|
```
|
|
116
|
+
Expected: ciel.ts plugin + at least 3 agent files + at least 5 command files
|
|
98
117
|
|
|
99
|
-
|
|
118
|
+
Scoring:
|
|
119
|
+
- Both platforms fully present and valid: **0**
|
|
120
|
+
- One platform missing or incomplete: **-3**
|
|
121
|
+
- Both platforms missing or critically incomplete: **-5**
|
|
100
122
|
|
|
101
|
-
|
|
102
|
-
- Missing 1-2 platforms: **-3**
|
|
103
|
-
- Missing 3+ platforms: **-5**
|
|
123
|
+
**Important**: Do NOT check for `.claude/plugins/ciel/platforms/` or `.opencode/platforms/` directories — these are not part of the v6 architecture. Platform files are installed directly into `.claude/` and `.opencode/` respectively. Do NOT check for codex, cursor, kilocode, lmstudio, ollama, or windsurf — these platforms are not yet implemented.
|
|
104
124
|
|
|
105
125
|
---
|
|
106
126
|
|
|
@@ -111,9 +131,7 @@ Expected platforms: codex, cursor, kilocode, lmstudio, ollama, opencode, windsur
|
|
|
111
131
|
| Score range | Status | Issue created? |
|
|
112
132
|
|-------------|--------|----------------|
|
|
113
133
|
| 90-100 | Excellent | No |
|
|
114
|
-
|
|
|
115
|
-
| 50-74 | Needs improvement | **Yes** — creates issue with timeline |
|
|
116
|
-
| 0-49 | Critical | **Yes** — creates issue with timeline |
|
|
134
|
+
| 0-89 | Needs improvement | **Yes** — creates issue with timeline |
|
|
117
135
|
|
|
118
136
|
The score is calculated automatically from the detected violations.
|
|
119
137
|
|
|
@@ -129,7 +147,7 @@ Begin the output with the literal line `# Ciel Session Audit Report`. End with t
|
|
|
129
147
|
**Date**: <today's date>
|
|
130
148
|
**Ciel Health Score**: <N>/100 — <Excellent|Good|Needs improvement|Critical>
|
|
131
149
|
**npm**: local v<X.Y.Z> | npm v<X.Y.Z> | <up-to-date|update available>
|
|
132
|
-
**Platforms**:
|
|
150
|
+
**Platforms**: claude ✓ opencode ✓ (or ✗ if missing)
|
|
133
151
|
**Session summary**: <N> /ciel invocation(s), <N> total tool calls, <N> Task() dispatches, <N> inline Bash/Read/Grep/WebSearch calls in main session.
|
|
134
152
|
|
|
135
153
|
**Verdict**: <PASS | VIOLATIONS FOUND>
|
|
@@ -207,7 +225,7 @@ Output a single short section — **no issue is created** for PASS verdicts:
|
|
|
207
225
|
**Date**: <today's date>
|
|
208
226
|
**Ciel Health Score**: 100/100 — Excellent
|
|
209
227
|
**npm**: local v<X.Y.Z> | npm v<X.Y.Z> | up-to-date
|
|
210
|
-
**Platforms**:
|
|
228
|
+
**Platforms**: claude ✓ opencode ✓
|
|
211
229
|
**Session summary**: <N> /ciel invocation(s), <N> tool calls, <N> Task() dispatches.
|
|
212
230
|
**Verdict**: PASS
|
|
213
231
|
|
|
@@ -218,11 +236,11 @@ Output a single short section — **no issue is created** for PASS verdicts:
|
|
|
218
236
|
|
|
219
237
|
---
|
|
220
238
|
|
|
221
|
-
### GitHub Issue creation (only if score <
|
|
239
|
+
### GitHub Issue creation (only if score < 90)
|
|
222
240
|
|
|
223
|
-
If the Ciel Health Score is **below
|
|
241
|
+
If the Ciel Health Score is **below 90**, create a GitHub Issue with the report AND the session timeline.
|
|
224
242
|
|
|
225
|
-
**Important**: Do NOT create an issue if score >=
|
|
243
|
+
**Important**: Do NOT create an issue if score >= 90. Only create for scores < 90.
|
|
226
244
|
|
|
227
245
|
1. **Check for duplicate issues first**:
|
|
228
246
|
```bash
|
|
@@ -304,6 +322,6 @@ If the Ciel Health Score is **below 75**, create a GitHub Issue with the report
|
|
|
304
322
|
- Do NOT invoke other Ciel skills. This command is fully self-contained.
|
|
305
323
|
- Do NOT dispatch `Task()` agents. Audit happens inline.
|
|
306
324
|
- Do NOT ask clarifying questions. Produce the report with the information you have.
|
|
307
|
-
- Do NOT create an issue if score >=
|
|
325
|
+
- Do NOT create an issue if score >= 90. Only create for score < 90.
|
|
308
326
|
- Do NOT create duplicate issues — run the `gh issue list` check before creating.
|
|
309
327
|
- Do NOT restart, rerun, or attempt to fix the session in-flight. The audit report is the deliverable.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@neikyun/ciel",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.9.0",
|
|
4
4
|
"description": "Ciel — Deep-reasoning pipeline for LLM-assisted development. OpenCode plugin + multi-platform CLI (OpenCode, Claude Code, more).",
|
|
5
5
|
"main": "./dist/plugin/index.js",
|
|
6
6
|
"types": "./dist/plugin/index.d.ts",
|
package/scripts/postinstall.cjs
CHANGED
|
@@ -210,6 +210,10 @@ async function main() {
|
|
|
210
210
|
writeFileSync(join(targetDir, ".ciel/map.json"), JSON.stringify({ modules: [], lastUpdated: "" }), "utf-8");
|
|
211
211
|
if (!existsSync(join(targetDir, ".ciel/parking.md")))
|
|
212
212
|
writeFileSync(join(targetDir, ".ciel/parking.md"), "# Ciel Parking Lot\n\n", "utf-8");
|
|
213
|
+
// Cued-recall memory directories
|
|
214
|
+
mkdirSync(join(targetDir, ".ciel/memory/episodes"), { recursive: true });
|
|
215
|
+
mkdirSync(join(targetDir, ".ciel/memory/concepts"), { recursive: true });
|
|
216
|
+
mkdirSync(join(targetDir, ".ciel/memory/guards"), { recursive: true });
|
|
213
217
|
|
|
214
218
|
// Installer
|
|
215
219
|
let total = 0;
|