helloagents 3.0.28 → 3.0.30
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/.claude-plugin/plugin.json +1 -1
- package/.codex-plugin/plugin.json +1 -1
- package/README.md +50 -37
- package/README_CN.md +50 -35
- package/bootstrap-lite.md +8 -8
- package/bootstrap.md +12 -10
- package/gemini-extension.json +1 -1
- package/install.ps1 +5 -5
- package/install.sh +5 -5
- package/package.json +1 -1
- package/scripts/advisor-state.mjs +1 -1
- package/scripts/cli-branch.mjs +7 -3
- package/scripts/cli-codex.mjs +6 -5
- package/scripts/cli-deepseek.mjs +131 -0
- package/scripts/cli-doctor-codex.mjs +10 -5
- package/scripts/cli-doctor-render.mjs +16 -0
- package/scripts/cli-doctor.mjs +78 -5
- package/scripts/cli-host-detect.mjs +29 -0
- package/scripts/cli-hosts.mjs +8 -0
- package/scripts/cli-lifecycle-hosts.mjs +28 -2
- package/scripts/cli-lifecycle.mjs +1 -1
- package/scripts/cli-messages.mjs +28 -15
- package/scripts/cli-runtime-carrier.mjs +3 -3
- package/scripts/cli-utils.mjs +9 -0
- package/scripts/notify-events.mjs +1 -0
- package/scripts/notify-route.mjs +3 -4
- package/scripts/notify-source.mjs +1 -0
- package/scripts/notify.mjs +6 -1
- package/scripts/plan-contract.mjs +1 -1
- package/scripts/project-storage.mjs +4 -4
- package/scripts/replay-state.mjs +22 -4
- package/scripts/runtime-context.mjs +14 -2
- package/scripts/runtime-scope.mjs +144 -2
- package/scripts/session-capsule.mjs +14 -0
- package/scripts/turn-state.mjs +7 -0
- package/skills/commands/build/SKILL.md +1 -1
- package/skills/commands/commit/SKILL.md +2 -2
- package/skills/commands/global/SKILL.md +71 -0
- package/skills/commands/help/SKILL.md +16 -15
- package/skills/commands/init/SKILL.md +14 -31
- package/skills/commands/wiki/SKILL.md +1 -1
- package/skills/hello-review/SKILL.md +1 -1
- package/skills/hello-ui/SKILL.md +5 -5
- package/skills/helloagents/SKILL.md +6 -5
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "helloagents",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.30",
|
|
4
4
|
"description": "HelloAGENTS — The orchestration kernel that makes any AI CLI smarter. Adds intelligent routing, quality verification (Ralph Loop), safety guards, and notifications.",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "HelloWind",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "helloagents",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.30",
|
|
4
4
|
"description": "HelloAGENTS — Quality-driven orchestration kernel for AI CLIs with intelligent routing, quality verification (Ralph Loop), safety guards, and notifications.",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "HelloWind",
|
package/README.md
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
|
|
9
9
|
**A workflow layer for AI coding CLIs: skills, project knowledge, delivery checks, safer config writes, and resumable execution.**
|
|
10
10
|
|
|
11
|
-
[](./package.json)
|
|
12
12
|
[](https://www.npmjs.com/package/helloagents)
|
|
13
13
|
[](./package.json)
|
|
14
14
|
[](./skills)
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
|
|
48
48
|
AI coding CLIs can move fast, but they can also stop at advice, skip checks, lose project context, or report completion before the work is really done.
|
|
49
49
|
|
|
50
|
-
HelloAGENTS adds a workflow layer on top of Claude Code, Gemini CLI, and
|
|
50
|
+
HelloAGENTS adds a workflow layer on top of Claude Code, Gemini CLI, Codex CLI, and DeepSeek TUI. It helps the agent choose the right path, use task-specific quality skills, keep a project knowledge base, and verify work before delivery.
|
|
51
51
|
|
|
52
52
|
<table>
|
|
53
53
|
<tr>
|
|
@@ -100,7 +100,7 @@ HelloAGENTS includes 14 `hello-*` skills. They are loaded only when the current
|
|
|
100
100
|
| `hello-reflect` | reusable lessons and knowledge updates |
|
|
101
101
|
|
|
102
102
|
All UI work first follows the shared UI quality baseline.
|
|
103
|
-
In global mode,
|
|
103
|
+
In global mode, in initialized projects, or in explicit UI workflows, `hello-ui` adds deeper design-contract execution, design-system mapping, and visual validation on top of that baseline.
|
|
104
104
|
When visual evidence is required, HelloAGENTS records it in the current session `artifacts/visual.json`.
|
|
105
105
|
|
|
106
106
|
### 2) Commands for different work styles
|
|
@@ -116,7 +116,8 @@ Commands run inside the AI CLI chat with a `~` prefix. The command skill is read
|
|
|
116
116
|
| `~prd` | Modern product requirements document through guided dimension-by-dimension exploration |
|
|
117
117
|
| `~loop` | Iterative improvement with metric, guard command, keep/revert decisions |
|
|
118
118
|
| `~wiki` | Create or sync only the project knowledge base |
|
|
119
|
-
| `~init` |
|
|
119
|
+
| `~init` | Same as `~wiki` |
|
|
120
|
+
| `~global` | Initialize project-level global mode |
|
|
120
121
|
| `~test` | Write tests for a target module or recent change |
|
|
121
122
|
| `~verify` | Review, run verification commands, fix failures, and close out |
|
|
122
123
|
| `~commit` | Generate a conventional commit message and sync knowledge |
|
|
@@ -146,9 +147,9 @@ The knowledge base helps future turns understand the repo without re-discovering
|
|
|
146
147
|
| `plans/<feature>/` | active plan packages |
|
|
147
148
|
| `archive/` | archived plan packages |
|
|
148
149
|
|
|
149
|
-
`~wiki`
|
|
150
|
+
`~wiki` and `~init` create or update the knowledge base only.
|
|
150
151
|
|
|
151
|
-
`~
|
|
152
|
+
`~global` does more: it creates or updates the knowledge base, writes the project-level global-mode marker, and refreshes project-level HelloAGENTS package-root links for supported hosts.
|
|
152
153
|
|
|
153
154
|
### 4) Structured plan packages
|
|
154
155
|
|
|
@@ -264,7 +265,7 @@ Type:
|
|
|
264
265
|
~help
|
|
265
266
|
```
|
|
266
267
|
|
|
267
|
-
You should see the
|
|
268
|
+
You should see the 14 chat commands and the current settings.
|
|
268
269
|
|
|
269
270
|
### 4) Create project knowledge
|
|
270
271
|
|
|
@@ -274,10 +275,10 @@ For knowledge base only:
|
|
|
274
275
|
~wiki
|
|
275
276
|
```
|
|
276
277
|
|
|
277
|
-
For
|
|
278
|
+
For project-level global mode:
|
|
278
279
|
|
|
279
280
|
```text
|
|
280
|
-
~
|
|
281
|
+
~global
|
|
281
282
|
```
|
|
282
283
|
|
|
283
284
|
## CLI Management
|
|
@@ -305,13 +306,14 @@ Supported targets:
|
|
|
305
306
|
- `claude`
|
|
306
307
|
- `gemini`
|
|
307
308
|
- `codex`
|
|
309
|
+
- `deepseek`
|
|
308
310
|
- `--all`
|
|
309
311
|
|
|
310
312
|
If you omit `--standby` or `--global`, HelloAGENTS first reuses the tracked/detected mode for that CLI, then falls back to `standby`.
|
|
311
313
|
|
|
312
314
|
### npm and one-shot script entries
|
|
313
315
|
|
|
314
|
-
Use these when you do not want to depend on the `helloagents` binary being available during package updates. In `HELLOAGENTS=target[:mode]`, target can be `all`, `claude`, `gemini`, or `
|
|
316
|
+
Use these when you do not want to depend on the `helloagents` binary being available during package updates. In `HELLOAGENTS=target[:mode]`, target can be `all`, `claude`, `gemini`, `codex`, or `deepseek`; mode can be `standby` or `global`. For install, an omitted mode is treated as `standby`. For update, cleanup, uninstall, and branch switching, an omitted mode is forwarded unchanged so HelloAGENTS can reuse the tracked or detected mode for that CLI first.
|
|
315
317
|
|
|
316
318
|
Host configs use the stable `helloagents-js` entrypoint and runtime root `~/.helloagents/helloagents`, so Node global package paths can change without breaking managed hooks or Codex `notify`. Codex hooks use standalone `~/.codex/hooks.json` instead of adding large hook blocks to `config.toml`, and Codex global plugin roots plus plugin cache now link back to that same stable runtime root.
|
|
317
319
|
|
|
@@ -330,7 +332,7 @@ HELLOAGENTS=codex:global npm install -g helloagents
|
|
|
330
332
|
HELLOAGENTS=claude:standby npm update -g helloagents
|
|
331
333
|
|
|
332
334
|
# Switch to the beta branch and sync all CLIs in standby mode
|
|
333
|
-
HELLOAGENTS=all:standby npm install -g github
|
|
335
|
+
HELLOAGENTS=all:standby npm install -g https://github.com/hellowind777/helloagents/archive/refs/heads/beta.tar.gz
|
|
334
336
|
|
|
335
337
|
# Clean Gemini integration before package uninstall
|
|
336
338
|
npm explore -g helloagents -- npm run uninstall -- gemini --standby
|
|
@@ -350,7 +352,7 @@ $env:HELLOAGENTS="codex:global"; npm install -g helloagents
|
|
|
350
352
|
$env:HELLOAGENTS="claude:standby"; npm update -g helloagents
|
|
351
353
|
|
|
352
354
|
# Switch to the beta branch and sync all CLIs in standby mode
|
|
353
|
-
$env:HELLOAGENTS="all:standby"; npm install -g github
|
|
355
|
+
$env:HELLOAGENTS="all:standby"; npm install -g https://github.com/hellowind777/helloagents/archive/refs/heads/beta.tar.gz
|
|
354
356
|
|
|
355
357
|
# Clean Gemini integration before package uninstall
|
|
356
358
|
npm explore -g helloagents -- npm run uninstall -- gemini --standby
|
|
@@ -415,13 +417,13 @@ The PowerShell wrapper now forwards the same npm arguments as `install.sh`, so i
|
|
|
415
417
|
```bash
|
|
416
418
|
helloagents switch-branch beta
|
|
417
419
|
helloagents switch-branch beta claude --global
|
|
418
|
-
helloagents branch
|
|
420
|
+
helloagents branch beta --all --standby
|
|
419
421
|
```
|
|
420
422
|
|
|
421
423
|
Use normal npm commands when you only want to change the package and not sync host CLIs immediately:
|
|
422
424
|
|
|
423
425
|
```bash
|
|
424
|
-
npm install -g github
|
|
426
|
+
npm install -g https://github.com/hellowind777/helloagents/archive/refs/heads/beta.tar.gz
|
|
425
427
|
npm update -g helloagents
|
|
426
428
|
npm explore -g helloagents -- npm run uninstall -- --all --standby
|
|
427
429
|
npm uninstall -g helloagents
|
|
@@ -434,6 +436,7 @@ npm uninstall -g helloagents
|
|
|
434
436
|
| Claude Code | `~/.claude/CLAUDE.md`, `~/.claude/settings.json`, `~/.claude/helloagents -> ~/.helloagents/helloagents` | removes managed marker block, HelloAGENTS hooks/permissions, and symlink |
|
|
435
437
|
| Gemini CLI | `~/.gemini/GEMINI.md`, `~/.gemini/settings.json`, `~/.gemini/helloagents -> ~/.helloagents/helloagents` | removes managed marker block, HelloAGENTS hooks, and symlink |
|
|
436
438
|
| Codex CLI | `~/.codex/AGENTS.md`, `~/.codex/config.toml`, `~/.codex/hooks.json`, `~/.codex/helloagents -> ~/.helloagents/helloagents`, managed backups | removes managed marker block, managed config keys, managed hooks, symlink, and the latest managed backup |
|
|
439
|
+
| DeepSeek TUI | `~/.deepseek/AGENTS.md`, `~/.deepseek/helloagents -> ~/.helloagents/helloagents` | removes managed marker block and symlink |
|
|
437
440
|
|
|
438
441
|
### Global mode files
|
|
439
442
|
|
|
@@ -442,6 +445,7 @@ npm uninstall -g helloagents
|
|
|
442
445
|
| Claude Code | native plugin install | managed by Claude Code plugin system |
|
|
443
446
|
| Gemini CLI | native extension install | managed by Gemini extension system |
|
|
444
447
|
| Codex CLI | native local-plugin chain | `~/.agents/plugins/marketplace.json`, `~/plugins/helloagents/ -> ~/.helloagents/helloagents`, `~/.codex/plugins/cache/local-plugins/helloagents/local/ -> ~/.helloagents/helloagents`, `~/.codex/config.toml`, `~/.codex/hooks.json`, `~/.codex/helloagents -> ~/.helloagents/helloagents` |
|
|
448
|
+
| DeepSeek TUI | managed AGENTS carrier | `~/.deepseek/AGENTS.md`, `~/.deepseek/helloagents -> ~/.helloagents/helloagents` |
|
|
445
449
|
|
|
446
450
|
In global mode, HelloAGENTS now attempts the host-native install commands automatically. If a host command is unavailable, run the same commands manually:
|
|
447
451
|
|
|
@@ -455,6 +459,8 @@ For Claude Code, the CLI also tries the equivalent `claude plugin marketplace ad
|
|
|
455
459
|
|
|
456
460
|
Codex global mode is installed by HelloAGENTS automatically through the local-plugin path.
|
|
457
461
|
|
|
462
|
+
DeepSeek TUI follows its native `AGENTS.md` model. Standby writes the lite carrier to `~/.deepseek/AGENTS.md`; global writes the full carrier plus `<!-- HELLOAGENTS_PROFILE: full -->`. HelloAGENTS doctor also reads `deepseek doctor --json` when the `deepseek` command is available and surfaces its summary next to HelloAGENTS-managed checks.
|
|
463
|
+
|
|
458
464
|
## Commands in Chat
|
|
459
465
|
|
|
460
466
|
### Typical flows
|
|
@@ -467,14 +473,14 @@ Codex global mode is installed by HelloAGENTS automatically through the local-pl
|
|
|
467
473
|
| Implement from a clear request or active plan | `~build "finish task 2 in the plan"` |
|
|
468
474
|
| Build a full product requirement document | `~prd "modern dashboard for operations team"` |
|
|
469
475
|
| Iterate toward a metric | `~loop "reduce bundle size" --metric "npm run size" --direction lower` |
|
|
470
|
-
| Create or refresh project knowledge only | `~wiki` |
|
|
471
|
-
|
|
|
476
|
+
| Create or refresh project knowledge only | `~wiki` / `~init` |
|
|
477
|
+
| Initialize project-level global mode | `~global` |
|
|
472
478
|
| Validate current work | `~verify` |
|
|
473
479
|
| Generate commit message and sync knowledge | `~commit` |
|
|
474
480
|
|
|
475
|
-
###
|
|
481
|
+
### Knowledge base vs project-level global mode
|
|
476
482
|
|
|
477
|
-
In standby mode,
|
|
483
|
+
In standby mode, projects that are not initialized get lighter rules and explicit `~command` entry points. A project enters project-level global mode after `~global` writes `<!-- HELLOAGENTS_PROFILE: full -->`.
|
|
478
484
|
|
|
479
485
|
In global mode, HelloAGENTS applies full rules by default.
|
|
480
486
|
|
|
@@ -488,16 +494,13 @@ By default, project knowledge lives in the project:
|
|
|
488
494
|
.helloagents/
|
|
489
495
|
```
|
|
490
496
|
|
|
491
|
-
This directory
|
|
492
|
-
|
|
493
|
-
- the activation signal
|
|
494
|
-
- the local knowledge, plan, state, and runtime directory
|
|
497
|
+
This directory is the local knowledge, plan, state, and runtime directory.
|
|
495
498
|
|
|
496
499
|
### Repo-shared mode
|
|
497
500
|
|
|
498
501
|
When `project_store_mode = "repo-shared"`:
|
|
499
502
|
|
|
500
|
-
- local `.helloagents/` keeps
|
|
503
|
+
- local `.helloagents/` keeps project-local state and runtime files
|
|
501
504
|
- stable knowledge and plan files move to `~/.helloagents/projects/<repo-key>/`
|
|
502
505
|
- multiple worktrees of the same git repo can share the same stable knowledge
|
|
503
506
|
|
|
@@ -510,9 +513,9 @@ Runtime state and evidence remain local to the working project:
|
|
|
510
513
|
- `.helloagents/sessions/<workspace>/<session>/artifacts/*.json`
|
|
511
514
|
- `.helloagents/sessions/<workspace>/<session>/artifacts/loop-results.tsv`
|
|
512
515
|
|
|
513
|
-
###
|
|
516
|
+
### Temporary sessions outside project-local storage
|
|
514
517
|
|
|
515
|
-
|
|
518
|
+
For read-only work with no local output, if neither the current directory nor its parents contain a project-local `.helloagents/` directory, HelloAGENTS keeps short-lived runtime state under the user-level directory:
|
|
516
519
|
|
|
517
520
|
```text
|
|
518
521
|
~/.helloagents/runtime/<scope-key>/
|
|
@@ -520,15 +523,17 @@ If neither the current directory nor its parents contain an activated `.helloage
|
|
|
520
523
|
|
|
521
524
|
This only stores short-lived `capsule.json`, `events.jsonl`, and `artifacts/`. It is not project knowledge. Expired transient sessions are removed by TTL cleanup.
|
|
522
525
|
|
|
526
|
+
Once the task creates or modifies local files, or otherwise leaves local output in the current project, HelloAGENTS creates the project-local `.helloagents/sessions/.../STATE.md` automatically instead of keeping that task only in the user-level transient runtime.
|
|
527
|
+
|
|
523
528
|
### Knowledge creation rules
|
|
524
529
|
|
|
525
530
|
| Command or setting | Behavior |
|
|
526
531
|
|--------------------|----------|
|
|
527
|
-
| `~wiki` | creates or syncs the knowledge base only |
|
|
528
|
-
| `~
|
|
532
|
+
| `~wiki` / `~init` | creates or syncs the knowledge base only |
|
|
533
|
+
| `~global` | creates knowledge base plus project-level global-mode marker and package-root links |
|
|
529
534
|
| `kb_create_mode = 0` | disables automatic knowledge updates |
|
|
530
|
-
| `kb_create_mode = 1` |
|
|
531
|
-
| `kb_create_mode = 2` |
|
|
535
|
+
| `kb_create_mode = 1` | syncs knowledge automatically only when the KB already exists |
|
|
536
|
+
| `kb_create_mode = 2` | for coding tasks, auto-creates or syncs the KB when it already exists or the project is in global mode |
|
|
532
537
|
|
|
533
538
|
## Workflow and Delivery
|
|
534
539
|
|
|
@@ -616,7 +621,7 @@ Default shape:
|
|
|
616
621
|
| `notify_level` | `0` | `0` off, `1` desktop, `2` sound, `3` both |
|
|
617
622
|
| `ralph_loop_enabled` | `true` | run verification for explicit `~verify` / `~loop` or required closeout gates |
|
|
618
623
|
| `guard_enabled` | `true` | block dangerous commands |
|
|
619
|
-
| `kb_create_mode` | `1` |
|
|
624
|
+
| `kb_create_mode` | `1` | `0` off, `1` sync existing KB automatically, `2` auto-create or sync the KB for coding tasks |
|
|
620
625
|
| `project_store_mode` | `"local"` | `local` or `repo-shared` |
|
|
621
626
|
| `auto_commit_enabled` | `true` | auto-create a local commit at closeout when verification passed and the working tree changed; `false` skips only the automatic commit |
|
|
622
627
|
| `commit_attribution` | `""` | optional text appended to commit messages |
|
|
@@ -660,6 +665,14 @@ Codex is rules-file driven by default.
|
|
|
660
665
|
- `/goal` remains Codex-native. Enable it explicitly with `helloagents codex goals enable` when long-running plan execution is needed
|
|
661
666
|
- Goal-aware commands resume from `tasks.md`, `contract.json`, and `state_path`; they do not create goals automatically or mark them complete before HelloAGENTS verification and closeout
|
|
662
667
|
|
|
668
|
+
### DeepSeek TUI
|
|
669
|
+
|
|
670
|
+
- standby writes `~/.deepseek/AGENTS.md`
|
|
671
|
+
- standby creates `~/.deepseek/helloagents -> ~/.helloagents/helloagents`
|
|
672
|
+
- global keeps using `~/.deepseek/AGENTS.md`, but writes the full HelloAGENTS carrier with `<!-- HELLOAGENTS_PROFILE: full -->`
|
|
673
|
+
- project-level initialized projects still rely on the project carrier marker, so DeepSeek follows the same initialized-project behavior as Codex
|
|
674
|
+
- `helloagents doctor` merges HelloAGENTS-managed checks with the summary from `deepseek doctor --json` when that command exists
|
|
675
|
+
|
|
663
676
|
## Verification
|
|
664
677
|
|
|
665
678
|
Run all tests:
|
|
@@ -668,15 +681,15 @@ Run all tests:
|
|
|
668
681
|
npm test
|
|
669
682
|
```
|
|
670
683
|
|
|
671
|
-
The current suite
|
|
684
|
+
The current suite covers:
|
|
672
685
|
|
|
673
686
|
- install, update, cleanup, uninstall, branch switching, and mode switching
|
|
674
687
|
- one-shot shell and PowerShell lifecycle dispatch, plus wrapper mode-routing rules for install, update, cleanup, uninstall, and branch switching
|
|
675
|
-
- Claude, Gemini,
|
|
688
|
+
- Claude, Gemini, Codex, and DeepSeek host integration behavior
|
|
676
689
|
- Codex managed `model_instructions_file`, `notify`, `hooks.json`, hook trust state, local plugin, marketplace, and cache behavior
|
|
677
690
|
- Codex cleanup of legacy managed notify variants on Windows and canonical managed notify restoration rules
|
|
678
691
|
- Codex `/goal` feature toggles, long-running route context, and goal-aware command contracts
|
|
679
|
-
- `helloagents doctor
|
|
692
|
+
- `helloagents doctor`, including DeepSeek native doctor summary handling
|
|
680
693
|
- project storage and `repo-shared` behavior
|
|
681
694
|
- session-scoped `state_path`, runtime signals, and evidence
|
|
682
695
|
- runtime injection, routing, guard, verification, visual evidence, delivery gates, closeout de-duplication, and successful-mode tracking after native install failures
|
|
@@ -697,15 +710,15 @@ Both.
|
|
|
697
710
|
- `skills/` defines task-specific behavior
|
|
698
711
|
- `scripts/` provides runtime helpers for routing, guard, notify, verification, state, and evidence
|
|
699
712
|
|
|
700
|
-
### Should I use `~wiki
|
|
713
|
+
### Should I use `~wiki`, `~init`, or `~global`?
|
|
701
714
|
|
|
702
|
-
Use `~wiki` when you only want project knowledge.
|
|
715
|
+
Use `~wiki` or `~init` when you only want project knowledge.
|
|
703
716
|
|
|
704
|
-
Use `~
|
|
717
|
+
Use `~global` when you also want project-level global mode.
|
|
705
718
|
|
|
706
719
|
### What is the difference between standby and global?
|
|
707
720
|
|
|
708
|
-
`standby` is lighter and explicit. It deploys rules to selected CLIs and keeps
|
|
721
|
+
`standby` is lighter and explicit. It deploys rules to selected CLIs and keeps project-level global mode behind `~global`.
|
|
709
722
|
|
|
710
723
|
`global` applies full rules broadly. Claude and Gemini use native plugin/extension installs. Codex uses the local-plugin path.
|
|
711
724
|
|
package/README_CN.md
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
|
|
9
9
|
**面向 AI 编码 CLI 的工作流层:技能、知识库、交付检查、更安全的配置写入,以及可恢复的执行流程。**
|
|
10
10
|
|
|
11
|
-
[](./package.json)
|
|
12
12
|
[](https://www.npmjs.com/package/helloagents)
|
|
13
13
|
[](./package.json)
|
|
14
14
|
[](./skills)
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
|
|
48
48
|
AI 编码 CLI 写代码很快,但也容易停在建议、跳过检查、丢失项目上下文,或在真正完成前就报告完成。
|
|
49
49
|
|
|
50
|
-
HelloAGENTS 叠加在 Claude Code、Gemini CLI 和
|
|
50
|
+
HelloAGENTS 叠加在 Claude Code、Gemini CLI、Codex CLI 和 DeepSeek TUI 之上,帮助模型选择合适流程、使用任务相关的质量技能、维护项目知识库,并在交付前完成验证。
|
|
51
51
|
|
|
52
52
|
<table>
|
|
53
53
|
<tr>
|
|
@@ -100,7 +100,7 @@ HelloAGENTS 内置 14 个 `hello-*` 技能。技能只在当前阶段需要时
|
|
|
100
100
|
| `hello-reflect` | 可复用经验和知识更新 |
|
|
101
101
|
|
|
102
102
|
所有 UI 任务都会先受共享的 UI 质量基线约束。
|
|
103
|
-
|
|
103
|
+
在全局模式、已初始化项目或明确的 UI 工作流里,`hello-ui` 会在该基线之上补充设计契约执行、设计系统映射与视觉验收。
|
|
104
104
|
当需要视觉证据时,HelloAGENTS 会写入当前会话的 `artifacts/visual.json`。
|
|
105
105
|
|
|
106
106
|
### 2)面向不同工作方式的命令
|
|
@@ -116,7 +116,8 @@ HelloAGENTS 内置 14 个 `hello-*` 技能。技能只在当前阶段需要时
|
|
|
116
116
|
| `~prd` | 通过逐维度讨论生成现代产品需求文档 |
|
|
117
117
|
| `~loop` | 设置指标和守卫命令,循环改进、保留或回滚 |
|
|
118
118
|
| `~wiki` | 只创建或同步项目知识库 |
|
|
119
|
-
| `~init` |
|
|
119
|
+
| `~init` | 同 `~wiki` |
|
|
120
|
+
| `~global` | 初始化项目级全局模式 |
|
|
120
121
|
| `~test` | 为指定模块或最近变更编写测试 |
|
|
121
122
|
| `~verify` | 审查、运行验证命令、修复失败并收尾 |
|
|
122
123
|
| `~commit` | 生成规范化提交信息并同步知识库 |
|
|
@@ -146,9 +147,9 @@ HelloAGENTS 可以在 `.helloagents/` 下创建和维护项目知识库。
|
|
|
146
147
|
| `plans/<feature>/` | 活跃方案包 |
|
|
147
148
|
| `archive/` | 已归档方案包 |
|
|
148
149
|
|
|
149
|
-
`~wiki` 只创建或更新知识库。
|
|
150
|
+
`~wiki` 和 `~init` 只创建或更新知识库。
|
|
150
151
|
|
|
151
|
-
`~
|
|
152
|
+
`~global` 做得更多:创建或更新知识库、写入项目级全局模式标记,并刷新各宿主项目级 HelloAGENTS 包根链接。
|
|
152
153
|
|
|
153
154
|
### 4)结构化方案包
|
|
154
155
|
|
|
@@ -264,7 +265,7 @@ helloagents install --all --global
|
|
|
264
265
|
~help
|
|
265
266
|
```
|
|
266
267
|
|
|
267
|
-
应能看到
|
|
268
|
+
应能看到 14 个对话命令和当前设置。
|
|
268
269
|
|
|
269
270
|
### 4)创建项目知识
|
|
270
271
|
|
|
@@ -274,10 +275,10 @@ helloagents install --all --global
|
|
|
274
275
|
~wiki
|
|
275
276
|
```
|
|
276
277
|
|
|
277
|
-
|
|
278
|
+
初始化项目级全局模式:
|
|
278
279
|
|
|
279
280
|
```text
|
|
280
|
-
~
|
|
281
|
+
~global
|
|
281
282
|
```
|
|
282
283
|
|
|
283
284
|
## CLI 管理
|
|
@@ -305,13 +306,14 @@ helloagents codex goals enable
|
|
|
305
306
|
- `claude`
|
|
306
307
|
- `gemini`
|
|
307
308
|
- `codex`
|
|
309
|
+
- `deepseek`
|
|
308
310
|
- `--all`
|
|
309
311
|
|
|
310
312
|
省略 `--standby` 或 `--global` 时,HelloAGENTS 会先复用该 CLI 已记录或检测到的模式,再回退到 `standby`。
|
|
311
313
|
|
|
312
314
|
### npm 和一键脚本入口
|
|
313
315
|
|
|
314
|
-
当你不想依赖更新过程中的 `helloagents` 可执行文件时,用 npm 或一键脚本。`HELLOAGENTS=目标[:模式]` 中,目标支持 `all`、`claude`、`gemini`、`codex`;模式支持 `standby`、`global`。用于安装时,省略模式按 `standby` 处理;用于更新、清理、卸载和切换分支时,省略模式会原样下传,让 HelloAGENTS 先复用该 CLI 已记录或检测到的模式。
|
|
316
|
+
当你不想依赖更新过程中的 `helloagents` 可执行文件时,用 npm 或一键脚本。`HELLOAGENTS=目标[:模式]` 中,目标支持 `all`、`claude`、`gemini`、`codex`、`deepseek`;模式支持 `standby`、`global`。用于安装时,省略模式按 `standby` 处理;用于更新、清理、卸载和切换分支时,省略模式会原样下传,让 HelloAGENTS 先复用该 CLI 已记录或检测到的模式。
|
|
315
317
|
|
|
316
318
|
宿主配置使用稳定的 `helloagents-js` 入口和运行根目录 `~/.helloagents/helloagents`,Node 全局包路径变化不会破坏受管 hooks 或 Codex `notify`。Codex hooks 使用独立 `~/.codex/hooks.json`,不把大段配置写入 `config.toml`;Codex 全局插件根目录和插件缓存也会回链到这个稳定运行根目录。
|
|
317
319
|
|
|
@@ -330,7 +332,7 @@ HELLOAGENTS=codex:global npm install -g helloagents
|
|
|
330
332
|
HELLOAGENTS=claude:standby npm update -g helloagents
|
|
331
333
|
|
|
332
334
|
# 切换到 beta 分支并同步全部 CLI,标准模式
|
|
333
|
-
HELLOAGENTS=all:standby npm install -g github
|
|
335
|
+
HELLOAGENTS=all:standby npm install -g https://github.com/hellowind777/helloagents/archive/refs/heads/beta.tar.gz
|
|
334
336
|
|
|
335
337
|
# 卸载包前清理 Gemini 集成
|
|
336
338
|
npm explore -g helloagents -- npm run uninstall -- gemini --standby
|
|
@@ -350,7 +352,7 @@ $env:HELLOAGENTS="codex:global"; npm install -g helloagents
|
|
|
350
352
|
$env:HELLOAGENTS="claude:standby"; npm update -g helloagents
|
|
351
353
|
|
|
352
354
|
# 切换到 beta 分支并同步全部 CLI,标准模式
|
|
353
|
-
$env:HELLOAGENTS="all:standby"; npm install -g github
|
|
355
|
+
$env:HELLOAGENTS="all:standby"; npm install -g https://github.com/hellowind777/helloagents/archive/refs/heads/beta.tar.gz
|
|
354
356
|
|
|
355
357
|
# 卸载包前清理 Gemini 集成
|
|
356
358
|
npm explore -g helloagents -- npm run uninstall -- gemini --standby
|
|
@@ -415,13 +417,13 @@ PowerShell 包装脚本现在会传递与 `install.sh` 相同的 npm 参数,
|
|
|
415
417
|
```bash
|
|
416
418
|
helloagents switch-branch beta
|
|
417
419
|
helloagents switch-branch beta claude --global
|
|
418
|
-
helloagents branch
|
|
420
|
+
helloagents branch beta --all --standby
|
|
419
421
|
```
|
|
420
422
|
|
|
421
423
|
如果只想切换包本身,暂不同步宿主 CLI,可以直接使用 npm:
|
|
422
424
|
|
|
423
425
|
```bash
|
|
424
|
-
npm install -g github
|
|
426
|
+
npm install -g https://github.com/hellowind777/helloagents/archive/refs/heads/beta.tar.gz
|
|
425
427
|
npm update -g helloagents
|
|
426
428
|
npm explore -g helloagents -- npm run uninstall -- --all --standby
|
|
427
429
|
npm uninstall -g helloagents
|
|
@@ -434,6 +436,7 @@ npm uninstall -g helloagents
|
|
|
434
436
|
| Claude Code | `~/.claude/CLAUDE.md`、`~/.claude/settings.json`、`~/.claude/helloagents -> ~/.helloagents/helloagents` | 删除受管标记块、HelloAGENTS hooks / 权限和符号链接 |
|
|
435
437
|
| Gemini CLI | `~/.gemini/GEMINI.md`、`~/.gemini/settings.json`、`~/.gemini/helloagents -> ~/.helloagents/helloagents` | 删除受管标记块、HelloAGENTS hooks 和符号链接 |
|
|
436
438
|
| Codex CLI | `~/.codex/AGENTS.md`、`~/.codex/config.toml`、`~/.codex/hooks.json`、`~/.codex/helloagents -> ~/.helloagents/helloagents`、受管备份 | 删除受管标记块、受管配置键、受管 hooks、符号链接和最近一次受管备份 |
|
|
439
|
+
| DeepSeek TUI | `~/.deepseek/AGENTS.md`、`~/.deepseek/helloagents -> ~/.helloagents/helloagents` | 删除受管标记块和符号链接 |
|
|
437
440
|
|
|
438
441
|
### 全局模式文件
|
|
439
442
|
|
|
@@ -442,6 +445,7 @@ npm uninstall -g helloagents
|
|
|
442
445
|
| Claude Code | 原生插件安装 | 由 Claude Code 插件系统管理 |
|
|
443
446
|
| Gemini CLI | 原生扩展安装 | 由 Gemini 扩展系统管理 |
|
|
444
447
|
| Codex CLI | 原生本地插件流程 | `~/.agents/plugins/marketplace.json`、`~/plugins/helloagents/ -> ~/.helloagents/helloagents`、`~/.codex/plugins/cache/local-plugins/helloagents/local/ -> ~/.helloagents/helloagents`、`~/.codex/config.toml`、`~/.codex/hooks.json`、`~/.codex/helloagents -> ~/.helloagents/helloagents` |
|
|
448
|
+
| DeepSeek TUI | 受管 AGENTS 载体 | `~/.deepseek/AGENTS.md`、`~/.deepseek/helloagents -> ~/.helloagents/helloagents` |
|
|
445
449
|
|
|
446
450
|
全局模式下,HelloAGENTS 会自动尝试宿主原生命令。若宿主命令不可用,再手动执行:
|
|
447
451
|
|
|
@@ -455,6 +459,8 @@ Claude Code 会自动尝试等价的 `claude plugin marketplace add ...` 和 `cl
|
|
|
455
459
|
|
|
456
460
|
Codex 全局模式由 HelloAGENTS 通过本地插件路径自动安装。
|
|
457
461
|
|
|
462
|
+
DeepSeek TUI 走原生 `AGENTS.md` 规则模型。standby 会把轻量载体写到 `~/.deepseek/AGENTS.md`;global 会写入完整载体并附带 `<!-- HELLOAGENTS_PROFILE: full -->`。如果系统中存在 `deepseek` 命令,`helloagents doctor` 还会额外读取 `deepseek doctor --json` 的摘要,并与 HelloAGENTS 自己的受管检查一起展示。
|
|
463
|
+
|
|
458
464
|
## 对话命令
|
|
459
465
|
|
|
460
466
|
### 常见流程
|
|
@@ -467,14 +473,14 @@ Codex 全局模式由 HelloAGENTS 通过本地插件路径自动安装。
|
|
|
467
473
|
| 按明确请求或活跃方案实现 | `~build "finish task 2 in the plan"` |
|
|
468
474
|
| 生成完整产品需求文档 | `~prd "modern dashboard for operations team"` |
|
|
469
475
|
| 按指标迭代优化 | `~loop "reduce bundle size" --metric "npm run size" --direction lower` |
|
|
470
|
-
| 只创建或刷新项目知识 | `~wiki` |
|
|
471
|
-
|
|
|
476
|
+
| 只创建或刷新项目知识 | `~wiki` / `~init` |
|
|
477
|
+
| 初始化项目级全局模式 | `~global` |
|
|
472
478
|
| 验证当前工作 | `~verify` |
|
|
473
479
|
| 生成提交信息并同步知识库 | `~commit` |
|
|
474
480
|
|
|
475
|
-
###
|
|
481
|
+
### 知识库与项目级全局模式
|
|
476
482
|
|
|
477
|
-
|
|
483
|
+
标准模式下,未初始化的项目只获得轻量规则和显式 `~command` 入口。执行 `~global` 后,项目级规则文件会写入 `<!-- HELLOAGENTS_PROFILE: full -->`,项目才进入项目级全局模式。
|
|
478
484
|
|
|
479
485
|
全局模式下,HelloAGENTS 默认启用完整规则。
|
|
480
486
|
|
|
@@ -488,9 +494,8 @@ Codex 全局模式由 HelloAGENTS 通过本地插件路径自动安装。
|
|
|
488
494
|
.helloagents/
|
|
489
495
|
```
|
|
490
496
|
|
|
491
|
-
|
|
497
|
+
这个目录承担:
|
|
492
498
|
|
|
493
|
-
- 激活信号
|
|
494
499
|
- 本地知识库目录
|
|
495
500
|
- 方案目录
|
|
496
501
|
- 状态与运行态目录
|
|
@@ -499,7 +504,7 @@ Codex 全局模式由 HelloAGENTS 通过本地插件路径自动安装。
|
|
|
499
504
|
|
|
500
505
|
当 `project_store_mode = "repo-shared"` 时:
|
|
501
506
|
|
|
502
|
-
- 本地 `.helloagents/`
|
|
507
|
+
- 本地 `.helloagents/` 保留项目本地状态和运行态文件
|
|
503
508
|
- 稳定知识和方案文件写到 `~/.helloagents/projects/<repo-key>/`
|
|
504
509
|
- 同一 git 仓库的多个 worktree 可以共享这些稳定资料
|
|
505
510
|
|
|
@@ -512,9 +517,9 @@ Codex 全局模式由 HelloAGENTS 通过本地插件路径自动安装。
|
|
|
512
517
|
- `.helloagents/sessions/<workspace>/<session>/artifacts/*.json`
|
|
513
518
|
- `.helloagents/sessions/<workspace>/<session>/artifacts/loop-results.tsv`
|
|
514
519
|
|
|
515
|
-
###
|
|
520
|
+
### 项目本地存储之外的临时会话
|
|
516
521
|
|
|
517
|
-
|
|
522
|
+
如果当前任务是只读、且当前目录及其父级还没有项目本地 `.helloagents/` 目录,HelloAGENTS 会把短期运行态写到用户级目录:
|
|
518
523
|
|
|
519
524
|
```text
|
|
520
525
|
~/.helloagents/runtime/<scope-key>/
|
|
@@ -522,15 +527,17 @@ Codex 全局模式由 HelloAGENTS 通过本地插件路径自动安装。
|
|
|
522
527
|
|
|
523
528
|
这里仅保存短期的 `capsule.json`、`events.jsonl` 和 `artifacts/`,不作为项目知识库。过期临时会话会按 TTL 清理。
|
|
524
529
|
|
|
530
|
+
一旦任务会创建或修改本地文件,或会在当前项目留下本地输出,HelloAGENTS 就会自动创建项目本地 `.helloagents/sessions/.../STATE.md`,而不是只停留在用户级临时运行态。
|
|
531
|
+
|
|
525
532
|
### 知识创建规则
|
|
526
533
|
|
|
527
534
|
| 命令或配置 | 行为 |
|
|
528
535
|
|------------|------|
|
|
529
|
-
| `~wiki` | 只创建或同步知识库 |
|
|
530
|
-
| `~
|
|
536
|
+
| `~wiki` / `~init` | 只创建或同步知识库 |
|
|
537
|
+
| `~global` | 创建知识库,同时写入项目级全局模式标记和包根链接 |
|
|
531
538
|
| `kb_create_mode = 0` | 关闭自动知识更新 |
|
|
532
|
-
| `kb_create_mode = 1` |
|
|
533
|
-
| `kb_create_mode = 2` |
|
|
539
|
+
| `kb_create_mode = 1` | 仅在知识库已存在时自动同步 |
|
|
540
|
+
| `kb_create_mode = 2` | 编码任务在知识库已存在或全局模式下自动创建或同步 |
|
|
534
541
|
|
|
535
542
|
## 工作流与交付
|
|
536
543
|
|
|
@@ -618,7 +625,7 @@ UI 任务遵循以下优先级:
|
|
|
618
625
|
| `notify_level` | `0` | `0` 关闭,`1` 桌面通知,`2` 声音,`3` 两者 |
|
|
619
626
|
| `ralph_loop_enabled` | `true` | 显式 `~verify` / `~loop` 或收尾要求时运行验证 |
|
|
620
627
|
| `guard_enabled` | `true` | 拦截危险命令 |
|
|
621
|
-
| `kb_create_mode` | `1` |
|
|
628
|
+
| `kb_create_mode` | `1` | `0` 关闭,`1` 自动同步已有知识库,`2` 编码任务自动创建或同步知识库 |
|
|
622
629
|
| `project_store_mode` | `"local"` | `local` 或 `repo-shared` |
|
|
623
630
|
| `auto_commit_enabled` | `true` | 验证完成且工作区有变更时自动创建本地提交;`false` 只跳过自动提交 |
|
|
624
631
|
| `commit_attribution` | `""` | 提交信息附加署名 |
|
|
@@ -662,6 +669,14 @@ Codex 默认走规则文件驱动。
|
|
|
662
669
|
- `/goal` 保持 Codex 原生能力;需要长程执行时,用 `helloagents codex goals enable` 显式启用
|
|
663
670
|
- 感知 goal 的命令从 `tasks.md`、`contract.json` 和 `state_path` 恢复;不会自动创建 goal,也不会在 HelloAGENTS 验证和收尾前标记完成
|
|
664
671
|
|
|
672
|
+
### DeepSeek TUI
|
|
673
|
+
|
|
674
|
+
- 标准模式写入 `~/.deepseek/AGENTS.md`
|
|
675
|
+
- 标准模式创建 `~/.deepseek/helloagents -> ~/.helloagents/helloagents`
|
|
676
|
+
- 全局模式仍使用 `~/.deepseek/AGENTS.md`,但写入带 `<!-- HELLOAGENTS_PROFILE: full -->` 的完整载体
|
|
677
|
+
- 项目级已初始化项目仍以项目规则文件中的 full 标记判断,因此 DeepSeek 与 Codex 共享同一套已初始化项目语义
|
|
678
|
+
- `helloagents doctor` 会在 `deepseek` 命令存在时合并 `deepseek doctor --json` 摘要
|
|
679
|
+
|
|
665
680
|
## 验证
|
|
666
681
|
|
|
667
682
|
运行全部测试:
|
|
@@ -670,15 +685,15 @@ Codex 默认走规则文件驱动。
|
|
|
670
685
|
npm test
|
|
671
686
|
```
|
|
672
687
|
|
|
673
|
-
|
|
688
|
+
当前测试覆盖:
|
|
674
689
|
|
|
675
690
|
- 安装、更新、清理、卸载、分支切换和模式切换
|
|
676
691
|
- shell 与 PowerShell 一键脚本分发链路,以及包装脚本在安装、更新、清理、卸载和分支切换中的模式传递规则
|
|
677
|
-
- Claude、Gemini、Codex
|
|
692
|
+
- Claude、Gemini、Codex、DeepSeek 的宿主集成行为
|
|
678
693
|
- Codex 受管 `model_instructions_file`、`notify`、`hooks.json`、hook trust 状态、本地插件、marketplace 和缓存行为
|
|
679
694
|
- Windows 下 Codex 旧式受管 notify 变体的清理,以及受管 notify 恢复规则
|
|
680
695
|
- Codex `/goal` 功能开关、长程路由上下文和 goal 感知命令契约
|
|
681
|
-
- `helloagents doctor
|
|
696
|
+
- `helloagents doctor`,包括 DeepSeek 原生 doctor 摘要处理
|
|
682
697
|
- 项目存储和 `repo-shared`
|
|
683
698
|
- 会话级 `state_path`、运行态信号和证据
|
|
684
699
|
- 运行时注入、选路、Guard、验证、视觉证据、交付门控、收尾去重,以及原生安装失败后的模式记录
|
|
@@ -699,15 +714,15 @@ npm test
|
|
|
699
714
|
- `skills/` 定义任务类型相关行为
|
|
700
715
|
- `scripts/` 提供选路、Guard、通知、验证、状态和证据等运行时辅助能力
|
|
701
716
|
|
|
702
|
-
### 应该用 `~wiki` 还是 `~
|
|
717
|
+
### 应该用 `~wiki`、`~init` 还是 `~global`?
|
|
703
718
|
|
|
704
|
-
只想创建项目知识库,用 `~wiki`。
|
|
719
|
+
只想创建项目知识库,用 `~wiki` 或 `~init`。
|
|
705
720
|
|
|
706
|
-
|
|
721
|
+
还想初始化项目级全局模式,用 `~global`。
|
|
707
722
|
|
|
708
723
|
### standby 和 global 有什么区别?
|
|
709
724
|
|
|
710
|
-
`standby` 更轻量、更显式。它只把规则部署到指定 CLI
|
|
725
|
+
`standby` 更轻量、更显式。它只把规则部署到指定 CLI,项目级全局模式由 `~global` 触发。
|
|
711
726
|
|
|
712
727
|
`global` 默认更广泛地启用完整规则。Claude 和 Gemini 使用原生插件 / 扩展;Codex 使用本地插件路径。
|
|
713
728
|
|
package/bootstrap-lite.md
CHANGED
|
@@ -20,13 +20,13 @@
|
|
|
20
20
|
### 执行纪律
|
|
21
21
|
- 一次做完:用户需求明确且已获得执行授权时,必须持续执行到完成;只有符合下文“阻塞判定”的情况,才可中途停下
|
|
22
22
|
- 直接推进:用户已明确同意方案、修改方向或继续执行时,直接执行;不得把可执行动作改写为建议、可选项、等待确认,也不用“下一步建议”代替实际执行
|
|
23
|
-
-
|
|
23
|
+
- 普通问答、解释、分析、改写、邮件回复和其他一次性交付,不进入完整实现/验证流程,但仍属于交付;默认只交付与当前请求直接对应的一版最终结果。请求已满足时直接结束,不主动追加无执行价值的延伸、派生版本、不同写法、第二版或邀约式收尾,除非用户明确要求
|
|
24
24
|
- 回复末尾只保留结论、风险、限制、已完成状态、阻塞项或真实下一步动作;不得用条件式邀约、自我能力陈述或“如果需要 / 如需 / 我可以继续”这类表述替代交付
|
|
25
25
|
|
|
26
26
|
### 表达与语气
|
|
27
27
|
- 所有用户可见文本,包括回复、生成文件、CLI 输出、运行时提示、模板内容、文档与说明,都必须同时遵守本节全部规则:
|
|
28
28
|
- 说话像成熟同事,不像客服、销售或咨询顾问
|
|
29
|
-
-
|
|
29
|
+
- 直接回答,少铺垫;需要先给结论时先给结论,再补必要细节。能用一版说清就只给一版,不主动提供多个备选、补充改写或派生版本,除非用户明确要求比较、多方案或不同风格版本
|
|
30
30
|
- 用词用语和表述方式保持简洁、自然、清晰、准确、合理、统一,不赘述、不冗余、不过度精简
|
|
31
31
|
- 优先使用普通、易懂、贴近用户的表达;必要术语先解释,再补原名
|
|
32
32
|
- 准确优先于压缩:不得为了更短而省略必要的条件、边界、风险、状态、路径、验证结论或下一步动作
|
|
@@ -198,8 +198,8 @@
|
|
|
198
198
|
- `T3` — 高风险或不可逆操作(权限、安全、支付、数据库、生产发布等)→ 先 `~plan` / `~prd`,再 `~build` / `~verify`
|
|
199
199
|
|
|
200
200
|
### 完成判定
|
|
201
|
-
-
|
|
202
|
-
-
|
|
201
|
+
- 当前项目未初始化,且未进入方案包 / `contract.json` / 证据文件时,声称完成前必须完成与任务类型匹配的必要检查;无法执行的检查必须明确说明,不得直接宣称完成
|
|
202
|
+
- 当前项目已初始化,或已存在方案包 / `contract.json` / 证据文件时,以完整流程、对应 skill 与运行时交付约束为准,不得降级为本节
|
|
203
203
|
- 只读分析、创意探索、方案比较、中间进度和阻塞汇报不适用本节
|
|
204
204
|
- Codex `/goal` 只作为外层长程续跑与预算控制;HelloAGENTS 仍负责方案、执行、验证和收尾。若 active goal 的目标已全部完成,先完成 HelloAGENTS 验证、收尾检查与本地版本检查点,再调用 `update_goal` 标记 complete;不得因预算接近耗尽、单轮结束或准备停下而标记 complete
|
|
205
205
|
- 本地版本检查点:非只读任务完成验证且产生工作区变更时,若 `auto_commit_enabled=true`,最终收尾前自动执行本地提交;若 `auto_commit_enabled=false`,跳过这一步。先检查 `git status --short`;若不是 git 仓库或无变更则跳过。若发现 `.env`、密钥、凭据、明显不应提交的大文件或二进制产物,停止提交并说明风险;否则执行 `git add -A`,使用当前回复语言生成简洁 conventional commit message 后执行 `git commit`。显式 `~commit` 不受这个开关影响。不自动远程 `git push`,除非用户明确要求
|
|
@@ -211,7 +211,7 @@
|
|
|
211
211
|
- `~command` 路由:用户输入 `~xxx` 时,立即读取对应的 SKILL.md 并按其流程执行,不要自行探索或猜测。若当前上下文已解析出具体命令技能文件路径,直接使用它;否则先确定当前技能根目录:
|
|
212
212
|
- 优先使用当前上下文中已注入的“本轮 HelloAGENTS 读取根目录”
|
|
213
213
|
- 若当前上下文未注入,则使用稳定运行根目录 `~/.helloagents/helloagents`
|
|
214
|
-
|
|
214
|
+
- 宿主固定链接(Codex `~/.codex/helloagents`、Claude `~/.claude/helloagents`、Gemini `~/.gemini/helloagents`、DeepSeek `~/.deepseek/helloagents`)只作为兼容别名,不作为优先探测路径
|
|
215
215
|
- 仍无法确定时,明确说明缺少 HelloAGENTS 读取根目录;不要递归扫描 `$HOME`、`Downloads`、项目目录或旧版本目录
|
|
216
216
|
确定根目录后读取其中的 `skills/commands/{name}/SKILL.md`;标准模式下即使项目目录存在本地 HelloAGENTS skills,也不要读取项目路径。不要扫描整个目录,也不要对同一命令重复探测多个路径。
|
|
217
217
|
包内脚本优先使用稳定命令入口;涉及 turn-state 时按“收尾状态信号”执行。
|
|
@@ -220,7 +220,7 @@
|
|
|
220
220
|
### .helloagents/ 目录
|
|
221
221
|
路径: {CWD}/.helloagents/
|
|
222
222
|
所有文件的创建和更新必须按 templates/ 目录中对应模板的格式执行,不可自由发挥格式。
|
|
223
|
-
- `.helloagents/`
|
|
223
|
+
- `.helloagents/` 表示项目本地存储路径,负责知识、方案、状态与运行态;它不再作为项目是否已初始化的判定信号
|
|
224
224
|
- `state_path` 指向的状态文件、当前会话 `capsule.json`、`events.jsonl`、`artifacts/*.json`、`artifacts/loop-results.tsv` 等运行态文件始终保留在项目本地 `.helloagents/sessions/{workspace}/{session}/`
|
|
225
225
|
- `state_path` 是状态文件的唯一位置。宿主提供会话标识时,写入 `.helloagents/sessions/{workspace}/{session}/STATE.md`;没有稳定会话标识时,写入 `.helloagents/sessions/{workspace}/default/STATE.md`
|
|
226
226
|
- `{workspace}` 为当前 Git 分支、`detached-{sha}` 或非 Git 项目的 `workspace`;`.helloagents/sessions/active.json` 只记录当前活跃会话索引,避免同一会话被拆成多个目录
|
|
@@ -232,7 +232,7 @@ templates/ 查找路径(按优先级;首次确定模板根目录后,本轮
|
|
|
232
232
|
- 状态文件(`state_path`)— ≤70 行,用来记录“上次做到哪里”。判断当前任务时,当前用户消息、显式命令、活跃方案包 / PRD、代码与验证证据优先于状态文件
|
|
233
233
|
内容:主线目标、正在做什么、关键上下文(决策/变更/假设)、下一步(具体可执行动作含文件路径)、阻塞项
|
|
234
234
|
适用边界:
|
|
235
|
-
- 强制创建并持续更新:`~wiki`、`~init`、`~plan`、`~build`、`~auto`、`~prd`、`~loop
|
|
235
|
+
- 强制创建并持续更新:`~wiki`、`~init`、`~global`、`~plan`、`~build`、`~auto`、`~prd`、`~loop`,以及任何会创建/修改本地文件、会在当前工作区留下实际输出或操作记录的非只读任务
|
|
236
236
|
- 强制更新,不要求首次创建:`~clean`,主代理汇总子代理结果后
|
|
237
237
|
- 已有则更新:`~verify`、`~review`(兼容别名)、`~test`、`~commit`
|
|
238
238
|
- 不创建:`~help`、`~idea`、普通问答、一次性只读任务、子代理自身执行过程、压缩/恢复钩子
|
|
@@ -253,7 +253,7 @@ templates/ 查找路径(按优先级;首次确定模板根目录后,本轮
|
|
|
253
253
|
- archive/_index.md — 归档索引
|
|
254
254
|
|
|
255
255
|
### 知识记录(受 `kb_create_mode` 控制)
|
|
256
|
-
- 0=关闭;1
|
|
256
|
+
- 0=关闭;1=知识库已存在时自动同步;2=编码任务在知识库已存在或全局模式下自动创建或同步
|
|
257
257
|
- context.md — 项目架构、技术栈、目录结构、模块索引
|
|
258
258
|
- guidelines.md — 编码约定(仅含非显而易见的约定)
|
|
259
259
|
- CHANGELOG.md — 变更历史
|