phoenix

A command that switches Phoenix mode on or off. Phoenix mode repeatedly recycles the coding session's context to maintain continuity during long-running work.

In plain words
What is it for?
It is for enabling or disabling recurring context recycling and, when requested, showing the Phoenix chain's settings and status.
Why use it?
It helps the agent continue through context limits without requiring the user to manually restart the session each time.

Command

Part of the remembrall plugin — 6 skills, 12 commands, 4 hooks shipped together

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 commands/cukas/remembrall/phoenix
Clone the repo
git clone --depth 1 https://github.com/cukas/remembrall

Or install remembrall, the plugin that ships this one along with the rest of its 6 skills, 12 commands, 4 hooks.

Per session 16 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 528 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.00016 $0.00528
Opus 5 $0.00008 $0.00264
Sonnet 5 $0.00003 $0.00106
Haiku 4.5 $0.00002 $0.00053

Measured 2d ago against content hash de469823ee64, 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 2d 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.

commands/phoenix.md · 52 lines

What it actually says

Toggle Phoenix Mode

Check current state and toggle:

source "${CLAUDE_PLUGIN_ROOT:-$(cat /tmp/remembrall-meta/plugin-root 2>/dev/null)}/hooks/lib.sh"
CURRENT=$(remembrall_config "phoenix_mode" "false")
echo "Current: phoenix_mode=$CURRENT"
  • If currently off (false): set it to true and confirm.
  • If currently on (true): set it to false and confirm.
source "${CLAUDE_PLUGIN_ROOT:-$(cat /tmp/remembrall-meta/plugin-root 2>/dev/null)}/hooks/lib.sh"
CURRENT=$(remembrall_config "phoenix_mode" "false")
if [ "$CURRENT" = "true" ]; then
  remembrall_config_set "phoenix_mode" "false"
  echo "SWITCHED: phoenix_mode → OFF (normal AK behavior)"
else
  remembrall_config_set "phoenix_mode" "true"
  echo "SWITCHED: phoenix_mode → ON (recurring context recycling)"
fi

If user asks for status, show Phoenix chain info:

source "${CLAUDE_PLUGIN_ROOT:-$(cat /tmp/remembrall-meta/plugin-root 2>/dev/null)}/hooks/lib.sh"
PHOENIX_MAX=$(remembrall_config "phoenix_max_cycles" "10")
echo "phoenix_mode: $(remembrall_config "phoenix_mode" "false")"
echo "phoenix_max_cycles: $PHOENIX_MAX"
PHOENIX_DIR="/tmp/remembrall-phoenix"
if [ -d "$PHOENIX_DIR" ]; then
  for chain_file in "$PHOENIX_DIR"/*.cycle; do
    [ -f "$chain_file" ] || continue
    chain_id=$(basename "$chain_file" .cycle)
    cycle=$(cat "$chain_file")
    echo "Chain $chain_id: cycle $cycle/$PHOENIX_MAX"
  done
fi

Show the user the result and explain:

  • ON: At the urgent threshold, Remembrall captures state and triggers context recycling automatically. The cycle rearms after each compaction — zero clicks, indefinite continuation. Max cycles configurable via phoenix_max_cycles (default 10).
  • OFF: Normal Avada Kedavra behavior at urgent threshold (one-shot).
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. 2d ago First seen · 52 lines · 16 tokens per session scan A de469823ee64

Subscribe to this mod's changes

phoenix is a command published in the GitHub repository cukas/remembrall (6 stars, last pushed 5mo ago), licensed MIT. It adds 16 tokens to every session and 528 once invoked, about $0.0001 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-31.