predictive-analyst

predictive-analyst is an agent for Claude Code from softspark/ai-toolkit. It costs 35 tokens per session (451 once invoked), scanned A, original, Apache-2.0.

An agent that examines code changes to predict affected modules, possible regressions, and merge conflicts before changes are committed. A dependency graph maps which parts of a codebase rely on one another.

In plain words
What is it for?
Use it to analyze files or Git diffs, find callers and importers, assess regression risk from project history, and detect branches likely to conflict.
Why use it?
It makes hidden consequences of a change easier to spot before they cause bugs or conflict with other work.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: model in frontmatter.

Part of the ai-toolkit plugin — 115 skills, 44 agents, 14 hooks shipped together

Good fit Use it to analyze files or Git diffs, find callers and importers, assess regression risk from project history, and detect branches likely to conflict.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/softspark/ai-toolkit/predictive-analyst
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.

Clone the repo
git clone --depth 1 https://github.com/softspark/ai-toolkit

Made for: Claude Code.

Or install ai-toolkit, the plugin that ships this one along with the rest of its 115 skills, 44 agents, 14 hooks.

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 predictive-analyst

README.md
[![agentmods](https://agentmods.dev/badge/agents/softspark/ai-toolkit/predictive-analyst/github.svg)](https://agentmods.dev/agents/softspark/ai-toolkit/predictive-analyst)
Your own site
<a href="https://agentmods.dev/agents/softspark/ai-toolkit/predictive-analyst"><img src="https://agentmods.dev/badge/agents/softspark/ai-toolkit/predictive-analyst/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for predictive-analyst

Your own site · 80×15
<a href="https://agentmods.dev/agents/softspark/ai-toolkit/predictive-analyst"><img src="https://agentmods.dev/badge/agents/softspark/ai-toolkit/predictive-analyst.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 35 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 451 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00035 $0.00451
Opus 5.5 $0.00014 $0.00180
Sonnet 5.5 $0.00007 $0.00090
Haiku 4.5 $0.00003 $0.00045

Measured 1mo ago against content hash 7eb9444ea84c, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

predictive-analyst 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 1mo 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.

app/agents/predictive-analyst.md · 58 lines

What it actually says

Predictive Analyst Agent

You are the Predictive Analyst. You live in the future. You see bugs before they are committed.

Core Mission

Predict the impact of code changes. Motto: "Preventing fires is better than fighting them."

Mandatory Protocol (CRYSTAL BALL)

Before analyzing:

  1. Map Dependencies: Understand what calls the modified code.
  2. Check History: Has this module caused regressions before?

Capabilities

1. Impact Analysis (The Ripple Effect)

  • Input: A file or git diff.
  • Action: Find all importers/callers of the modified code.
  • Output: "Changing User.ts will affect AuthService and PaymentController."

2. Regression Prediction

  • Logic: "You changed the behavior of calculateTotal(). The tests in OrderTest.php mock this, but InvoiceGenerator uses it directly without a test."
  • Warning: "High risk of regression in module X."

3. Conflict Detection

  • Check: Are other branches touching these files?
  • Warning: "Merge conflict imminent with branch feature/new-login."

Output Format (Prediction Report)

## 🔮 Impact Prediction

### Target
`src/core/Auth.ts` (Modified)

### Ripple Effect (Affected Modules)
- `src/controllers/LoginController.ts` (Direct dependency)
- `src/middleware/AuthGuard.ts` (High risk)

### Risk Assessment
- **Severity**: High
- **Reason**: Core authentication logic changed.
- **Blind Spots**: `AuthGuard` has low test coverage (40%).

### Recommendation
- Add integration tests for `AuthGuard`.
- Verify login flow manually.
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. 1mo ago First seen · 58 lines · 35 tokens per session scan A 7eb9444ea84c

Subscribe to this mod's changes

predictive-analyst is an agent published in the GitHub repository softspark/ai-toolkit (180 stars, last pushed 2d ago), licensed Apache-2.0. It adds 35 tokens to every session and 451 once invoked, about $0.0001 per session on Opus 5.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

go-observability-reviewer

Go observability reviewer covering structured logging gaps, broken trace context propagation, Prometheus cardinality explosions, span lifecycle errors (missing defer span.End(), unrecorded errors), and sensitive fields in logs. Use when Go code changes import go.uber.org/zap, log/slog, go.opentelemetry.io…

johnqtcg/awesome-skills · 119 tokens

refactor-cleaner

An agent for finding and safely removing dead code, unused exports, unused dependencies, and duplicate implementations.

sangrokjung/claude-forge · 109 tokens

reviewer

Reviews a change for correctness, security, and convention adherence. Use AFTER a resolver edit and BEFORE merge. Read-only by construction — it reports findings, it does not "fix while reviewing" (which hides the bug behind a silent edit).

mycelium-hq/ai-brain-starter · 51 tokens

debugger

Diagnose a repeated gate or slice-verify failure via bounded scientific-method hypothesis cycles, auto-invoked before the retry budget is spent.

Koroqe/claude-code-sdlc · 30 tokens

architect

Deep technical work. Use for complex implementation, deep debugging, cross-module reasoning, architecture review, and risky or security-sensitive changes (auth, billing, migrations, concurrency, caching, data consistency, public APIs). Also reviews work from cheaper agents for hidden flaws.

realgarit/fable-baton · 54 tokens

go-concurrency-reviewer

Go concurrency safety reviewer covering race conditions, deadlocks, goroutine leaks, mutex misuse, channel lifecycle, context propagation, and graceful shutdown. Use when Go code changes contain go func, channels, sync primitives (Mutex, RWMutex, WaitGroup), errgroup, singleflight, select statements, or context…

johnqtcg/awesome-skills · 85 tokens