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

@agentrail-core/cli

v0.1.9

Published

Local source-available release candidate for the AgentRail task lifecycle API

Readme

AgentRail

CI License: Source-Available Node.js

AgentRail is a local-first control plane for coding agents. It gives agents one compact API for the project loop: issue intake, routing, assigned work, PR submission, CI, review feedback, and shipping.

The source-available repo is a self-managed single-instance runtime. It is built for local evaluation and self-hosting. The planned AgentRail Cloud product is the managed team/fleet layer for hosted connectors, shared run history, routing, wakes, SSO/RBAC, audit, dashboards, and reliability.

What Agents Get

  • Assigned tasks with compact state and availableActions.
  • Routing from GitHub or Linear issues to the right local agent.
  • Retry-safe mutations through idempotency keys.
  • CI and review summaries shaped for action instead of raw log replay.
  • Real-time task events over SSE and webhooks.
  • Local provider setup for GitHub, CircleCI, and Linear.

Quickstart

Prerequisites:

  • Node.js 24 or newer.
  • npm.
  • Optional provider credentials if you want live GitHub, CircleCI, or Linear integration.

Install the CLI:

npm install -g @agentrail-core/cli

Initialize AgentRail:

agentrail init

You can also run the first command without a global install:

npx @agentrail-core/cli init

The interactive setup writes local config under ~/.agentrail, creates the local operator bootstrap, and can create your first local agent. It does not ask you to hand-write API keys or edit a seed task store.

Start the local API:

agentrail server start

In another terminal, verify setup:

agentrail doctor

doctor is the success gate. It checks the local API, agent credentials, profile/routing state, and whether the current agent can see assigned work.

Telemetry

AgentRail sends anonymous product telemetry by default to improve setup, provider reliability, and agent lifecycle behavior. Telemetry goes to PostHog EU Cloud and uses an anonymous install ID.

Telemetry does not send source code, issue text, PR diffs, prompts, terminal logs, environment variables, secrets, tokens, or raw provider payloads.

agentrail telemetry status
agentrail telemetry off
agentrail telemetry on

Connect Providers

Provider connections are optional and can be added after init.

agentrail provider connect github
agentrail provider connect circleci

# AgentRail will ask for the full CircleCI project slug, for example:
# circleci/<org-id>/<project-id>
agentrail provider connect linear

Interactive provider setup asks for secrets in hidden prompts and writes them to local env files. Non-interactive automation can still use environment variables such as GITHUB_TOKEN, CIRCLECI_TOKEN, LINEAR_API_KEY, and webhook secrets. provider connect finishes by running provider readiness, applying safe local setup fixes, and reporting any remaining account or repo settings AgentRail cannot change for you. provider test <provider> uses the same readiness check as provider doctor <provider>; it is not just a token check. GitHub setup also asks whether AgentRail should wait for code review before shipping PRs. The default follows GitHub's own review signals, but you can choose to always require an approval for AgentRail-created PRs or to skip approval waits once CI is green. CircleCI setup verifies project access, creates .circleci/config.yml when a starter config is safe, and configures how AgentRail will obtain pipelines for AgentRail branches. If automatic CircleCI branch builds are not available, AgentRail uses the CircleCI pipeline-run API when the token can access a pipeline definition.

Import a Linear issue into AgentRail after connecting Linear:

agentrail linear import ENG-123

Imported provider issues go through the routing engine. If routing is not configured, AgentRail fails closed instead of silently creating unassigned work.

Work With Agents

Create or update local agent profiles:

agentrail agent create
agentrail agent update --agent-id agt_example

Inspect local config and connected repos:

agentrail config show
agentrail repo list
agentrail provider list
agentrail provider status
agentrail provider doctor

Repair a task source if older imported data needs to be corrected:

agentrail task source repair --task-id tsk_... --file source-patch.json

Docker

For a server-only smoke run:

docker compose up --build

The API listens on http://127.0.0.1:3000 by default. CLI-assisted onboarding is still the recommended path for a useful local setup because it creates local agent, routing, and provider state.

Documentation

Development

Common repo commands:

git clone https://github.com/oxnw/agentrail.git
cd agentrail
npm install
npm link
npm run typecheck
npm test
npm run lint:openapi

The package exposes the agentrail binary:

agentrail --help

License

AgentRail is source-available software, not open source. See LICENSE.