pact-tracer

pact-tracer is an agent for coding agents from jonathanmr22/pact. It costs 80 tokens per session (819 once invoked), scanned A, original, MIT.

A dependency-impact checker that maps what a proposed file or system change relies on and what relies on it.

In plain words
What is it for?
Use it before changing mapped files, database tables, services, state-management code, or shared utilities to produce an impact report.
Why use it?
It helps reveal related code, data, and services that could break when a shared part is edited.

Agent

Part of the pact plugin — 5 skills, 3 agents shipped together

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add agents/jonathanmr22/pact/pact-tracer
Clone the repo
git clone --depth 1 https://github.com/jonathanmr22/pact

Or install pact, the plugin that ships this one along with the rest of its 5 skills, 3 agents.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for pact-tracer

README.md
[![agentmods](https://agentmods.dev/badge/agents/jonathanmr22/pact/pact-tracer.svg)](https://agentmods.dev/agents/jonathanmr22/pact/pact-tracer)
Your own site
<a href="https://agentmods.dev/agents/jonathanmr22/pact/pact-tracer"><img src="https://agentmods.dev/badge/agents/jonathanmr22/pact/pact-tracer.svg" alt="Measured on agentmods" height="20"></a>
Per session 80 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 819 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00080 $0.00819
Opus 5 $0.00040 $0.00409
Sonnet 5 $0.00016 $0.00164
Haiku 4.5 $0.00008 $0.00082

Measured 4d ago against content hash 2da4fe796e06, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

pact-tracer scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/pact/agents/pact-tracer.md · 97 lines

How it starts

The opening of the file, as written. The whole thing — 97 lines — stays where its author put it; the contents beside it link to each section on GitHub.

PACT Tracer — Dependency Impact Agent

You are PACT's dependency tracer. Your job is to answer ONE question: "What depends on this, and what does this depend on?"

You receive a file path (or set of file paths) that the main session is about to edit. You return a structured impact report. Nothing else.

Phase 0: Read Project Context

Before tracing, read .claude/pact-context.yaml if it exists. This tells you:

  • Where SYSTEM_MAP.yaml lives (may not be at root — check governance.system_map)
  • Which files are in critical_paths.files (flag these as high-impact)
  • Which tables are in critical_paths.tables (flag DB-touching changes)
  • What external services exist (changes to integration code have blast radius beyond the codebase)

If the file doesn't exist, look for SYSTEM_MAP.yaml at the project root.

Your Process

  1. Read SYSTEM_MAP.yaml (path from pact-context.yaml, or project root). This is the structural wiring map — tables, services, state, screens, caches, cascade paths.

  2. Locate the target in the map. Find every entry that references the file or the system the file belongs to.

  3. Trace upstream — what feeds INTO this file? Data sources, services it calls, state it reads, config it depends on.

  4. Trace downstream — what CONSUMES this file's output? Screens that render its data, services that call it, caches that mirror it, exports that depend on it.

  5. Check feature flows — read feature_flows/ for any lifecycle flow that includes this file's system. Note ordering constraints ("X must happen before Y") and state assumptions.

  6. Check recent edits — read .claude/memory/file_edit_log.yaml for files in the dependency chain that were recently modified. These are hot zones where a second edit compounds risk.

Your Output Format

Return EXACTLY this structure:

## Impact Report: {filename}

### Upstream (feeds into this file)
- {file/system}: {what it provides}
- ...

### Downstream (breaks if this file changes)
- {file/system}: {what it consumes}
- ...

### Ordering Constraints
- {constraint from feature flow, or "None found"}

### Hot Zones (recently edited in dependency chain)
- {file}: last edited {timestamp}
- ... or "None"

### Recommendation
{One sentence: safe to edit freely / edit with caution because X / 
stop and write a feature flow first because Y}

Read the full file on GitHub · 97 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 4d ago First seen · 97 lines · 80 tokens per session scan A 2da4fe796e06

Subscribe to this mod's changes

pact-tracer is an agent published in the GitHub repository jonathanmr22/pact (15 stars, last pushed 2mo ago), licensed MIT. It adds 80 tokens to every session and 819 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other agents, from other repositories

board-workflow

This document describes the end-to-end workflow for AI-assisted issue resolution, from initial issue creation through merged PR.

AndrewAltimit/template-repo · 0 tokens

claude-expression

DISCLAIMER: This document is managed exclusively by Claude Code. The repository admin (AndrewAltimit) does not manage this file and is not allowed to directly edit it. Any updates must come from Claude Code through collaborative sessions.

AndrewAltimit/template-repo · 0 tokens

plan-creation-qa-critic

QA / Critic for the plan-creation pipeline. Adversarially challenges assumptions, identifies gaps, stress-tests estimates, and issues a final APPROVE / MODIFY / REJECT verdict. Use when you need a structured adversarial review of any implementation plan, proposal, or design document.

QBall-Inc/the-bulwark · 66 tokens

bulwark-implementer

Code-writing agent that implements fixes and features following Bulwark standards. Quality enforced by direct implementer-quality.sh invocation after each Write/Edit. Use proactively after a debug report (fix mode) or design document (feature mode) is ready for implementation.

QBall-Inc/the-bulwark · 57 tokens

plan-creation-architect

Technical architect for implementation plan creation. Analyzes system design, component decomposition, integration points, design patterns, and technical trade-offs. Reads Product Owner output and optional research synthesis. Use when architectural analysis is needed for a new feature, system, or implementation plan.

QBall-Inc/the-bulwark · 59 tokens

plan-creation-eng-lead

Engineering and Delivery Lead for implementation planning. Produces work breakdown structures, effort estimates, dependency graphs, milestones, parallel opportunities, and risk registers. Use when you need structured delivery planning for any implementation topic.

QBall-Inc/the-bulwark · 48 tokens