Hi - I answer from the OpenSmartRoute documentation: routing, the API, plans and quotas, self-hosting. Ask away, or open a support ticket if you need a person.
Grounded in the docs - follow a source before acting on it.
refactor - Agent - OpenSmartRoute
Agentv1.0.0
refactor
Restructures existing code without changing behavior — removes duplication, splits files, decomposes functions, improves naming. Use when a file exceeds ~300 lines, a component is getting complex, or
Copy one of these into your project. Installing also returns the manifest and these snippets.
# after Install: the listing is in your workspace's routing pool - nothing else to configure
curl -s -X POST https://api.opensmartroute.ai/api/v1/route -H 'Authorization: Bearer $OSR_API_KEY' -H 'Content-Type: application/json' -d '{"text": "...", "plan": true}'
# or pin it on the OpenAI-compatible endpoint: {"model": "chamgil71-mywiki-refactor-subagent", ...}
Manifest
An Open Capability Manifest: the router reads it to know what this does, what it costs and when to pick it.
chamgil71-mywiki-refactor-subagent.ocm.jsonjson
{
"ocm": "1",
"id": "chamgil71-mywiki-refactor-subagent",
"kind": "agent",
"name": "refactor",
"description": "Restructures existing code without changing behavior — removes duplication, splits files, decomposes functions, improves naming. Use when a file exceeds ~300 lines, a component is getting complex, or logic is duplicated across files.",
"publisher": "chamgil71",
"version": "1.0.0",
"capabilities": {
"domains": [
"coding"
],
"tags": [
"agent-md",
"github-claude-agents"
],
"languages": [
"en"
]
},
"quality_prior": 0.6,
"examples": [
"Restructures existing code without changing behavior — removes duplication, splits files, decomposes functions, improves naming. Use when a file exceeds ~300 lines, a component is getting complex, or logic is duplicated across files."
],
"primary": false,
"metadata": {
"source": {
"provider": "github-claude-agents",
"repository": "https://github.com/chamgil71/mywiki",
"path": ".claude/agents/refactor.md",
"ref": "02cc2c143354fbc6552399edede37bb394a2ec88",
"url": "https://github.com/chamgil71/mywiki/blob/02cc2c143354fbc6552399edede37bb394a2ec88/.claude/agents/refactor.md",
"key": "chamgil71/mywiki/.claude/agents/refactor.md"
}
},
"instructions": "# Refactor Agent\n\n## Role\n코드 구조 개선\n\n## Responsibilities\n- 중복 코드 제거\n- 파일 분리\n- 함수 분해\n- 명명 개선\n\n## Rules\n- 동작 변경 금지\n- 단계별 refactor\n- 작은 변경 우선\n\n## When to Use\n- 파일 300줄 이상 ([`.claude/rules/development_style.md`](../rules/development_style.md)의 200라인 기준 초과 시)\n- 컴포넌트 복잡\n- 로직 중복 발생",
"cost": {
"context_tokens": 68
}
}
Fetch it by URL: GET /api/v1/registry/chamgil71-mywiki-refactor-subagent/manifest?version=1.0.0
Reviews
Star ratings from people who tried it. One review per account; edit yours any time.
No reviews yet. Install it, try it, and be the first to rate it.