ADHD क्या है?
ADHD एक coding-agent skill और npm CLI, जो अलग-अलग parallel ब्रांच में विचार-मंथन करता है, फिर ideas को score करके छाँटता है. यह Agents & Automation टूल्स की Agent Skills & Plugins श्रेणी में आता है; ओपन सोर्स है, TypeScript में लिखा गया है और MIT लाइसेंस के तहत है।
सारांश
ADHD, Claude Code, Cursor, Codex और Gemini CLI जैसे coding agents के लिए एक skill है, और यह adhd-agent npm package के रूप में भी आता है, जिसमें CLI और TypeScript library शामिल है। यह उन सवालों के लिए बना है जिनका कोई एक सही जवाब नहीं होता: design decisions, उलझे हुए debugging, naming, API surface design, strategy, और कोई भी prompt जो "मुझे कुछ तरीके बताओ…" जैसा हो। आप इसे एक समस्या देते हैं। यह उस समस्या को एक साथ कई reasoning ब्रांच में भेजता है और एक रैंक्ड शॉर्टलिस्ट लौटाता है, एक चिह्नित non-obvious pick, और ट्रैप्स की सूची, यानी वे ideas जो अच्छे लगते हैं पर बताए गए कारण से विफल होते हैं।
प्रोजेक्ट का तर्क यह है कि एक chain of thought उसी पर अटक जाती है जो वह सबसे पहले कहती है, और tree-of-thought prompting भी हर ब्रांच को एक ही साझा context में चलाती है, इसलिए वह अटकाव बना रहता है। ADHD ब्रांच को अलग रखता है। Diverge चरण में यह cognitive फ़्रेम का एक सेट चुनता है, जैसे hardware engineer, regulator, 10 साल का बच्चा, biology, logistics, markets, speedrunner या 3am on-call engineer। यह हर फ़्रेम के लिए एक अलग Agent SDK call शुरू करता है, और हर call को एक system prompt मिलता है जो मूल्यांकन करने से मना करता है। ब्रांच एक-दूसरे का output कभी नहीं देखतीं।
Focus चरण में, उल्टे system prompt वाली अलग critic calls काम संभालती हैं। वे हर idea को novelty, viability और fit पर score करती हैं, कारण सहित traps चिह्नित करती हैं, ideas को उनके मूल angle के आधार पर क्लस्टर में बाँटती हैं, और शीर्ष कुछ ideas को risk, पहले कदम और child ideas के साथ sketches में विस्तार देती हैं। एक default run में लगभग N + K + 2 model calls होते हैं (defaults के साथ लगभग 10)। Docs बताते हैं कि agent session के अंदर हर ब्रांच session का base context दोबारा लोड करती है, इसलिए ब्रांच की संख्या के साथ लागत बढ़ती है। यह project TypeScript में लिखा गया है और MIT license के तहत जारी है।
यह क्या करता है
- एक command से skills CLI के जरिए agent skill के रूप में इंस्टॉल होता है, जो Claude Code, Cursor, Codex, Gemini CLI, Windsurf और कई दूसरे agents को पहचान लेता है; SKILL.md को हाथ से कॉपी करके भी इंस्टॉल किया जा सकता है
- Diverge चरण: समानांतर, अलग-अलग Agent SDK calls, हर फ़्रेम के लिए एक, जिनमें कोई साझा context नहीं है और जिनका system prompt ranking या hedging से मना करता है
- Focus चरण: अलग critic calls हर idea को novelty / viability / fit पर score करती हैं, कारण सहित traps चिह्नित करती हैं, ideas को angle के आधार पर क्लस्टर करती हैं और शीर्ष K ideas को विस्तार देती हैं
- एक CLI (adhd), जिसमें फ़्रेम्स, हर फ़्रेम के ideas, top-K, concurrency, context file, generator और critic models, फ़्रेम पैक्स और JSON output के लिए flags हैं
- एक TypeScript library जिसका run() structured results लौटाता है (shortlist, nonObviousPick, traps, deepened, clusters), जिन्हें आप अपने agent के भीतर decision points पर इस्तेमाल कर सकते हैं
- फ़्रेम सादे prompts हैं जो src/packs/ के अंतर्गत packs में समूहित हैं, इसलिए आप किसी दूसरे domain के लिए अपने फ़्रेम खुद लिख सकते हैं
शुरू करें
ADHD तीन तरीकों से आता है: agent skill के रूप में, CLI के रूप में और Node/TypeScript library के रूप में। CLI ANTHROPIC_API_KEY को environment से लेता है, या स्थानीय Claude Code install के auth को दोबारा इस्तेमाल करता है।
अपने agent में skill जोड़ें
skills CLI पता लगाता है कि आप कौन-सा agent इस्तेमाल करते हैं और skills/adhd/SKILL.md को सही जगह पर रख देता है। उसके बाद agent को restart करें। ग्लोबल इंस्टॉल के लिए -g जोड़ें, या किसी खास agents को चुनने के लिए -a।
npx skills add UditAkhourii/adhd
# install globally, or target specific agents
npx skills add UditAkhourii/adhd -g
npx skills add UditAkhourii/adhd -a claude-code -a cursorया इसे Codex के लिए इंस्टॉल करें
कुछ Codex builds skills खोजने में ज़्यादा सख़्त होते हैं। Codex target को ज़बरदस्ती चुनें, या skill फ़ाइल को Codex की skills directory में खुद कॉपी करें।
npx skills add UditAkhourii/adhd -a codex -g
# manual fallback
mkdir -p ~/.codex/skills/adhd
curl -fsSL https://raw.githubusercontent.com/UditAkhourii/adhd/main/skills/adhd/SKILL.md \
-o ~/.codex/skills/adhd/SKILL.mdAgent से इसे invoke करें
brainstorm, ideate, design, naming और refactor के अनुरोधों पर skill अपने आप trigger हो जाता है। आप इसे साफ़ तौर पर भी call कर सकते हैं।
/adhd "design a rate limiter that survives a leader election"टर्मिनल से चलाएँ
CLI को ग्लोबली इंस्टॉल करें। Flags से फ़्रेम्स की संख्या, हर फ़्रेम के ideas और कितने ideas को विस्तार मिले, यह तय होता है। --context एक फ़ाइल को context के रूप में जोड़ता है और --json पूरा result लिखता है।
npm install -g adhd-agent
adhd "design a rate limiter that survives a leader election"
adhd "name this function" --frames 3 --ideas 8 --top 2
adhd "..." --json > result.jsonअपने कोड से इसे call करें
library इंस्टॉल करें और run() call करें। Result structured होता है, इसलिए आप उसे text के रूप में दिखा सकते हैं, या shortlist, traps और deepened sketches किसी दूसरे agent को दे सकते हैं।
npm install adhd-agent
import { run, renderText } from "adhd-agent";
const result = await run({ problem: "How should we shard this queue under bursty load?", framesPerRun: 5, topK: 3 });
console.log(renderText(result));
// result.shortlist · result.nonObviousPick · result.traps · result.deepened · result.clustersकमांड और कोड प्रोजेक्ट के अपने दस्तावेज़ों से लिए गए हैं — हमेशा जांचें आधिकारिक repo ताज़ा जानकारी के लिए।
कब इस्तेमाल करें
- किसी architecture या design decision को चौड़ा करें, जैसे storage layer, sharding scheme, auth model या retry strategy, पाठ्यपुस्तक वाले उत्तर पर रुकने से पहले
- किसी उलझे हुए bug के लिए hypotheses की श्रेणियाँ बनाएँ, जिसे कोई agent कई कोशिशों के बाद ठीक नहीं कर पाया
- functions, services या products के नाम रखें, या API, SDK या CLI की surface डिज़ाइन करें
- planning, review या refactor वाले agent में decision points पर run() call करें, जहाँ पहले मिले idea पर रुक जाना महंगा पड़ता है
How ADHD compares
ADHD alongside other open-source agent skills & plugins tools AI/TLDR tracks, ranked by GitHub stars.
| टूल | स्टार | यह क्या करता है |
|---|---|---|
| Skills for Real Engineers | ★ 338k | coding agents के लिए Matt Pocock के रोज़मर्रा के engineering skills — छोटे, जोड़कर इस्तेमाल होने वाले, और अपने हिसाब से edit करने के लिए बने हुए |
| Superpowers | ★ 331k | एक skills plugin, जो आपके coding agent में पूरी development methodology इंस्टॉल कर देता है |
| ECC | ★ 315k | एक plugin जो पूरी engineering process — agents, skills, hooks, rules और memory — को Claude Code, Codex और दूसरे harnesses में इंस्टॉल करता है |
| Karpathy Coding Guidelines | ★ 238k | चार नियम जो कोडिंग agent को अंदाज़े से काम करने, कोड फुलाने और बिना वजह refactoring करने से रोकते हैं |
| Ponytail | ★ 204k | आपका coding agent सिर्फ़ उतना कोड लिखे, जो असल में काम करे |
| gstack | ★ 143k | Slash-command स्किल्स जो आपके coding agent के लिखे कोड की समीक्षा, टेस्टिंग और शिपिंग करती हैं |
| Taste Skill | ★ 125k | AI से बनी इंटरफ़ेस को जेनेरिक दिखने से रोकने वाली पोर्टेबल एजेंट स्किल्स |
| ADHD | ★ 4.6k | एक coding-agent skill और npm CLI, जो अलग-अलग parallel ब्रांच में विचार-मंथन करता है, फिर ideas को score करके छाँटता है |
