@cardor/agent-harness-kit 1.7.5 → 1.8.1
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 +23 -2
- package/dist/agent-templates/consultant.md +34 -0
- package/dist/agent-templates/lead.md +59 -0
- package/dist/cli.js +518 -235
- package/dist/cli.js.map +1 -1
- package/dist/skills/ahk-ask/SKILL.md +29 -0
- package/dist/skills/ahk-consultant/SKILL.md +28 -0
- package/dist/skills/ahk-triage/SKILL.md +44 -0
- package/package.json +2 -2
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: ahk-ask
|
|
3
|
+
description: Ask a question about this codebase — where is X, does Y exist, how does Z work. Read-only. No tasks created, no harness tracking.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
You are in **lightweight ask mode**.
|
|
7
|
+
|
|
8
|
+
> If `$ARGUMENTS` is empty, ask the user what they want to know before doing anything else.
|
|
9
|
+
|
|
10
|
+
The user's question: $ARGUMENTS
|
|
11
|
+
|
|
12
|
+
## Rules
|
|
13
|
+
- NO MCP calls — no tasks.*, no actions.*
|
|
14
|
+
- NO health.sh
|
|
15
|
+
- NO builder, NO reviewer
|
|
16
|
+
- Create files ONLY if user explicitly asked to save the output
|
|
17
|
+
|
|
18
|
+
## Process
|
|
19
|
+
|
|
20
|
+
1. Invoke **Explorer** as a subagent with this exact instruction:
|
|
21
|
+
> "Read-only codebase question — no MCP harness, no task creation. Map only what is needed to answer: `$ARGUMENTS`. Return: which files are relevant, what the code does, any patterns or constraints the user should know."
|
|
22
|
+
|
|
23
|
+
2. Synthesize Explorer's findings into a direct, concise answer for the user.
|
|
24
|
+
Do not relay the raw output — distill it.
|
|
25
|
+
|
|
26
|
+
## Output
|
|
27
|
+
- Concise answer to the user's question
|
|
28
|
+
- Relevant file paths and code references
|
|
29
|
+
- Important caveats or related constraints
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: ahk-consultant
|
|
3
|
+
description: Get technical advice or review on an approach, idea, or change. References available skills for best practices. No tasks created, no harness tracking.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
You are in **lightweight consultation mode**. The user's topic: $ARGUMENTS
|
|
7
|
+
|
|
8
|
+
## Rules
|
|
9
|
+
- NO MCP calls — no tasks.*, no actions.*
|
|
10
|
+
- NO health.sh
|
|
11
|
+
- NO builder, NO reviewer
|
|
12
|
+
- Create files ONLY if user explicitly asked to save the output
|
|
13
|
+
|
|
14
|
+
## Process
|
|
15
|
+
|
|
16
|
+
1. Invoke **Explorer** as a subagent:
|
|
17
|
+
> "Read-only context gathering — no MCP harness. The user wants technical advice on: `$ARGUMENTS`. Map the relevant codebase — existing patterns, current implementation, relevant dependencies. Return findings as plain structured text."
|
|
18
|
+
|
|
19
|
+
2. Invoke **Consultant** as a subagent in direct consultation mode, passing Explorer's output:
|
|
20
|
+
> "Direct consultation — no MCP harness, no task. User's topic: `$ARGUMENTS`. Explorer found: [explorer output]. Provide structured technical advice. The provider has already injected available skills into your context — check what skills you are aware of, identify which are relevant to this topic, and reference them explicitly in your advice. If no installed skills seem relevant to the topic, recommend running `npx autoskills` to fetch appropriate skill packs."
|
|
21
|
+
|
|
22
|
+
3. Synthesize a final response for the user.
|
|
23
|
+
|
|
24
|
+
## Output structure
|
|
25
|
+
- **Context** — brief summary of relevant codebase state
|
|
26
|
+
- **Advice** — consultant's structured recommendations
|
|
27
|
+
- **Relevant skills** — skills from your context that apply, OR `npx autoskills` recommendation if none match
|
|
28
|
+
- **Risks & warnings** — what could go wrong with the proposed approach
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: ahk-triage
|
|
3
|
+
description: Triage a bug or unexpected behavior. Deep diagnostic analysis with structured report. No tasks created, no harness tracking.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
You are in **lightweight triage mode**.
|
|
7
|
+
|
|
8
|
+
> If `$ARGUMENTS` is empty, ask the user to describe the issue before doing anything else.
|
|
9
|
+
|
|
10
|
+
The issue: $ARGUMENTS
|
|
11
|
+
|
|
12
|
+
## Rules
|
|
13
|
+
- NO MCP calls — no tasks.*, no actions.*
|
|
14
|
+
- Run health.sh ONLY if the issue explicitly involves the build or test suite — not as a routine step
|
|
15
|
+
- NO builder, NO reviewer
|
|
16
|
+
- Create files ONLY if user explicitly asked to save the report
|
|
17
|
+
|
|
18
|
+
## Process
|
|
19
|
+
|
|
20
|
+
1. Invoke **Explorer** as a subagent:
|
|
21
|
+
> "Read-only diagnostic investigation — no MCP harness. Issue reported: `$ARGUMENTS`. Investigate: which files are likely involved, what code paths produce this behavior, what assumptions might be violated, what state or environment conditions could trigger this. Return a detailed diagnostic analysis."
|
|
22
|
+
|
|
23
|
+
2. Synthesize Explorer's findings into the REQUIRED output format below. Do not skip or reorder sections.
|
|
24
|
+
|
|
25
|
+
## Required output format
|
|
26
|
+
|
|
27
|
+
---
|
|
28
|
+
|
|
29
|
+
**TL;DR**
|
|
30
|
+
One paragraph. What is happening and the most likely cause.
|
|
31
|
+
|
|
32
|
+
**Long Description**
|
|
33
|
+
Detailed analysis: what the code is doing, what it should do, where the divergence occurs.
|
|
34
|
+
|
|
35
|
+
**Root Cause Analysis**
|
|
36
|
+
The causal chain: trigger → behavior → symptom. Name specific files, functions, and line numbers where relevant.
|
|
37
|
+
|
|
38
|
+
**Possible Fixes**
|
|
39
|
+
Ordered most-to-least likely. Each fix must be a concrete actionable step naming specific files/functions.
|
|
40
|
+
|
|
41
|
+
**Follow-up Questions**
|
|
42
|
+
*(Omit this section entirely if investigation was sufficient. Include only genuine unknowns that would change the diagnosis.)*
|
|
43
|
+
|
|
44
|
+
---
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cardor/agent-harness-kit",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.8.1",
|
|
4
4
|
"description": "CLI scaffolding for multi-agent harness systems",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"ws": "^8.18.0"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
|
-
"@cardor/agent-harness-kit": "^1.
|
|
52
|
+
"@cardor/agent-harness-kit": "^1.8.0",
|
|
53
53
|
"@commitlint/cli": "^20.5.3",
|
|
54
54
|
"@commitlint/config-conventional": "^20.5.3",
|
|
55
55
|
"@eslint-react/eslint-plugin": "^5.7.1",
|