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

@benzotti/jedi

v0.1.32

Published

JDI - Context-efficient AI development framework for Claude Code

Readme

     ██╗███████╗██████╗ ██╗
     ██║██╔════╝██╔══██╗██║
     ██║█████╗  ██║  ██║██║
██   ██║██╔══╝  ██║  ██║██║
╚█████╔╝███████╗██████╔╝██║
 ╚════╝ ╚══════╝╚═════╝ ╚═╝

Context-efficient AI development framework for Claude Code.

npm version License: MIT

Jedi orchestrates specialised agents to plan, implement, review, and ship features — from single-file fixes to full-stack multi-wave implementations. It runs in three modes: Claude Code app, CLI, and GitHub Actions.


Table of Contents


Usage Modes

Jedi runs in three modes with identical capabilities:

| Mode | How | Best For | |------|-----|----------| | Claude Code App | /jdi:create-plan, /jdi:implement-plan, etc. | Interactive development with Claude Code | | CLI | jdi plan, jdi implement, jdi quick, etc. | Terminal workflows, scripting, CI | | GitHub Actions | Comment Hey Jedi plan ... on issues/PRs | Autonomous code generation from issue comments |


Getting Started

Claude Code App

bun install -g @benzotti/jedi
jdi init

Then inside Claude Code:

/jdi:create-plan "Add user authentication"
/jdi:implement-plan
/jdi:commit
/jdi:generate-pr

CLI

bun install -g @benzotti/jedi
jdi init

jdi plan "Add user authentication"
jdi implement
jdi quick "fix the broken quote calculator"
jdi review 42
jdi pr

GitHub Actions

jdi setup-action

Then on any issue or PR, comment:

Hey Jedi plan Add user authentication
Hey Jedi implement
Hey Jedi quick fix the broken login button

See GitHub Actions Setup for details.


Commands

| Slash Command | CLI Equivalent | Description | |---------------|----------------|-------------| | /jdi:init | jdi init | Initialise Jedi in the current project | | /jdi:create-plan | jdi plan <desc> | Create an implementation plan | | /jdi:implement-plan | jdi implement [plan] | Execute a plan (single-agent or Agent Teams) | | /jdi:quick | jdi quick <desc> | Quick focused change without orchestration | | /jdi:commit | jdi commit | Create a conventional commit | | /jdi:generate-pr | jdi pr | Generate and create a pull request | | /jdi:pr-review | jdi review <pr> | Review a PR and post line comments | | /jdi:pr-feedback | jdi feedback | Address PR review comments | | /jdi:worktree | jdi worktree | Create an isolated git worktree | | /jdi:worktree-remove | jdi worktree-remove | Remove a worktree and clean up | | /jdi:status | jdi status | Show current state and suggest next action |

CLI Flags

jdi plan

| Flag | Description | |------|-------------| | --print | Print prompt to stdout instead of executing | | --output <file> | Write prompt to file |

jdi implement

| Flag | Description | |------|-------------| | --team | Force Agent Teams mode | | --single | Force single-agent mode | | --dry-run | Preview changes without writing files | | --print | Print prompt to stdout |

jdi quick

| Flag | Description | |------|-------------| | --dry-run | Preview changes without writing files | | --print | Print prompt to stdout |

jdi pr

| Flag | Description | |------|-------------| | --draft | Create as draft PR | | --base <branch> | Base branch (default: main) | | --no-push | Skip pushing the branch | | --dry-run | Show generated PR without creating |


GitHub Actions Setup

Installation

Run jdi setup-action to generate the workflow file, or manually copy action/workflow-template.yml to .github/workflows/jedi.yml.

Required Secrets

| Secret | Required | Description | |--------|----------|-------------| | ANTHROPIC_API_KEY | Yes | Claude API key | | CLICKUP_API_TOKEN | No | ClickUp integration for ticket-driven development |

Optional Variables

| Variable | Description | |----------|-------------| | JEDI_AUTH_ENABLED | Set to true to restrict Jedi to write collaborators | | JEDI_ALLOWED_USERS | Comma-separated list of allowed GitHub usernames |

Comment Syntax

| Command | Description | |---------|-------------| | Hey Jedi plan <description> | Create an implementation plan | | Hey Jedi implement | Execute the current plan | | Hey Jedi implement --dry-run | Preview implementation without writing | | Hey Jedi quick <description> | Make a quick change | | Hey Jedi review | Review the current PR | | Hey Jedi do <clickup-url> | Full flow: plan + implement from ticket | | Hey Jedi ping | Check framework status |

Conversation Flow

  1. Comment Hey Jedi plan ... to start planning
  2. Jedi posts the plan and asks for feedback
  3. Reply with refinement feedback (e.g. "change task 2 to use Redis instead")
  4. Say "approved" or "lgtm" to lock the plan
  5. Comment Hey Jedi implement to execute
  6. Reply with follow-up feedback to iterate on the implementation

Jedi maintains conversation context across comments — no need to repeat earlier instructions.


Features

Planning and Implementation

  1. Research — The planner agent analyses your codebase and gathers context
  2. Plan — Produces a structured PLAN.md with task breakdown, dependencies, and success criteria
  3. Execute — The complexity router decides single-agent or Agent Teams mode
  4. Verify — Quality gates run automatically after execution
  5. Commit — Each task gets its own atomic conventional commit

Dry-Run Mode

Preview what Jedi would change without writing any files:

jdi implement --dry-run
jdi quick --dry-run "add error handling to the API"

Or in GitHub Actions: Hey Jedi implement --dry-run

In dry-run mode, Jedi can only read files — writes, commits, and pushes are blocked.

Plan-Aware PR Generation

jdi pr reads the current plan from state.yaml and generates a richer PR body:

  • Summary derived from the plan objective
  • Task list from the plan breakdown
  • Verification checklist from plan criteria

Automated Verification Runner

After implementation (both CLI and GitHub Actions), Jedi automatically runs quality gates defined in adapter.yaml:

quality_gates:
  lint: "bun run lint"
  typecheck: "bun run typecheck"
  test: "bun test"

Results are printed in the CLI and posted as a collapsible section in GitHub comments.

Git Worktrees

Full-environment git worktrees for isolated development:

  • Full worktree (--worktree): databases, dependencies, migrations, seeders, web server
  • Lightweight worktree (--worktree-lightweight): dependencies and migrations only

Agent Teams

For complex plans (>3 tasks, multiple tech stacks, or multiple waves), Jedi uses Claude Code's Agent Teams to orchestrate multiple specialist agents working in parallel.

Complexity Router

| Signal | Simple | Complex | |--------|--------|---------| | Task count | 1-3 | >3 | | Tech stacks | Single | Mixed | | Wave count | 1 | >1 |

Override with --team or --single.

PR Workflow

  • jdi review <pr> — Structured code review with severity-classified findings posted as line comments
  • jdi feedback — Address review comments systematically, learning from team patterns
  • jdi pr — Create a PR with plan-aware description

Component System

JSX-like reusable instruction syntax:

<JDI:Commit />                      # Full component
<JDI:Verify scope="plan" />         # With parameters
<JDI:PRReview post="false" />       # Local review mode

Available components:

| Component | Category | Purpose | |-----------|----------|---------| | Commit | execution | Create conventional commits | | Verify | execution | Multi-level verification | | VerifyAdvanced | execution | Phase and requirements verification | | CodebaseContext | execution | Load and cache codebase analysis | | PRReview | quality | Structured PR review (remote and local modes) | | TaskBreakdown | planning | Break features into tasks | | WaveComputation | planning | Compute dependency-ordered waves | | AgentBase | meta | Base protocol for all agents | | AgentTeamsOrchestration | meta | Agent Teams lifecycle management | | ComplexityRouter | meta | Route plans to single-agent or swarm | | TeamRouter | meta | Route commands to teams | | StateUpdate | meta | Record decisions, deviations, blockers |

State Management

All state lives in YAML files on disk — no context pollution:

| File | Purpose | |------|---------| | .jdi/config/state.yaml | Runtime state — position, progress, review status | | .jdi/config/adapter.yaml | Project-type adapter config (tech stack, quality gates) | | .jdi/config/jdi-config.yaml | Global configuration (workflow, models) |

PR Feedback Learning

Jedi detects learning phrases from PR reviews ("we usually do this", "convention is") and captures them to categorised learnings files in .jdi/framework/learnings/ for future reference.


Agents

20 specialised agents organised by team:

Engineering

| Agent | Role | |-------|------| | jdi-backend | Backend Engineer | | jdi-frontend | Frontend Engineer | | jdi-architect | Systems Architect | | jdi-executor | Senior Fullstack Engineer |

Product and Research

| Agent | Role | |-------|------| | jdi-planner | Product Manager / Planner | | jdi-researcher | Senior Analyst | | jdi-product-lead | Product Lead | | jdi-ux-designer | Lead UI/UX Designer |

Quality Assurance

| Agent | Role | |-------|------| | jdi-quality | Lead QA Developer | | jdi-verifier | Senior QA Developer |

DevOps

| Agent | Role | |-------|------| | jdi-devops | DevOps Engineer |

Supporting

| Agent | Role | |-------|------| | jdi-committer | Commit specialist | | jdi-pr-generator | PR generation | | jdi-pr-feedback | PR feedback handler | | jdi-debugger | Debugging specialist | | jdi-head-engineering | Head of Engineering (oversight) | | jdi-codebase-mapper | Codebase indexing | | jdi-feedback-learner | Learning extraction | | jdi-plan-checker | Plan validation |

All agents inherit <JDI:AgentBase /> which defines sandbox awareness, structured returns, and component resolution.


Teams

| Team | Members | Purpose | |------|---------|---------| | Engineering | backend, frontend, architect, executor | All coding | | Product & Research | planner, researcher, product-lead, ux-designer | Planning (no code) | | Quality Assurance | quality, verifier | Testing, verification | | DevOps | devops | Infrastructure, CI/CD | | Micro-Management | product-lead, head-engineering | Oversight (opt-in) |


Configuration

Global configuration in .jdi/config/jdi-config.yaml:

workflow:
  mode: yolo          # yolo | interactive | strict
  depth: standard     # shallow | standard | deep

models:
  profile: balanced   # quality | balanced | budget

quality:
  run_lint_before_commit: true
  run_tests_before_pr: true

Security

Jedi v0.1.30 includes several security hardening measures:

  • Opt-in authorization gate: Restrict Jedi to write collaborators or an explicit allow-list via JEDI_AUTH_ENABLED and JEDI_ALLOWED_USERS repo variables
  • Prompt injection defense: User input is sanitized (injection preambles stripped) and wrapped in XML fences with untrusted-content warnings
  • Shell injection prevention: All workflow arguments are individually quoted — no unquoted variable expansion
  • Comment pagination limits: Comment fetching is bounded to 100 items
  • Storage path traversal prevention: Storage keys with path traversal characters are rejected
  • YAML state management: State updates use a proper YAML parser instead of regex

Directory Structure

src/                                 # CLI source (TypeScript)
├── commands/                        # CLI commands
├── utils/                           # Utilities (prompt-builder, state, verify, sanitize)
├── storage/                         # Pluggable storage adapters
└── index.ts                         # Entry point

framework/                           # Distributable framework
├── agents/                          # Agent specifications (20 agents)
├── commands/                        # Command stub templates
├── components/                      # Reusable component instructions
│   ├── execution/                   # Commit, Verify, CodebaseContext
│   ├── planning/                    # TaskBreakdown, WaveComputation
│   ├── quality/                     # PRReview
│   └── meta/                        # AgentBase, ComplexityRouter, TeamRouter, StateUpdate
├── teams/                           # Team definitions (5 teams)
├── adapters/                        # Project-type configs
├── templates/                       # PLAN, PLAN-TASK, SUMMARY, CLAUDE-SHARED, PROJECT/REQUIREMENTS/ROADMAP.yaml
├── learnings/                       # Category shells for PR review learnings
└── jedi.md                          # Framework architecture doc

action/                              # GitHub Actions
└── workflow-template.yml            # Workflow template for `jdi setup-action`

Architecture

Minimal Context

Commands are ultra-minimal stubs (~300 tokens). Agents read specs and components on-demand in their isolated context. Take this with a grain of salt 🧂.

| Scenario | Without Jedi | With Jedi | Savings | |----------|-------------|----------|---------| | Single command | ~6,900 tokens | ~300 tokens | 95% | | 5-command workflow | ~34,500 tokens | ~1,500 tokens | 96% |

Agent Delegation

Complex operations spawn agents via the Task tool. Each agent runs in an isolated context with its own spec and components.

External State

All state lives in YAML files on disk. No context pollution from state tracking.