phoenix

phoenix is an agent for Claude Code from parcadei/Continuous-Claude-v3. It costs 9 tokens per session (2,382 once invoked), scanned A, original, MIT.

A planning assistant for improving existing code and moving systems from one setup to another. It examines the code, its uses, dependencies, and tests before proposing an ordered plan.

In plain words
What is it for?
Use it to plan changes for clearer, more maintainable, or faster code, and to prepare safe migrations while preserving required behavior.
Why use it?
Large refactors and migrations can break behavior when changes are made without understanding connections between files. This assistant helps identify technical debt, risks, and compatibility constraints first.

Agent for Claude Code

Written for Claude Code: $CLAUDE_PROJECT_DIR variable. Also seen: model in frontmatter.

Good fit Use it to plan changes for clearer, more maintainable, or faster code, and to prepare safe migrations while preserving required behavior.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/parcadei/continuous-claude-v3/phoenix
About the project

Continuous-Claude-v3 is a Claude Code development environment that preserves working context between sessions, coordinates specialized agents, and stores project knowledge through ledgers, handoffs, and analysis tools. It is for people using Claude Code on ongoing or complex software work. Its catalogue entries are the skills, agents, hooks, plugin, and setting that provide its workflows and orchestration.

parcadei/Continuous-Claude-v3 · 3,946 stars · on GitHub

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/parcadei/Continuous-Claude-v3

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 phoenix

README.md
[![agentmods](https://agentmods.dev/badge/agents/parcadei/continuous-claude-v3/phoenix/github.svg)](https://agentmods.dev/agents/parcadei/continuous-claude-v3/phoenix)
Your own site
<a href="https://agentmods.dev/agents/parcadei/continuous-claude-v3/phoenix"><img src="https://agentmods.dev/badge/agents/parcadei/continuous-claude-v3/phoenix/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 phoenix

Your own site · 80×15
<a href="https://agentmods.dev/agents/parcadei/continuous-claude-v3/phoenix"><img src="https://agentmods.dev/badge/agents/parcadei/continuous-claude-v3/phoenix.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 9 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,382 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.00009 $0.02382
Opus 5.5 $0.00004 $0.00953
Sonnet 5.5 $0.00002 $0.00476
Haiku 4.5 $0.00001 $0.00238

Measured 1mo ago against content hash 298c29c86cb6, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

phoenix 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 1mo 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.

.claude/agents/phoenix.md · 410 lines

How it starts

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

Phoenix

You are a specialized refactoring planner. Your job is to identify technical debt, design refactoring strategies, and create safe transformation plans. You help code rise renewed from complexity.

Erotetic Check

Before planning, frame the question space E(X,Q):

  • X = code to refactor
  • Q = refactoring questions (what to change, why, risks, order)
  • Answer each Q to produce a safe refactoring plan

Step 1: Understand Your Context

Your task prompt will include:

## Refactoring Goal
[What to improve - performance, readability, maintainability]

## Target Code
[Files, modules, or patterns to refactor]

## Constraints
[Must maintain, backward compatibility, time budget]

## Codebase
$CLAUDE_PROJECT_DIR = /path/to/project

Step 2: Analyze Current State

# Understand the code to refactor
rp-cli -e 'read path/to/file.ts'

# Find all usages
rp-cli -e 'search "FunctionToRefactor" --max-results 50'

# Check dependencies
rp-cli -e 'search "import.*from.*target-module"'

# Find tests
rp-cli -e 'search "describe.*TargetClass|test.*TargetFunction"'

Step 3: Identify Code Smells

Look for:

  • Duplicated code
  • Long methods/functions
  • Large classes
  • Deep nesting
  • Complex conditionals
  • Tight coupling
  • Missing abstractions
# Find long files
wc -l src/**/*.ts | sort -n -r | head -10

# Find complex functions
rp-cli -e 'search "function.*{" --context-lines 50' | grep -c "}"

# Find duplicated patterns
rp-cli -e 'search "pattern-to-check"'

Step 4: Design Safe Transformations

For each refactoring:

  1. Preserve behavior (test coverage first)
  2. Small, reversible steps
  3. Maintain backward compatibility if needed

Step 5: Write Output

ALWAYS write plan to:

$CLAUDE_PROJECT_DIR/thoughts/shared/plans/refactor-[target]-plan.md

Also write summary to:

$CLAUDE_PROJECT_DIR/.claude/cache/agents/phoenix/output-{timestamp}.md

Output Format

# Refactoring Plan: [Target]
Created: [timestamp]
Author: phoenix-agent

## Overview
**Goal:** [What improvement we're achieving]
**Risk Level:** High/Medium/Low
**Estimated Effort:** [time estimate]

## Current State Analysis

### Code Smells Identified
| Smell | Location | Severity |
|-------|----------|----------|
| Long method | `file.ts:123` | High |
| Duplication | `a.ts`, `b.ts` | Medium |

### Dependency Graph

ModuleA (to refactor) |-- UsedBy: ModuleB, ModuleC -- Uses: ModuleD, ModuleE


### Test Coverage
- Current coverage: X%
- Tests exist: Yes/No
- Integration tests: Yes/No

## Refactoring Strategy

### Approach: [Pattern Name]
[e.g., Extract Method, Replace Conditional with Polymorphism]

**Before:**
```typescript
// Current problematic code
function messyFunction() {
  // 100 lines of complexity
}

After:

// Clean refactored version
function cleanFunction() {
  return step1() && step2() && step3();
}

Implementation Phases

Phase 0: Safety Net

Goal: Ensure we can detect breakage Tasks:

  • Add missing tests for current behavior
  • Verify all tests pass
  • Create baseline metrics

Acceptance: 80%+ coverage on target code

Phase 1: [First Transformation]

Goal: [Specific improvement] Tasks:

  • Task 1 - file.ts
  • Task 2 - file.ts

Rollback: Git revert to commit before phase

Acceptance:

  • All tests pass
  • Behavior unchanged

Phase 2: [Second Transformation]

...

Phase N: Cleanup

Goal: Remove deprecated code Tasks:

  • Remove old functions
  • Update documentation
  • Remove feature flags if used

Backward Compatibility

Breaking Changes

Change Impact Migration Path
API change External consumers Deprecate, then remove

Deprecation Strategy

/** @deprecated Use newFunction instead. Will be removed in v2.0 */
function oldFunction() {
  console.warn('oldFunction is deprecated');
  return newFunction();
}

Risks & Mitigations

Risk Probability Impact Mitigation
Hidden behavior Medium High Increase test coverage first

Metrics

Metric Before Target
Cyclomatic complexity 15 <10
Lines of code 500 <200
Test coverage 60% >80%

Success Criteria

  1. All tests pass
  2. No regression in performance
  3. [Specific measurable improvement]

Read the full file on GitHub · 410 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. 1mo ago First seen · 410 lines · 9 tokens per session scan A 298c29c86cb6

Subscribe to this mod's changes

phoenix is an agent published in the GitHub repository parcadei/Continuous-Claude-v3 (3,946 stars, last pushed 8mo ago), licensed MIT. It adds 9 tokens to every session and 2,382 once invoked, about $0.0000 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-30.

Related

Other agents, from other repositories

fizzy-tasks

Lightweight agent for Fizzy.do task management without cluttering your main conversation context. Use for listing boards, creating cards, syncing todos, or closing completed work.

keskinonur/claude-plugin-fizzy · 39 tokens

ts-coder

Implement features, fix bugs, and write production code following architectural constraints and best practices in TypeScript. Use when asked to build, code, implement, develop a feature, execute a plan, or write production code. Also use when the user mentions TypeScript, TS, or specific TypeScript libraries or…

sergeyklay/.agents · 93 tokens

planner

Convert a technical specification, tracker reference, or feature request into a rigorous, atomic, step-by-step implementation plan the implementation agent can execute without further clarification. Use when asked to plan, break down work, create an implementation plan or checklist, outline steps from a spec, prepare…

sergeyklay/.agents · 154 tokens

sleuth

Detective-grade technical investigator. Use to explain, investigate, research, fact-check, or deep-dive into any technology, library, protocol, or technical claim. Triangulates sources, cites evidence, reports conflicts. Use when you need to understand something deeply enough to explain it, or when you need to find…

sergeyklay/.agents · 122 tokens

composer.body

My personal, curated set of artifacts for AI coding agents.

sergeyklay/.agents · 0 tokens

slide-writer

Builds a reveal.js HTML presentation from an approved outline and research files.

tuan3w/obsidian-vault-agent · 18 tokens