azclaude-copilot 0.4.36 → 0.4.37
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.
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
{
|
|
10
10
|
"name": "azclaude",
|
|
11
11
|
"description": "AZCLAUDE is a complete AI coding environment for Claude Code. It installs 37 commands, 9 auto-invoked skills, 15 specialized agents, 4 hooks, and a persistent memory system — in one command.\n\nKey features:\n• Memory across sessions — goals.md + checkpoints injected automatically before every session\n• Self-improving loop — /reflect fixes stale CLAUDE.md rules, /reflexes learns from tool-use patterns, /evolve creates agents from git evidence\n• Autonomous copilot mode — /copilot runs a three-tier team (orchestrator → problem-architect → milestone-builder) across sessions until the product ships\n• Spec-driven workflow — /constitute writes project rules, /spec writes structured ACs, /analyze detects plan drift and ghost milestones, /blueprint traces every milestone to a spec\n• Security layer — 111-rule environment scan (/sentinel), pre-write secret blocking, pre-ship credential audit\n• Progressive levels 0–10 — start with CLAUDE.md, grow into multi-agent pipelines and self-evolving environments\n• Zero dependencies — no npm packages, no external APIs, no vector databases. Plain markdown files and Claude Code's native architecture.\n• Smart install — npx azclaude-copilot@latest auto-detects first install vs upgrade vs verify. Context-aware onboarding shows the right next command for your project state.\n\nExample use cases:\n• /setup — scan an existing project, detect stack + domain + scale, fill CLAUDE.md, generate project-specific skills and agents automatically\n• /copilot \"Build a compliance SaaS with trilingual support\" — walk away, come back to working code across multiple sessions\n• /sentinel — run a scored security audit (0–100, grade A–F) across hooks, permissions, MCP servers, agent configs, and secrets\n• /evolve — detect gaps in the environment, generate new skills and agents from git co-change evidence, report score delta (e.g. 42/100 → 68/100)\n• /constitute — write your project's constitution (non-negotiables, architectural commitments, definition of done) — gates all future AI actions\n• /analyze — cross-artifact consistency check: ghost milestones, spec vs. code drift, unplanned commits\n• /reflect — find stale, missing, or contradicting rules in CLAUDE.md and propose exact fixes\n• /debate \"REST vs GraphQL for this project\" — adversarial evidence-based decision with order-independent scoring, logged to decisions.md",
|
|
12
|
-
"version": "0.4.
|
|
12
|
+
"version": "0.4.37",
|
|
13
13
|
"source": {
|
|
14
14
|
"source": "github",
|
|
15
15
|
"repo": "haytamAroui/AZ-CLAUDE-COPILOT",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "azclaude",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.37",
|
|
4
4
|
"description": "AZCLAUDE is a complete AI coding environment for Claude Code. It installs 37 commands, 9 auto-invoked skills, 15 specialized agents, 4 hooks, and a persistent memory system — in one command.\n\nKey features:\n• Memory across sessions — goals.md + checkpoints injected automatically before every session\n• Self-improving loop — /reflect fixes stale CLAUDE.md rules, /reflexes learns from tool-use patterns, /evolve creates agents from git evidence\n• Autonomous copilot mode — /copilot runs a three-tier team (orchestrator → problem-architect → milestone-builder) across sessions until the product ships\n• Spec-driven workflow — /constitute writes project rules, /spec writes structured ACs, /analyze detects plan drift and ghost milestones, /blueprint traces every milestone to a spec\n• Security layer — 111-rule environment scan (/sentinel), pre-write secret blocking, pre-ship credential audit\n• Progressive levels 0–10 — start with CLAUDE.md, grow into multi-agent pipelines and self-evolving environments\n• Zero dependencies — no npm packages, no external APIs, no vector databases. Plain markdown files and Claude Code's native architecture.\n• Smart install — npx azclaude-copilot@latest auto-detects first install vs upgrade vs verify. Context-aware onboarding shows the right next command for your project state.\n\nExample use cases:\n• /setup — scan an existing project, detect stack + domain + scale, fill CLAUDE.md, generate project-specific skills and agents automatically\n• /copilot \"Build a compliance SaaS with trilingual support\" — walk away, come back to working code across multiple sessions\n• /sentinel — run a scored security audit (0–100, grade A–F) across hooks, permissions, MCP servers, agent configs, and secrets\n• /evolve — detect gaps in the environment, generate new skills and agents from git co-change evidence, report score delta (e.g. 42/100 → 68/100)\n• /constitute — write your project's constitution (non-negotiables, architectural commitments, definition of done) — gates all future AI actions\n• /analyze — cross-artifact consistency check: ghost milestones, spec vs. code drift, unplanned commits\n• /reflect — find stale, missing, or contradicting rules in CLAUDE.md and propose exact fixes\n• /debate \"REST vs GraphQL for this project\" — adversarial evidence-based decision with order-independent scoring, logged to decisions.md",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "haytamAroui",
|
package/README.md
CHANGED
|
@@ -649,7 +649,7 @@ M1 (schema) → done
|
|
|
649
649
|
/parallel M2 M3 M4 M5 # dispatch these milestones simultaneously
|
|
650
650
|
```
|
|
651
651
|
|
|
652
|
-
**
|
|
652
|
+
**Four-layer safety:** Before creating any milestones, `/blueprint` runs a **Task Classifier** (Layer 0) — groups coupled work (same schema table, same config file, same utility module) into single milestones so conflicts are impossible by design. Then: directory isolation + shared-utility grep (Layer 1, no agents spawned). `problem-architect` returns exact `Files Written:` and `Parallel Safe:` per milestone (Layer 2). Orchestrator re-checks file overlap at dispatch time (Layer 3 — unconditional final gate).
|
|
653
653
|
|
|
654
654
|
See `docs/parallel-feature.md` for the complete reference.
|
|
655
655
|
|
|
@@ -865,11 +865,11 @@ Run `/level-up` at any time to see your current level and build the next one.
|
|
|
865
865
|
|
|
866
866
|
## Verified
|
|
867
867
|
|
|
868
|
-
|
|
868
|
+
1578 tests. Every template, command, capability, agent, hook, and CLI feature verified.
|
|
869
869
|
|
|
870
870
|
```bash
|
|
871
871
|
bash tests/test-features.sh
|
|
872
|
-
# Results:
|
|
872
|
+
# Results: 1578 passed, 0 failed, 1578 total
|
|
873
873
|
```
|
|
874
874
|
|
|
875
875
|
---
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "azclaude-copilot",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.37",
|
|
4
4
|
"description": "AI coding environment — 37 commands, 10 skills, 15 agents, memory, reflexes, evolution. Install: npx azclaude-copilot@latest, then open Claude Code.",
|
|
5
5
|
"bin": {
|
|
6
6
|
"azclaude": "bin/cli.js",
|
|
@@ -114,9 +114,9 @@ If constitution found → scan plan steps against non-negotiables:
|
|
|
114
114
|
- Flag any plan step that could violate a rule
|
|
115
115
|
- Add a note to flagged steps: `⚠ Constitution check: may conflict with "{rule}" — verify before implementing`
|
|
116
116
|
|
|
117
|
-
If code-rules found → read
|
|
118
|
-
- The plan must respect the declared architecture pattern (Clean Architecture / DDD / MVC / etc.)
|
|
119
|
-
- If a plan step would introduce a pattern that conflicts with the architecture
|
|
117
|
+
If code-rules found → read the file header line (`# Architecture: {pattern}`):
|
|
118
|
+
- The plan must respect the declared architecture pattern (Clean Architecture / DDD / MVC / feature-based / etc.)
|
|
119
|
+
- If a plan step would introduce a pattern that conflicts with the declared architecture — flag it
|
|
120
120
|
- Add note: `⚠ Code rules: this step should follow {architecture pattern} — verify approach before implementing`
|
|
121
121
|
|
|
122
122
|
Then run `/tasks` to show dependency waves:
|
|
@@ -127,69 +127,50 @@ Next: Run /tasks to see which plan steps can run in parallel
|
|
|
127
127
|
|
|
128
128
|
---
|
|
129
129
|
|
|
130
|
-
##
|
|
131
|
-
|
|
132
|
-
**ExitPlanMode**
|
|
133
|
-
|
|
134
|
-
Present the plan and STOP. Do not write any code.
|
|
135
|
-
|
|
136
|
-
Ask the user: **"Approve this plan? (yes / change step N / cancel)"**
|
|
130
|
+
## Parallel Planning — Task Classifier + Wave Assignment (ALL modes)
|
|
137
131
|
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
132
|
+
**Runs in both interactive and copilot mode.**
|
|
133
|
+
Produces the milestone set and wave structure that Step 3c visualizes.
|
|
134
|
+
In copilot mode, the orchestrator dispatches directly from this output.
|
|
141
135
|
|
|
142
|
-
|
|
136
|
+
**Mode detection:**
|
|
137
|
+
```bash
|
|
138
|
+
[ -f .claude/copilot-intent.md ] && echo "COPILOT_MODE" || echo "INTERACTIVE_MODE"
|
|
139
|
+
```
|
|
143
140
|
|
|
144
|
-
|
|
141
|
+
### Task Classifier — Zero-Conflict Milestone Design (REQUIRED before wave assignment)
|
|
145
142
|
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
When $ARGUMENTS points to a spec file (`.claude/specs/*.md`) OR contains a named feature:
|
|
143
|
+
**Run this BEFORE creating milestones.** Groups coupled work together so parallel dispatch is safe by construction — not by detection after the fact.
|
|
149
144
|
|
|
145
|
+
**Step 0: Greenfield check**
|
|
150
146
|
```bash
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
# Determine next feature number
|
|
155
|
-
NEXT_N=$(ls .claude/features/ 2>/dev/null | grep -c '^' || echo 0)
|
|
156
|
-
N=$(printf '%02d' $((NEXT_N + 1)))
|
|
157
|
-
SLUG=$(basename "$ARGUMENTS" .md 2>/dev/null || echo "$ARGUMENTS" | tr '[:upper:]' '[:lower:]' | tr ' ' '-' | tr -cd 'a-z0-9-' | cut -c1-40)
|
|
158
|
-
FEATURE_DIR=".claude/features/${N}-${SLUG}"
|
|
147
|
+
SRC_COUNT=$(find src/ app/ lib/ -type f 2>/dev/null | wc -l 2>/dev/null || echo 0)
|
|
148
|
+
echo "source_files=$SRC_COUNT"
|
|
159
149
|
```
|
|
150
|
+
If source_files < 10 → greenfield project. Force Wave 1 = all foundation work (schema, config, shared utils, types) as a SINGLE milestone regardless of feature count. Parallel only unlocks from Wave 2 onward, after the foundation exists and greps have real files to scan.
|
|
160
151
|
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
mkdir -p "$FEATURE_DIR"
|
|
164
|
-
cp "$ARGUMENTS" "$FEATURE_DIR/spec.md"
|
|
165
|
-
```
|
|
152
|
+
**Step 1: List raw work items**
|
|
153
|
+
From the intent/spec, enumerate ALL features, endpoints, models, UI pages, and background jobs as raw items. Do not group yet — just list everything the project needs.
|
|
166
154
|
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
```
|
|
155
|
+
**Step 2: Coupling analysis — merge rule**
|
|
156
|
+
For each pair of raw work items, check if they share ANY of:
|
|
157
|
+
- Same database table (both CREATE or ALTER the same table)
|
|
158
|
+
- Same config file (`package.json`, `tsconfig.json`, `prisma/schema.prisma`, `docker-compose.yml`, `go.mod`, `Cargo.toml`)
|
|
159
|
+
- Same utility module (both CREATE or MODIFY files in `utils/`, `shared/`, `common/`, `lib/`, `helpers/`)
|
|
160
|
+
- Same API contract (one produces an endpoint, the other consumes it within the same feature boundary)
|
|
174
161
|
|
|
175
|
-
|
|
176
|
-
Each feature directory is self-contained: `spec.md` + `plan.md` + any generated artifacts.
|
|
162
|
+
If any coupling exists → merge those two items into ONE milestone. Repeat until no same-wave pair shares any resource.
|
|
177
163
|
|
|
178
|
-
**
|
|
164
|
+
**Step 3: Independence check — split rule**
|
|
165
|
+
Work items that share NONE of the above → separate milestones, `Parallel: yes` candidate.
|
|
179
166
|
|
|
180
|
-
|
|
167
|
+
**Result:** Every milestone is either:
|
|
168
|
+
- **Fat milestone** — all coupled work together. One agent handles everything that would otherwise conflict. Larger task, zero parallel risk.
|
|
169
|
+
- **Thin milestone** — fully independent. Parallel-safe by construction, not by detection.
|
|
181
170
|
|
|
182
|
-
|
|
171
|
+
Proceed to Layer 1 with these merged milestones — not with raw work items.
|
|
183
172
|
|
|
184
|
-
|
|
185
|
-
- Skip the approval gate (Step 4) — copilot operates autonomously
|
|
186
|
-
- Write the plan to `.claude/plan.md` in the structured format defined in `plan-tracker.md`
|
|
187
|
-
- Read `.claude/capabilities/shared/plan-tracker.md` for the exact format
|
|
188
|
-
- Each milestone = one logical unit of work (1-3 files, one commit)
|
|
189
|
-
- Include `Depends:` for milestones that require prior work
|
|
190
|
-
- Include `Files:` with expected paths
|
|
191
|
-
- Include `Commit:` with conventional commit format
|
|
192
|
-
- Write `## Summary` with counts at the bottom
|
|
173
|
+
---
|
|
193
174
|
|
|
194
175
|
### Parallel Optimization Pass — Layer 1 (REQUIRED before writing plan.md)
|
|
195
176
|
|
|
@@ -231,7 +212,7 @@ both need to CREATE or MODIFY files there → set `Parallel: no` for both and ad
|
|
|
231
212
|
**Do NOT spawn problem-architect here.** The grep is sufficient for Layer 1. Problem-architect
|
|
232
213
|
runs after plan.md is written and handles the cases Layer 1 misses.
|
|
233
214
|
|
|
234
|
-
**Step 4: Set Dirs: and Parallel: fields
|
|
215
|
+
**Step 4: Set Dirs: and Parallel: fields**
|
|
235
216
|
|
|
236
217
|
```
|
|
237
218
|
- Dirs: top-level directories this milestone exclusively owns
|
|
@@ -249,6 +230,140 @@ Wave 3: M6 (integration/E2E) — Parallel: no
|
|
|
249
230
|
|
|
250
231
|
---
|
|
251
232
|
|
|
233
|
+
## Step 3c: Parallel Dispatch Visualization
|
|
234
|
+
|
|
235
|
+
After classifier + Layer 1 complete, render the dispatch map:
|
|
236
|
+
|
|
237
|
+
```
|
|
238
|
+
══════════════════════════════════════════════════════
|
|
239
|
+
Parallel Dispatch Plan
|
|
240
|
+
══════════════════════════════════════════════════════
|
|
241
|
+
|
|
242
|
+
Wave 1 (sequential — foundation)
|
|
243
|
+
┌─────────────────────────────────────────────────┐
|
|
244
|
+
│ M1: {title} │
|
|
245
|
+
│ Dirs: {dirs} │
|
|
246
|
+
│ Parallel: no (foundation — must run first)│
|
|
247
|
+
└─────────────────────────────────────────────────┘
|
|
248
|
+
│
|
|
249
|
+
▼
|
|
250
|
+
Wave 2 (parallel — {N} agents simultaneously)
|
|
251
|
+
┌──────────────┐ ┌──────────────┐ ┌──────────────┐
|
|
252
|
+
│ M2: {title} │ │ M3: {title} │ │ M4: {title} │
|
|
253
|
+
│ {dirs} │ │ {dirs} │ │ {dirs} │
|
|
254
|
+
│ Parallel: ✓ │ │ Parallel: ✓ │ │ Parallel: ✓ │
|
|
255
|
+
└──────────────┘ └──────────────┘ └──────────────┘
|
|
256
|
+
│
|
|
257
|
+
▼
|
|
258
|
+
(continue for each wave)
|
|
259
|
+
|
|
260
|
+
══════════════════════════════════════════════════
|
|
261
|
+
Summary
|
|
262
|
+
──────────────────────────────────────────────────
|
|
263
|
+
Total milestones: {N}
|
|
264
|
+
Waves: {N}
|
|
265
|
+
Max parallel: {N} agents (Wave {N})
|
|
266
|
+
Sequential estimate: {total} sessions (~{total×30}min)
|
|
267
|
+
Parallel estimate: {waves} waves (~{waves×30}min)
|
|
268
|
+
Time saved: ~{pct}%
|
|
269
|
+
|
|
270
|
+
Merged by classifier:
|
|
271
|
+
• {item A} + {item B} → {MN} ({reason — e.g. shared schema.prisma})
|
|
272
|
+
|
|
273
|
+
Split for parallelism:
|
|
274
|
+
• {item} split from {other item} ({reason — e.g. different dirs, no shared files})
|
|
275
|
+
══════════════════════════════════════════════════
|
|
276
|
+
```
|
|
277
|
+
|
|
278
|
+
**Rules:**
|
|
279
|
+
- Show every wave, even single-milestone waves
|
|
280
|
+
- Side-by-side boxes for parallel milestones in the same wave; single wide box for sequential
|
|
281
|
+
- "Sequential estimate" = `total milestones × 30min`; "Parallel estimate" = `wave count × 30min`
|
|
282
|
+
- Time saved % = `(sequential - parallel) / sequential × 100`
|
|
283
|
+
- "Merged by classifier" lists only merges that changed the plan (not items that were always single)
|
|
284
|
+
- "Split for parallelism" lists items the classifier separated into different milestones
|
|
285
|
+
|
|
286
|
+
**In copilot mode:** write the visualization as a comment block at the top of plan.md:
|
|
287
|
+
```markdown
|
|
288
|
+
<!-- Parallel Dispatch Plan
|
|
289
|
+
Wave 1 (seq): M1 — foundation
|
|
290
|
+
Wave 2 (parallel, 4 agents): M2 M3 M4 M5
|
|
291
|
+
Wave 3 (parallel, 3 agents): M6 M7 M8
|
|
292
|
+
Wave 4 (seq): M9 — integration
|
|
293
|
+
Sequential: ~270min | Parallel: ~120min | Saved: ~56%
|
|
294
|
+
-->
|
|
295
|
+
```
|
|
296
|
+
|
|
297
|
+
**In interactive mode:** show the visualization before the approval gate.
|
|
298
|
+
Let the user adjust wave grouping: "move M5 to Wave 3" → adjust Depends:, re-render, re-present.
|
|
299
|
+
|
|
300
|
+
---
|
|
301
|
+
|
|
302
|
+
## Step 4: Approval Gate
|
|
303
|
+
|
|
304
|
+
**ExitPlanMode**
|
|
305
|
+
|
|
306
|
+
Present the plan and STOP. Do not write any code.
|
|
307
|
+
|
|
308
|
+
Ask the user: **"Approve this plan? (yes / change step N / cancel)"**
|
|
309
|
+
|
|
310
|
+
- `yes` → create TaskCreate for each step, then state: "Run /add to execute each task."
|
|
311
|
+
- `change step N` → revise that step, re-present, ask again
|
|
312
|
+
- `cancel` → discard, no tasks created
|
|
313
|
+
|
|
314
|
+
Tasks are only created after explicit approval. This is the point of /blueprint.
|
|
315
|
+
|
|
316
|
+
---
|
|
317
|
+
|
|
318
|
+
## Feature-Scoped Mode (Optional)
|
|
319
|
+
|
|
320
|
+
When $ARGUMENTS points to a spec file (`.claude/specs/*.md`) OR contains a named feature:
|
|
321
|
+
|
|
322
|
+
```bash
|
|
323
|
+
# Detect spec file
|
|
324
|
+
[ -f "$ARGUMENTS" ] && echo "spec-mode" || echo "inline-mode"
|
|
325
|
+
|
|
326
|
+
# Determine next feature number
|
|
327
|
+
NEXT_N=$(ls .claude/features/ 2>/dev/null | grep -c '^' || echo 0)
|
|
328
|
+
N=$(printf '%02d' $((NEXT_N + 1)))
|
|
329
|
+
SLUG=$(basename "$ARGUMENTS" .md 2>/dev/null || echo "$ARGUMENTS" | tr '[:upper:]' '[:lower:]' | tr ' ' '-' | tr -cd 'a-z0-9-' | cut -c1-40)
|
|
330
|
+
FEATURE_DIR=".claude/features/${N}-${SLUG}"
|
|
331
|
+
```
|
|
332
|
+
|
|
333
|
+
If spec file provided → create a feature-scoped directory:
|
|
334
|
+
```bash
|
|
335
|
+
mkdir -p "$FEATURE_DIR"
|
|
336
|
+
cp "$ARGUMENTS" "$FEATURE_DIR/spec.md"
|
|
337
|
+
```
|
|
338
|
+
|
|
339
|
+
Write the plan to `$FEATURE_DIR/plan.md` (same format as `.claude/plan.md`).
|
|
340
|
+
Also write a summary entry to `.claude/plan.md` linking to the feature:
|
|
341
|
+
```markdown
|
|
342
|
+
## Feature: {N}-{slug}
|
|
343
|
+
Files: .claude/features/{N}-{slug}/plan.md
|
|
344
|
+
Status: pending
|
|
345
|
+
```
|
|
346
|
+
|
|
347
|
+
This keeps the global plan.md as the tracker while feature details live in their own directory.
|
|
348
|
+
Each feature directory is self-contained: `spec.md` + `plan.md` + any generated artifacts.
|
|
349
|
+
|
|
350
|
+
**When NOT to use feature mode:** quick fixes, single-file changes, copilot mode (uses global plan.md).
|
|
351
|
+
|
|
352
|
+
---
|
|
353
|
+
|
|
354
|
+
## Copilot Mode — plan.md Format + Layer 2 Validation
|
|
355
|
+
|
|
356
|
+
When running inside `/copilot` (detected by: `.claude/copilot-intent.md` exists):
|
|
357
|
+
- Skip the approval gate (Step 4) — copilot operates autonomously
|
|
358
|
+
- Task Classifier + Layer 1 already ran in the "Parallel Planning" section above
|
|
359
|
+
- Write the plan to `.claude/plan.md` using the classified milestones
|
|
360
|
+
- Read `.claude/capabilities/shared/plan-tracker.md` for the exact format
|
|
361
|
+
- Each milestone = one logical unit of work (1-3 files, one commit)
|
|
362
|
+
- Include `Depends:` for milestones that require prior work
|
|
363
|
+
- Include `Files:` with expected paths
|
|
364
|
+
- Include `Commit:` with conventional commit format
|
|
365
|
+
- Write `## Summary` with counts at the bottom
|
|
366
|
+
|
|
252
367
|
### Problem-Architect Validation — Layer 2 (after plan.md is written)
|
|
253
368
|
|
|
254
369
|
Layer 2 refines Layer 1 with exact file-level analysis. Catches shared utilities that
|