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

@cyanautomation/kaseki-agent

v1.112.0

Published

Admin/helper/doctor toolbox and local API client for Kaseki diagnostics, setup, and API-backed coding-agent task workflows

Readme

Kaseki Agent

Kaseki is a proof-of-concept ephemeral coding-agent runner. Each run creates a numbered, disposable container instance (kaseki-1, kaseki-2, etc.) that orchestrates the Pi coding-agent via a generic LLM gateway (Manifest, OpenAI, Ollama, etc.).

Quick Start

1. Install Setup

# Global install (recommended)
npm install -g @cyanautomation/kaseki-agent

# One-command setup with auto-detection
kaseki-agent init

Or use Docker:

docker run -it docker.io/cyanautomation/kaseki-agent:latest init

2. Configure Authentication

The setup wizard will guide you through providing:

  • LLM Gateway URL (required): Your LLM provider endpoint (e.g., https://llmgateway.local.xyz/v1/responses)
  • LLM Gateway API Key (required): Authentication token for your provider
  • GitHub App Credentials (optional): App ID, Client ID, Private Key

CloudFlare Gateway Live Probe

The Jest suite uses deterministic unit/contract coverage for CloudFlare gateway behavior and mocks fetch; it does not perform live network calls or consume gateway tokens. To run the live CloudFlare probe explicitly, use:

CLOUDFLARE_GATEWAY_TEST=1 \
LLM_GATEWAY_URL=https://gateway.ai.cloudflare.com/v1/<account>/<gateway>/compat \
LLM_GATEWAY_API_KEY=<token> \
npm run test:integration:cloudflare-gateway

The live probe requires CLOUDFLARE_GATEWAY_TEST=1, a configured LLM_GATEWAY_URL, either LLM_GATEWAY_API_KEY or LLM_GATEWAY_API_KEY_FILE, and working token/network access to CloudFlare. LLM_GATEWAY_MODEL is optional and defaults to dynamic/kaseki-agent.

3. Run Your First Task

# Start API service (Docker Compose recommended)
docker-compose up -d

# Submit a task
kaseki-agent run https://github.com/CyanAutomation/crudmapper main \
  "Add input validation to all POST endpoints"

4. Monitor Results

# List all instances
kaseki-agent list

# Get detailed report
kaseki-agent report kaseki-1

# Live monitoring
kaseki-agent status kaseki-1

Overview

Kaseki provides three deployment patterns:

  • NPM CLI: Admin/helper workflows and task clients
  • Docker: Containerized execution without host Node.js
  • REST API: Local/distributed orchestration via kaseki-agent serve

Each task execution produces isolated workspace and results for reproducible AI coding workflows.


Installation

Global NPM (Recommended)

npm install -g @cyanautomation/kaseki-agent

Local NPM

npm install @cyanautomation/kaseki-agent
npx kaseki-agent init

Docker

docker run -it docker.io/cyanautomation/kaseki-agent:latest init

Basic Usage

CLI Commands

  • kaseki-agent init - Interactive setup wizard
  • kaseki-agent doctor - Health check and diagnostics
  • kaseki-agent run [repo] [ref] [prompt] - Execute coding task
  • kaseki-agent list - List all instances
  • kaseki-agent report [instance] - Detailed results
  • kaseki-agent status [instance] - Live status monitoring
  • kaseki-agent serve - Start local API service

Task Execution

# Basic task
kaseki-agent run https://github.com/owner/repo main "Fix TypeScript errors"

# With custom API URL
KASEKI_API_URL=http://localhost:8080/api \
  kaseki-agent run https://github.com/owner/repo main "Add unit tests"

# Monitor progress
kaseki-agent status kaseki-1 --follow

Configuration

Authentication

  • Config file (recommended): ~/.kaseki/config.json
  • Environment variables: LLM_GATEWAY_API_KEY_FILE, GITHUB_APP_*_FILE
  • Docker secrets: Mount /secrets volume

Environment Variables

See docs/ENV_VARS.md for complete configuration reference.

Deployment Options

  • Docker Compose: Production deployment with persistent API
  • Single-run: Ephemeral execution for CI/CD
  • Local API: Development and testing

API Reference

REST API

Start local API service:

kaseki-agent serve --port 8080

Programmatic Usage

  • Live monitoring: Query running instances
  • Error detection: Identify failures and anomalies
  • Post-run analysis: Detailed result summaries
  • Log streaming: Real-time log consumption
  • Automatic review requests: PRs on personal repositories automatically request the owner as a reviewer

See docs/API.md and docs/CLI.md for complete API and CLI documentation.


Architecture

Kaseki orchestrates ephemeral coding-agent instances with:

  • Host layer: Workspace management, credential resolution, Docker runtime
  • Container layer: Git cloning, dependency caching, Pi agent invocation
  • Result layer: Artifact collection, validation gates, quality metrics
  • API layer: REST service for external orchestration

Each run produces isolated workspace with:

  • Repository clone at target ref
  • Node.js dependency cache
  • Pi agent execution
  • Validation and quality gates
  • Comprehensive result artifacts

Resources

Documentation

Community

  • Issues: GitHub Issues
  • Discussions: GitHub Discussions
  • Updates: Follow for releases and announcements

License

MIT License - see LICENSE for details.

CyanAutomation - Building reliable AI coding workflows