npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

draht-codex

v2026.11.27

Published

Draht GSD, multi-agent, TDD and DDD workflows as a Codex plugin. Install with `npx draht-codex install`.

Readme

draht-codex

Draht's GSD workflow, multi-agent orchestration prompts, TDD discipline, DDD guidance, and planning framework as a Codex plugin.

Install:

npx draht-codex install

This creates a local Codex marketplace at ~/.draht/codex-marketplace, installs the draht plugin, and bundles Draht command prompt wrappers, reference prompt templates, specialist agent prompts, support skills, hooks, scripts, and draht-tools.

What you get

Reference prompt templates

The plugin bundles Draht workflow prompt templates under commands/. Codex CLI currently does not expose plugin commands/ files as TUI slash commands, so Claude Code-style syntax such as /draht:new-project or /draht:orchestrate will not work in Codex.

For Codex, each command prompt is exposed through a thin skill wrapper named after the command. Use $draht:<command> or /skills and select the wrapper, for example $draht:new-project, $draht:plan-phase, $draht:orchestrate, or $draht:grill. The wrapper reads the matching commands/*.md file and runs it as the active workflow.

Project lifecycle:

  • commands/new-project.md - greenfield questioning, domain model, requirements, roadmap
  • commands/init-project.md - existing codebase mapping, domain extraction, roadmap
  • commands/map-codebase.md - standalone codebase map
  • commands/next-milestone.md - plan the next milestone after current phases are verified

Per-phase cycle:

  • commands/discuss-phase.md
  • commands/plan-phase.md
  • commands/execute-phase.md
  • commands/verify-work.md

Session continuity:

  • commands/pause-work.md
  • commands/resume-work.md
  • commands/progress.md

Ad-hoc:

  • commands/budget.md - guided configuration of this repository's token budgets
  • commands/quick.md
  • commands/fix.md
  • commands/review.md
  • commands/atomic-commit.md
  • commands/orchestrate.md
  • commands/orchestrate-loop.md
  • commands/resolve-conflicts.md
  • commands/grill.md - whole-frontier interrogation of any subject; output form chosen at the end
  • commands/why.md - code archaeology: design rationale and history via parallel evidence investigators, synthesized with confidence tiers and citations
  • commands/triage.md - external issue-report triage: classify, bounded cause trace, dedupe against GitHub Issues, fail-closed ticket creation
  • commands/questionnaire.md - turn a decision you can't answer alone into a questionnaire for someone else to fill in async
  • commands/create-verification-skill.md - generate a committed project-local verify-<app> skill that drives the real app and captures proof artifacts
  • commands/speak.md - speak text aloud via the ElevenLabs text-to-speech helper

Use the wrappers for picker-driven invocation, and keep the commands/*.md files as the source prompt templates.

Specialist agent prompts

The plugin ships 11 reference prompts in agents/:

  • advisor
  • architect
  • implementer
  • reviewer
  • debugger
  • verifier
  • investigator
  • git-committer
  • security-auditor
  • spec-reviewer
  • speaker

Codex subagent availability depends on the active Codex feature/configuration. When named Draht agent roles are not registered directly, the command templates can still use generic Codex subagents by pasting the relevant Draht agent prompt into the delegated task.

Each prompt's frontmatter model: names a default GPT-6 model by price tier:

| Agent | Default | |---|---| | advisor | gpt-6-astra | | architect | gpt-6.1-sol | | reviewer | gpt-6.1-sol | | security-auditor | gpt-6.1-sol | | spec-reviewer | gpt-6.1-sol | | implementer | gpt-6.1-sol | | investigator | gpt-6.1-sol | | verifier | gpt-6.1-sol | | speaker | gpt-6-luna | | debugger | inherit | | git-committer | inherit |

Codex treats agent model: as reference metadata — configure --list shows it, but Codex does not read it to route a subagent to that model unless you wire the role yourself in ~/.codex/config.toml.

Command prompt wrappers

The plugin ships a command prompt wrapper for each commands/*.md template:

  • budget
  • new-project
  • init-project
  • map-codebase
  • next-milestone
  • discuss-phase
  • plan-phase
  • execute-phase
  • verify-work
  • pause-work
  • resume-work
  • progress
  • quick
  • fix
  • review
  • atomic-commit
  • orchestrate
  • orchestrate-loop
  • resolve-conflicts
  • grill
  • why
  • triage
  • questionnaire
  • create-verification-skill
  • speak

Support skills

The GSD workflow templates live in commands/. Alongside the command wrappers above, support skills load by description match or by name.

Router:

  • draht — catalog of the whole draht skill family: what draht is, the .planning/ state model, a situation→skill map, host invocation, and install pointers

Disciplines:

  • atomic-reasoning — decompose work into atomic, independently-verifiable units before acting
  • brainstorming — Socratic ideation gate that runs before any project work begins
  • ddd-workflow — bounded contexts, ubiquitous language, aggregates, domain events
  • debugging-workflow — four-phase systematic debugging, the protocol behind $draht:fix
  • gsd-workflow — complete GSD methodology reference (directory structure, cycle, hooks, config)
  • loop-workflow — iterate-until-a-deterministic-check-passes loops and their stop conditions
  • model-tiering — advisor and orchestrator patterns for cost-efficient model selection
  • saga-spawner — saga-graph reconciliation loop for unattended repo advancement as a cloud routine
  • tdd-workflow — red→green→refactor discipline, commit conventions, cycle violations
  • test-audit — authoring gates, evidence-led test audits, and subsystem campaigns that preserve owner-boundary contracts
  • verification-gate — evidence before claims: run the command that proves it before saying "done"

Creative:

  • draht — router and catalog for the skill family
  • gsd-workflow
  • tdd-workflow
  • ddd-workflow
  • verification-gate
  • brainstorming
  • debugging-workflow
  • atomic-reasoning
  • loop-workflow
  • model-tiering
  • saga-spawner
  • unslop — cut AI tells from prose deliverables, then add voice back; includes an STE-lite register for procedures
  • writing-for-agents — writing skills, prompts, and AGENTS.md for agents: context pointers, information hierarchy, completion criteria, leading words, pruning
  • explainers — evidence-built Mermaid diagrams and HTML explainers for graph-shaped reports
  • epistemics — confidence calibration for investigation findings
  • typescript-discipline — make illegal states unrepresentable
  • blast-radius — impact analysis beyond the diff on the evidence ladder
  • cinematic-continuation — provider-neutral, time-coded video continuation from bundled distilled style and continuity references
  • judge — the gate queue: the tests a session writes are replayed and mutated into evidence, then a reviewer judges whether the gate is real, with the verdict delivered back into the session

Hooks and scripts

The plugin includes hooks/hooks.json plus these scripts:

  • gsd-pre-execute.cjs
  • gsd-post-task.cjs
  • gsd-post-phase.cjs
  • gsd-quality-gate.cjs
  • session-start.cjs (SessionStart)
  • prompt-context.cjs (UserPromptSubmit)
  • post-edit-check.cjs (PostToolUse on Edit/Write/MultiEdit)
  • stop-quality-gate.cjs (Stop)
  • judge-hook.cjs (PostToolUse, PreToolUse, UserPromptSubmit, Stop, PermissionRequest) — the gate queue: a new test is replayed against the code as it stands, and mutated once the implementation lands; inert unless the judge TUI in bin/judge is running

Codex loads plugin-bundled hooks only after the user reviews and trusts them.

Token budgets

Opt-in per-file token limits encourage readable, cohesive code and concise documentation. $draht:budget, or budget in /skills, guides you through writing the repository's .draht/budgets.json; repositories without that file are not measured. The defaults are 5,000 tokens per code file and 1,500 per documentation file. Lockfiles, changelogs, and generated files are skipped, and task totals are optional. Trusted plugin hooks enforce the same offline accounting as native draht, shared by subagents and linked worktrees. Chat responses have no budget.

Add status to inspect limits and usage. Only the user starts a new task, by submitting $draht:budget new as the whole prompt. See the budget guide.

Installation

# Install
npx draht-codex install

# Reinstall or refresh
npx draht-codex update

# Install to a custom local marketplace
npx draht-codex install --path /path/to/codex-marketplace

# Status
npx draht-codex status

# Remove
npx draht-codex uninstall

After installation, restart Codex and check:

codex plugin list

draht-tools

The plugin bundles draht-tools at bin/draht-tools.cjs. You can also run it through the package CLI:

npx draht-codex draht-tools help

Reference prompt templates prefer the installed plugin path:

node "${PLUGIN_ROOT:-${CLAUDE_PLUGIN_ROOT:-$HOME/.draht/codex-marketplace/plugins/draht}}/bin/draht-tools.cjs" help

PLUGIN_ROOT is the Codex plugin root when available. CLAUDE_PLUGIN_ROOT is kept as a compatibility fallback. The default installer path is used as the last fallback.

Configuration

Reference agent model metadata can be edited in the installed plugin copy:

npx draht-codex configure --agent architect --model gpt-6-astra
npx draht-codex configure --list
npx draht-codex configure --agent architect --reset
npx draht-codex configure --reset

This updates the bundled Markdown frontmatter. --reset removes the model: line, so --list then shows inherit; draht-codex update restores the shipped defaults. Codex-native custom agent routing may require user-level ~/.codex/config.toml agent role configuration.

Relationship to draht-claude

draht-codex is the Codex plugin sibling of draht-claude. The workflow content is intentionally close, but the package uses Codex plugin metadata, marketplace layout, hooks behavior, and install commands.

Use draht-codex when you want Draht inside Codex. Use draht-claude when you want the same workflows inside Claude Code.

License

MIT. See LICENSE.