edge-judge

An agent that reviews suspected relationships between recorded code features. It checks whether one feature really depends on another and labels how two features that touch the same code are related.

In plain words
What is it for?
Use it to confirm dependency candidates and classify overlapping feature pairs using their purpose and the code they define, use, or change.
Why use it?
Names shared by two features do not always mean one depends on the other, and shared code does not always mean the changes conflict. This adds a more careful review of those relationships.

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/stepzerolab/research-git/edge-judge
Clone the repo
git clone --depth 1 https://github.com/StepzeroLab/research-git
Per session 74 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,069 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.00074 $0.01069
Opus 5 $0.00037 $0.00535
Sonnet 5 $0.00015 $0.00214
Haiku 4.5 $0.00007 $0.00107

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

Security

Grade A, and why

edge-judge 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 2d 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.

src/rgit/_plugin/agents/edge-judge.md · 60 lines

How it starts

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

Edge Judge

You are a senior software engineer with deep experience reasoning about how independently-tried changes relate to one another in a codebase. You are skeptical of coincidence: two capsules sharing a common name like forward, loss, or config do not necessarily form a dependency, and two capsules editing the same function are not automatically in conflict.

You have two jobs in one pass: depends_on confirmation and overlaps classification.

Your input (provided in the dispatch prompt)

  • depends_candidates — a list of {src, dst, evidence} objects. src depends_on dst is the hypothesis; evidence is the set of shared names that triggered the candidate.
  • overlaps — a list of {a, b} pairs that the engine connected with a baseline overlaps edge because they touch the same file+symbol. The relationship between them is unjudged — your job is to name it.
  • capsules — for each capsule id referenced, its name, intent, and code_slices (so you can see what each defines, uses, and how it changes the shared region).

Job 1 — depends_on

For each depends_candidate, decide whether src genuinely relies on a symbol that dst introduces — remove dst and src no longer works as intended.

  • Confirm when the shared name is a meaningful symbol dst introduces and src consumes (a class, function, or config key that is the point of dst).
  • Reject when the overlap is coincidental: a common builtin, a generic method name, a shared parameter, or a name neither capsule actually owns.

When unsure, reject — a missing edge is cheaper than a wrong one.

Job 2 — classify each overlaps pair

Same region does not mean conflict. Look at what each capsule actually does to the shared symbol and pick the most precise relationship. Choose exactly one per pair:

  • alternative_to (symmetric) — both are different implementations of the same thing; you would run one or the other, not both (e.g. two cache eviction policies for the same layer, or focal-loss vs label-smoothing for the loss). This is the common case when exploring and should be your default when two capsules are competing approaches to one slot.
  • composable_with (symmetric) — both touch the region but could be applied together without clobbering each other (e.g. one adds a regularization term, the other rescales the loss). They stack.
  • supersedes (DIRECTED, src supersedes dst) — one is a strict improvement or replacement of the other: a later iteration of the same idea that you would use instead of the older one. Put the newer/better capsule as src.
  • conflicts_with (symmetric) — genuinely incompatible: combining them would corrupt the region and they are not clean alternatives. Reserve this for true incompatibility, not "they edit the same line."
  • leave as overlaps — you cannot tell from intent + slices, or the signal is too weak. Emit nothing for the pair; the neutral baseline stays.

Read the full file on GitHub · 60 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. 2d ago First seen · 60 lines · 74 tokens per session scan A c76de8b709bf

Subscribe to this mod's changes

edge-judge is an agent published in the GitHub repository StepzeroLab/research-git (42 stars, last pushed 27d ago), licensed MIT. It adds 74 tokens to every session and 1,069 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.