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

@loicngr/kobo

v1.7.24

Published

Kōbō — multi-workspace agent manager for Claude Code. Orchestrates isolated git worktrees with dev servers, Notion integration, and MCP tools.

Downloads

3,303

Readme

Kōbō

Multi-workspace orchestrator for Claude Code and OpenAI Codex agents.

npm license node

Kōbō runs multiple coding agents in parallel, each isolated in its own git worktree, branch, and dev server. A single Vue dashboard streams output, tasks, git state, and quota usage across every workspace.

[!NOTE] Active development on develop. Forward-only migrations and timestamped pre-migration backups keep upgrades safe.

Features

  • Isolated worktrees — each workspace is a dedicated git worktree on its own branch; parallel sessions never collide.
  • Two agent engines — Claude Code (via @anthropic-ai/claude-agent-sdk) and OpenAI Codex (via codex app-server), chosen per workspace.
  • Live chat — streaming text, reasoning blocks, inline Edit/Write diffs, per-turn cards, infinite scrollback; / autocompletes skills & commands and @ fuzzy-autocompletes worktree file paths; every workspace's session events are exportable to CSV.
  • Task tracking — per-workspace MCP server (kobo-tasks) lets the agent manage its own tasks, acceptance criteria, and live status.
  • Git panel — Monaco-based diff viewer with inline file editing (edit the right-hand panel directly, save with Ctrl/Cmd+S, conflict-guarded via sha precondition), inline conflict resolution, Sync / Push / Open PR / Change PR base / Change source branch (cherry-pick of the branch-proper commits, with an optional custom bash script). Multi-forge: GitHub (gh), GitLab (glab), or no forge — auto-detected from the remote, overridable per project.
  • Attention indicators — workspace cards in the drawer surface CI failures and review-requested-changes inline, so failing PRs/MRs stand out at a glance.
  • Auto-loop — opt-in mode that walks the task list, spawning a fresh session per task and stopping on completion, stall, or error.
  • Quota-aware — 5-hour / 7-day Claude usage and Codex rate-limit buckets in the footer; sessions auto-resume after a rate-limit reset.
  • Scheduled wakeups — the agent schedules a one-shot wake-up via the ScheduleWakeup tool; Kōbō persists it across restarts, shows a live countdown, and re-invokes the agent with the stored prompt at the chosen time.
  • Cron schedules — recurring per-workspace triggers the agent registers through MCP tools (cron_create / cron_delete / cron_list); each tick resumes the workspace session (skipped if already active), and schedules are re-armed at boot with skip-missed semantics.
  • Lifecycle scripts — shell scripts run automatically at key moments: setup (worktree created), cleanup (session ended), archive (workspace archived). Configured globally or per project, with their output streamed into the chat.
  • Disk-space purge — free a merged workspace's disk space without losing its chat history: the worktree folder is removed (PR metadata is captured for later restore), the workspace is archived, and the chat log stays queryable. Trigger manually from the workspace menu or enable auto-purge on PR merged in Settings → Worktrees. Recreate the worktree later with gh pr checkout <pr-number> and Kōbō auto-detects the folder reappearing within 30 seconds — workspace is unarchived and reactivated, no UI action needed.
  • Optional integrations — Notion (import missions), Sentry (fix from issue URL), local voice transcription (whisper.cpp).

Quick start

Requires Node.js ≥ 20 and a logged-in Claude Code or Codex CLI.

npx @loicngr/kobo@latest

Default port is 3000. If you already run something on that port (or another Kōbō instance), pick your own — SERVER_PORT is read first, PORT is the fallback:

SERVER_PORT=9997 PORT=9998 npx @loicngr/kobo@latest

Open http://localhost:3000 (or whichever port you picked). Data is persisted under ~/.config/kobo/ (override via KOBO_HOME).

From source

git clone https://github.com/loicngr/Kobo.git
cd Kobo
npm install
(cd src/client && npm install)
npm run dev:all   # backend :3300 + client :8080

A production-installed Kōbō (npx @loicngr/kobo) and a dev server can run side by side — they use separate data directories.

Configuration

The most common knobs:

| Env var | Default | Purpose | |---|---|---| | PORT | 3000 | HTTP / WebSocket server port (overridden by SERVER_PORT if set) | | SERVER_PORT | — | Preferred override for the server port; takes precedence over PORT | | KOBO_HOME | ~/.config/kobo | Data directory (SQLite, settings, voice models) | | NOTION_API_TOKEN | — | Notion integration token | | OPENAI_API_KEY | — | Codex engine credential (alternative to codex login) |

Global and per-project settings (worktree path, dev server commands, E2E framework, prompt templates, git conventions, branch prefixes, lifecycle scripts, task prompt) are edited in Settings at runtime — per-project values inherit from the global ones when left empty.

The full reference — every env var, every setting key, MCP server registration, Notion / Sentry / Voice setup — is in CONFIGURATION.md.

Agent runtimes

  • Claude Code. Authenticate once with claude /login. Kōbō calls the embedded SDK directly — no claude binary required at runtime.
  • OpenAI Codex (experimental). Run codex login or export OPENAI_API_KEY. Kōbō spawns a long-lived codex app-server subprocess per workspace and bridges its JSON-RPC stream to the same UI.

Engine selection happens at workspace creation. Both share the same task tracking, permission modes, sub-agent panel, and quota footer. The mapping of Kōbō's four permission modes (plan / bypass / strict / interactive) to each engine's native sandbox + approval semantics is in CONFIGURATION.md.

Disk-space purge

A merged workspace is automatically archived but its worktree folder usually carries a lot of weight (node_modules, vendor, build artefacts…). Kōbō can free that space without losing anything queryable:

  • Manual — workspace context menu → Free disk space (delete worktree). The worktree is removed, the chat history and PR metadata stay in the database.
  • AutomaticSettings → Worktrees → Auto-purge worktree on PR merged. When the pr-watcher sees the OPEN → MERGED transition, it archives and purges.
  • Restore — recreate the folder yourself (gh pr checkout <pr> or git worktree add <path> <branch>). The pr-watcher detects the directory reappearing within 30 seconds and re-activates the workspace automatically (clears purge flag + unarchives). No UI action needed.

Avoiding permission errors during purge

Docker containers usually write as root, so files in node_modules / vendor end up root-owned on the host. Plain rm -rf (which Kōbō uses under the hood) then fails with EACCES / EPERM. Pick one of these strategies depending on your setup:

  1. Best — run your container as the host user. Add a USER directive in your Dockerfile, or set user: "${UID}:${GID}" in docker-compose.yml with UID/GID exported in your shell. No more root-owned files; nothing extra to do.
  2. Preventive ACL on the worktrees root. On ext4 / btrfs / xfs with a regular Docker bind mount, a default ACL grants your user access to every file created later:
    setfacl -d -m u:$(whoami):rwX <worktrees-root>   # e.g. ~/.worktrees
    Caveats: does not work on named Docker volumes (use a bind mount), filesystems without ACL support (NTFS, exFAT, tmpfs), strict SELinux with :Z, or with Docker userns-remap.
  3. Unblock an already-broken worktree (existing root-owned files):
    # Option A — recursive ACL (keeps ownership intact, just adds your user)
    sudo setfacl -Rd -m u:$(whoami):rwX . && sudo setfacl -R -m u:$(whoami):rwX .
    
    # Option B — take ownership outright (simpler, loses the "root-from-container" trace)
    sudo chown -R $(whoami):$(whoami) .
    Run from inside the worktree folder, or directly on your worktrees root (e.g. ~/.worktrees/) to cover all existing and future workspaces at once.

When a purge does fail, Kōbō surfaces a toast with a copy-pasteable recovery command and a git worktree prune follow-up. The same guide is wired into Settings → Worktrees → How purge works for in-app reference.

Optional integrations

Kōbō ships first-class support for three external systems. All are opt-in and reuse credentials you may already have configured for Claude Code.

  • Notion — import missions, tasks, and acceptance criteria from a Notion page.
  • Sentry — paste an issue URL to spawn a fix workspace with the stacktrace, tags, and a TDD workflow.
  • Voice transcription — local push-to-talk via whisper.cpp.

See CONFIGURATION.md for the setup of each.

Skill suites

Kōbō's auto-generated prompts (review, auto-loop grooming, QA, brainstorming) can target four different skill ecosystems, selectable in Settings → Skills:

  • superpowers (default) — plugin for Claude Code with the brainstorm → spec → plan → execute discipline, TDD, debugging, code review.
  • gstack — CLI slash commands for navigation, QA, design review, ship pipeline, second-opinion via Codex.
  • superpowers + gstack — both, with each used for what it does best.
  • custom — write your own prompts.

Optionally pair with gbrain — a per-project knowledge graph + semantic search exposed as an MCP server. Inherited automatically from your ~/.claude.json config.

Full install instructions and the prompt-suite differences are in CONFIGURATION.md.

Architecture

Hono backend, Vue 3 + Quasar SPA, SQLite (WAL) for persistence, WebSocket for live updates. Each workspace spawns its own agent engine and a dedicated MCP server (kobo-tasks) the agent uses to query and mutate workspace state.

src/
├── server/         # Hono backend (routes, services, db, agent orchestrator)
│   ├── services/agent/engines/  # claude-code/ + codex/ engines
│   └── ...
├── client/         # Vue 3 + Quasar SPA
├── mcp-server/     # kobo-tasks MCP server, spawned per workspace
├── shared/         # types shared backend ↔ frontend
└── __tests__/      # Vitest suite (1500+ tests)

AGENTS.md covers the data model, WebSocket protocol, engine contracts, MCP tool surface, migration discipline, i18n rules, and contribution guidelines.

Scripts

npm run dev:all        # backend (:3300) + client (:8080)
npm run build          # production build (client + server)
npm start              # run the compiled server
npm test               # backend vitest suite
npm run test:client    # client vitest suite
npm run lint           # biome check (lint + format)
make ci                # full CI pipeline (audit + lint + tsc + tests)

Contributing

PRs welcome. Branch off develop, follow Conventional Commits, run make ci before pushing. CI runs lint, type check, and tests on every PR to develop. See AGENTS.md for code conventions and the database-migration discipline.

Release

Releases are cut from main. Bump package.json on develop, merge into main, push. The release workflow builds, tests, publishes to npm, tags v<version>, and creates the GitHub Release — failing early if the version or tag already exists.

License

GPL-3.0-or-later. See LICENSE.