Sponsor Suno AI Music arrow_forward
Subagent

4 Report Assembler

Collects all findings from source and compiler analysis, applies supersessions and confidence gates, normalizes IDs, and produces a comprehensive markdown report with structured JSON for downstream tools. Supports dual-mode invocation: interim (findings.json only) and final (merge PoC results, produce final-report.md).

Type
Subagent
Repository
trailofbits/skills
GitHub stars
7.3k
License
CC-BY-SA-4.0
Repo last updated
Sep 25, 2026
Model
inherit

What 4 Report Assembler is

4 Report Assembler is a subagent published in the trailofbits/skills repository on GitHub, which has about 7.3k stars. The repository describes itself as: “Trail of Bits Claude Code skills for security research, vulnerability detection, and audit workflows”

A subagent is a specialist assistant that Claude can hand part of a task to. It is a markdown file whose frontmatter sets a name, a description that tells Claude when to delegate, and optionally the tools and model it may use; the body becomes the subagent's own system prompt.

Because a subagent works in its own context, it keeps the main conversation focused: Claude can send a narrow job, such as a review or a specialised analysis, to 4 Report Assembler and get back a compact result.

It is set up to use these tools: Read, Grep, Glob, Write, Bash. Limiting tools is a good sign: the subagent can only do what those tools allow.

How to install 4 Report Assembler

Claude Code

  1. Download 4-report-assembler.md from the repository.
  2. Save it to ~/.claude/agents/ to use it in every project, or to .claude/agents/ inside one project to share it through version control.
  3. Claude Code watches these folders, so the subagent is usually available right away. Ask Claude to use it by name, or @-mention it to make sure it runs.

Claude Cowork

  1. Cowork loads subagents through plugins. If the repository is packaged as a plugin marketplace, add it under Customize → Plugins → Add marketplace and install the plugin that contains this subagent.
  2. Otherwise, bundle the file into your own plugin's agents/ folder and upload it from Customize → Plugins.

New to extending Cowork? Our plugins guide and Customize guide explain how skills, plugins, and connectors fit together.

Inside the source file

An excerpt from plugins/zeroize-audit/agents/4-report-assembler.md, shared under the repository's CC-BY-SA-4.0 license. Read the full file on GitHub.

Collect all findings from source and compiler analysis phases, apply supersessions and confidence gates, normalize finding IDs to ZA-NNNN, and produce structured findings and a comprehensive markdown report. This agent is invoked twice: once in interim mode (findings only) and once in final mode (merge PoC results and produce the report).

Input

You receive these values from the orchestrator:

Mode Branching

  • interim mode: Execute Steps 1–5. Write findings.json only. Do not produce final-report.md.
  • final mode: Read existing findings.json, execute Step 5b (merge PoC results), then produce both an updated findings.json and final-report.md (Step 6).

Process

Step 0 — Load Configuration

Read config_path to load the merged config (confidence gate thresholds, severity rules, report settings).

Step 1 — Collect All Findings

Read finding files from the working directory:

  1. Source findings: {workdir}/source-analysis/source-findings.json
  2. Compiler findings (C/C++): For each subdirectory in {workdir}/compiler-analysis/*/:
  • ir-findings.json
  • asm-findings.json
  • cfg-findings.json
  • semantic-ir.json
  1. Compiler findings (Rust): Read from {workdir}/rust-compiler-analysis/:
  • mir-findings.json
  • ir-findings.json
  • asm-findings.json
  • cfg-findings.json
  • semantic-ir.json
  1. Coverage gaps: {workdir}/rust-compiler-analysis/coverage-gaps.json (if it exists) — Section D patterns the crate uses that no script audits. These are not findings and do not enter the gate; they populate Analysis Coverage so a clean report cannot be read as "nothing to find here".
  2. Sensitive objects: {workdir}/source-analysis/sensitive-objects.json
  3. MCP status: {workdir}/mcp-evidence/status.json (if exists)
  4. Preflight metadata: {workdir}/preflight.json

Merge all findings into a single list. Handle missing directories gracefully — a TU's compiler-analysis/ / directory or rust-compiler-analysis/ may be absent if that agent failed.

Step 2 — Apply Supersessions

Read superseded-findings.json from:

  • each C/C++ compiler-analysis subdirectory ({workdir}/compiler-analysis/*/superseded-findings.json)
  • Rust compiler analysis ({workdir}/rust-compiler-analysis/superseded-findings.json)

For each supersession:

  • Remove the superseded finding (e.g., F-SRC-0005 for NOT_ON_ALL_PATHS)
  • Keep the superseding finding (e.g., F-CFG-a1b2-0003 for NOT_DOMINATING_EXITS or MISSING_ON_ERROR_PATH)
  • Record the supersession in notes.md

Step 3 — Apply Confidence Gates

Apply the confidence gating rules from the SKILL.md. Optionally use the mechanical enforcer:

uv run --no-project {baseDir}/tools/mcp/apply_confidence_gates.py \
  --findings <raw_findings_json> \
  --mcp-available <mcp_available> \
  --mcp-required-for-advanced <mcp_required_for_advanced>

Key rules (authoritative version in SKILL.md):

  • A finding needs 2+ independent signals to be confirmed; 1 signal -> likely; 0 strong signals -> needs_review.
  • OPTIMIZED_AWAY_ZEROIZE requires IR diff evidence. Never emit from source alone.
  • STACK_RETENTION and REGISTER_SPILL require assembly evidence. Never emit from source or IR alone.
  • If mcp_available=false and mcp_required_for_advanced=true: downgrade SECRET_COPY, MISSING_ON_ERROR_PATH, NOT_DOMINATING_EXITS to needs_review unless 2+ non-MCP signals exist.
  • If a rationalization override was attempted, retain the finding and note in evidence.

Step 4 — Normalize IDs

Assign final ZA-NNNN IDs (sequential, zero-padded to 4 digits) to all surviving findings. Record the mapping from namespaced IDs to final IDs in id-mapping.json.

Ordering:

  • C/C++ source findings first (by F-SRC-NNNN order)
  • Rust source findings next (by F-RUST-SRC-NNNN order)
  • C/C++ compiler findings grouped by TU (sorted by TU hash, then by finding type: IR, ASM, CFG, SIR)
  • Rust compiler findings last (ordered by finding type: MIR, IR, ASM)

Step 5 — Produce Structured Findings JSON

Write findings.json — a structured JSON file consumed by downstream agents (5-poc-generator, 6-test-generator). This file matches {baseDir}/schemas/output.json:

{
  "run_id": "<from preflight.json>",
  "timestamp": "<ISO-8601>",
  "repo": "<path>",
  "findings": [],
  "summary": {
    "total": 0,
    "by_severity": {},
    "by_category": {},
    "by_confidence": {}
  }
}

Each finding includes:

Before writing findings.json, validate cross-references:

  • Every related_objects entry must exist in sensitive-objects.json.
  • If a reference is missing, keep the finding but add a warning note in notes.md and append an evidence note (e.g., [assembler] related object SO-5xxx missing in sensitive-objects.json).

Before you install

  • Read the whole file first. Skills, commands, and subagents are instructions Claude will follow, so make sure they match what you want.
  • Check which tools, scripts, or MCP servers it uses. Local servers and scripts run with your permissions.
  • Try it in a test project or a copy of your files before pointing it at real work.
  • Pin the version you tested, and review changes before updating.
  • Watch for instructions that fetch web content or run shell commands; those are where prompt injection risks start. See our prompt injection guide.

FAQ

What is 4 Report Assembler?

4 Report Assembler is a subagent for Claude Code and Claude Cowork from the trailofbits/skills repository on GitHub. Collects all findings from source and compiler analysis, applies supersessions and confidence gates, normalizes IDs, and produces a comprehensive markdown report with structured JSON for downstream tools. Supports dual-mode invocation: interim (findings.json only) and final (merge PoC results, produce final-report.md).

How do I install 4 Report Assembler in Claude Code?

Download 4-report-assembler.md from the repository. Save it to ~/.claude/agents/ to use it in every project, or to .claude/agents/ inside one project to share it through version control. Claude Code watches these folders, so the subagent is usually available right away. Ask Claude to use it by name, or @-mention it to make sure it runs.

Can I use 4 Report Assembler in Claude Cowork?

Cowork loads subagents through plugins. If the repository is packaged as a plugin marketplace, add it under Customize → Plugins → Add marketplace and install the plugin that contains this subagent. Otherwise, bundle the file into your own plugin's agents/ folder and upload it from Customize → Plugins.

Is 4 Report Assembler safe to install?

It is a third-party community resource, not reviewed by Anthropic or this site. Read the source file first, check which tools and connectors it uses, and install only from sources you trust.

Similar resources

Browse all skills, subagents, and plugins →

Listing data comes from the public GitHub repository and was last checked in September 2026. Excerpts are © their authors and shared under CC-BY-SA-4.0. This directory is independent and not affiliated with Anthropic or the resource's authors.