claude-dev-env 1.93.1 → 1.95.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/_shared/advisor/CLAUDE.md +2 -2
- package/_shared/advisor/advisor-protocol.md +35 -27
- package/_shared/advisor/scripts/config/advisor_scripts_constants/model_tier_run_validator_constants.py +3 -2
- package/_shared/advisor/scripts/model_tier_run_validator.py +23 -15
- package/_shared/advisor/scripts/tests/test_model_tier_run_validator.py +81 -17
- package/_shared/pr-loop/CLAUDE.md +1 -0
- package/_shared/pr-loop/audit-contract.md +1 -1
- package/_shared/pr-loop/gh-payloads.md +3 -3
- package/_shared/pr-loop/post-audit-thread-contract.md +51 -0
- package/_shared/pr-loop/scripts/README.md +2 -2
- package/_shared/pr-loop/scripts/fix_hookspath.py +47 -12
- package/_shared/pr-loop/scripts/tests/test_code_rules_gate.py +0 -69
- package/_shared/pr-loop/scripts/tests/test_fix_hookspath.py +497 -374
- package/_shared/pr-loop/state-schema.md +3 -22
- package/bin/CLAUDE.md +11 -2
- package/bin/ever-shipped-skills.mjs +70 -0
- package/bin/install.mjs +138 -13
- package/bin/install.prune.test.mjs +457 -0
- package/bin/install.test.mjs +10 -4
- package/docs/CODE_RULES.md +1 -1
- package/hooks/blocking/CLAUDE.md +2 -0
- package/hooks/blocking/code_rules_enforcer.py +4 -0
- package/hooks/blocking/code_rules_shared.py +82 -0
- package/hooks/blocking/code_rules_test_layout.py +9 -3
- package/hooks/blocking/pii_commit_command.py +398 -0
- package/hooks/blocking/pii_payload_scan.py +133 -0
- package/hooks/blocking/pii_prevention_blocker.py +151 -449
- package/hooks/blocking/plain_language_blocker.py +138 -4
- package/hooks/blocking/sensitive_file_protector.py +114 -48
- package/hooks/blocking/tdd_enforcer.py +9 -2
- package/hooks/blocking/test_code_rules_enforcer_scratchpad.py +105 -0
- package/hooks/blocking/test_code_rules_shared.py +181 -0
- package/hooks/blocking/test_pii_prevention_blocker.py +299 -0
- package/hooks/blocking/test_plain_language_blocker_allowlist.py +184 -0
- package/hooks/blocking/test_sensitive_file_protector.py +185 -0
- package/hooks/blocking/test_tdd_enforcer_scratchpad.py +105 -0
- package/hooks/blocking/test_verdict_directory_write_blocker.py +42 -7
- package/hooks/hooks_constants/CLAUDE.md +4 -2
- package/hooks/hooks_constants/code_rules_path_utils_constants.py +0 -2
- package/hooks/hooks_constants/harness_scratchpad_constants.py +17 -0
- package/hooks/hooks_constants/local_identity.py +65 -15
- package/hooks/hooks_constants/pii_prevention_constants.py +16 -0
- package/hooks/hooks_constants/plain_language_blocker_constants.py +5 -0
- package/hooks/hooks_constants/pr_description_enforcer_constants.py +1 -1
- package/hooks/hooks_constants/sensitive_file_protector_constants.py +42 -0
- package/hooks/hooks_constants/test_local_identity.py +68 -0
- package/hooks/pyproject.toml +75 -4
- package/hooks/validators/CLAUDE.md +1 -1
- package/hooks/validators/README.md +2 -0
- package/hooks/validators/python_style_checks.py +114 -136
- package/hooks/validators/python_style_helpers.py +95 -0
- package/hooks/validators/test_python_style_checks.py +0 -164
- package/hooks/validators/test_python_style_checks_decorator_gap.py +119 -0
- package/hooks/validators/test_python_style_fixes.py +251 -0
- package/hooks/validators/test_python_style_helpers.py +125 -0
- package/package.json +1 -1
- package/rules/CLAUDE.md +1 -0
- package/rules/anti-corollary-tests.md +69 -0
- package/rules/bdd.md +1 -3
- package/rules/code-reviews.md +1 -1
- package/rules/gh-paginate.md +1 -1
- package/rules/plain-language.md +2 -0
- package/scripts/CLAUDE.md +10 -1
- package/scripts/Get-SessionAccount.ps1 +210 -0
- package/scripts/tests/CLAUDE.md +15 -1
- package/scripts/tests/Get-SessionAccount.Tests.ps1 +350 -0
- package/skills/CLAUDE.md +6 -27
- package/skills/anthropic-plan/SKILL.md +1 -13
- package/skills/autoconverge/CLAUDE.md +5 -2
- package/skills/autoconverge/SKILL.md +112 -387
- package/skills/autoconverge/reference/CLAUDE.md +4 -1
- package/skills/autoconverge/reference/closing-report.md +9 -2
- package/skills/autoconverge/reference/convergence.md +26 -22
- package/skills/autoconverge/reference/headless-safety.md +44 -0
- package/skills/autoconverge/reference/multi-pr.md +88 -0
- package/skills/autoconverge/reference/self-closing-loop.md +84 -0
- package/skills/autoconverge/reference/stop-conditions.md +21 -13
- package/skills/autoconverge/workflow/converge.clean-audit.test.mjs +87 -27
- package/skills/autoconverge/workflow/converge.contract.test.mjs +40 -10
- package/skills/autoconverge/workflow/converge.copilot-gate.test.mjs +179 -47
- package/skills/autoconverge/workflow/converge.fix-progress.test.mjs +1 -1
- package/skills/autoconverge/workflow/converge.mjs +286 -96
- package/skills/bugteam/CLAUDE.md +1 -1
- package/skills/bugteam/CONSTRAINTS.md +3 -3
- package/skills/bugteam/PROMPTS.md +8 -19
- package/skills/bugteam/SKILL.md +13 -14
- package/skills/bugteam/reference/CLAUDE.md +1 -1
- package/skills/bugteam/reference/README.md +2 -3
- package/skills/bugteam/reference/audit-and-teammates.md +2 -2
- package/skills/bugteam/reference/copilot-gap-analysis.md +2 -0
- package/skills/bugteam/reference/github-pr-reviews.md +56 -38
- package/skills/bugteam/reference/team-setup.md +11 -11
- package/skills/bugteam/scripts/CLAUDE.md +6 -6
- package/skills/bugteam/scripts/README.md +20 -8
- package/skills/bugteam/scripts/bugteam_code_rules_gate.py +13 -1463
- package/skills/bugteam/scripts/bugteam_fix_hookspath.py +23 -358
- package/skills/bugteam/scripts/bugteam_preflight.py +13 -315
- package/skills/bugteam/scripts/bugteam_scripts_constants/CLAUDE.md +2 -3
- package/skills/bugteam/scripts/test_bugteam_code_rules_gate.py +34 -1053
- package/skills/bugteam/scripts/test_bugteam_fix_hookspath.py +30 -347
- package/skills/bugteam/scripts/test_bugteam_preflight.py +30 -305
- package/skills/closeout/SKILL.md +153 -0
- package/skills/closeout/reference/handoff-prompt-template.md +72 -0
- package/skills/closeout/reference/issue-body-templates.md +108 -0
- package/skills/closeout/reference/pii-redaction-checklist.md +36 -0
- package/skills/copilot-finding-triage/SKILL.md +80 -28
- package/skills/copilot-finding-triage/reference/tier-rubric.md +70 -11
- package/skills/copilot-finding-triage/templates/notification.md +8 -3
- package/skills/everything-search/SKILL.md +1 -2
- package/skills/grokify/SKILL.md +58 -0
- package/skills/grokify/templates/handoff-template.md +92 -0
- package/skills/orchestrator/SKILL.md +35 -25
- package/skills/orchestrator-refresh/SKILL.md +15 -11
- package/skills/pr-converge/CLAUDE.md +1 -1
- package/skills/pr-converge/SKILL.md +132 -233
- package/skills/pr-converge/reference/convergence-gates.md +102 -66
- package/skills/pr-converge/reference/examples.md +37 -25
- package/skills/pr-converge/reference/fix-protocol.md +7 -7
- package/skills/pr-converge/reference/multi-pr-orchestration.md +10 -4
- package/skills/pr-converge/reference/per-tick.md +64 -41
- package/skills/pr-converge/reference/state-schema.md +27 -2
- package/skills/pr-converge/scripts/CLAUDE.md +8 -0
- package/skills/pr-converge/scripts/README.md +4 -3
- package/skills/pr-converge/scripts/_pr_converge_path_setup.py +23 -0
- package/skills/pr-converge/scripts/check_convergence.py +189 -645
- package/skills/pr-converge/scripts/check_convergence_gates.py +235 -0
- package/skills/pr-converge/scripts/check_convergence_thread_gates.py +219 -0
- package/skills/pr-converge/scripts/conftest.py +8 -0
- package/skills/pr-converge/scripts/pr_converge_scripts_constants/CLAUDE.md +1 -0
- package/skills/pr-converge/scripts/pr_converge_scripts_constants/convergence_gate_constants.py +36 -0
- package/skills/pr-converge/scripts/test__pr_converge_path_setup.py +26 -0
- package/skills/pr-converge/scripts/test_check_convergence.py +73 -228
- package/skills/pr-converge/scripts/test_check_convergence_contract.py +321 -0
- package/skills/pr-converge/scripts/test_check_convergence_gates.py +68 -0
- package/skills/pr-converge/scripts/test_check_convergence_thread_gates.py +75 -0
- package/skills/pr-fix-protocol/SKILL.md +20 -20
- package/skills/privacy-hygiene/SKILL.md +4 -3
- package/skills/reviewer-gates/SKILL.md +26 -8
- package/skills/session-log/SKILL.md +11 -12
- package/skills/session-tidy/SKILL.md +40 -30
- package/skills/skill-builder/CLAUDE.md +13 -10
- package/skills/skill-builder/SKILL.md +31 -31
- package/skills/skill-builder/references/CLAUDE.md +10 -6
- package/skills/skill-builder/references/delegation-map.md +13 -4
- package/skills/skill-builder/references/description-field.md +113 -0
- package/skills/skill-builder/references/self-audit-checklist.md +21 -4
- package/skills/skill-builder/references/skill-modularity.md +113 -0
- package/skills/skill-builder/references/skill-types.md +4 -0
- package/skills/skill-builder/templates/CLAUDE.md +4 -4
- package/skills/skill-builder/templates/gap-analysis.md +25 -1
- package/skills/skill-builder/workflows/CLAUDE.md +6 -4
- package/skills/skill-builder/workflows/improve-skill.md +17 -16
- package/skills/skill-builder/workflows/new-skill.md +34 -10
- package/skills/skill-builder/workflows/polish-skill.md +59 -43
- package/skills/team-advisor/SKILL.md +15 -11
- package/skills/usage-pause/SKILL.md +10 -14
- package/system-prompts/software-engineer.xml +7 -6
- package/hooks/validators/test_verify_paths.py +0 -32
- package/hooks/validators/verify_paths.py +0 -57
- package/skills/bdd-protocol/CLAUDE.md +0 -26
- package/skills/bdd-protocol/SKILL.md +0 -30
- package/skills/bdd-protocol/references/CLAUDE.md +0 -10
- package/skills/bdd-protocol/references/anti-patterns.md +0 -26
- package/skills/bdd-protocol/references/example-mapping.md +0 -23
- package/skills/bg-agent/CLAUDE.md +0 -17
- package/skills/bg-agent/SKILL.md +0 -69
- package/skills/bugteam/scripts/bugteam_scripts_constants/bugteam_code_rules_gate_constants.py +0 -55
- package/skills/bugteam/scripts/bugteam_scripts_constants/bugteam_fix_hookspath_constants.py +0 -26
- package/skills/bugteam/scripts/bugteam_scripts_constants/bugteam_preflight_constants.py +0 -35
- package/skills/caveman/CLAUDE.md +0 -15
- package/skills/caveman/SKILL.md +0 -38
- package/skills/code/CLAUDE.md +0 -17
- package/skills/code/SKILL.md +0 -178
- package/skills/deep-research/CLAUDE.md +0 -17
- package/skills/deep-research/SKILL.md +0 -80
- package/skills/findbugs/CLAUDE.md +0 -20
- package/skills/findbugs/SKILL.md +0 -241
- package/skills/fixbugs/CLAUDE.md +0 -19
- package/skills/fixbugs/SKILL.md +0 -142
- package/skills/gh-paginate/CLAUDE.md +0 -18
- package/skills/gh-paginate/SKILL.md +0 -84
- package/skills/gotcha/CLAUDE.md +0 -33
- package/skills/gotcha/SKILL.md +0 -73
- package/skills/implement/CLAUDE.md +0 -27
- package/skills/implement/SKILL.md +0 -66
- package/skills/implement/scripts/CLAUDE.md +0 -22
- package/skills/implement/scripts/append_note.py +0 -133
- package/skills/implement/scripts/implement_scripts_constants/CLAUDE.md +0 -22
- package/skills/implement/scripts/implement_scripts_constants/__init__.py +0 -0
- package/skills/implement/scripts/implement_scripts_constants/notes_constants.py +0 -12
- package/skills/implement/scripts/test_append_note.py +0 -191
- package/skills/log-audit/CLAUDE.md +0 -20
- package/skills/log-audit/SKILL.md +0 -66
- package/skills/log-audit/reference/CLAUDE.md +0 -9
- package/skills/log-audit/reference/charter.md +0 -52
- package/skills/log-audit/scripts/CLAUDE.md +0 -27
- package/skills/log-audit/scripts/cluster_recurrences.py +0 -261
- package/skills/log-audit/scripts/collect_log_window.py +0 -199
- package/skills/log-audit/scripts/log_audit_constants/CLAUDE.md +0 -12
- package/skills/log-audit/scripts/log_audit_constants/__init__.py +0 -0
- package/skills/log-audit/scripts/log_audit_constants/cluster_recurrences_constants.py +0 -23
- package/skills/log-audit/scripts/log_audit_constants/collect_log_window_constants.py +0 -24
- package/skills/log-audit/scripts/log_audit_constants/mine_copilot_findings_constants.py +0 -49
- package/skills/log-audit/scripts/mine_copilot_findings.py +0 -302
- package/skills/log-audit/scripts/test_cluster_recurrences.py +0 -160
- package/skills/log-audit/scripts/test_collect_log_window.py +0 -111
- package/skills/log-audit/scripts/test_mine_copilot_findings.py +0 -126
- package/skills/logifix/CLAUDE.md +0 -36
- package/skills/logifix/SKILL.md +0 -69
- package/skills/logifix/scripts/CLAUDE.md +0 -16
- package/skills/logifix/scripts/logifix.ps1 +0 -205
- package/skills/monitor-open-prs/CLAUDE.md +0 -34
- package/skills/monitor-open-prs/SKILL.md +0 -88
- package/skills/monitor-open-prs/scripts/CLAUDE.md +0 -17
- package/skills/monitor-open-prs/scripts/discover_open_prs.py +0 -69
- package/skills/monitor-open-prs/scripts/test_discover_open_prs.py +0 -149
- package/skills/monitor-open-prs/test_skill_contract.py +0 -27
- package/skills/post-audit-findings/SKILL.md +0 -80
- package/skills/pr-consistency-audit/CLAUDE.md +0 -34
- package/skills/pr-consistency-audit/SKILL.md +0 -116
- package/skills/pr-consistency-audit/reference/CLAUDE.md +0 -16
- package/skills/pr-consistency-audit/reference/detection-rules.md +0 -96
- package/skills/pr-consistency-audit/reference/illustrations.md +0 -78
- package/skills/pr-review-responder/CLAUDE.md +0 -35
- package/skills/pr-review-responder/EXAMPLES.md +0 -590
- package/skills/pr-review-responder/PRINCIPLES.md +0 -533
- package/skills/pr-review-responder/README.md +0 -168
- package/skills/pr-review-responder/SKILL.md +0 -203
- package/skills/pr-review-responder/TESTING.md +0 -350
- package/skills/pr-scope-resolve/SKILL.md +0 -45
- package/skills/pre-compact/CLAUDE.md +0 -24
- package/skills/pre-compact/SKILL.md +0 -134
- package/skills/qbug/CLAUDE.md +0 -40
- package/skills/qbug/SKILL.md +0 -387
- package/skills/qbug/test_qbug_skill_audit_schema.py +0 -152
- package/skills/qbug/test_qbug_skill_post_fix_audit.py +0 -103
- package/skills/refine/CLAUDE.md +0 -44
- package/skills/refine/SKILL.md +0 -262
- package/skills/refine/templates/CLAUDE.md +0 -17
- package/skills/refine/templates/implementation-notes-template.html +0 -56
- package/skills/refine/templates/plan-template.md +0 -60
- package/skills/research-mode/CLAUDE.md +0 -35
- package/skills/research-mode/SKILL.md +0 -53
- package/skills/structure-prompt/CLAUDE.md +0 -42
- package/skills/structure-prompt/SKILL.md +0 -44
- package/skills/structure-prompt/reference/CLAUDE.md +0 -28
- package/skills/structure-prompt/reference/adversarial-tuning.md +0 -62
- package/skills/structure-prompt/reference/block-classification.md +0 -27
- package/skills/structure-prompt/reference/canonical-case.md +0 -48
- package/skills/structure-prompt/reference/citation-depth.md +0 -70
- package/skills/structure-prompt/reference/cleanup.md +0 -33
- package/skills/structure-prompt/reference/constraints.md +0 -33
- package/skills/structure-prompt/reference/directives.md +0 -37
- package/skills/structure-prompt/reference/examples.md +0 -72
- package/skills/structure-prompt/reference/instantiation.md +0 -51
- package/skills/structure-prompt/reference/output-contract.md +0 -72
- package/skills/structure-prompt/reference/per-category.md +0 -23
- package/skills/structure-prompt/reference/persona.md +0 -38
- package/skills/structure-prompt/reference/research.md +0 -33
- package/skills/structure-prompt/reference/structure.md +0 -28
- package/skills/verified-build/CLAUDE.md +0 -33
- package/skills/verified-build/SKILL.md +0 -33
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: orchestrator
|
|
3
3
|
description: >-
|
|
4
|
-
|
|
4
|
+
Orchestrator mode: plan and delegate while workflow-backed agents
|
|
5
5
|
execute; a shared session-advisor answers hard decisions with endorse,
|
|
6
6
|
correction, plan, or stop. Triggers: '/orchestrator', 'orchestrator
|
|
7
7
|
strategy', 'run with an orchestrator', 'executor-advisor mode',
|
|
@@ -24,13 +24,13 @@ than a solo frontier agent held to the same verification rigor, with
|
|
|
24
24
|
Claude Code has no `multiagent` coordinator field or Managed-Agents-style
|
|
25
25
|
`create_agent`/`send_to_agent` primitives; this skill reaches the same
|
|
26
26
|
shape with the tools Claude Code already has. Under this skill the session
|
|
27
|
-
is the
|
|
27
|
+
is the orchestrator. In Claude Code the user always talks to the session and never to a
|
|
28
28
|
subagent, so the session is the user's sole interface: all user-facing
|
|
29
29
|
communication flows through it. It spawns and resumes executor subagents
|
|
30
30
|
— `clean-coder` and the like — and those executors do every bit of the
|
|
31
31
|
execution: the code edits, the build runs, the test runs. The orchestrating
|
|
32
32
|
session drives the plan and routes hard decisions to the shared advisor
|
|
33
|
-
(Claude: warm `session-advisor`; Grok:
|
|
33
|
+
(Claude: warm `session-advisor`; Grok: Claude CLI advisor via the chain runner).
|
|
34
34
|
|
|
35
35
|
## Gotchas
|
|
36
36
|
|
|
@@ -43,7 +43,7 @@ session drives the plan and routes hard decisions to the shared advisor
|
|
|
43
43
|
wasted. Hand every code edit and every build or test run to an executor; keep
|
|
44
44
|
the orchestrating session's own tool use to orchestration and light
|
|
45
45
|
verification reads. Hard decisions go to the shared advisor (Claude:
|
|
46
|
-
`session-advisor` via SendMessage; Grok:
|
|
46
|
+
`session-advisor` via SendMessage; Grok: Claude CLI advisor via the chain).
|
|
47
47
|
- **Flat ad hoc spawns bypass routing.** Every execution task goes through a
|
|
48
48
|
workflow-backed spawn or workflow resume so the required agent type, model,
|
|
49
49
|
prompt packet, and sidecar metadata stay attached to the work.
|
|
@@ -54,15 +54,15 @@ session drives the plan and routes hard decisions to the shared advisor
|
|
|
54
54
|
spawn returns an `agentId` (format `a...-...`); keep it so `SendMessage` can
|
|
55
55
|
reach that agent later. A named agent is reachable by name.
|
|
56
56
|
- **Only the orchestrating session owns the shared advisor's lifecycle.** An
|
|
57
|
-
executor that finds the advisor unreachable (Claude warm agent, or
|
|
58
|
-
|
|
57
|
+
executor that finds the advisor unreachable (Claude warm agent, or Claude
|
|
58
|
+
CLI bind on Grok) reports that upward; it never spawns a replacement itself.
|
|
59
59
|
|
|
60
60
|
## Process
|
|
61
61
|
|
|
62
62
|
1. **Check whether the refresh loop is already running this
|
|
63
63
|
session.** If it is, do not schedule a second loop. Reuse any live
|
|
64
|
-
shared advisor bind (Claude warm `session-advisor`, or Grok
|
|
65
|
-
run step 3 only when none exists yet), then skip straight to step 4.
|
|
64
|
+
shared advisor bind (Claude warm `session-advisor`, or Grok Claude CLI
|
|
65
|
+
bind — run step 3 only when none exists yet), then skip straight to step 4.
|
|
66
66
|
|
|
67
67
|
2. **Register the discipline reminder.** By default, schedule it with
|
|
68
68
|
`ScheduleWakeup` at `delaySeconds: 1200`, prompt `/orchestrator-refresh`,
|
|
@@ -79,17 +79,24 @@ session drives the plan and routes hard decisions to the shared advisor
|
|
|
79
79
|
On a **Claude host**, follow the Warm-up procedure in that doc (Agent spawn
|
|
80
80
|
of `session-advisor`). Compute the model floor as the max of the
|
|
81
81
|
orchestrating session's own tier and the highest model in the Workflow Agent
|
|
82
|
-
Routing table below (
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
block from that doc
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
82
|
+
Routing table below (for example, max(Sonnet, Opus) = Opus when those are
|
|
83
|
+
the tiers in play). That floor is a lower bound only — the Claude spawn walk
|
|
84
|
+
tries top-down from Fable down to that floor per
|
|
85
|
+
[`_shared/advisor/advisor-protocol.md`](../../_shared/advisor/advisor-protocol.md);
|
|
86
|
+
it is not a "spawn only at the floor" rule. Paste the **Claude host**
|
|
87
|
+
Advisor block from that doc, with the resolved agent name filled in, into
|
|
88
|
+
every executor's spawn prompt. On a **Grok host**, skip the Agent spawn —
|
|
89
|
+
bind a max-tier Claude advisor through the protocol's CLI Claude-chain path
|
|
90
|
+
(Fable high, then Opus max; `claude_chain_runner.py` for account usage
|
|
91
|
+
failover). Paste the **Grok host** Advisor block from that doc into every
|
|
92
|
+
executor's spawn prompt — never the Claude SendMessage block. Every row in
|
|
93
|
+
the routing table is a consumer of the shared advisor, not just this
|
|
94
|
+
session. The orchestrating session owns the shared advisor's lifecycle end
|
|
95
|
+
to end (Agent spawn or CLI bind, drift handling per the shared doc,
|
|
96
|
+
shutdown at task end); executors only ever SendMessage the warm agent
|
|
97
|
+
(Claude) or report to this session so it can consult the CLI advisor
|
|
98
|
+
(Grok). When the CLI chain cannot bind, fail closed and report to the user
|
|
99
|
+
— do not answer the four signals as this Grok session.
|
|
93
100
|
|
|
94
101
|
4. **Orchestrate the task.** Hold the plan and the user conversation. Execute
|
|
95
102
|
workflow-backed spawns or resumes using the routing table below, and keep
|
|
@@ -108,10 +115,13 @@ session drives the plan and routes hard decisions to the shared advisor
|
|
|
108
115
|
|
|
109
116
|
**Claude host:** consult the shared `session-advisor` via `SendMessage`.
|
|
110
117
|
**Grok host:** executors report to this orchestrating session; this session
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
118
|
+
consults the bound Claude CLI advisor (`claude_chain_runner.py` +
|
|
119
|
+
`--resume`) and relays the four-signal reply (no Agent-tool
|
|
120
|
+
`session-advisor`, no SendMessage to one). Every consult gets back one of
|
|
121
|
+
four signals (ENDORSE, CORRECTION, PLAN, or STOP). When the CLI advisor is
|
|
122
|
+
unreachable, fail closed and surface that to the user — do not invent a
|
|
123
|
+
signal as this session. See `agents/session-advisor.md` for what each
|
|
124
|
+
signal means and
|
|
115
125
|
[`_shared/advisor/advisor-protocol.md`](../../_shared/advisor/advisor-protocol.md)
|
|
116
126
|
for the consult format.
|
|
117
127
|
|
|
@@ -169,8 +179,8 @@ Routing rules:
|
|
|
169
179
|
session (see
|
|
170
180
|
[`_shared/advisor/advisor-protocol.md`](../../_shared/advisor/advisor-protocol.md))
|
|
171
181
|
— on Claude, executors consult a warm `session-advisor` via SendMessage; on
|
|
172
|
-
Grok, this session
|
|
173
|
-
spawn or respawn the advisor.
|
|
182
|
+
Grok, executors report here and this session relays the Claude CLI advisor.
|
|
183
|
+
Executors never spawn or respawn the advisor.
|
|
174
184
|
- Reuse a warm agent over a cold spawn whenever one holds relevant context.
|
|
175
185
|
|
|
176
186
|
## File Index
|
|
@@ -4,7 +4,7 @@ description: >-
|
|
|
4
4
|
Fired by the /orchestrator loop reminder about every 20 minutes to
|
|
5
5
|
re-assert the advisor discipline mid-run: orchestrate, route hard decisions
|
|
6
6
|
to the shared advisor (ENDORSE / CORRECTION / PLAN / STOP — SendMessage on
|
|
7
|
-
Claude,
|
|
7
|
+
Claude, Claude CLI chain on Grok), reuse warm agents. Triggers:
|
|
8
8
|
'/orchestrator-refresh'.
|
|
9
9
|
---
|
|
10
10
|
|
|
@@ -12,24 +12,28 @@ description: >-
|
|
|
12
12
|
|
|
13
13
|
Detect the host profile first (see Host profiles in
|
|
14
14
|
[`_shared/advisor/advisor-protocol.md`](../../_shared/advisor/advisor-protocol.md)).
|
|
15
|
-
Re-assert the discipline for that host only — do not invent
|
|
16
|
-
`session-advisor` spawn on a Grok host.
|
|
15
|
+
Re-assert the discipline for that host only — do not invent an Agent-tool
|
|
16
|
+
Claude `session-advisor` spawn on a Grok host.
|
|
17
17
|
|
|
18
|
-
1. **You are the
|
|
19
|
-
|
|
20
|
-
|
|
18
|
+
1. **You are the orchestrator.** Orchestrate and hold the user conversation;
|
|
19
|
+
spawn executor subagents to do all the work — every code edit and build or
|
|
20
|
+
test run.
|
|
21
21
|
2. **Hard decisions go to the shared advisor.**
|
|
22
22
|
- **Claude host:** executors consult the warm `session-advisor` via
|
|
23
23
|
`SendMessage` and receive one of four signals — ENDORSE, CORRECTION, PLAN,
|
|
24
24
|
or STOP. The orchestrating session routes its own hard decisions the same
|
|
25
25
|
way and keeps its tool use to orchestration and light verification reads.
|
|
26
|
-
- **Grok host:**
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
26
|
+
- **Grok host:** the advisor is a max-tier Claude CLI bind owned by this
|
|
27
|
+
session (`claude_chain_runner.py`, Fable high then Opus max). Do **not**
|
|
28
|
+
spawn `session-advisor` via Agent and do **not** tell executors to
|
|
29
|
+
SendMessage a separate advisor agent. Executors report blockers to this
|
|
30
|
+
session; consult the Claude CLI advisor and relay ENDORSE / CORRECTION /
|
|
31
|
+
PLAN / STOP. When the CLI bind is unreachable, fail closed and report to
|
|
32
|
+
the user — do not answer the four signals as this Grok session.
|
|
30
33
|
3. **Resume before you spawn.** `SendMessage` an existing *executor* agent by
|
|
31
34
|
name or `agentId` to reuse its warm context; prefer that over a cold spawn.
|
|
32
|
-
(On Grok this is executor reuse only —
|
|
35
|
+
(On Grok this is executor reuse only — advisor re-bind stays on the CLI
|
|
36
|
+
chain path in the shared protocol.)
|
|
33
37
|
4. **Fresh spawn only for a genuine task switch.** No tool compacts or clears a
|
|
34
38
|
subagent's context, so a clean context comes from a fresh spawn — never tell
|
|
35
39
|
an agent to compact.
|
|
@@ -28,4 +28,4 @@ Drives a draft PR to convergence by driving the internal passes to clean first
|
|
|
28
28
|
- All findings and PR reports state verified facts only — no hedging language.
|
|
29
29
|
- The GitHub MCP (`pull_request_read`, `pull_request_review_write`) is the primary path for PR inspection; `gh api` is the fallback.
|
|
30
30
|
- Three step-scoped agents (`fix_executor`, `thread_sweep`, `copilot_watch`) persist across ticks via the `persistent_agents` map in loop state; each tick resumes them with `SendMessage` and spawns a fresh named agent when a stored id is dead.
|
|
31
|
-
- The tick delegates shared mechanics to
|
|
31
|
+
- The tick delegates shared mechanics to three sibling sub-skills: `reviewer-gates` (opt-out, Copilot quota, Bugbot trigger), `pr-fix-protocol` (fix sequence + unresolved-thread sweep), and `pr-loop-lifecycle` (run open/close). Target resolution happens inline in `reference/per-tick.md` Steps 1 and 1.5. Audit posting follows the `_shared/pr-loop/post-audit-thread-contract.md` contract, run through `_shared/pr-loop/scripts/post_audit_thread.py`.
|