New:Introducing Socket Scanning for VS Code Marketplace Extensions.Learn more →
Get Started

@athenaflow/cli

Package Overview
Dependencies
Maintainers
1
Versions
33
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@athenaflow/cli

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

latest
Source
npmnpm
Version
0.3.39
Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

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 Claude Code and OpenAI Codex. It adds structured workflows, real-time observability, session persistence, and a plugin system -- so agent-driven tasks produce consistent results across runs, teams, and models.

npm install -g @athenaflow/cli && athena

Athenaflow terminal UI

Read the docs -- guides, workflow authoring, plugin API, and more.


Why Athenaflow?

Coding agents work well for one-off tasks. The moment you need repeatable, multi-step execution -- e2e test generation, migration plans, release workflows -- things fall apart:

Pain pointWhat goes wrong
No reproducibilitySame prompt, same model, different output every time
Long-horizon driftWithout checkpoints, agents compound small mistakes into big ones
Prompts aren't portableWhat one developer got working doesn't transfer to the team
Black-box executionYou see the final output, not the 40 tool calls that got there
CI as an afterthoughtMost harnesses are built for interactive use, not pipelines

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 -- not just a prompt, but the loop logic, progress tracking, and tool config that make it reliable. Define once, run anywhere.

A marketplace for agent workflows -- browse, install, and update community-built workflows like packages.

Real-time observability -- a live terminal feed of every tool call, permission decision, and result as it happens.

Sessions persist and resume -- every run is saved to SQLite. Pick up where you left off with full state.

Harness-agnostic -- same workflows, same UI, same session model across Claude Code and Codex.

CI-native -- athena exec runs headlessly with safe defaults, JSONL output, and structured exit codes.


Get Started

1. Install -- requires Node.js 20+ and at least one harness (claude or codex) on your PATH.

npm install -g @athenaflow/cli

2. Run -- the setup wizard handles theme, harness verification, and your first workflow.

athena

3. Explore

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

Full walkthrough


Harnesses

HarnessStatusIntegration
Claude CodeSupportedHook events forwarded over a local Unix socket
OpenAI CodexSupportedIntegrated via codex app-server protocol
opencodePlannedAdapter placeholder; not yet enabled

Workflows

Workflows package prompt templates, loop strategies, plugin dependencies, isolation policies, and model config into a single portable unit. Anyone can author and share them.

athena workflow list                        # See what's installed
athena workflow search                      # Browse available workflows
athena workflow install e2e-test-builder    # Install from the marketplace
athena workflow use e2e-test-builder        # Set as the active workflow
athena workflow upgrade                     # Re-sync all from source

Manage marketplace sources:

athena marketplace add owner/repo           # Add a marketplace source
athena marketplace add ./local/path         # Add a local marketplace
athena marketplace list                     # List configured sources
athena marketplace remove owner/repo        # Remove a source

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

Author your own workflows


CI / Automation

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

athena exec "summarize risk in this PR"                                        # plain text
athena exec "run checks" --json --on-permission=deny --on-question=empty       # JSONL
athena exec "write release notes" --output-last-message release-notes.md       # artifact
GitHub Actions
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 @athenaflow/cli 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
GitLab CI
athena_exec:
  image: node:20
  script:
    - npm ci
    - npx @athenaflow/cli exec "summarize pipeline status" \
      --json --on-permission=deny --on-question=empty \
      --output-last-message athena-summary.md
  artifacts:
    paths:
      - athena-summary.md
Exit codes
CodeMeaning
0Success
2Usage / validation error
3Bootstrap / configuration failure
4Runtime / process failure
5Non-interactive policy failure
6Timeout exceeded
7Output write failure

Configuration

Config merges in order: global → project → CLI flags.

~/.config/athena/config.json        # Global defaults
{projectDir}/.athena/config.json    # Project overrides
{
	"harness": "claude-code",
	"model": "sonnet",
	"plugins": ["/path/to/plugin"],
	"activeWorkflow": "e2e-test-builder"
}
CLI flags
FlagDescription
--project-dirProject directory (default: cwd)
--pluginPath to a plugin directory (repeatable)
--isolationstrict (default) · minimal · permissive
--themedark (default) · light · high-contrast
--asciiASCII-only UI glyphs
--verboseExtra rendering detail

exec-only:

FlagDescription
--continueResume most recent exec session (or --continue=<id>)
--jsonJSONL lifecycle events on stdout
--output-last-messageWrite final assistant message to a file
--ephemeralDisable session persistence for this run
--on-permissionallow · deny · fail (default)
--on-questionempty · fail (default)
--timeout-msHard timeout for the run
Commands
CommandDescription
(default)Start interactive session in cwd
setupRe-run setup wizard
sessionsInteractive session picker
resume [id]Resume most recent or specific session
exec "<prompt>"Headless run for CI / scripting
workflow <sub>install · list · search · remove · upgrade · use
marketplace <sub>add · remove · list

Development

npm install && npm run build    # Build
npm test                        # Test
npm run typecheck               # Type-check
npm run lint                    # Lint
npm run dev                     # Watch mode
Codex protocol bindings

Files in src/harnesses/codex/protocol/generated are auto-generated from the codex app-server schema -- do not edit by hand. Refresh with:

scripts/update-codex-protocol-snapshot.mjs

Commit the output so others can build without the generator.


License

MIT

Keywords

cli

FAQs

Package last updated on 28 Apr 2026

Related posts