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

@lythos/project-cortex

v0.17.0

Published

Project governance CLI — tasks, epics, ADRs, wiki indexing

Readme

@lythos/project-cortex

GTD-style project governance for AI agent workflows. ADR, Epic, Task, Wiki — timestamp-ID based, machine-parseable, CLI-driven.

Why

AI agents excel at execution but have no memory across sessions. project-cortex brings structured project governance to agent-driven development:

  • Epic (WHY): Why a feature exists. Requirement origin.
  • ADR (HOW): How technical decisions were made.
  • Task (WHAT): Specific executable work.
  • Wiki: Reusable knowledge after tasks succeed.

All documents use timestamp IDs (e.g., TASK-20250420120000000) — collision-free, self-sorting, no central database.

Install

bun add -d @lythos/project-cortex
# or use directly
bunx @lythos/[email protected] <command>

Quick Start

# Initialize cortex directories
bunx @lythos/[email protected] init

# Create governance documents
bunx @lythos/[email protected] task "Fix login bug"
bunx @lythos/[email protected] epic "User auth system"
bunx @lythos/[email protected] adr "Choose database"

# Maintenance
bunx @lythos/[email protected] index   # Regenerate INDEX.md
bunx @lythos/[email protected] probe   # Check status consistency
bunx @lythos/[email protected] list    # List all tasks and epics

Commands

📋 lythoskill-project-cortex — Project management CLI

Commands:
  init                  Initialize cortex workflow directories
  task "<title>"        Create a new Task
  epic "<title>" --lane main|emergency [--override "<r>"] [--skip-checklist "<r>"]
                        Create a new Epic. --lane is required.
  adr "<title>"         Create a new ADR
  list                  List all tasks and epics
  stats                 Show project statistics
  next-id               Display timestamp ID format example
  index                 Generate INDEX.md and wiki/INDEX.md
  index wiki            Generate wiki/INDEX.md only
  wiki "<title>"        Create a new Wiki entry [--category pattern|faq|lesson]
  probe                 Check status consistency (dir vs Status History)
  flow                  Show kanban CFD — count, avg age, WIP limits
  dispatch-trailers     Parse last commit for trailers and dispatch follow-up
                        (used by the post-commit hook; usually not invoked manually)

Task state machine:
  start <task-id>       Move task to in-progress
  review <task-id>      Move task to review
  done <task-id>        Move task to completed (must be in review)
  complete <task-id>    Move task to completed (any status; trailer-driven close)
  suspend <task-id>     Move task to suspended
  resume <task-id>      Move suspended task back to in-progress
  reject <task-id>      Move reviewed task back to in-progress (re-work)
  terminate <task-id>   Move task to terminated (any status)
  archive <task-id>     Move completed task to archived

ADR state machine:
  adr accept <adr-id>                       Move ADR to accepted
  adr reject <adr-id>                       Move ADR to rejected
  adr supersede <adr-id> [--by <new-id>]    Move ADR to superseded

Epic state machine:
  epic done <epic-id>      Move epic to done
  epic suspend <epic-id>   Move epic to suspended
  epic resume <epic-id>    Move suspended epic back to active

Jira Without Jira

Cortex is Jira, but file-driven and git-native. No server, no API, no sign-up. Just markdown files in your repo.

| Jira | Cortex | |------|--------| | Issue tracker | cortex/tasks/ — timestamp-ID .md files | | Epic | cortex/epics/ — requirements + lane discipline | | Decision log | cortex/adr/ — architecture decisions with status | | Confluence | cortex/wiki/ — patterns, lessons, FAQ | | JQL / dashboard | bunx @lythos/project-cortex list / stats / probe | | Workflow automation | .husky/post-commitdispatch-trailers | | Sprint board | cortex/INDEX.md — auto-generated overview |

The key difference: Jira stores state in a database. Cortex stores state in your git repo. This means:

  • Branch, merge, and diff your project governance
  • CI/CD can read task status without API calls
  • No vendor lock-in — your data is literally cat-able

Commit-Driven Governance

State transitions are triggered by git trailers in commit messages. cortex init installs a .husky/post-commit hook that calls dispatch-trailers — parses trailers and auto-creates follow-up commits.

# Close a task from any status
git commit -m "feat(api): add endpoint

Closes: TASK-20260503010227902"

# Accept an ADR
git commit -m "docs(adr): accept database choice

ADR: ADR-20260503003315478 accept"

# Mark an epic as done
git commit -m "feat(cortex): finish dual-lane implementation

Epic: EPIC-20260503010218940 done"

The .husky/pre-commit hook prints a soft reminder when you have in-progress tasks.

Hook Setup

# One-time: set up husky, then cortex init installs the hook
bunx husky init
bunx @lythos/project-cortex init
# → copies post-commit template to .husky/

Epic Dual-Track

Epics use dual-track lanes to enforce focus:

  • lane: main — Current iteration focus. Max 1 active epic. This is your "Workflowy zoom-in" — everything else is background noise.
  • lane: emergency — Unavoidable urgent insert. Max 1 active epic. For genuinely blocking issues that cannot wait.
# Create a focused epic (will reject if main lane is full)
bunx @lythos/[email protected] epic "User auth system" --lane main

# Override with reason (recorded in frontmatter)
bunx @lythos/[email protected] epic "Hotfix login" --lane main --override "security incident"

Run bunx @lythos/[email protected] probe to check lane occupancy and catch drift.

Skill Documentation

This package is the Starter layer (CLI implementation).
The agent-visible Skill layer documentation is here:
packages/lythoskill-project-cortex/skill/SKILL.md

Architecture

Part of the lythoskill ecosystem — the thin-skill pattern separates heavy logic (this npm package) from lightweight agent instructions (SKILL.md).

Starter (this package) → npm publish → bunx @lythos/[email protected] ...
Skill   (packages/<name>/skill/)     → build → SKILL.md + thin scripts
Output  (skills/<name>/)             → git commit → agent-visible skill

License

MIT