72 Commits

Author SHA1 Message Date
Udit Akhouri 16dc239ff1 Fix image source in README
Updated image source in README.md
2026-08-29 22:48:09 +05:30
Udit Akhouri 0a39a092ee Update Discord link in README.md 2026-08-29 22:47:31 +05:30
Sergei Shatrov 53ab5576b7 Add multi to ADOPTERS (#57)
multi ports the ADHD loop across model families — each frame goes to a
different backend (Claude sub-agent, Codex, OpenCode/OpenRouter).
2026-08-23 18:08:43 +05:30
Udit Akhouri 001a29d246 Slim down the README (#56)
- Move the 17-row early adopters table to ADOPTERS.md, keep a one-paragraph summary
- Collapse the baseline-vs-ADHD side-by-side table into a <details> block with a short summary
- Merge the two Discord/community callouts into one line
- Drop the Codex quick path section (already covered in documentation/install.md) and point there
- Remove the duplicate Community section and the doubled Star History heading


Claude-Session: https://claude.ai/code/session_01E5fUe2V6HDySPCoiS375bD

Co-authored-by: Claude <noreply@anthropic.com>
2026-08-22 10:58:58 +05:30
Udit Akhouri b061e149ef Add official docs link (adhd.mintlify.site) to README (#55)
Claude-Session: https://claude.ai/code/session_01E5fUe2V6HDySPCoiS375bD

Co-authored-by: Claude <noreply@anthropic.com>
2026-08-22 10:54:17 +05:30
Kirch 3d9dc487bc feat: add plugin manifest so the repo installs as a Claude Code plugin (#41)
Adds .claude-plugin/plugin.json and .claude-plugin/marketplace.json so the
repository can be installed via `/plugin marketplace add` and `/plugin install`
alongside the existing npm distribution. The skill under skills/adhd/ is
auto-discovered; no skill or source files are changed.

Co-authored-by: rob <rob@robs-MacBook-Pro.local>
Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-08-05 11:44:01 +05:30
Udit Akhouri eaeba4e98b Update README with Trendshift badge and Discord info
Added Trendshift badge and updated Discord invitation text.
2026-07-23 18:27:58 +05:30
AMINA S 027b03904d feat: add symmetric strength signal to the critic pass (#34)
Co-authored-by: Developer @aaminashihab (https://github.com/aaminashihab)
2026-07-23 18:22:08 +05:30
Udit Akhouri b670af03b9 Add anchor-stripping pre-pass before fan-out (#4) (#35)
Every divergent branch previously saw the same raw problem statement,
so an anchor embedded in it (e.g. "we currently use Postgres and...")
infected all N branches regardless of branch isolation. Isolation
between branches buys nothing against an anchor already in the seed
prompt.

Adds a Phase 0 reframe pass: one LLM call strips incidental
implementation details (current stack, existing tool names) from the
problem before it reaches divergence, while preserving genuine
constraints (compliance, budget, physical limits). Convergence
(score/cluster/deepen) still judges ideas against the original
problem, since viability has to account for real constraints even
when divergence doesn't.

Opt out with `stripAnchors: false` / `--no-anchor-strip` if the raw
problem is preferred as-is. Fails open to the original problem if the
reframe call errors or returns empty.

Co-authored-by: UditAkhourii <researchudit@gmail.com>
Co-authored-by: Claude Sonnet 5 <noreply@anthropic.com>
2026-07-23 18:01:59 +05:30
Udit Akhouri 8af977d3ec Add Discord community link with high-visibility CTA at top of README 2026-07-23 13:24:07 +05:30
Udit Akhouri 562fbe62a2 Add four new early adopters (mythify, godaudits, godplans, Claude1.0)
All merged PRs referencing ADHD adoption, verified via gh pr view/diff.
Excluded horus-harness#384 (backlog note only, nothing shipped yet).
2026-07-23 13:01:04 +05:30
Jb Anmol 4a8dbda78b docs: add practical quickstart guide (#31)
* docs: add practical quickstart guide

* Apply suggestions from code review

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>

---------

Co-authored-by: Udit Akhouri <156824020+UditAkhourii@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
2026-07-22 11:10:21 +05:30
Udit Akhouri 19c832e007 Add Miya-Gadget independent benchmark to external reviews
Blind-scored duel vs single-shot baseline; ADHD won both problems,
with the largest gains in novelty and trap detection.
2026-07-21 11:43:47 +05:30
Udit Akhouri 8b5fdbaee7 Enhance Star History section in README
Updated the Star History section with responsive image support and corrected the repository link.
2026-07-21 11:36:46 +05:30
Nandni Jaiswal 3dc37add24 feat: add wtfismyrepo to early adopters table (#25)
wtfismyrepo (github.com/nandnijaiswal/wtfismyrepo) uses ADHD as the
explanation engine for codebase onboarding. The deterministic layer
(PageRank over import graph, git-churn fragility, GitHub PR/issue signals)
produces an analysis that is formatted as an ADHD problem+context, then
the diverge->score->cluster->deepen loop picks the best onboarding angle
across 12 codebase-specific frames for the specific developer's level and
goal.
2026-07-21 11:31:36 +05:30
Haris Chechi 5001cd5cec Fix critical command injection and multiple security/quality issues (#29)
- Fix command injection in summary.yml: replace shell gh command with
  actions/github-script to avoid shell interpolation of AI output
- Harden prompt injection defense with structural tag boundaries
- Add Zod validation for all LLM JSON output (schemas were a dependency
  but unused)
- Add CLI input validation with bounds checking for numeric flags and
  file size limit for --context
- Replace biased sort-based shuffle with Fisher-Yates in frame selection
- Add npm test to CI workflow
- Update actions/stale from v5 to v9 with real messages
- Fill in SECURITY.md with responsible disclosure policy

Co-authored-by: Haris Chechi <chechi@Hariss-Air.lan>
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-07-21 11:27:57 +05:30
Udit Akhouri a2e4a90b9e docs: surface community note at top of README (#27)
Duplicates the existing "Join the ADHD community" call-to-action from
the Community section right after the badges, so it's visible before
a reader scrolls past the hero section.

Co-authored-by: Udit Akhouri <researchudit@gmail.com>
2026-07-20 13:33:47 +05:30
Udit Akhouri afcfc9167e Add stale.yml workflow to manage inactive issues and PRs
This workflow automatically marks stale issues and pull requests based on inactivity, helping to manage repository activity.
2026-07-20 13:28:08 +05:30
Udit Akhouri 54b2cc02e6 Add GitHub Actions workflow to summarize issues 2026-07-20 13:27:32 +05:30
Udit Akhouri faf1691bd3 Add CodeQL analysis workflow
This workflow file sets up CodeQL analysis for the repository, specifying the languages to analyze and the conditions for running the analysis.
2026-07-20 13:26:47 +05:30
Udit Akhouri d927f7a137 Add Dependency Review workflow for PRs
This workflow scans dependency manifest files in pull requests for known vulnerabilities and blocks merging if vulnerable packages are introduced.
2026-07-20 13:26:16 +05:30
Patrick Ribbsaeter 268810d194 fix: disable tools for generation-only queries (#26)
Co-authored-by: Patrick <233187023+patrickswedish@users.noreply.github.com>
2026-07-20 13:25:24 +05:30
Udit Akhouri c5287d381f Document why ADHD ≠ 'consider alternatives' prompt (#13) (#24)
Readers repeatedly ask whether ADHD is just a single agent told to
"list 5 options first." Answer the objection explicitly: a single chain
enumerates alternatives into one shared context and anchors on the first;
"list N options" is CoT with a numbered list. ADHD's branches share no
context during divergence, so distinctness is produced by construction.

- vs-cot-and-tot.md: new section "Why prompted alternatives don't
  replicate parallel divergence."
- paper (docs/index.html) §3 Method, "Why the separations matter":
  same argument as a subsection.
- Both cite the practitioner 3×-distinct anecdote as directional (not
  measured) and flag a controlled parallel-N vs list-N comparison as
  future work.

Co-authored-by: Udit Raj <researchudit@gmail.com>
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-30 13:11:11 +05:30
Udit Akhouri f71f29e4c4 Document substrate-multiplied per-run cost (#8) (#23)
The "≈10 LLM calls, 5–10×" framing counts calls, not tokens, and so
undercounts real cost: each divergence branch is an isolated context, so
the base substrate (CLAUDE.md + tool context in a Claude Code session) is
re-loaded once per branch before any novel token is generated.

- when-to-use.md: replace the simple "10 calls" line with the honest
  formula `N × (base + branch) + critic + K × deepen`, and split out the
  library (small substrate) vs skill-in-agent (large substrate) regimes.
- paper (docs/index.html) §Cost: same substrate-multiplied accounting;
  §Implementation now points to it. Drop the single hardcoded
  "$0.30 / $50k" figure in favor of a per-deployment computation, since
  the real number depends on N, substrate, and current pricing.

Co-authored-by: Udit Raj <researchudit@gmail.com>
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-30 13:10:39 +05:30
Udit Akhouri 899791713e Add criticModel option for heterogeneous generator/critic (#6) (#22)
The generator and critic currently run on the same model, producing
correlated errors: the critic systematically misses whatever the
generator systematically gets wrong. Allow the critic passes (score +
cluster) to run on a different model from the generator.

- types: add RunOptions.criticModel (falls back to `model`)
- engine: route score + cluster through `criticModel ?? model`
- cli: add `--critic-model` flag + help
- docs: document the flag and option in documentation/api.md

Divergence still uses `model`; only the convergent critic passes change.

Co-authored-by: Udit Raj <researchudit@gmail.com>
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-30 13:10:19 +05:30
Udit Akhouri 72908df001 README: add side-by-side baseline vs ADHD example (#12) (#21)
Reader feedback: the concept reads as abstract until you see one
concrete output comparison. Adds a compact two-column table on the
llm-hang-cli eval problem, highlighting the non-obvious pick
(rage-quit → switch to fast model) that the baseline never surfaces,
plus the trap-count gap. Pulls verdict numbers from bench/results.json.

Placed right after the intro blockquote, before Featured, so anyone
landing from HN/X sees the concrete win before the install commands.

Closes #12

Co-authored-by: Udit Raj <researchudit@gmail.com>
2026-06-04 20:24:30 +05:30
Udit Akhouri 55ed38514c SKILL.md: drop redundant "When to trigger (summary)" section (#9) (#20)
Trigger logic already lives in the YAML frontmatter description, which
is the only part loaded when the dispatcher decides whether to invoke
the skill. By the time the body is in context the trigger decision has
already been made, so the body section was dead weight.

Closes #9

Co-authored-by: Udit Raj <researchudit@gmail.com>
2026-06-04 20:24:24 +05:30
Udit Raj 2ff3bf7c3c docs(readme): expand early adopters with shipped integrations and notable forks
Adds mstack, zk-flow-oss, han, app-library, striatum, awesome-prompts,
nix-skills, and the caioniehues/ktg-one forks to the early adopters table.
2026-06-03 21:16:49 +05:30
Udit Raj 770834e3e2 Codex compatibility: collapse SKILL.md description, add Codex install path
Some Codex builds truncate or fail on multi-line YAML block-scalar
descriptions (the `>` form). The previous description was ~1500 chars
across multiple paragraphs; this commit collapses it to a single line
of ~490 chars covering the same trigger surface. The detailed pre-flight
gate (unconditional /adhd + three-criteria self-judge) already lives in
the body of SKILL.md and is unchanged.

Adds a Codex-specific quick path to README and documentation/install.md:
- `npx skills add UditAkhourii/adhd -a codex -g` for forced detection
- manual curl into `~/.codex/skills/adhd/` as fallback
- note explaining the description-length constraint so others authoring
  Codex-compatible skills don't repeat the mistake

Version bumped to 0.1.4 so npm package ships the shorter description.
v0.1.4
2026-05-30 13:41:25 +05:30
Udit Raj d59a0b204a Add Community section with signup form CTA at top of README 2026-05-30 11:50:37 +05:30
Udit Raj 3a76eeceb2 Add Early adopters section; repowire is the first entry 2026-05-28 15:39:34 +05:30
Udit Raj 3b0f506908 Featured: repowire is the first OSS project to officially adopt ADHD (PR #313, merged) 2026-05-28 15:36:04 +05:30
Udit Raj 40846076f6 Restructure README: trim to essentials, move deep content to documentation/
README dropped from ~503 to ~141 lines — skimmable in under a minute.
The long-form content moved into 7 titled pages under documentation/:
install, how-it-works, vs-cot-and-tot, frames, when-to-use, api, evals.

Added a Featured section near the top: The New Stack feature story,
OpenClaw community testing testimonial, and the external research review.

Kept above the fold: hero, badges (+ New Stack), the architectural pitch,
one-command install, quickstart, a 2-step how-it-works summary, the
headline results table, and a documentation index table.

docs/ stays reserved for GitHub Pages assets (hero.png, og, index.html);
documentation/ holds the browsable markdown so the two never collide.
2026-05-28 15:33:39 +05:30
Udit Raj a869f92f8e Add External reviews section linking mxriverlynn's analysis 2026-05-27 21:12:00 +05:30
Udit Raj d2572ad8cf Star History: serve light-theme chart only, force white background 2026-05-27 16:28:58 +05:30
Udit Raj 56d9f98eb5 Star History: use star-history.com with dark/light <picture> embed
Drop the self-hosted SVG generator, workflow, and bootstrap file.
star-history.com handles theme-aware rendering and is fine for the
history view; the embed is exactly what the user wanted.
2026-05-27 16:27:20 +05:30
github-actions[bot] a315a0c5ec chore(star-history): snapshot refresh [skip ci] 2026-05-27 10:52:42 +00:00
Udit Raj 619878d0a3 Self-host star history chart from GitHub API
The previous setup curled api.star-history.com which caches their
rendering server-side for hours. No cache-bust query param helps. The
result was a chart frozen at ~100 stars while the repo had 235.

This commit replaces the third-party fetch with a Node script that
pulls every stargazer's starred_at timestamp directly from the GitHub
Stargazers API, bins them, and emits an SVG with cumulative count line,
axis ticks, and a "last updated" timestamp.

The Star History workflow now invokes scripts/build-star-chart.mjs
instead of curling the external service. Same triggers (push to main,
hourly cron, manual dispatch), same [skip ci] commit behaviour.

Bootstrap commit includes the freshly generated chart showing 235 stars.
2026-05-27 16:20:41 +05:30
Udit Raj 7bbd7b345a Auto-refresh star history chart on every push (+ hourly cron)
Workflow: .github/workflows/star-history.yml fetches the SVG from
api.star-history.com, writes to docs/star-history.svg, commits with
[skip ci] if changed. README now references the static file so the
chart is as fresh as the latest commit (or the last cron tick).

Bootstrap snapshot included so the first render is not a 404.
2026-05-27 15:44:54 +05:30
Udit Raj 87efd4e83c Star History: add live stars/forks counters + lag caveat 2026-05-27 15:42:58 +05:30
Udit Raj 11298d9d8f README: technical-depth pass for press / research audience
- Reframe lede as architectural fix for premature convergence in
  autoregressive reasoning (CoT local-minima framing)
- Add Architecture section: context-window management (O(N) linear,
  no shared KV-cache during divergence), pruning/convergence criteria
  (structured LLM-as-critic, mechanistic trap reasons, no logit-bias),
  routing/orchestration (parallel Agent SDK query() calls + semaphore,
  frames as system-prompt payloads)
- Surface preprint + author contacts at the top
- Add Contact section in footer (X, LinkedIn, email, GitHub)
2026-05-27 00:03:01 +05:30
Udit Raj 6aac1287b3 README: force light theme on star-history chart 2026-05-26 22:28:10 +05:30
Udit Raj 810df543ef README: add star-history chart 2026-05-26 22:27:17 +05:30
Udit Raj ee1da23d4e README: surface eval headline table
ADHD vs single-shot baseline, mean scores across 6 problems:
breadth 1.9×, novelty 2.9×, trap_detection 5.2×, actionability 1.5×.
Wins 5/6 head-to-head. Full verdicts already in EVALS.md.
2026-05-26 21:57:25 +05:30
Udit Akhouri e3dd6d069e Rename project in CONTRIBUTING.md
Updated project name from 'ADHD' to 'ADHDStack' in the contributing guidelines.
2026-05-26 18:37:06 +05:30
Udit Raj 5da0332a6d Remove Evals CI workflow; evals are local-only
The workflow needed an ANTHROPIC_API_KEY repo secret which we are not setting.
The eval data already lives in EVALS.md from a local run. Reproducibility is
preserved by bench/run-evals.ts + bench/problems.json + bench/judge.ts. Anyone
can rerun with npm run evals. CI added nothing the data did not.
2026-05-26 18:35:23 +05:30
Udit Raj 718372793a Remove Evals badge; workflow is opt-in via repo secret 2026-05-26 18:34:49 +05:30
Udit Akhouri 8fad310408 Update license section to specify 'MIT License' 2026-05-26 18:27:26 +05:30
Udit Akhouri 02b150fbdd Update README with default parallel divergence calls 2026-05-26 18:26:35 +05:30
Udit Akhouri 442060387c Update issue templates 2026-05-26 18:03:29 +05:30