ZiChuanLan

Agent Purge — Development skill for Claude Code

Development community

One persona, many coding agents.

How to install Agent Purge

This entry records only its repository, not the path inside it, so there is no exact command to give. Open ZiChuanLan/agent-purge and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Agent Purge does

One persona, many coding agents. Replace or inject system prompts across codex, claude, opencode, grok, omp, hermes, pi, zcode - with a local web console.

Alternatives in Development

  • Hermes Agent Self Evolution — ⚒ Evolutionary self-improvement for Hermes Agent — optimize skills, prompts, and code using DSPy + GEPA 5.2k ★
  • Agentic Stack — One brain, many harnesses 2.2k ★
  • Ccc Orchestration — Spawn, inject into, and ask questions of persistent sibling sessions via Claude Command Center (CCC) 130 ★

README

agent-purge

ZiChuanLan%2Fagent-purge | Trendshift

[![npm](https://img.shields.io/npm/v/agent-purge)](https://www.npmjs.com/package/agent-purge) [![stars](https://img.shields.io/github/stars/ZiChuanLan/agent-purge)](https://github.com/ZiChuanLan/agent-purge/stargazers) [![license](https://img.shields.io/npm/l/agent-purge)](LICENSE)

一份系统提示词,喂给多个 coding agent。支持替换(replace)、只发人设(strict)、追加(append)、清空(off)四种模式,可热切换,全程可逆。

agent-purge web          # 本地控制台 http://127.0.0.1:7788
agent-purge codex        # 用当前 persona 启动 codex
agent-purge pi --ask "…" # 一次性提问

它做什么

每家 coding agent 读系统提示词的位置都不一样:有的认启动参数,有的认配置文件,有的只能靠插件改运行时对象。agent-purge 把这些入口统一成三件事:

通道 机制 生效范围
install 写入该 harness 的托管配置块(Markdown / hooks / 插件) 常驻,别人启动也生效
shim 往 PATH 前置同名小壳,转发给 agent-purge 裸敲命令也接管
slash 会话内 /purge on|off|status 热切换,不动磁盘

三层都写的是同一份 `personas/.md` 的正文。`--mode off` 或 Web 总开关关掉时,全部撤回到原样——不留残渣。

安装

npm i -g agent-purge     # 或 npx agent-purge web

要求 Node ≥ 20,零依赖。



**用 magpie 网关?** 插件不在 npm 包里,在仓库的 `magpie-plugin/` 子目录——不要指向仓库根(根 `package.json` 是 CLI,只有 `bin`,magpie 会拒绝):

magpie plugin add /path/to/agent-purge/magpie-plugin

首次使用先跑一次 `agent-purge web`(打开 http://127.0.0.1:7788 的控制台,先看/选一个人设;不想开界面就用 `agent-purge ls`),它会生成 `~/.agent-purge/personas/`;再跑 `node magpie-plugin/gen-personas.mjs` 生成 Persona 页的人设清单。

详见下文「magpie 网关插件(可选)」。

**数据独立存放**,升级不会被覆盖:默认 `~/.agent-purge/`(Windows `C:\Users\<你>\.agent-purge\`),里面是 `state.json` 和 `personas/`。想换位置就设环境变量:

export AGENT_PURGE_HOME=/path/to/your/data     # Windows: setx AGENT_PURGE_HOME D:\ap-data

旧版本(0.1.x)把