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

@insien/cortex-cli

v0.5.0

Published

AI Agent Orchestrator - Run AI workflows defined in YAML

Readme

Cortex

   ██████╗ ██████╗ ██████╗ ████████╗███████╗██╗  ██╗
  ██╔════╝██╔═══██╗██╔══██╗╚══██╔══╝██╔════╝╚██╗██╔╝
  ██║     ██║   ██║██████╔╝   ██║   █████╗   ╚███╔╝
  ██║     ██║   ██║██╔══██╗   ██║   ██╔══╝   ██╔██╗
  ╚██████╗╚██████╔╝██║  ██║   ██║   ███████╗██╔╝ ██╗
   ╚═════╝ ╚═════╝ ╚═╝  ╚═╝   ╚═╝   ╚══════╝╚═╝  ╚═╝

  ⚡ AI Agent Orchestrator ⚡

Cortex is a powerful CLI tool that orchestrates AI agent workflows defined in YAML. Run multiple AI agents in parallel, chain their outputs, and automate complex tasks.

Features

  • 🚀 Parallel Execution - Run independent tasks concurrently
  • 🔗 Task Dependencies - Chain tasks with needs and pass outputs via templates
  • 🤖 Multi-Agent Support - Use Claude Code, OpenCode, or other AI CLIs
  • 📊 Session Tracking - View and manage past run sessions
  • 🔔 Webhooks - Get notified on task completion/failure
  • ⚙️ Global Config - Set defaults in ~/.cortex/config.yml

Installation

npm (Recommended)

npm install -g @insien/cortex-cli

Quick Install (Shell)

curl -fsSL https://raw.githubusercontent.com/obliviious/cortex/main/install.sh | bash

Homebrew (macOS/Linux)

brew tap obliviious/tap
brew install cortex

Go Install

go install github.com/obliviious/cortex/cmd/agentflow@latest

From Source

git clone https://github.com/obliviious/cortex.git
cd cortex
make install

Manual Download

Download the latest release for your platform from GitHub Releases.

Quick Start

1. Create a Cortexfile

Create Cortexfile.yml in your project:

agents:
  architect:
    tool: claude-code
    model: sonnet

  reviewer:
    tool: claude-code
    model: sonnet

tasks:
  analyze:
    agent: architect
    prompt: |
      Analyze the codebase structure and identify areas for improvement.
      Be concise and focus on actionable insights.

  review:
    agent: reviewer
    prompt: |
      Review the code for security issues and best practices.

  implement:
    agent: architect
    needs: [analyze, review]
    write: true
    prompt: |
      Based on the analysis and review:

      ## Analysis:
      {{outputs.analyze}}

      ## Review:
      {{outputs.review}}

      Implement the top priority improvement.

2. Run the Workflow

cortex run

3. View Past Sessions

cortex sessions

Commands

| Command | Description | |---------|-------------| | cortex run | Execute the Cortexfile workflow | | cortex validate | Validate configuration without running | | cortex sessions | List previous run sessions |

Run Options

cortex run [flags]

Flags:
  -f, --file string        Path to Cortexfile (default: auto-detect)
  -v, --verbose            Verbose output
  -s, --stream             Stream real-time logs from agents
      --parallel           Enable parallel execution (default: on)
      --sequential         Force sequential execution
      --max-parallel int   Max concurrent tasks (0 = CPU cores)
      --no-color           Disable colored output
      --compact            Minimal output (no banner)

Sessions Options

cortex sessions [flags]

Flags:
      --project string   Filter by project name
      --limit int        Max sessions to show (default: 10)
      --failed           Show only failed sessions

Configuration

Cortexfile.yml

# Agents define the AI tools to use
agents:
  my-agent:
    tool: claude-code    # or "opencode"
    model: sonnet        # optional: model override

# Tasks define the workflow
tasks:
  task-name:
    agent: my-agent      # Reference to agent
    prompt: |            # Inline prompt
      Your prompt here
    # OR
    prompt_file: prompts/task.md  # External file

    needs: [other-task]  # Dependencies (optional)
    write: true          # Allow file writes (default: false)

# Local settings (optional)
settings:
  parallel: true
  max_parallel: 4

Global Config (~/.cortex/config.yml)

# Default agent settings
defaults:
  model: sonnet
  tool: claude-code

# Execution settings
settings:
  parallel: true
  max_parallel: 4
  verbose: false
  stream: false

# Webhook notifications
webhooks:
  - url: https://hooks.slack.com/services/xxx
    events: [run_complete, task_failed]
    headers:
      Authorization: "Bearer token"

Template Variables

Pass outputs between tasks using template variables:

tasks:
  analyze:
    agent: architect
    prompt: Analyze the code...

  implement:
    agent: coder
    needs: [analyze]  # Must declare dependency
    prompt: |
      Based on this analysis:
      {{outputs.analyze}}

      Implement the changes.

Webhooks

Configure webhooks to receive notifications:

# In ~/.cortex/config.yml
webhooks:
  - url: https://your-webhook.com/endpoint
    events:
      - run_start
      - run_complete
      - task_start
      - task_complete
      - task_failed
    headers:
      Authorization: "Bearer your-token"

Webhook Payload

{
  "event": "task_complete",
  "timestamp": "2024-01-04T20:00:00Z",
  "run_id": "20240104-200000",
  "project": "my-project",
  "task": {
    "name": "analyze",
    "agent": "architect",
    "tool": "claude-code",
    "duration": "12.3s",
    "success": true
  }
}

Session Storage

Run results are stored in ~/.cortex/sessions/<project>/run-<timestamp>/:

~/.cortex/
├── config.yml          # Global config
└── sessions/
    └── my-project/
        └── run-20240104-200000/
            ├── run.json        # Run summary
            ├── analyze.json    # Task results
            └── review.json

Supported Tools

| Tool | CLI Command | Description | |------|-------------|-------------| | claude-code | claude | Anthropic's Claude Code CLI | | opencode | opencode | OpenCode CLI |

Requirements

  • One of the supported AI CLI tools installed
  • Go 1.21+ (for building from source)

License

MIT License - see LICENSE