New to Claude Skills? Learn how to install them →

openclaw on GitHub

Agent Transcript

Free

Enhance GitHub PRs with redacted agent transcripts.

by openclaw385.8k stars on openclaw/openclaw
3 views
Updated Aug 10, 2026
Get this skill

Free · Opens the source repo

What Agent Transcript does

The Agent Transcript skill provides a way to enhance GitHub pull requests (PRs) and issue bodies with redacted transcripts from OpenClaw agent sessions. This skill is particularly useful for developers who utilize AI agents to assist in their workflows, allowing them to include relevant session logs that can help reviewers understand the context and decisions made during the development process. By integrating these transcripts, teams can improve the clarity and prioritization of their PRs.

This skill operates entirely locally, ensuring that no sensitive information is shared over the network. It reads from local agent logs and sanitizes the output before adding it to the PR or issue body. Users are prompted for confirmation before any transcript is inserted, and they can preview the sanitized session logs in HTML format before finalizing the addition. The skill intelligently trims unrelated session turns, focusing only on the content pertinent to the current PR or issue, thereby maintaining relevance and clarity.

The Agent Transcript skill is designed for developers who frequently create or update GitHub PRs and want to provide additional context to their reviewers. By including a redacted transcript, developers can highlight implementation choices, test outcomes, and other critical information that might otherwise be overlooked. This can lead to more informed reviews and faster decision-making within teams.

However, this skill is not suitable for scenarios where sensitive or confidential information may be present in the logs, as it strictly adheres to privacy guidelines by failing closed on unresolved secrets or sensitive data. It is best used in environments where AI agents are routinely employed, and where the added context from transcripts can significantly enhance the review process.

When to use it

Use this skill when you want to enhance GitHub PRs or issues with relevant, redacted session logs from OpenClaw agents.

When not to use it

Avoid using this skill in environments where sensitive information is present in session logs or when no AI agent workflows are utilized.

What you can build with it

Adding Context to PRs

When creating a PR, use the Agent Transcript skill to include relevant session logs that clarify your implementation choices.

Reviewing AI-Assisted Development

As a reviewer, you can benefit from the added context provided by redacted transcripts, making it easier to understand the developer's decisions.

Ensuring Privacy in Logs

If you're concerned about sensitive information, the skill's privacy features ensure that only safe, relevant content is shared.

How to install Agent Transcript

View source

1. Install with the skills CLI

npx skills add openclaw/openclaw/agent-transcript --agent claude-code

2. Or install it manually

Download the skill folder and drop it into ~/.claude/skills/ for all projects, or .claude/skills/ to scope it to one repo. Restart Claude Code so it picks up the new skill.

Anthropic's agentic coding CLI, and the reference implementation of Agent Skills. Drop a skill folder into ~/.claude/skills and Claude Code loads it automatically whenever a task matches the skill's description. Claude Code docs

Inside SKILL.md

Written by openclaw

Agent Transcript

Best-effort local-only provenance for OpenClaw PR/issue bodies. Use during agent-created GitHub PR or issue workflows before creating/updating the body.

Contract

  • Never use network. Session discovery reads local agent logs only.
  • Never upload raw logs. Render sanitized Markdown first.
  • Always ask the user before adding transcript logs to a GitHub PR/issue body.
  • Tell the user sanitized session logs help reviewers and can make PRs easier to prioritize.
  • Offer a local HTML preview before insertion. If the user wants preview, open it and wait for confirmation before adding the section.
  • Fail closed on unresolved secrets, private keys, browser/session/cookie details, or auth URLs.
  • Drop system/developer prompts, raw tool outputs, reasoning, env, cookies, tokens, and broad local paths.
  • Keep user prompts, assistant visible decisions, terse tool summaries, and test/proof outcomes.
  • Remove session turns unrelated to the PR/issue work. Use the PR/issue title, branch name, changed files, and stated goal as scope; omit earlier/later unrelated tasks even when they are in the same session log.
  • Best effort only: PR/issue creation must continue if no safe transcript is found.
  • Add the ## Agent Transcript section only when inserting a real transcript. Never add a placeholder transcript heading or text such as "A sanitized local transcript preview was generated but not included."
  • Use a collapsed <details> section and update existing markers instead of duplicating sections.

Helper

.agents/skills/agent-transcript/scripts/agent-transcript --help

Find a likely local session:

.agents/skills/agent-transcript/scripts/agent-transcript find \
  --query "$PR_TITLE $BRANCH_OR_PR_URL" \
  --cwd "$PWD" \
  --since-days 14

find scans the newest 400 matching local JSONL logs by default across Codex, Claude, Pi, and OpenClaw agent sessions. Use --max-files N for a wider local search.

Render a PR/issue body section:

.agents/skills/agent-transcript/scripts/agent-transcript render \
  --session "$SESSION_JSONL" \
  --out /tmp/agent-transcript.md

Preview one candidate session locally:

.agents/skills/agent-transcript/scripts/agent-transcript preview \
  --session "$SESSION_JSONL" \
  --out /tmp/agent-transcript-preview.html
open /tmp/agent-transcript-preview.html

Append/update a body file before gh pr create --body-file or connector PR creation:

.agents/skills/agent-transcript/scripts/agent-transcript append-body \
  --body /tmp/pr-body.md \
  --session "$SESSION_JSONL" \
  --out /tmp/pr-body.with-transcript.md

PR/Issue Workflow

  1. Draft the normal PR/issue body first.
  2. Run find with title, branch, PR URL/number if known, and cwd.
  3. If a high-confidence session is found, ask: Include a redacted agent transcript? It helps reviewers and can make the PR easier to prioritize. I can open a local preview first.
  4. If the user wants preview, run preview, open the HTML with open, and wait for confirmation.
  5. Before insertion, trim unrelated session turns from the generated section. Keep only turns that explain this PR/issue's goal, implementation choices, files, tests, proof, blockers, and final outcome.
  6. If the user approves, run append-body.
  7. Use the enriched body file for creation/update.
  8. If no safe session is found, say nothing and continue without transcript. If the user declines, continue without transcript and do not add any transcript placeholder section.

Review Artifacts

For manual audits across many PR/session candidates, create a local HTML preview from a local JSON file. This is for maintainers only and is not part of the PR/issue workflow:

.agents/skills/agent-transcript/scripts/agent-transcript html \
  --prs /tmp/recent-prs.json \
  --out /tmp/agent-transcript-preview.html

Frequently asked questions about Agent Transcript

Similar skills