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

@athenaflow/cli

v0.3.15

Published

Workflow runtime for Claude Code with hooks, plugins, and interactive terminal observability

Readme

Athenaflow CLI

npm version license CI node

Deterministic orchestration for non-deterministic agents.

AI coding agents are getting better at reasoning -- but long-horizon tasks still break. Prompts drift, results vary between runs, and there's no good way to package what worked into something your whole team can reuse. The agent isn't the bottleneck anymore. The harness is.

Athenaflow is a workflow runtime for coding agent harnesses. It sits between you and Claude Code or OpenAI Codex, adding structured workflows, real-time observability, session persistence, and a plugin system -- so agent-driven tasks produce consistent, reliable results you can reproduce across runs, across teams, and across models.

npm install -g @athenaflow/cli && athena

Documentation -- full guides, workflow authoring, plugin API, and more.


The Problem

Coding agents are powerful in a single session. But the moment you need repeatable, multi-step execution -- e2e test generation, migration plans, release workflows -- things fall apart:

  • Results vary between runs. Same prompt, same model, different output. No reproducibility.
  • Long tasks drift off course. Without structured checkpoints, agents compound small mistakes into big ones.
  • Prompts aren't portable. What works for one developer doesn't transfer to the team.
  • No visibility into agent decisions. You see the final output, not the 40 tool calls that got there.
  • CI integration is an afterthought. Most harnesses are designed for interactive use, not pipelines.

How Athenaflow Solves It

Athenaflow introduces a workflow layer between you and the underlying harness. Workflows are declarative, versioned, and shareable -- they define prompt templates, multi-session loops with completion tracking, plugin bundles, isolation policies, and model preferences. The runtime handles the rest.

  • Workflows encode what works. A workflow captures the full orchestration strategy -- not just a prompt, but the loop logic, progress tracking, and tool configuration that make it reliable. Define once, run anywhere.
  • A marketplace for agent workflows. Browse, install, and update community-built workflows like packages. athena workflow install e2e-test-builder -- done.
  • Real-time observability. A live terminal feed showing every tool call, permission request, approval decision, and result as it happens. Know exactly what your agent is doing, not just what it outputs.
  • Sessions that persist and resume. Every session is stored in SQLite. Pick up any past run right where it left off -- full state, full context.
  • Harness-agnostic by design. Same workflows, same UI, same session model -- whether you're running Claude Code or Codex. Switch harnesses without rewriting your automation.
  • Built for CI from day one. athena exec runs headlessly with safe defaults, JSONL output, and structured exit codes.

Get Started

1. Install

npm install -g @athenaflow/cli

Requires Node.js 20+ and at least one harness on your PATH:

2. Run

athena

The setup wizard walks you through theme, harness verification, and your first workflow from the marketplace.

3. Explore

athena resume                              # Pick up where you left off
athena sessions                            # Browse past sessions
athena workflow install e2e-test-builder   # Add a workflow from the marketplace

See the Getting Started guide for a full walkthrough.


Harness Support

| Harness | Status | Integration | | ----------------------------------------- | --------- | ---------------------------------------------- | | Claude Code | Supported | Hook events forwarded over a local Unix socket | | OpenAI Codex | Supported | Integrated via codex app-server protocol | | opencode | Planned | Adapter placeholder; not yet enabled |


Workflows

Workflows are the core of Athenaflow. They package prompt templates, loop strategies, plugin dependencies, isolation policies, and model config into a single portable unit. Anyone can author and publish a workflow.

athena workflow list                        # See what's installed
athena workflow install e2e-test-builder    # Install from the marketplace
athena workflow update                      # Re-sync from source
athena workflow use-marketplace owner/repo  # Point to a different marketplace

Install from a local file or a specific marketplace ref:

athena workflow install ./path/to/workflow.json
athena workflow install e2e-test-builder@lespaceman/athena-workflow-marketplace

Learn how to author your own workflows.


CI / Automation

athena exec is built for pipelines. Safe by default -- permission and question hooks fail unless you opt in.

# Plain-text summary
athena exec "summarize risk in this PR"

# Machine-readable JSONL
athena exec "run checks" --json --on-permission=deny --on-question=empty

# Save the final message as a build artifact
athena exec "write release notes" --output-last-message release-notes.md
name: athena-exec
on: [pull_request]
jobs:
  athena:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - uses: actions/setup-node@v4
        with:
          node-version: 20
      - run: npm ci
      - run: npx athena-flow exec "summarize risk in this PR" \
          --json --on-permission=deny --on-question=empty \
          --output-last-message athena-summary.md
      - uses: actions/upload-artifact@v4
        with:
          name: athena-summary
          path: athena-summary.md
athena_exec:
  image: node:20
  script:
    - npm ci
    - npx athena-flow exec "summarize pipeline status" \
      --json --on-permission=deny --on-question=empty \
      --output-last-message athena-summary.md
  artifacts:
    paths:
      - athena-summary.md

| Code | Meaning | | ---- | --------------------------------- | | 0 | Success | | 2 | Usage / validation error | | 3 | Bootstrap / configuration failure | | 4 | Runtime / process failure | | 5 | Non-interactive policy failure | | 6 | Timeout exceeded | | 7 | Output write failure |


Configuration

Config files merge in order: global -> project -> CLI flags.

~/.config/athena/config.json          # Global
{projectDir}/.athena/config.json      # Project
{
	"harness": "claude-code",
	"model": "sonnet",
	"plugins": ["/path/to/plugin"],
	"activeWorkflow": "e2e-test-builder"
}

| Flag | Description | | --------------- | ---------------------------------------------- | | --project-dir | Project directory (default: cwd) | | --plugin | Path to a plugin directory (repeatable) | | --isolation | strict (default), minimal, or permissive | | --theme | dark (default), light, or high-contrast | | --ascii | ASCII-only UI glyphs for compatibility | | --verbose | Show additional rendering detail |

exec-only flags:

| Flag | Description | | ----------------------- | ------------------------------------------------------ | | --continue | Resume most recent exec session (or --continue=<id>) | | --json | Emit JSONL lifecycle events to stdout | | --output-last-message | Write final assistant message to a file | | --ephemeral | Disable session persistence for this run | | --on-permission | allow, deny, or fail (default) | | --on-question | empty or fail (default) | | --timeout-ms | Hard timeout for the full exec run |

| Command | Description | | ----------------- | ------------------------------------------------------------------------------------- | | (none) | Start interactive session in cwd | | setup | Re-run setup wizard | | sessions | Interactive session picker | | resume [id] | Resume most recent (or specific) session | | exec "<prompt>" | Run headlessly for CI / scripting | | workflow <sub> | install, list, update, remove, use, use-marketplace, update-marketplace |


Development

npm install
npm run build
npm test
npm run typecheck
npm run lint
npm run dev            # Watch mode

Files in src/harnesses/codex/protocol/generated are auto-generated from the codex app-server schema. Do not edit them by hand. To refresh, run:

scripts/update-codex-protocol-snapshot.mjs

Commit the regenerated directory so others can build without the generator.


License

MIT