hzl-cli 1.18.5 → 1.18.6
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/README.md +16 -15
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -383,25 +383,26 @@ Built-in task tracking (if available) is fine for single-session work you'll com
|
|
|
383
383
|
- User hasn't mentioned persistence or multi-agent needs
|
|
384
384
|
|
|
385
385
|
**Structure:**
|
|
386
|
-
- **Project** = stable container (
|
|
386
|
+
- **Project** = stable container (one per repo). Check `hzl project list` before creating.
|
|
387
387
|
- **Task** = top-level work item (often a feature). Use `--depends-on` to sequence separate tasks.
|
|
388
388
|
- **Subtask** = breakdown of a task into parts (`--parent <id>`). Max 1 level of nesting.
|
|
389
389
|
|
|
390
|
+
**⚠️ Anti-pattern: project sprawl**
|
|
391
|
+
```bash
|
|
392
|
+
hzl project create "query-perf" # ❌ Feature ≠ project
|
|
393
|
+
```
|
|
394
|
+
Features are parent tasks, not projects:
|
|
395
|
+
```bash
|
|
396
|
+
hzl task add "Query perf fixes" -P myrepo # Parent task
|
|
397
|
+
hzl task add "Fix N+1" --parent <parent-id> # Subtask
|
|
398
|
+
```
|
|
399
|
+
|
|
390
400
|
**Workflow:**
|
|
391
|
-
1. `hzl project list`
|
|
392
|
-
2.
|
|
393
|
-
3.
|
|
394
|
-
4.
|
|
395
|
-
|
|
396
|
-
**Key commands:**
|
|
397
|
-
- `hzl task add "<title>" -P <project> [--depends-on <id>] [--parent <id>] [--links <file>]`
|
|
398
|
-
- `hzl task claim <id> [--author <name>] [--agent-id <id>] [--lease 30]`
|
|
399
|
-
- `hzl task checkpoint <id> "<message>" [--progress <0-100>]`
|
|
400
|
-
- `hzl task progress <id> <value>` (set progress without checkpoint)
|
|
401
|
-
- `hzl task block <id> [--reason "<why>"]` (mark as blocked)
|
|
402
|
-
- `hzl task unblock <id>` (return to in_progress)
|
|
403
|
-
- `hzl task complete <id>`
|
|
404
|
-
- `hzl task next --project <project>` (returns next available; never returns parent tasks)
|
|
401
|
+
1. `hzl project list` — **Always check first. Reuse existing repo project.**
|
|
402
|
+
2. Only create a project for a NEW repo (not a feature).
|
|
403
|
+
3. For multi-step work: create parent task, then subtasks with `--parent`.
|
|
404
|
+
4. Claim before work, checkpoint progress, complete when done.
|
|
405
|
+
5. Use `--json` for scripted output.
|
|
405
406
|
|
|
406
407
|
**⚠️ DESTRUCTIVE - Never run without explicit user request:**
|
|
407
408
|
- `hzl task prune` — **PERMANENTLY DELETES** old done/archived tasks. No undo.
|