orc-refactor-architect

orc-refactor-architect is an agent for Claude Code from HigorAlves/orc. It costs 60 tokens per session (853 once invoked), scanned A, original, MIT.

An agent that examines a codebase and its architecture documents to find structural problems that make changes and testing harder.

In plain words
What is it for?
Use it to investigate refactoring, architecture, technical-debt, or cleanup work and identify improvements with broad impact.
Why use it?
It helps reveal duplicated decisions, tightly connected modules, leaky boundaries, and differences between the documented design and the actual code.

Agent for Claude Code

Written for Claude Code: effort in frontmatter. Also seen: model in frontmatter; names the NotebookEdit tool.

Part of the orc plugin — 88 skills, 30 commands, 14 agents, 6 hooks shipped together

Good fit Use it to investigate refactoring, architecture, technical-debt, or cleanup work and identify improvements with broad impact.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/higoralves/orc/orc-refactor-architect
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/HigorAlves/orc

Made for: Claude Code.

Or install orc, the plugin that ships this one along with the rest of its 88 skills, 30 commands, 14 agents, 6 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 orc-refactor-architect

README.md
[![agentmods](https://agentmods.dev/badge/agents/higoralves/orc/orc-refactor-architect/github.svg)](https://agentmods.dev/agents/higoralves/orc/orc-refactor-architect)
Your own site
<a href="https://agentmods.dev/agents/higoralves/orc/orc-refactor-architect"><img src="https://agentmods.dev/badge/agents/higoralves/orc/orc-refactor-architect/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 orc-refactor-architect

Your own site · 80×15
<a href="https://agentmods.dev/agents/higoralves/orc/orc-refactor-architect"><img src="https://agentmods.dev/badge/agents/higoralves/orc/orc-refactor-architect.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 60 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 853 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.00060 $0.00853
Opus 5.5 $0.00024 $0.00341
Sonnet 5.5 $0.00012 $0.00171
Haiku 4.5 $0.00006 $0.00085

Measured 5d ago against content hash 729b6859abbc, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

orc-refactor-architect 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 5d 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.

orc/agents/orc-refactor-architect.md · 64 lines

How it starts

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

You are a staff engineer surveying a codebase for structural debt. You read documented intent (ADRs in docs/adr/, GLOSSARY.md, ARCHITECTURE.md, README.md) and compare it to what the code actually does.

Your role

Surface refactor candidates that have outsized leverage — the change once, ship many improvements kind. Not nits.

  1. Locate the intent — Glob for GLOSSARY.md, docs/adr/**/*.md, ARCHITECTURE.md, top-level README.md. Skim them. Note the stated bounded contexts, layer rules, naming conventions.
  2. Sample the implementation — Don't read everything. Follow orc:code-discovery (preloaded above): when a Graphify code graph is available, use its god-nodes / community structure and graphify query/explain to find high-fan-in modules and coupling directly, then read only the cited spans. Otherwise pick the modules called out in ADRs; pick high-fan-in files (Grep for imports); pick recently-changed files (git log --since="3 months ago" --name-only).
  3. Compare — where does the implementation diverge from the documented architecture? Where do layers leak? Where do bounded contexts share types they shouldn't?
  4. Find the leverage — for each candidate, estimate the cost of refactoring vs. the friction it removes (test pain, build time, cognitive load, future-feature risk).

What you look for (HIGH signal)

  • Modules with too many responsibilities (visible in their import surface or filename suffix sprawl).
  • Cross-layer imports that violate documented direction (UI → DB, etc.).
  • Duplicate definitions of the same concept under different names (search for synonym pairs).
  • "God objects" — files much larger than peers in the same directory.
  • Implicit shared mutable state (singletons, module-level mutables touched from many callers).
  • Test pain that is structural, not fixture-level (e.g. a class that requires 8 collaborators to instantiate).
  • Drift from a recent ADR that hasn't been applied yet (look at "decided" ADRs, then check the code matches).

Read the full file on GitHub · 64 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. 5d ago Changed · -28 tokens per session 729b6859abbc
  2. 1mo ago First seen · 64 lines · 88 tokens per session scan A 8380cc0736a5

Subscribe to this mod's changes

orc-refactor-architect is an agent published in the GitHub repository HigorAlves/orc (7 stars, last pushed yesterday), licensed MIT. It adds 60 tokens to every session and 853 once invoked, about $0.0002 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-31.

Related

Other agents, from other repositories

horizon-auditor

Independently audits one completed Horizon worker attempt against its acceptance criteria and observed receipt. Use only after Horizon observes the worker receipt.

Master0fFate/parallax-claudecode · 32 tokens

fable-lens

Blind adversarial reviewer dispatched by fable-review — attacks a real artifact through one named lens and returns findings. Read-only by capability, not by request: it holds no Edit/Write/Bash and cannot dispatch further subagents. Not for general work; the dispatcher supplies the lens and the scope.

debabsah/fable-method · 65 tokens

project-auditor

Use for /audit or when no PROJECT.md exists. Auditor + Architect hybrid — stack detection, vulnerability analysis, outdated dependency scan, architectural debt, and a concrete refactoring plan.

avelikiy/great_cto · 41 tokens

cms-reviewer

CMS / content-platform pre-implementation reviewer. Outputs threat model TM-{slug}.md and signs off SEO + a11y + content-policy decisions before senior-dev claims tasks.

avelikiy/great_cto · 39 tokens

legal-reviewer

Legal-services / legal-tech specialist pre-implementation reviewer for legal archetype (law firms, solo practitioners, legal-SaaS). Outputs threat model TM-{slug}.md and signs off Critical/High mitigations before senior-dev claims tasks.

avelikiy/great_cto · 52 tokens

tax-reviewer

Tax preparation / filing specialist pre-implementation reviewer for the fintech archetype. Outputs threat model TM-tax-{slug}.md and signs off Critical/High mitigations before senior-dev claims tasks.

avelikiy/great_cto · 42 tokens