๐ฎ Join the Discord โ for frame design, eval problems, and trap-hunting in real time ยท ๐ Join the community โ as a contributor, maintainer, or early adopter (one short form). An architectural fix for premature convergence in autoregressive reasoning.
> /plugin marketplace add UditAkhourii/adhd> /plugin install adhd@adhd
Repo: UditAkhourii/adhd
What's inside
๐ฎ Join the Discord โ for frame design, eval problems, and trap-hunting in real time ยท ๐ Join the community โ as a contributor, maintainer, or early adopter (one short form).
An architectural fix for premature convergence in autoregressive reasoning.
Linear Chain-of-Thought anchors on whatever it says first. Tree-of-Thought widens the search but still walks a single shared context, so the anchoring persists across branches. ADHD treats this as an architectural problem, not a prompting one โ it spawns N isolated reasoning processes under deliberately distorted cognitive frames, with zero shared context during divergence, then runs a separate critic pass to score, cluster, prune traps, and deepen the survivors.
Reach for it on design decisions, fuzzy debugging, naming, API surface design, strategy, and any prompt of the shape "give me a few ways toโฆ".
๐ Official docs: adhd.mintlify.site ยท ๐ Preprint: ADHD: Parallel Divergent Ideation for Coding Agents ยท ๐ค Author: Udit Akhouri โ @akhouriudit ยท LinkedIn
One eval problem, same model, two strategies. Full transcripts in bench/results.json.
Problem. "We have a CLI that calls an LLM and it sometimes hangs for 90 seconds. Design the right retry/timeout/UX strategy."
Baseline gives the sensible textbook hybrid (staged timeouts + one auto-retry) โ the answer a senior engineer gives in 30 seconds, with no traps named. ADHD spawns 6 isolated frames, surfaces 30+ ideas, flags 20 traps with reasons, and lands the non-obvious pick baseline never considers: the slow model might just be the wrong model for this prompt โ instant abort + branch to a cheaper/faster one.
Walks through four textbook patterns:
Lands on a hybrid recommendation โ 15s first-token timeout, 30s between-token timeout, 90s absolute, one auto-retry. Sensible. Google SRE Book ch. 22. The answer a senior engineer gives in 30 seconds.
What's missing: no traps named, no acknowledgement that the user might want to bail out of a slow request, no questioning of the "wait then retry the same model" frame.
Spawns 6 isolated frames, surfaces a wide set of 30+ ideas across economic-incentive, async-control-surface, gamification, perceptual-distortion, collective-intelligence, redundancy-race clusters, then:
Independent LLM judge on this problem: breadth 9 vs 6, novelty 8 vs 3, trap detection ~8 vs ~2. Methodology in documentation/evals.md.
17+ projects ship or integrate ADHD โ including repowire, mstack, zk-flow-oss, han, wtfismyrepo, and awesome-prompts. The full table of who shipped what lives in ADOPTERS.md.
Shipping ADHD in your project? Open a PR adding yourself to ADOPTERS.md, or open an issue and we'll add you.
One command, auto-detects your agent (Claude Code, Cursor, Antigravity, Codex, Cline, Gemini CLI, Windsurf, and ~50 more):
npx skills add UditAkhourii/adhd
Then invoke explicitly with /adhd "your problem", or let it auto-trigger on ideation intents.
npm install -g adhd-agent # CLI
npm install adhd-agent # library
CLI and library installs, the Codex quick path, manual curl for other agents, and per-platform paths are in documentation/install.md.
adhd "design a rate limiter that survives a leader election"
adhd "name this function" --frames 3 --ideas 8 --top 2
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
Full reference: documentation/api.md.
A two-phase loop with a hard wall between the phases.
novelty / viability / fit), flags traps with reasons, clusters by underlying angle, and deepens the top-K survivors into sketches with risks and first steps.The generator-critic split is mechanical โ separate LLM calls with opposite system prompts โ not promised in one prompt. Deep dive: documentation/how-it-works.md. How it differs from CoT and ToT: documentation/vs-cot-and-tot.md.
Mean scores across 6 open-ended engineering problems (0โ10), ADHD vs a single-shot baseline at the same model, judged by an independent LLM with a skeptical-staff-engineer prompt, A/B order randomized.
| Dimension | ADHD | Baseline | ฮ | Ratio |
|---|---|---|---|---|
| breadth | 9.00 | 4.83 | +4.17 | 1.9ร |
| novelty | 7.83 | 2.67 | +5.17 | 2.9ร |
| trap detection | 9.50 | 1.83 | +7.67 | 5.2ร |
| actionability | 9.50 | 6.50 | +3.00 | 1.5ร |
| builder usefulness | 7.67 | 6.83 | +0.83 | 1.1ร |
ADHD wins 5 of 6 problems. Biggest gap is trap detection โ baselines rarely name the seductive-but-broken ideas. Methodology, limitations, and how to reproduce: documentation/evals.md.
๐ Official docs: adhd.mintlify.site โ the full, browsable documentation site.
In-repo pages:
| Page | What's in it |
|---|---|
| Quickstart | First skill, CLI, and TypeScript runs with practical commands |
| Install | Every install path โ skill, CLI, library, Agent SDK, per-platform |
| How it works | The two-phase loop + architecture (context, pruning, orchestration) |
| vs CoT & ToT | Structural comparison, the three load-bearing differences, frames vs personas |
| Frames | The 15 cognitive frames, how selection works, how to author your own |
| When to use | Use / don't use, why it shines on creative work, cost & speed |
| CLI & API | CLI flags, library types, using ADHD inside your own agent |
| Evals | Methodology, headline numbers, limitations, roadmap |
Also: SKILL.md (the runnable skill) ยท SOURCE-SPEC.md (original spec) ยท CONTRIBUTING.md ยท the preprint.
FAQ
adhd is a Claude Code plugin with 1 hand-picked skill for agent memory work, indexed on Flowy. Install it with the command on its page. It includes adhd. Its skills do not fire on their own yet. Request auto-invocation to have Flowy route them as you prompt. Free and open source.
Is this plugin yours?
Claim it with GitHubSubmit a pluginPromote it