OpenSource-Hub

adhd

UditAkhourii/adhd

面向编码代理的并行发散思维树状思维技能。

项目简介

ADHD 实现带剪枝的思维树,在隔离认知框架下并行发散推理,避免过早收敛。通过评分、修剪陷阱并深化幸存者,增强 AI 代理的创造力与跨学科工作能力。

README 预览

\n  \n    \n  \n\n\n# ADHD — a skill for agents\n\n[](https://github.com/UditAkhourii/adhd/actions/workflows/ci.yml)\n[](https://www.npmjs.com/package/adhd-agent)\n[](./LICENSE)\n[](./documentation/install.md)\n[](https://adhdstack.github.io/)\n[](https://thenewstack.io/claude-code-adhd/)\n[](https://discord.gg/NbWwkwwGw)\n\n\n\n> ### 🎮 [**Join the ADHD Discord →**](https://discord.gg/NbWwkwwGw)\n> This is where the real-time thinking happens: frame design, eval problems, trap-hunting, and neurodivergence-inspired research on reasoning architectures. If you've got opinions on premature convergence, cognitive frames, or just want to argue about the next eval problem — **[come argue with us live](https://discord.gg/NbWwkwwGw).**\n\n> 👉 [**Join the ADHD community →**](https://tally.so/r/WO1Nzj) as a contributor, maintainer, early adopter, or just a member. One short form. We coordinate frame contributions, eval problems, integrations, and adopter onboarding there.\n\n> **An architectural fix for premature convergence in autoregressive reasoning.**\n\nLinear 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.\n\nReach for it on **design decisions, fuzzy debugging, naming, API surface design, strategy, and any prompt of the shape *"give me a few ways to…"***.\n\n📄 **Preprint:** [ADHD: Parallel Divergent Ideation for Coding Agents](https://adhdstack.github.io/) · 👤 **Author:** Udit Akhouri — [@akhouriudit](https://x.com/akhouriudit) · [LinkedIn](https://www.linkedin.com/in/udit-akhouri-10160a168/)\n\n---\n\n## Side-by-side: baseline vs ADHD\n\nOne eval problem, s