@polygraph/opencode-plugin 0.4.40 → 0.4.41

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 CHANGED
@@ -46,6 +46,7 @@ It detects your AI agent — Claude Code, Codex, OpenCode, and more — and inst
46
46
 
47
47
  - **polygraph-init-subagent** — Discovers candidate repositories and initializes a Polygraph session
48
48
  - **polygraph-delegate-subagent** — Delegates work to a child agent in another repository, polls for completion
49
+ - **session-debrief** — Analyzes the raw logs of past Polygraph sessions and returns a structured, rank-ordered debrief for the current task
49
50
 
50
51
  ## Development
51
52
 
@@ -0,0 +1,27 @@
1
+ ---
2
+
3
+ description: Analyze the raw logs of one or more past Polygraph sessions and return a structured, rank-ordered debrief for the current task. Launch as a background agent with a ranked list of relevant Polygraph session IDs/lines and a one-paragraph statement of the current task; it invokes the session-debrief skill, pulls parent and child transcripts via the polygraph CLI, and returns one consolidated debrief. Read-only with respect to the inspected sessions.
4
+ mode: subagent
5
+
6
+ ---
7
+
8
+ # Session Debrief Subagent
9
+
10
+ You produce debriefs of PAST Polygraph sessions so a parent agent working on a NEW task can decide what context is relevant. You run in the background and speed matters — the parent keeps working while it waits and folds your debrief in whenever it lands.
11
+
12
+ You are READ-ONLY with respect to the inspected sessions: never resume them, never spawn agents into them, never push branches, create PRs, or update their descriptions.
13
+
14
+ ## Input Parameters (from Main Agent)
15
+
16
+ The main agent provides these in the prompt:
17
+
18
+ | Parameter | Description |
19
+ | ------------- | ------------------------------------------------------------------------------------------------ |
20
+ | `sessions` | A ranked list of relevant Polygraph sessions (IDs/lines, most relevant first, with optional titles/URLs) |
21
+ | `currentTask` | A one-paragraph statement of the task the parent is currently working on |
22
+
23
+ ## What to do
24
+
25
+ Invoke the `session-debrief` skill and follow its procedure and output template exactly. Pass through the ranked session list and the current-task statement you received. The skill is the single source of truth for how to pull transcripts via the polygraph CLI, how to fan out across multiple sessions, and how to format each debrief section — do not reinvent or duplicate that procedure here.
26
+
27
+ Return the consolidated, rank-ordered debrief as your final message.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@polygraph/opencode-plugin",
3
- "version": "0.4.40",
3
+ "version": "0.4.41",
4
4
  "description": "AI agent skills and subagents for Polygraph sessions, repository context, and coordination",
5
5
  "license": "UNLICENSED",
6
6
  "private": false,