@harnessforce/claude-code-plugin 0.0.0-stage → 0.2.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/.claude-plugin/plugin.json +11 -0
- package/.mcp.json +8 -0
- package/LICENSE +201 -0
- package/README.md +143 -2
- package/commands/help.md +31 -0
- package/commands/import.md +18 -0
- package/commands/run.md +25 -0
- package/commands/setup.md +65 -0
- package/commands/status.md +26 -0
- package/commands/tune.md +39 -0
- package/hooks/hooks.json +127 -0
- package/package.json +26 -3
- package/scripts/harnessforce-hook-main.cjs +1895 -0
- package/scripts/harnessforce-hook.cjs +23 -0
- package/skills/propose-improvements/SKILL.md +105 -0
- package/skills/propose-improvements/scripts/summarize.mjs +474 -0
- package/skills/record-run/SKILL.md +29 -0
- package/skills/using-harnessforce/SKILL.md +54 -0
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: using-harnessforce
|
|
3
|
+
description: Use when starting a session in an environment with the Harnessforce hook, when starting work on an Issue, or when asked what is recorded or collected. The hook injects this text into the context at session start.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Using Harnessforce
|
|
7
|
+
|
|
8
|
+
This session has the Harnessforce hook installed. Harnessforce links the work of people and AI to Issues and records it. Follow these rules.
|
|
9
|
+
|
|
10
|
+
## What is recorded
|
|
11
|
+
|
|
12
|
+
- Session registration: agent, session ID, repository, branch, commit, start time, and the first prompt ID.
|
|
13
|
+
- Config snapshot: the structure of the configuration in use (Claude Code only).
|
|
14
|
+
- OTel telemetry: what the user chooses to send.
|
|
15
|
+
- For work on an Issue, `record-run` registers the session as a Run and closes it. It records no Plan, Decision, or Definition of Done.
|
|
16
|
+
|
|
17
|
+
## What is not collected
|
|
18
|
+
|
|
19
|
+
- Prompts, responses, tool input and output, and the body of code diffs arrive only when the user opts in with `--send-content` and the Workspace has opted in. They are not collected by default.
|
|
20
|
+
- Never put these contents, secrets, or environment variable values in MCP tool input or in a record.
|
|
21
|
+
|
|
22
|
+
## Which hook sends what
|
|
23
|
+
|
|
24
|
+
- SessionStart: session registration and the config snapshot (Codex sends session registration only).
|
|
25
|
+
- UserPromptSubmit: resends on the first prompt (Claude Code only).
|
|
26
|
+
- A failing hook never stops the session. When the hook cannot send, it shows a one-line warning. Tell the user when a warning appears.
|
|
27
|
+
|
|
28
|
+
## Which skill and tool to use, and when
|
|
29
|
+
|
|
30
|
+
- For work on a specified Issue ID, or when the environment variable `HARNESSFORCE_ISSUE` is set, follow `record-run` and use `start_run`, `get_issue`, and `complete_run`. An agent that cannot load the skill calls the tools in the same order.
|
|
31
|
+
- Pass the value of the `harnessforce session_id:` line in the context to `start_run`. If there are several, use the last one. If the line is missing, do not guess the session ID, and do not call `start_run` or `complete_run`.
|
|
32
|
+
- Use `propose-improvements` for the analysis of `/harnessforce:tune`.
|
|
33
|
+
- When no Issue is specified, do not start recording a Run.
|
|
34
|
+
|
|
35
|
+
## Red Flags
|
|
36
|
+
|
|
37
|
+
Stop when one of these thoughts comes up.
|
|
38
|
+
|
|
39
|
+
| Thought | Reality |
|
|
40
|
+
| --- | --- |
|
|
41
|
+
| An Issue was specified, but the work is small, so recording is unnecessary | Work on a specified Issue is recorded regardless of its size |
|
|
42
|
+
| The session ID line is missing, so I will guess it and call `start_run` | Do not guess. The Run would no longer be linked to the session |
|
|
43
|
+
| Summarizing the content before recording would help | Do not pass content to the tool. It goes beyond what is collected |
|
|
44
|
+
| A warning appeared, but I can ignore it | Sending is not working. Tell the user |
|
|
45
|
+
|
|
46
|
+
## Priority
|
|
47
|
+
|
|
48
|
+
1. The user's instructions (CLAUDE.md, AGENTS.md, direct requests). If the user tells you to stop recording, stop recording the Run.
|
|
49
|
+
2. This introduction.
|
|
50
|
+
3. Default behavior.
|
|
51
|
+
|
|
52
|
+
## Subagents
|
|
53
|
+
|
|
54
|
+
A subagent that was delegated only a specific task by its parent does not register a Run by following this introduction. The parent registers the Run.
|