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

@mustafakemal0146/codchestra

v1.0.1

Published

Production-grade autonomous AI orchestration CLI — loop-based development conductor for Codex/ChatGPT CLI

Readme

🚀 Autonomous AI orchestration CLI — Codex & ChatGPT

TypeScript Node.js License


✨ Features

Codchestra is a terminal-native development orchestrator that runs an AI coding agent (Codex or ChatGPT CLI) in a loop until all tasks are complete. You define tasks in codchestra.tasks.md; Codchestra feeds context and prompts to the AI, parses STATUS blocks, and stops when the AI signals completion or when limits (max loops, timeout, stagnation) are hit.

| Feature | Description | |--------|-------------| | 🔁 Loop engine | Max loops, repeated-output detection, stagnation detection, per-call timeout | | 📋 Task system | Markdown task list (codchestra.tasks.md) — pending / in-progress / done | | ⚙️ Config | .codchestrarc — maxLoops, timeoutMinutes, aiCommand, verbosity, outputFormat | | 🤖 Codex & ChatGPT | Default: chatgpt or codex; non-interactive exec, stdin prompt, workspace-write | | 📊 Live TUI | Banner + loop status + last STATUS + errors (TTY); session logs in .codchestra/logs/ | | ✏️ Prompt UI | Run starts with prompt choice: Enter = default, e = add task, c = custom (paste in terminal) | | 🔌 Plugins | .codchestra/plugins/ — beforeRun, afterRun, beforeLoop, afterLoop |


🚀 Quick Start

Install

npm install -g @mustafakemal0146/codchestra

Or from source:

git clone https://github.com/mustafakemal0146/codchestra.git
cd codchestra
npm install
npm run build
npm link

Run

cd your-project
codchestra init
# Edit codchestra.tasks.md with [ ], [-], [x] tasks
codchestra run
  • Enter = start with default prompt
  • e = add a task (multi-line in terminal, empty line + Enter to finish)
  • c = custom prompt (paste in terminal, empty line + Enter to finish)

📋 Commands

| Command | Description | |--------|-------------| | codchestra init | Create .codchestra/, codchestra.tasks.md, CODCHESTRA_PROMPT.md, .codchestrarc | | codchestra run | Prompt UI → AI loop (Codex/ChatGPT) until exit or limits | | codchestra status | Show run state and task progress | | codchestra reset | Clear .codchestra state | | codchestra tasks | List tasks (option: --json) | | codchestra monitor | Live dashboard (loop #, progress, stagnation) | | codchestra doctor | Check environment and config |


🤖 AI: Codex & ChatGPT

  • Default: Tries chatgpt, then codex on PATH.
  • chatgpt: Prompt sent via stdin.
  • Codex (OpenAI): codex exec - --full-auto -s workspace-write -C <cwd> --skip-git-repo-check -; prompt from stdin. Install: npm i -g @openai/codex. Run codex login if needed.
  • Override: In .codchestrarc set aiCommand and optionally aiArgs.

📄 STATUS block

The AI must end each response with:

STATUS:
progress: <0-100>
tasks_completed: <number>
tasks_total: <number>
EXIT_SIGNAL: <true|false>
summary: <one line>

Codchestra stops successfully when EXIT_SIGNAL: true and all tasks are [x]. Use CODCHESTRA_PROMPT.md in the project to enforce this.


⚙️ Config (.codchestrarc)

| Key | Default | Description | |-----|---------|-------------| | maxLoops | 50 | Max loop iterations | | timeoutMinutes | 120 | Wall-clock timeout | | aiCallTimeoutMinutes | 10 | Per-call AI timeout | | aiCommand | "" | Override AI CLI (default: chatgpt/codex) | | aiArgs | (auto for codex) | Extra args (e.g. for codex exec) | | verbosity | "normal" | quiet | normal | verbose | | outputFormat | "text" | text | json |


🔌 Plugins

Place .js plugins in .codchestra/plugins/. Each module can export:

  • name: string
  • beforeRun(cwd)
  • afterRun(cwd, result)
  • beforeLoop({ cwd, loop })
  • afterLoop({ cwd, loop, stdout })

📁 Project structure

codchestra/
├── src/
│   ├── cli/          # Commands: init, run, status, reset, tasks, monitor, doctor
│   ├── config/       # .codchestrarc loader
│   ├── core/         # State, exit analyzer (STATUS parse)
│   ├── loop/         # Runner, live UI
│   ├── tasks/        # Task parser & manager
│   ├── plugins/      # Plugin loader
│   └── utils/        # Logger, session log, paths, git, aiCommand
├── CODCHESTRA_PROMPT.md
├── package.json
└── README.md

🛠️ Development

npm install
npm run build
npm run test

👨‍💻 Author

Mustafa Kemal Çıngılgithub.com/mustafakemal0146


📄 License

MIT — see LICENSE.


Codchestra — The AI is the worker. Codchestra is the conductor.