icn: Agent for Claude Code

.github/agents/icn-refactoring.md

icn-refactoring is an agent for Claude Code from InterCooperative-Network/icn. It costs 32 tokens per session (544 once invoked), scanned A, original, AGPL-3.0.

A code-refactoring agent that changes a codebase while preserving its existing behavior. It handles restructuring Rust crates, moving APIs, and reducing technical debt.

In plain words
What is it for?
Use it to reorganize crates, migrate APIs, and clean up difficult or outdated code.
Why use it?
It helps make internal changes safer by protecting the rules and behavior the code already depends on.

Agent for Claude Code

Written for Claude Code: a Claude Code subagent (agents/*.md).

This is InterCooperative-Network/icn's own configuration. It tells Claude Code how to work on icn itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything icn configures →

Reuse

Borrowing it

Nothing to install: this file belongs to InterCooperative-Network/icn. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/InterCooperative-Network/icn/main/.github/agents/icn-refactoring.md
Clone the repo
git clone --depth 1 https://github.com/InterCooperative-Network/icn

Made for: Claude Code.

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 icn-refactoring

README.md
[![agentmods](https://agentmods.dev/badge/agents/intercooperative-network/icn/icn-refactoring.svg)](https://agentmods.dev/agents/intercooperative-network/icn/icn-refactoring)
Your own site
<a href="https://agentmods.dev/agents/intercooperative-network/icn/icn-refactoring"><img src="https://agentmods.dev/badge/agents/intercooperative-network/icn/icn-refactoring.svg" alt="Measured on agentmods" height="20"></a>
Per session 32 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 544 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 unknown 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.00032 $0.00544
Opus 5 $0.00016 $0.00272
Sonnet 5 $0.00006 $0.00109
Haiku 4.5 $0.00003 $0.00054

Measured 3d ago against content hash 62d394e91223, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

icn-refactoring 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.

.github/agents/icn-refactoring.md · 87 lines

The source is not reproduced here

Licensed AGPL-3.0

The repository is licensed AGPL-3.0, which this catalogue does not treat as permission to reproduce the file. Read it at the source.

Read it on GitHub

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. 3d ago First seen · 87 lines · 32 tokens per session scan A 62d394e91223

Subscribe to this mod's changes

icn-refactoring is an agent published in the GitHub repository InterCooperative-Network/icn (10 stars, last pushed today), licensed AGPL-3.0. It adds 32 tokens to every session and 544 once invoked, about $0.0002 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-03.

Related

Other agents, from other repositories

rust-critic

Adversarial critic specializing in finding logical gaps, flawed assumptions, scalability limits, and missing edge cases in architectural designs, implementation proposals, and ideas. Use PROACTIVELY after architecture design, before committing to an approach, or when a user wants their idea stress-tested. Never writes…

bug-ops/zeph · 109 tokens

rust-async-safety-reviewer

Reviews Rust async code for tokio + libsql + axum concurrency hazards. Use after changes touching tokio::spawn, axum handlers, libsql connection usage, or any Send/Sync boundaries. Read-only — produces findings, does not edit.

7xuanlu/wenlan · 59 tokens

rust-code-reviewer

Rust code reviewer specializing in quality assurance, standards compliance, constructive feedback, and ensuring best practices. Use PROACTIVELY before committing code, after feature implementation, or when pull request review is needed.

bug-ops/zeph · 45 tokens

review-rust-code

Comprehensive Rust code review agent. Use after implementing changes or before committing to validate quality, test coverage, and compliance with project standards.

onsails/skills · 32 tokens

auv-code-reviewer

AUV SceneBridge / view-memory lane code quality reviewer. Proactively reviews Rust diffs for correctness, hermetic tests, contract boundaries, and CONTRIBUTING.local.md veto items. Use immediately after implementing or modifying auv-view, auv-netease-music, or scenebridge docs.

moeru-ai/auv · 65 tokens

rust-perf-engineer

Reviews diffs touching poly's per-file runner / discovery / cache / engine paths for hot-path regressions — needless allocations/clones, missed borrows, parser-pool misuse, and non-rayon parallelism.

Goldziher/poly · 49 tokens