█

AI/TLDR

मुझे पिलाएं कॉफ़ी
मुझे एक कॉफ़ी पिलाएँ

agent-purge

एक persona file, जो आपके चलाए हर coding agent के system prompt में inject होती है

Coding-Agent Harnesses & Runtimesओपन सोर्स
भाषा
JavaScript
लाइसेंस
MIT
$npm install -g agent-purge
संक्षेप में

agent-purge क्या है?

agent-purge एक persona file, जो आपके चलाए हर coding agent के system prompt में inject होती है. यह AI Coding टूल्स की Coding-Agent Harnesses & Runtimes श्रेणी में आता है; ओपन सोर्स है, JavaScript में लिखा गया है और MIT लाइसेंस के तहत है। शुरू करने के लिए: console इंस्टॉल करें और खोलें.

सारांश

The same agent-purge console in its narrow-screen layout, with the persona, mode options and agent toggles stacked in one column.
The narrow-screen layout of the console.agent-purge README ↗

हर coding agent अपना खुद का system prompt लेकर आता है: उसकी identity line, उसका tone, उसके house rules। और हर एक इसे अलग जगह रखता है: कहीं config file में, कहीं plugin hook में, कहीं launch flag में, कहीं project rule file में। agent-purge एक local prompt-configuration tool है, जो एक ही persona को इन सबके सामने रख देता है। आप persona को एक बार Markdown file में लिखते हैं, तय करते हैं कि उसे कैसे लागू किया जाए, और जिन agents पर उसे चलाना है उन्हें चालू कर देते हैं। हर agent अपने tools, models और workflow को बनाए रखता है।

इसके चार injection modes हैं। `replace` डिफ़ॉल्ट है, जो होस्ट की identity lines बदलता है और उसके बाकी निर्देश बचाने की कोशिश करता है; `strict` होस्ट के नियंत्रित किए जा सकने वाले prompt को persona text से बदल देता है; `append` होस्ट prompt को छेड़े बिना persona को उसके साथ जोड़ देता है; और `off` injection रोक देता है। README साफ़ कहता है कि `strict` की गारंटी नहीं है कि मॉडल सिर्फ़ आपका persona ही देखेगा। agent और channel के हिसाब से यह text `system` या `developer` role में, या project context में पहुँच सकता है, और होस्ट अपने खुद के wrapper prompts भी जोड़ सकता है।

persona agent तक कैसे पहुँचता है, यह channel पर निर्भर है: `install` managed configs, plugins या identity files लिखता है; `shim` PATH पर सबसे आगे एक forwarding command रखता है; `slash` session के अंदर `/purge` command रजिस्टर करता है; `project` `AGENTS.md` या `CLAUDE.md` में एक managed block लिखता है। हर write का backups के साथ एक ledger में रिकॉर्ड होता है, इसलिए `agent-purge clean` मूल configuration वापस ला सकता है। README में pi / omp, OpenCode, DeepSeek Harness, Codex, Claude Code, CodeBuddy, Grok, Kilo Code और WorkBuddy के verified versions दिए गए हैं, और जिन agents में हर turn पर callback होता है, उनमें turns के बीच hot-switching भी verified है। यह Node.js 20+ पर चलता है, डेटा `~/.agent-purge/` के नीचे रखता है, और इसका web console सिर्फ़ `127.0.0.1` पर सुनता है।

यह क्या करता है

  • एक Markdown persona, जो Codex, Claude Code, OpenCode, pi, DeepSeek Harness, Kilo Code, Grok, CodeBuddy और WorkBuddy सब पर लागू होता है
  • चार injection modes (replace, strict, append और off), जिन्हें पूरी तरह global या हर agent के लिए अलग से सेट किया जा सकता है
  • चार delivery channels: managed config install, PATH shim, session के अंदर /purge slash command और project rule files
  • 127.0.0.1:7788 पर एक local web console, जिसमें persona library, हर agent के toggles और diagnostics हैं, और जो CLI के साथ state साझा करता है
  • हर managed write का backups वाला ledger, साथ में pause, disarm, uninstall और clean commands जो मूल files वापस लाते हैं
  • npm पर और Windows installer, zip तथा standalone executable builds के रूप में उपलब्ध

शुरू करें

agent-purge को Node.js 20+ चाहिए, और जिन coding agents को आप मैनेज करना चाहते हैं वे पहले से इंस्टॉल होने चाहिए। ये steps project के README के अनुसार हैं।

Console इंस्टॉल करें और खोलें

npm package को global रूप से इंस्टॉल करें और web console शुरू करें, या `npx agent-purge web` से इसे एक बार चलाएँ। Headless machine पर (SSH, WSL) `--no-open` जोड़ें।

bashbash
npm install -g agent-purge
agent-purge web
The agent-purge web console with the persona and mode picker, the three injection modes and toggles for the Claude, Codex and pi agents.
The console: pick a persona, choose how it is injected, then switch on the agents it should govern.agent-purge README ↗

Persona लिखें

पहली बार चलाने पर `neutral` नाम का starter template बनता है, जिसे आप Persona Library में edit कर सकते हैं। खुद से लिखने के लिए `~/.agent-purge/personas/` के अंदर एक Markdown file सेव करें। prompt में सिर्फ़ body जाती है, front matter management के लिए है। नीचे दिया example README का अपना है, जिसे चीनी से अनुवादित किया गया है।

markdownmarkdown
---
id: concise
name: Concise collaborator
description: Conclusion first, read the code before editing
---

Give the conclusion first, then the reasoning.
Read the existing implementation before changing code; say so when unsure.

Persona और mode चुनें

CLI से active persona और global mode बदलें, या किसी एक agent को उसकी अपनी setting दें।

bashbash
agent-purge ls
agent-purge use concise
agent-purge mode append
agent-purge use concise --for codex

एक ही run पर आज़माएँ

कुछ भी स्थायी रूप से रजिस्टर किए बिना टेस्ट करने के लिए agent-purge के ज़रिए agent लॉन्च करें; `--` के बाद के arguments होस्ट agent को जाते हैं।

bashbash
agent-purge codex --mode append
agent-purge pi --ask "Explain this repository"

Agents को स्थायी रूप से सक्रिय करें

जो channels चाहिए उन्हें चालू करें, फिर नया session शुरू करें या हर agent के status line में बताए अनुसार plugin reload करें।

bashbash
agent-purge install codex
agent-purge arm pi --slash
agent-purge project on pi --dir /path/to/project
agent-purge status

रोकें या वापस लें

persona खोए बिना हर channel रोकें, या package uninstall करने से पहले managed hooks हटा दें।

bashbash
agent-purge pause
agent-purge resume
agent-purge clean
npm uninstall -g agent-purge

कमांड और कोड प्रोजेक्ट के अपने दस्तावेज़ों से लिए गए हैं — हमेशा जांचें आधिकारिक repo ताज़ा जानकारी के लिए।

कब इस्तेमाल करें

  • जब आप कई coding agents के बीच बदलते हैं और चाहते हैं कि सभी में एक ही भाषा, tone और काम करने के नियम हों, तब इसका इस्तेमाल करें
  • जब आप यह परखना चाहते हैं कि कोई अलग identity या instruction block agent के व्यवहार को कैसे बदलता है, और फिर उसे साफ़-सुथरे तरीके से वापस लेना चाहते हैं, तब इसका इस्तेमाल करें
  • जब आप टीम का persona मेंटेन करते हैं और चाहते हैं कि वह AGENTS.md या CLAUDE.md में एक managed, हटाए जा सकने वाले block के रूप में लिखा रहे, तब इसका इस्तेमाल करें

How agent-purge compares

agent-purge alongside other open-source coding-agent harnesses & runtimes tools AI/TLDR tracks, ranked by GitHub stars.

टूलस्टारयह क्या करता है
CC Switch★ 159kआपकी चलाई हर coding-agent CLI की provider configuration संभालने वाला एक desktop app
Oh My OpenAgent★ 71.3kएक keyword से चलने वाला, OpenCode और Codex CLI के लिए पहले से कॉन्फ़िगर्ड multi-agent बंडल
herdr★ 53.9kशेल सेशन की जगह लंबे समय तक चलने वाले coding agents के लिए नए सिरे से बना एक terminal multiplexer
oh-my-claudecode★ 41.2kClaude Code के ऊपर मल्टी-एजेंट ऑर्केस्ट्रेशन
DSH Go★ 36.9kएक Android ऐप जो DeepSeek Harness को फ़ोन पर ही चलाता है, या आपके कंप्यूटर पर चल रहे DSH को रिमोट से कंट्रोल करता है
AionUi★ 34.6kऐसा डेस्कटॉप वर्कस्पेस जो अपना एजेंट और दो दर्जन CLI एजेंट एक ही इंटरफ़ेस में चलाता है
cc-connect★ 16.5kTerminal की जगह Slack, Telegram या Feishu से अपना लोकल coding agent चलाएं
agent-purge★ 2.3kएक persona file, जो आपके चलाए हर coding agent के system prompt में inject होती है