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

ai-ops-cli

v1.9.0

Published

CLI for AI agent operating layers and global runtime integrations

Readme

ai-ops-cli

Korean

ai-ops-cli installs and manages the operating layer and global runtime integrations needed for project/agent work.

This document describes the currently implemented breaking model. The current CLI exposes integration commands for bundled user/global runtime workflows and keeps low-level component commands for skills and subagents. The old rules + skills scaffolder model remains only as deprecated context.

Current Breaking Model

flowchart TD
  init["ai-ops init"] --> layer["Install project operating layer"]
  layer --> entry["AGENTS.md canonical entrypoint"]
  layer --> adapters["GEMINI.md / CLAUDE.md adapters"]
  layer --> docs["docs/agent/* / docs/business/*"]
  layer --> state[".ai-ops/manifest.json / context-layer.json"]

  skill["ai-ops skill ..."] --> skillComponent["Skill components"]
  subagent["ai-ops subagent ..."] --> subagentComponent["Subagent components"]
  integration["ai-ops integration ..."] --> integrationComponent["Runtime integration bundles"]
  pack["ai-ops pack ..."] --> docsSpecs["optional docs/specs/ pack"]

Core boundaries:

  • Project scope manages only operating-layer documents.
  • Integration scope manages only user/global runtime workflow.
  • Skills, subagents, Codex hooks, and user-local receipts/config are integration components.
  • AGENTS.md is the canonical entrypoint.
  • GEMINI.md and CLAUDE.md are adapters that point tools back to AGENTS.md.
  • docs/specs/ is the optional pack location.
  • Integration component commands require AI_OPS_HOME or HOME; they fail closed without cwd fallback when neither exists.

Install Targets

Project repo:

AGENTS.md
GEMINI.md
CLAUDE.md
docs/agent/rules/00-agent-baseline.md
docs/agent/workflow.md
docs/agent/terminology.md
docs/agent/rules/routing-rules.md
docs/agent/rules/doc-update-rules.md
docs/agent/rules/stop-rules.md
docs/agent/checks/impact-checklist.md
docs/agent/maps/codebase-map.md
docs/business/terminology.md
docs/business/business-rules.md
docs/docs-status.md
.ai-ops/manifest.json
.ai-ops/context-layer.json

docs/agent/rules/00-agent-baseline.md is the Active rule that carries the original intent of the old role-persona, communication, code-philosophy, naming-convention, and plan-mode rules into the new operating layer. It is read immediately after AGENTS.md.

User/global runtime component home:

skills/*
subagents/*
hooks/*
receipts/config/*

Editing FAQ

What does ai-ops update overwrite?

AGENTS.md, GEMINI.md, CLAUDE.md, docs/agent/rules/*, docs/agent/checks/impact-checklist.md, and docs/agent/workflow.md are ai-ops managed documents. In these files, the region from <!-- ai-ops:start --> through <!-- ai-ops:end --> is CLI template content. ai-ops update reapplies the current CLI template to that region. User edits inside that region are not preserved across update.

docs/agent/project-rules/*.md is project-owned and is not overwritten by ai-ops update --force.

.ai-ops/manifest.json and .ai-ops/context-layer.json are also not direct-edit files. They are CLI state files for installation state and document indexing.

Which files should users edit directly?

Project knowledge belongs in project-owned documents. The default project-owned documents are docs/agent/maps/codebase-map.md, docs/business/terminology.md, docs/business/business-rules.md, and docs/docs-status.md. Project-specific agent behavior rules belong in docs/agent/project-rules/*.md. docs/agent/maps/codebase-map.md, docs/business/terminology.md, and docs/business/business-rules.md start as Reserved templates, but once the project fills them with real content, update does not automatically overwrite them.

docs/docs-status.md is project-owned, but it is not a free-form notebook. It is the context-layer registry. Update it together with document status/frontmatter changes; the update flow may also normalize its table from the manifest and current document frontmatter.

Where should project-specific agent rules go?

Use docs/agent/project-rules/*.md. Files in this directory are project-owned context documents when they have valid operating-layer frontmatter. ai-ops update, diff, and audit discover them, track them in .ai-ops/manifest.json, .ai-ops/context-layer.json, and docs/docs-status.md, and preserve their content across forced updates.

CLI Surface

ai-ops [command]

Commands:
  init       Install or refresh the project agent operating layer
  diff       Show drift in the project operating layer
  update     Re-apply the project operating layer
  audit      Check frontmatter, docs-status, manifest, and context-layer consistency
  uninstall  Remove project-managed operating layer files
  skill      Manage skill components
  subagent   Manage subagent components
  pack       Manage optional project operating layer packs
  studio    Launch ai-ops Studio or generate read-only Studio helpers
  integration Manage user/global runtime integrations

--tool remains because Codex, Claude Code, and Gemini CLI use different discovery locations and adapter files.

Studio desktop launcher:

ai-ops studio .
ai-ops studio /path/to/project

The launcher currently supports macOS arm64 through the optional ai-ops-studio-darwin-arm64 platform package. It passes the target project root to the desktop app and does not mutate project/runtime files.

Studio read-only snapshot command:

ai-ops studio snapshot --json

This emits the JSON contract consumed by ai-ops Studio. It reads the project context layer, audit state, and user/global runtime status without launching the desktop app or mutating project/runtime files.

Integration lifecycle commands:

ai-ops integration list
ai-ops integration install code-review-gate
ai-ops integration install pc
ai-ops integration diff code-review-gate
ai-ops integration update code-review-gate
ai-ops integration status pc
ai-ops integration uninstall pc
ai-ops pc status
ai-ops pc next --cwd /path/to/product-repo --item "..." --item "..." --basis "..."
ai-ops pc done draft --cwd /path/to/product-repo
ai-ops pc done fill --draft /path/to/draft.json --completed "..." --verification "..." --remaining "..." --next-action "..." --next-action-evidence "..." --apply
ai-ops pc done apply --draft /path/to/draft.json

code-review-gate bundles a Codex-only explicit review subagent and focused review task skills. It is hookless and does not create receipt config.

pc bundles the pc Codex skill and a shared Codex PostToolUse hook runner. ai-ops pc next records the active workstream's next priority snapshot without creating a handoff. It prompts Codex to run $pc:done after a successful git commit only when ~/.personal-project-contexts/ already has a matching workspace, active workstream, and current repo scope. Handoff writes use ai-ops pc done draft -> ai-ops pc done fill --apply, so the CLI owns draft updates, context file updates, and the context repo commit without requiring Codex to patch-edit the draft JSON directly.

Integration ownership is tracked in .ai-ops/integrations-manifest.json under the user/global runtime home. Uninstall removes only owned components and preserves pre-existing manual installs.

Skill lifecycle commands:

ai-ops skill list
ai-ops skill install skill-load-check --tool codex
ai-ops skill install ai-ops-project-owned-docs --tool codex
ai-ops skill diff
ai-ops skill update
ai-ops skill uninstall skill-load-check

ai-ops-project-owned-docs is a Codex-only task skill for routing operating notes, current diff impact, or conversation learnings into project-owned operating docs. It is invoked manually with $ai-ops-project-owned-docs; it does not edit documents, stage files, or commit before user approval.

Low-level component commands remain available for direct skill and subagent management.

The installed pc hook command is the shared dispatcher form ai-ops integration hook post-tool-use --workflows pc. Review and trust the configured non-managed hook with Codex /hooks before expecting it to run.

Subagent lifecycle commands:

ai-ops subagent list
ai-ops subagent install security-gate --tool codex
ai-ops subagent diff
ai-ops subagent update
ai-ops subagent uninstall security-gate

Subagents are always installed into the user/global runtime home. Codex uses .codex/agents/<id>.toml, Claude Code uses .claude/agents/<id>.md, Gemini CLI uses .gemini/agents/<id>.md, and state is recorded only in .ai-ops/subagents-manifest.json.

Pack lifecycle commands:

ai-ops init --tool codex
ai-ops pack list
ai-ops pack install spec-lifecycle
ai-ops pack diff spec-lifecycle
ai-ops pack update spec-lifecycle
ai-ops pack uninstall spec-lifecycle

The spec-lifecycle pack installs docs/specs/README.md, docs/specs/README.ko.md, docs/specs/baseline/.gitkeep, and docs/specs/initial-build/.gitkeep. Only Markdown documents are audited by the context-layer and docs/docs-status.md; .gitkeep files are tracked only as regular pack files in the manifest. Project terminology remains centralized in docs/business/terminology.md.

Deprecated Old Model

The following behaviors may still appear in current code or older docs, but they are outside the new contract:

  • preset-first init UX
  • project-scope skill installation
  • ai-ops skill install --project
  • project-installed skill metadata
  • .ai-ops-manifest.json
  • legacy manifest migration
  • root specs/
  • ai-ops spec init

Existing projects are not migrated automatically. Existing users should run ai-ops uninstall with the old CLI, then run ai-ops init again with the new major CLI.

Old Model Command Notes

The command below remains only as a deprecated old-model example for historical project-scope skill installation. The current skill CLI is global-only and does not expose --project, --global, or --scope as public options.

ai-ops skill install skill-load-check --project --tool codex

Deprecated old-model-only items:

  • --project was the old option for project-scope skill installation.
  • --global and --scope were old options for directly selecting skill scope.
  • spec init was the removed old command that created root specs/.
  • .ai-ops-manifest.json was the old project manifest.

Development

From the repository root:

npm install
npm run build
npm run compile
npm test

To check only the CLI workspace:

npm run build --workspace=apps/cli
npm run test --workspace=apps/cli

Use npm run check as the default validation for code and operating-document changes. For CLI release artifacts, run both npm run build and npm run compile.

Self-dogfood validation runs npm run build, applies init --tool codex --tool gemini --tool claude-code to this repo, then checks diff, audit, update --force, uninstall --yes, re-init, and re-audit. This repo does not install the spec-lifecycle pack during self-dogfood; pack list only verifies the not installed state.

Related Docs