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

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,934 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.

agentmods
npx agentmods add agents/parcadei/continuous-claude-v3/phoenix
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.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.svg" alt="Measured on agentmods" 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. Scan, not verified.
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 $0.00009 $0.02382
Opus 5 $0.00005 $0.01191
Sonnet 5 $0.00002 $0.00476
Haiku 4.5 $0.00001 $0.00238

Measured 4d ago against content hash 298c29c86cb6, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 4d 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. 4d 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,934 stars, last pushed 7mo ago), licensed MIT. It adds 9 tokens to every session and 2,382 once invoked, about $0.0000 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-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

e2e-test-agent

E2E test agent for validation.

alex-feel/claude-code-toolbox · 13 tokens

flutter-pm

Flutter Project Manager. Decomposes requirements into structured tasks. Maintains task registry (.tasks/REGISTRY.md) with history. Searches for similar past tasks. Creates test scenarios and Maestro E2E test cases for every task. Supports Asana task URLs as input.

aleksandr-chaika/flutter-clean-arch-skills · 58 tokens

maestro-tester

QE E2E testing agent for Flutter apps using Maestro. Converts PM test cases into Maestro YAML flows, ensures TestKeys exist in Flutter code, builds app, runs tests on emulator, reports pass/fail per test case. Use after unit/widget tests pass to verify user journeys.

aleksandr-chaika/flutter-clean-arch-skills · 63 tokens

flutter-dev

Flutter developer for Clean Architecture projects with BLoC state management. Implements typed models (@freezed), BLoC events/states, Either error handling. Use for all Flutter/Dart mobile implementation tasks.

aleksandr-chaika/flutter-clean-arch-skills · 45 tokens

flutter-tester

Flutter testing agent. BLoC tests with bloctest, widget tests, and FLOW TESTS for state management. Mocktail + MockBloc. 80%+ coverage target. CRITICAL: always includes flow tests for CRUD operations.

aleksandr-chaika/flutter-clean-arch-skills · 51 tokens