@neikyun/ciel 6.0.5 → 6.1.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.
@@ -3,7 +3,6 @@ name: ciel-critic
3
3
  description: Isolated-context critic for Ciel v5. Dispatch for hostile code review (RELIRE), full 7-step audit (CRITIQUER), root-cause analysis (RCA), feedback processing (FEEDBACK), or uncertainty investigation (INVESTIGATE). Five modes. Always use for Critical tasks and when 3+ files changed.
4
4
  tools: Read, Grep, Glob, Bash
5
5
  disallowedTools: Write, Edit
6
- model: opus
7
6
  memory: local
8
7
  permissionMode: acceptEdits
9
8
  maxTurns: 30
@@ -3,7 +3,6 @@ name: ciel-explorer
3
3
  description: Isolated-context explorer for Ciel v5. Dispatch for CODEBASE + FLUX analysis: pattern discovery, fitness checking, data flow tracing, scent-following with intention, git history context, domain-specific insights. Use proactively for any codebase exploration or pattern analysis task.
4
4
  tools: Read, Grep, Glob, Bash
5
5
  disallowedTools: Write, Edit
6
- model: sonnet
7
6
  memory: project
8
7
  isolation: worktree
9
8
  permissionMode: plan
@@ -2,7 +2,7 @@
2
2
  name: ciel-improver
3
3
  description: Long-running meta-agent for Ciel self-improvement. Dispatch ONLY on /ciel-improve, /ciel-eval, /ciel-create-skill. Analyzes recent sessions, runs evaluations, proposes skill improvements for user approval. Never rewrites autonomously.
4
4
  tools: Read, Write, Edit, Grep, Glob, Bash
5
- model: sonnet
5
+
6
6
  ---
7
7
 
8
8
  You are the **Ciel Improver** -- a long-running meta-agent that analyzes Ciel's own performance and proposes concrete improvements. Your isolation is your value: you bring fresh, metric-driven eyes to Ciel itself.
@@ -3,7 +3,6 @@ name: ciel-researcher
3
3
  description: Isolated-context researcher for Ciel v5. Dispatch for RECHERCHE: official docs verification, anti-pattern detection, framework philosophy, version changelog, source credibility checks, anti-hallucination API validation. Use proactively for any documentation lookup or external knowledge task.
4
4
  tools: Read, Grep, Glob, Bash
5
5
  disallowedTools: Write, Edit
6
- model: haiku
7
6
  memory: user
8
7
  permissionMode: acceptEdits
9
8
  maxTurns: 20
@@ -2,7 +2,7 @@
2
2
  # CIEL META-CRITIQUER: post-task reflection triggered on SubagentStop
3
3
  # Records learnings and updates state
4
4
 
5
- MEMO_DIR="$CLAUD_PROJECT_DIR/.ciel"
5
+ MEMO_DIR="$CLAUDE_PROJECT_DIR/.ciel"
6
6
  mkdir -p "$MEMO_DIR"
7
7
 
8
8
  # Check if RELIRE is required
@@ -4,14 +4,14 @@
4
4
 
5
5
  INPUT=$(cat)
6
6
  FILE_PATH=$(echo "$INPUT" | jq -r '.tool_input.file_path // .tool_input.filePath // ""')
7
- TRACK_FILE="$CLAUD_PROJECT_DIR/.ciel/tracked-files.json"
7
+ TRACK_FILE="$CLAUDE_PROJECT_DIR/.ciel/tracked-files.json"
8
8
 
9
- if [ -z "$FILE_PATH" ] || [ -z "$CLAUD_PROJECT_DIR" ]; then
9
+ if [ -z "$FILE_PATH" ] || [ -z "$CLAUDE_PROJECT_DIR" ]; then
10
10
  exit 0
11
11
  fi
12
12
 
13
13
  # Create .ciel dir if needed
14
- mkdir -p "$CLAUD_PROJECT_DIR/.ciel"
14
+ mkdir -p "$CLAUDE_PROJECT_DIR/.ciel"
15
15
 
16
16
  # Load existing tracking
17
17
  TRACKED="[]"
@@ -34,9 +34,9 @@ fi
34
34
  CRITICAL_PATHS='auth|security|Token|Password|Secret|Session|Crypto|Account|Credential|Payment'
35
35
  if echo "$FILE_PATH" | grep -qiE "$CRITICAL_PATHS"; then
36
36
  # Create sticky RELIRE flag
37
- echo "critical" > "$CLAUD_PROJECT_DIR/.ciel/relire-required"
37
+ echo "critical" > "$CLAUDE_PROJECT_DIR/.ciel/relire-required"
38
38
  elif [ "$COUNT" -ge 5 ]; then
39
- echo "standard" > "$CLAUD_PROJECT_DIR/.ciel/relire-required"
39
+ echo "standard" > "$CLAUDE_PROJECT_DIR/.ciel/relire-required"
40
40
  fi
41
41
 
42
42
  echo "$TRACKED" > "$TRACK_FILE"
@@ -10,7 +10,7 @@
10
10
  "hooks": [
11
11
  {
12
12
  "type": "command",
13
- "command": "echo \"[CIEL v6] Session started -- depth classification active\""
13
+ "command": "echo \"[CIEL v6] Session started Pipeline: DOCS → QUOI → ASK → AVEC QUOI → DIVERGE → RECHERCHE → CODEBASE → EVALUER → ASK2 → FAIRE → RELIRE → PROUVER → MEMOIRE → META\""
14
14
  }
15
15
  ]
16
16
  }
@@ -43,6 +43,10 @@
43
43
  {
44
44
  "type": "command",
45
45
  "command": "\"$CLAUDE_PROJECT_DIR\"/.claude/hooks/track-file.sh"
46
+ },
47
+ {
48
+ "type": "command",
49
+ "command": "COUNT=$(cat \"$CLAUDE_PROJECT_DIR/.ciel/tracked-files.json\" 2>/dev/null | python3 -c \"import sys,json; d=json.load(sys.stdin); print(len(d))\" 2>/dev/null || echo \"?\"); echo \"[CIEL] Tracked files: $COUNT — RELIRE recommended at 5+ files or on Critical paths\" >&2"
46
50
  }
47
51
  ]
48
52
  }
@@ -73,7 +77,7 @@
73
77
  "hooks": [
74
78
  {
75
79
  "type": "command",
76
- "command": "echo \"[CIEL] Pre-compact -- saving state\" >> \"$CLAUDE_PROJECT_DIR/.ciel/compact-log.md\""
80
+ "command": "mkdir -p \"$CLAUDE_PROJECT_DIR/.ciel\" && echo \"[CIEL] Pre-compact: $(date -u +%Y-%m-%dT%H:%M:%SZ)\" >> \"$CLAUDE_PROJECT_DIR/.ciel/compact-log.md\""
77
81
  }
78
82
  ]
79
83
  }
package/assets/CLAUDE.md CHANGED
@@ -1,17 +1,37 @@
1
- # CLAUDE.md — Ciel v6
1
+ # CLAUDE.md — Ciel v6 (IMPERATIVE — FOLLOW ALL RULES)
2
2
 
3
- This file is Claude Code's project-level instruction (analogous to OpenCode's AGENTS.md).
3
+ This file is Claude Code's project-level instruction. **It is not advisory — these rules are mandatory.**
4
4
 
5
- Principle: **"Understand before generating. Verify before claiming done."**
5
+ **Core principle:** *"Understand before generating. Verify before claiming done."*
6
6
 
7
- Ciel v6 follows a 16-step pipeline. The plugin/hooks enforce gates — you are the orchestrator.
7
+ ---
8
+
9
+ ## MANDATORY: Every response MUST follow this format
10
+
11
+ ```
12
+ [CIEL] Depth: <Trivial|Standard|Critical|Spike>
13
+ Pipeline step: <DOCS|QUOI|ASK|AVEC QUOI|DIVERGE|RECHERCHE|CODEBASE|EVALUER|ASK2|FAIRE|RELIRE|PROUVER|MEMOIRE|META>
14
+ [your response content]
15
+ ```
16
+
17
+ Classify depth in the FIRST line of EVERY response. No exceptions.
8
18
 
9
19
  ---
10
20
 
11
- ## Rules (immutable)
21
+ ## MANDATORY: How to start every task
22
+
23
+ 1. **Classify depth** using the Depth Gauge below
24
+ 2. **Create TODO list** with `todowrite` — one entry per pipeline step
25
+ 3. **Mark current step `in_progress`** as you work
26
+ 4. **Complete all steps** for the classified depth before declaring done
27
+ 5. **End with META** — always, 10 items, non-negotiable
28
+
29
+ ---
30
+
31
+ ## Rules (immutable — do NOT skip)
12
32
 
13
33
  1. **Depth first** — every response starts with `[CIEL] Depth: <Trivial|Standard|Critical|Spike>`
14
- 2. **Pipeline** — follow the 16-step table below. Hooks enforce test-first, track files, and trigger meta-critiquer.
34
+ 2. **Pipeline** — follow the 16-step table below. Complete ALL steps for your depth. No shortcuts.
15
35
  3. **TODO list** — use TodoWrite at the start of each task. Mark each step completed/in_progress.
16
36
  4. **ASK** — use AskUserQuestion tool ONLY if ambiguous. If context is sufficient, DECIDE and move on.
17
37
  5. **Subagents** — dispatch `ciel-researcher` (research), `ciel-explorer` (codebase), `ciel-critic` (review) via Task tool.
@@ -64,17 +84,19 @@ Unsure → Standard. Touching user data or auth → Critical.
64
84
  9. **Write test FIRST (RED)**, not after. Always.
65
85
  10. **"No error in logs" ≠ proof** → trigger scenario, see positive signal.
66
86
 
67
- ## Subagent Dispatch
87
+ ## Subagent Dispatch (MANDATORY for Standard/Critical)
68
88
 
69
- | Agent | When | In parallel with |
70
- |-------|------|-----------------|
71
- | `ciel-researcher` | RECHERCHE (Standard+Critical) | `ciel-explorer` |
72
- | `ciel-explorer` | CODEBASE (Standard+Critical) | `ciel-researcher` |
73
- | `ciel-critic` (RELIRE) | RELIRE after FAIRE (Std/Crit) | — |
74
- | `ciel-critic` (CRITIQUER) | SECURITE (Critical only) | — |
75
- | `ciel-improver` | ONLY on /ciel-improve, /ciel-eval | — |
89
+ **Rule**: Dispatch BOTH `ciel-researcher` + `ciel-explorer` **IN PARALLEL** before writing any code on Standard/Critical tasks.
76
90
 
77
- **Rule**: Dispatch `ciel-researcher` + `ciel-explorer` **IN PARALLEL** before writing code.
91
+ | Agent | When | Via | In parallel with |
92
+ |-------|------|-----|-----------------|
93
+ | `ciel-researcher` | RECHERCHE (Std/Crit) | `task` subagent_type=`ciel-researcher` | `ciel-explorer` |
94
+ | `ciel-explorer` | CODEBASE (Std/Crit) | `task` subagent_type=`ciel-explorer` | `ciel-researcher` |
95
+ | `ciel-critic` (RELIRE) | RELIRE after FAIRE (Std/Crit) | `task` subagent_type=`ciel-critic` | — |
96
+ | `ciel-critic` (CRITIQUER) | SECURITE (Critical only) | `task` subagent_type=`ciel-critic` | — |
97
+ | `ciel-improver` | ONLY on /ciel-improve, /ciel-eval | `task` subagent_type=`ciel-improver` | — |
98
+
99
+ **IMPORTANT**: If a subagent dispatch fails (`ProviderModelNotFoundError`), fall back to inline research/exploration. Do NOT skip the step.
78
100
 
79
101
  ## Skills reference
80
102
 
@@ -92,6 +114,23 @@ Unsure → Standard. Touching user data or auth → Critical.
92
114
  | `track-file.sh` | After Edit/Write | Tracks changed files for RELIRE |
93
115
  | `meta-critiquer.sh` | SubagentStop | Triggers post-task reflection |
94
116
 
117
+ ## Common failures to avoid
118
+
119
+ These are the most frequently skipped pipeline steps. Do NOT fall into these traps:
120
+
121
+ | Failure | When it happens | Fix |
122
+ |---------|----------------|------|
123
+ | **No DOCS** | Starting a task without reading project state | Always read `.ciel/map.json` + `ciel-overlay.md` first |
124
+ | **No QUOI** | Coding without defining the goal + constraints | State "Goal (1 sentence) + NOT-X + DoD" before touching code |
125
+ | **No DIVERGE** | Using the first approach that comes to mind | Generate 2-3 alternatives before picking one |
126
+ | **No subagents** | Doing research/exploration inline instead of dispatching | Dispatch `ciel-researcher` + `ciel-explorer` in parallel |
127
+ | **No RELIRE** | Merging without a hostile code review | Always dispatch `ciel-critic` MODE=RELIRE before merge |
128
+ | **No PROUVER** | Claiming done without evidence | Show BEFORE/AFTER evidence (logs, curl, screenshot) |
129
+ | **No MEMOIRE** | Losing state between sessions | Save `.ciel/map.json` + `.ciel/memory.json` at task end |
130
+ | **No META** | Skipping reflection | Always run META (10 items) — it closes the feedback loop |
131
+
132
+ **Self-check**: After each step, ask yourself: "Did I just skip a pipeline step?" If yes, go back and do it.
133
+
95
134
  ## MCP integration (opt-in)
96
135
 
97
136
  Ciel supports Playwright (visual critique) and Context7 (live docs) via MCP. Register:
@@ -1,7 +1,6 @@
1
1
  ---
2
2
  description: Isolated-context critic subagent for Ciel. Dispatch when the main session needs hostile review (RELIRE), full 7-step audit (CRITIQUER), or root-cause analysis (RCA). Three modes — MODE=RELIRE (3 RISQUE after write), MODE=CRITIQUER (post-hoc audit), MODE=RCA (debug root cause). Always use for Critical tasks. Fresh context prevents degeneration-of-thought (CriticBench 2024). Tools — read/grep/bash allowed, edit/write denied.
3
3
  mode: subagent
4
- model: anthropic/claude-sonnet-4-6
5
4
  temperature: 0.2
6
5
  tools:
7
6
  write: false
@@ -1,7 +1,6 @@
1
1
  ---
2
2
  description: Isolated-context explorer subagent for Ciel. Dispatch for CODEBASE + FLUX steps — pattern-fitness-check, flux-narrator, domain mastery, modern-patterns-checker, ai-failure-modes-detector, test-strategy, playwright-visual-critic, cicd-security-hardener, accessibility-wcag-auditor. Reads the codebase fresh, free of main-session bias. Tools — read/grep/glob allowed, no bash/edit/write.
3
3
  mode: subagent
4
- model: anthropic/claude-haiku-4-5-20251001
5
4
  temperature: 0.2
6
5
  tools:
7
6
  write: false
@@ -1,7 +1,6 @@
1
1
  ---
2
2
  description: Long-running meta-agent for Ciel self-improvement. Dispatch ONLY on /ciel-improve, /ciel-eval, /ciel-create-skill, or when skills-first-design-auditor is needed to lint a new skill. Analyzes recent sessions, runs binary evals, proposes skill patch-sets for user approval — never rewrites autonomously.
3
3
  mode: subagent
4
- model: anthropic/claude-sonnet-4-6
5
4
  temperature: 0.2
6
5
  tools:
7
6
  write: false
@@ -1,7 +1,6 @@
1
1
  ---
2
2
  description: Isolated-context researcher subagent for Ciel. Dispatch for RECHERCHE step (Standard + Critical tasks) — official docs, anti-patterns, framework philosophy, version changelog, source credibility. Also owns doc-validator-official (anti-hallucination API check). WebFetch + WebSearch enabled, no write/edit/bash.
3
3
  mode: subagent
4
- model: anthropic/claude-haiku-4-5-20251001
5
4
  temperature: 0.2
6
5
  tools:
7
6
  write: false
package/dist/cli/index.js CHANGED
File without changes
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@neikyun/ciel",
3
- "version": "6.0.5",
4
- "description": "Ciel Deep-reasoning pipeline for LLM-assisted development. OpenCode plugin + multi-platform CLI (OpenCode, Claude Code, more).",
3
+ "version": "6.1.0",
4
+ "description": "Ciel \u2014 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",
7
7
  "bin": {
@@ -17,11 +17,12 @@
17
17
  "scripts": {
18
18
  "build": "tsc && node scripts/copy-assets.cjs",
19
19
  "clean": "node -e \"require('fs').rmSync('dist',{recursive:true,force:true});require('fs').rmSync('assets',{recursive:true,force:true})\"",
20
- "test": "npx tsx --test test/**/*.test.ts",
20
+ "test": "tsx --test test/*.test.ts",
21
21
  "postinstall": "node scripts/postinstall.cjs",
22
22
  "prepublishOnly": "npm run build && npm test"
23
23
  },
24
24
  "devDependencies": {
25
+ "@opencode-ai/plugin": "^1.14.20",
25
26
  "@types/node": "^25.6.0",
26
27
  "tsx": "^4.21.0",
27
28
  "typescript": "^6.0.3"
@@ -29,6 +30,11 @@
29
30
  "engines": {
30
31
  "node": ">=18.0.0"
31
32
  },
33
+ "repository": {
34
+ "type": "git",
35
+ "url": "git+https://github.com/KaosKyun/Ciel.git",
36
+ "directory": "packages/ciel"
37
+ },
32
38
  "license": "MIT",
33
39
  "keywords": [
34
40
  "opencode",