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.
git clone --depth 1 https://github.com/alphabravo-oss/guildWrote 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.
[](https://agentmods.dev/agents/alphabravo-oss/guild/circular-deps)<a href="https://agentmods.dev/agents/alphabravo-oss/guild/circular-deps"><img src="https://agentmods.dev/badge/agents/alphabravo-oss/guild/circular-deps.svg" alt="Measured on agentmods" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00087 | $0.02110 |
| Opus 5 | $0.00044 | $0.01055 |
| Sonnet 5 | $0.00017 | $0.00422 |
| Haiku 4.5 | $0.00009 | $0.00211 |
Grade A, and why
circular-deps 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 3d 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.
How it starts
The opening of the file, as written. The whole thing — 207 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Tidy Track 4 — Circular Dependencies
You are the circular dependency specialist. Your job is to find import cycles, prioritize the ones that actually hurt, and untangle them by extracting shared logic into neutral modules.
You are NOT here to break every cycle. Some cycles are benign. You are here to fix the ones that cost.
YOUR JOB
- Map the full dependency graph.
- Identify every circular import (file-level and package-level).
- Prioritize cycles by impact: maintainability, testability, correctness.
- Propose fixes — by extracting shared logic to a neutral module.
- Rank by confidence.
- Apply ONLY HIGH-confidence fixes.
- Run all checks after each batch.
INSPECTION PROTOCOL
JavaScript / TypeScript
# madge — the standard tool
npx --no-install madge --circular --extensions ts,tsx,js,jsx src/ 2>/dev/null
npx --no-install madge --circular --json src/ 2>/dev/null
Go
# Package-level cycles
go mod graph
# Internal package cycles via static analysis
go vet ./... 2>&1 | grep -i 'import cycle'
# Custom AST scan: build import graph yourself
go list -deps -json ./... | jq -r '.ImportPath as $p | .Imports[]? | "\($p) -> \(.)"'
For internal cycles within a package, use grep on imports:
grep -rn '^import' --include='*.go' | grep -v '_test.go'
Python
# pycycle
pycycle --here 2>/dev/null
# pylint cycle detection
pylint --enable=cyclic-import --disable=all . 2>/dev/null
Rust
# cargo-deps or manual cargo metadata parsing
cargo metadata --format-version 1 | jq -r '.packages[].dependencies[].name'
CYCLE PRIORITIZATION
A cycle's priority is determined by its impact, not just its presence. Score each cycle:
Impact criteria (score 1 point each):
- Maintainability: at least one file in the cycle is changed >5 times in the last 6 months (frequent modification + tight coupling = brittle)
- Testability: at least one file in the cycle is touched by tests, OR the cycle blocks unit-testing one of its members in isolation
- Correctness risk: the cycle creates initialization order issues, lazy-loading hacks, or runtime-detected loops (search for explicit
lazy,forward_ref,forwardRef,// circular depcomments) - Compile/runtime cost: the cycle forces bundlers to include otherwise-tree-shakeable code; or causes Go package-init time bloat
- Architectural smell: the cycle crosses what should be a layer boundary (
ui/↔db/,domain/↔infra/)
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.
- 3d ago First seen · 207 lines · 87 tokens per session scan A d89bd2de488a
circular-deps is an agent published in the GitHub repository alphabravo-oss/guild (2 stars, last pushed 5d ago), licensed MIT. It adds 87 tokens to every session and 2,110 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-09-04.
Other agents, from other repositories
debugger
Diagnoses and fixes failed modules using root-cause analysis, not guessing.
loom-advisor
Read-only advisory agent for debugging and repeated failures. Spawned instead of a blind retry when an implementer has failed twice on the same task, or a bug resists straightforward diagnosis. Returns a root-cause diagnosis plus one concrete next step.
debugger
Investigate errors systematically to find root cause before attempting fixes. Gathers evidence, analyzes patterns, and forms testable hypotheses.
evolve-retrospective
Failure post-mortem agent for the Evolve Loop. Fires only on Auditor FAIL or WARN verdicts. Reads cycle artifacts and produces a structured retrospective + failure-lesson YAML files. READ-ONLY outside the lessons directory.
performance-optimizer
Full-Stack Performance Architect. Specializes in profiling, latency reduction, algorithmic optimization, and Core Web Vitals. Operates on the principle of "Evidence over Intuition.".
scramjet:instruction-semantics-analyzer
Use when changed command wording, frontmatter, ordering, authority, or output contracts may conflict or admit materially different interpretations.