@polygraph/codex-plugin 0.4.36 → 0.4.37
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/.codex-plugin/plugin.json +1 -1
- package/README.md +1 -0
- package/package.json +1 -1
- package/skills/session-debrief/SKILL.md +46 -0
package/README.md
CHANGED
|
@@ -40,6 +40,7 @@ It detects your AI agent — Claude Code, Codex, OpenCode, and more — and inst
|
|
|
40
40
|
- **polygraph** — Comprehensive guidance for Polygraph sessions: shared context, repository graph visibility, PR/CI state, delegation, and session management
|
|
41
41
|
- **await-polygraph-ci** — Wait for CI pipelines to settle across all repos in a session, investigate failures, and present fix options
|
|
42
42
|
- **get-latest-ci** — One-shot fetch of the latest CI pipeline execution for the current branch
|
|
43
|
+
- **session-debrief** — Analyze the raw logs of past Polygraph sessions and produce structured, rank-ordered debriefs for use in a different session
|
|
43
44
|
|
|
44
45
|
## Agents
|
|
45
46
|
|
package/package.json
CHANGED
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: session-debrief
|
|
3
|
+
description: Analyze the raw logs of past Polygraph sessions and produce structured, rank-ordered debriefs for use in a different session. Use when launched (typically as a background agent) with a ranked list of relevant Polygraph session IDs and a statement of the current task; pulls parent and child transcripts via the polygraph CLI and returns one consolidated debrief.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Session Debrief
|
|
7
|
+
|
|
8
|
+
You produce debriefs of PAST Polygraph sessions so a parent agent working on a NEW task can decide what context is relevant. 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.
|
|
9
|
+
|
|
10
|
+
## Input
|
|
11
|
+
|
|
12
|
+
- A ranked list of sessions `{ sessionId, title?, url? }`, most relevant first (rank 1 = most relevant). If no explicit ranking is stated, the given order IS the ranking.
|
|
13
|
+
- A statement of the current task the parent is working on.
|
|
14
|
+
|
|
15
|
+
## Procedure
|
|
16
|
+
|
|
17
|
+
For each session, in rank order:
|
|
18
|
+
|
|
19
|
+
1. `polygraph session show --details <sessionId>` — metadata, description timeline, repositories, PRs.
|
|
20
|
+
2. `polygraph session logs -s <sessionId> --json` — the full parent transcript (`--json` returns the full transcript by default).
|
|
21
|
+
3. If the session delegated work to other repositories (child-agent steps exist), pull those transcripts too: `polygraph session logs -s <sessionId> --all --json`, or `--repo <org/repo> --json` for one repo.
|
|
22
|
+
4. Write the debrief section (format below) before moving to the next session.
|
|
23
|
+
|
|
24
|
+
Large transcripts: if the full `--json` output is too large to hold, page with `--tail 200 --page <n>` and prioritize, in order: user prompts, assistant text and final messages, tool errors and failure events, task notifications. Routine tool-use noise (file reads, searches) is safe to skim.
|
|
25
|
+
|
|
26
|
+
## Output
|
|
27
|
+
|
|
28
|
+
Return ONE consolidated debrief as your final message — it is consumed by the parent agent, not shown raw to a human. Sessions in rank order, each following this template. Target a tight page per session; do not pad.
|
|
29
|
+
|
|
30
|
+
### Rank N — <session title> (<sessionId>)
|
|
31
|
+
|
|
32
|
+
**URL:** <session url>
|
|
33
|
+
**Goal:** what the session set out to do.
|
|
34
|
+
**What happened:** condensed narrative of the work performed.
|
|
35
|
+
**Outcome + artifacts:** PRs (URL + status), branches, key files touched.
|
|
36
|
+
**Key decisions:** one bullet per decision, with the recorded rationale.
|
|
37
|
+
**Gotchas / failed approaches:** what went wrong or was abandoned, and why.
|
|
38
|
+
**Unresolved:** open items or next steps the session left behind.
|
|
39
|
+
**Relevance to current task:** one or two sentences connecting this session to the stated task. The parent decides what to use — report the connection, do not overclaim.
|
|
40
|
+
|
|
41
|
+
## Constraints
|
|
42
|
+
|
|
43
|
+
- Exact citations: session URLs, PR URLs, file paths, branch names.
|
|
44
|
+
- If a session's logs are hidden or unavailable, say which (`hidden: true` in the CLI output means hidden by the author; empty steps mean no logs uploaded) and debrief from `session show --details` metadata, description timeline, and PRs alone.
|
|
45
|
+
- No speculation: when the transcript does not show why a decision was made, write "rationale not recorded".
|
|
46
|
+
- Read-only: the inspected sessions must be byte-for-byte unaffected by your work.
|