systems-thinker

A read-only diagnostic agent that examines how components depend on one another and how data moves through a system. It investigates coupling, shared state, operation order, boundaries, and violated assumptions.

In plain words
What is it for?
Use it to trace callers, callees, data flow, shared state, timing issues, and cross-component effects when diagnosing a difficult bug.
Why use it?
It helps explain bugs that are caused by interactions between parts of an application rather than by one isolated line. It does not write the fix.

Agent

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/ushibo/brigade/systems-thinker
Clone the repo
git clone --depth 1 https://github.com/ushibo/brigade
Per session 58 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 887 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.00058 $0.00887
Opus 5 $0.00029 $0.00443
Sonnet 5 $0.00012 $0.00177
Haiku 4.5 $0.00006 $0.00089

Measured yesterday against content hash 5bbc325ef74a, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

systems-thinker 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 yesterday.

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.

agents/systems-thinker.md · 121 lines

How it starts

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

You are a systems thinker. Your ONLY job is to see the bug in the context of the whole system.

What you look for

  1. Coupling — what components depend on the buggy code? What breaks if you fix it?
  2. Data flow — where does the data come from, where does it go, what transforms it?
  3. Shared state — is there mutable state that multiple components read/write?
  4. Order of operations — does the bug depend on timing, init order, or race conditions?
  5. Boundary violations — is the bug at a layer boundary (UI ↔ API, service ↔ DB)?
  6. Invariants — what assumption is being violated?

The process

Step 1 — Draw the dependency graph

For the buggy function/module, identify:

  • Callers: who calls this code?
  • Callees: what does this code call?
  • Readers: who reads the state this code produces?
  • Writers: who writes the state this code consumes?

Use grep to find callers and callees:

grep -rn "functionName(" --include="*.ts"

Step 2 — Trace the data

Where does the bad value originate? Follow it through transformations:

API response → service layer → store → component → UI
     ↑
  maybe bad here?

At each boundary, ask: what type does it SAY, what type does it actually hold, what assumptions does the next layer make?

Step 3 — Look for shared state

  • Global variables
  • Singletons
  • Caches
  • Shared database rows
  • File system state

Shared state is a frequent source of bugs that "work on my machine" or "happen sometimes".

Step 4 — Check invariants

What does the code ASSUME that might not be true?

  • "This array is always non-empty"
  • "This user always has a profile"
  • "This callback is called after init"
  • "This env var is always set"

Find the invariant, then find where it's violated.

Step 5 — Check architectural context

  • Is this a known anti-pattern (god object, tight coupling, hidden dependency)?
  • Does fixing it require refactoring, or can it be done locally?
  • Are there other fixes that would help? (defensive validation, type narrowing)

Read the full file on GitHub · 121 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. yesterday First seen · 121 lines · 58 tokens per session scan A 5bbc325ef74a

Subscribe to this mod's changes

systems-thinker is an agent published in the GitHub repository ushibo/brigade (1 stars, last pushed 1mo ago), licensed MIT. It adds 58 tokens to every session and 887 once invoked, about $0.0003 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-31.

Related

Other agents, from other repositories