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

deweyou-cli

v1.5.1

Published

Dewey's personal agent workflow bootstrapper

Downloads

748

Readme

deweyou-cli

deweyou-cli bootstraps reusable agent workflows into any local repository. It manages the repo-level wiring for selected skills, rules, and design contracts while keeping the source assets in the central deweyou/agents hub.

The v0 scope is intentionally small:

  • cache skills, rules, and design contracts from a local deweyou/agents checkout
  • initialize a repository with selected skills, rules, and an optional DESIGN.md
  • render the active agent context for the current repository
  • diagnose whether the current repository is wired correctly
  • initialize, inspect, diagnose, clean, uninstall, serve, record, and summarize global DDev per-repository state under ~/.deweyou/dev/
  • run a local-first personal Context Hub under ~/.deweyou/brain/ while the canonical knowledge content remains in a separately configured Git repository

Install

From npm:

npm install -g deweyou-cli

Then use one command for later CLI and asset upgrades:

deweyou-cli update

By default, agent update clones or pulls https://github.com/deweyou/agents.git into ~/.deweyou/agents/source. For local development, set DEWEYOU_AGENTS_SOURCE=/path/to/deweyou/agents to use a specific checkout instead.

Quick Start

cd /path/to/your/repo
deweyou-cli update --agents-only
deweyou-cli agent init \
  --skills ddev \
  --rules ddev-local-state,verification-evidence,loop-boundaries \
  --mode link \
  --yes
deweyou-cli agent doctor
deweyou-cli agent context --format markdown
deweyou-cli dev install
deweyou-cli dev status
deweyou-cli dev doctor
deweyou-cli dev session start --title "first task"
deweyou-cli agent -h
deweyou-cli -v

Context Hub quick start:

deweyou-cli brain init
deweyou-cli brain bootstrap --agent codex
deweyou-cli brain maintain --agent codex
# Follow the prompt, then submit proposals through brain apply.
deweyou-cli brain sync
deweyou-cli brain recall --query "current project decisions" --clearance private

brain init is interactive when --repo is omitted. It only attaches the local repository and optional remote, safely fast-forwards matching existing content, and writes missing templates. It never imports history, installs hooks/workers, commits, pushes, resets, or overwrites existing knowledge. Scripts should pass --repo.

The Context Hub requires Node.js 22.5 or newer. See the architecture, operations, and adapter reference.

deweyou-cli brain

deweyou-cli brain init [--repo <path>] [--device id] [--remote url]
deweyou-cli brain bootstrap --agent agent
deweyou-cli brain status
deweyou-cli brain capture --agent agent --event event [--data json]
deweyou-cli brain import --discover [--dry-run] [--agent codex|hermes|all]
deweyou-cli brain import --agent agent --path file-or-directory
deweyou-cli brain index
deweyou-cli brain recall --query text [--scope a,b] [--clearance level] [--budget tokens]
deweyou-cli brain maintain [--agent agent] [--session id]
deweyou-cli brain apply (--data json|--data-file path)
deweyou-cli brain sync
deweyou-cli brain worker [--no-push]
deweyou-cli brain state --id id --status active|stale|archived|deleted --reason text
deweyou-cli brain export --output path [--clearance level] [--scope a,b]
deweyou-cli brain hook install|status|uninstall --agent agent|all [--repo path]
deweyou-cli brain schedule install|status|uninstall [--interval seconds]

The separate knowledge repository commits Source manifests, Events, Observations, Claims, Resolutions, Decisions, policies, schemas, and the compiled Wiki. Raw session bodies, SQLite, FTS, queues, locks, quarantine, and adapter state stay local under ~/.deweyou/brain/. Classification is public < private < confidential < restricted; export and recall filter before exposing content.

Native Codex/Hermes discovery is read-only. It imports user messages and user-visible assistant message content under private and device/<device-id> by default, and is safe to rerun without creating duplicate records.

For standalone or non-DDev asset setup, select the skills and rules you want:

deweyou-cli agent init --skills ui-design --design dewey-interface --mode link
deweyou-cli agent init --global --tools codex --skills repo-memory,git-delivery --yes

Mental Model

deweyou/agents is the asset hub. It owns skills/, rules/, and design/.

deweyou-cli is the workflow manager. It scans the hub assets, generates a cache registry under your home directory, then writes a small .agents/manifest.json into each repository so the repository knows which assets are active.

Each repository chooses its own asset set. A coding repo can select coding skills and rules; a writing or design repo can select different ones and install a design contract as root DESIGN.md.

For DDev, keep the repository asset set intentionally small: install only the ddev entry skill. The product, UI, coding, delivery, and memory modules stay in the global Dewey asset cache at ~/.deweyou/agents/assets/skills/<skill>/SKILL.md, and DDev loads them by absolute path when needed.

Commands

General options:

| Option | Meaning | |--------|---------| | -h, --help | Show help. Supports nested help such as deweyou-cli agent -h and deweyou-cli agent init -h. | | -v, --version | Show the installed CLI version. |

deweyou-cli agent update

Refreshes the local agent asset cache from the default deweyou/agents source checkout.

deweyou-cli agent update

This command writes the global cache at:

~/.deweyou/agents/

Run this after changing or pulling updates in the asset hub.

Source selection:

  • Default: clone or pull https://github.com/deweyou/agents.git under ~/.deweyou/agents/source.
  • Override: set DEWEYOU_AGENTS_SOURCE=/path/to/deweyou/agents to scan a local checkout.

deweyou-cli update

Updates the globally installed CLI first, then invokes the updated binary to refresh agent assets:

deweyou-cli update
deweyou-cli update --dry-run
deweyou-cli update --cli-only
deweyou-cli update --agents-only

The CLI step runs npm install --global deweyou-cli@latest. If it fails, asset refresh does not run. If the CLI succeeds but asset refresh fails, the command reports partial success and leaves the updated CLI available for retry.

deweyou-cli agent init

Initializes the current repository with selected skills, rules, and an optional design contract.

deweyou-cli agent init

Usage:

deweyou-cli agent init [--all] [--skills a,b] [--rules a,b] [--design name] [--mode link|copy|pointer] [--global|--scope project|global] [--tools codex,claude|all] [--rule-wiring reference|inline] [--yes] [--dry-run] [--force]

Without selection flags, this opens an interactive setup where you choose:

  • install mode
  • skills
  • rules
  • design contract

Scripted examples:

deweyou-cli agent init --all --mode link --yes
deweyou-cli agent init --skills ddev --rules ddev-local-state,verification-evidence,loop-boundaries --mode link --yes
deweyou-cli agent init --skills ui-design --design dewey-interface --mode link
deweyou-cli agent init --global --tools codex --skills repo-memory,git-delivery --yes
deweyou-cli agent init --scope project --tools codex,claude --rules code-style --mode link
deweyou-cli agent init --scope global --tools codex,claude --skills repo-memory,git-delivery --yes
deweyou-cli agent init --scope global --tools all --rules code-style --rule-wiring reference --yes
deweyou-cli agent init --dry-run

Flags:

| Flag | Meaning | |------|---------| | --all | Select every skill and rule from the cached registry. Design contracts are explicit via --design. | | --skills a,b | Select only the listed skill ids. Values are comma-separated. | | --rules a,b | Select only the listed rule ids. Values are comma-separated. | | --design name | Install the selected design contract as root DESIGN.md. Project scope only. | | --mode link\|copy\|pointer | Choose how project repositories reference selected assets. Global skill installs always use symlinks. | | --global | Shortcut for --scope global; installs selected skills into tool-native user skill directories. | | --scope project\|global | Choose project-level or user-level installation. | | --tools codex,claude\|all | Choose target agent tools for global installs and instruction wiring. | | --rule-wiring reference\|inline | Choose whether selected rules are referenced by path or inlined into instruction files. | | --yes | Run without prompts. Requires --all, --skills, --rules, or --design. | | --dry-run | Print the planned files without writing them. | | --force | Replace existing managed asset destinations when needed. |

--yes does not guess a default asset set. It only confirms a scripted selection you already provided.

deweyou-cli agent context

Prints the active agent context for the current repository.

deweyou-cli agent context --format markdown
deweyou-cli agent context --format json

Formats:

| Format | Meaning | |--------|---------| | markdown | Human-readable instructions and asset paths. This is the default. | | json | Structured context for tooling or future integrations. |

The context output tells an agent which skills, rules, and design contracts are active, where their files live, whether the hub commit changed, and whether any selected asset hash changed in the local cache.

deweyou-cli agent doctor

Checks whether the current repository and local cache are healthy.

deweyou-cli agent doctor

It verifies:

  • local cache registry exists and is valid
  • repository .agents/manifest.json exists and is valid
  • AGENTS.md exists when selected rules or a design contract require repository instructions
  • selected skills, rules, and design contracts still exist in the registry
  • selected asset hashes match the repository's initialized snapshot
  • selected asset files are present
  • symlinks are valid when using link mode

The command exits with a non-zero status when a check fails.

deweyou-cli dev install

Initializes manually activated DDev runtime state and global per-repository DDev state.

deweyou-cli dev install
deweyou-cli dev install --dry-run

It creates:

~/.deweyou/dev/config.json
~/.deweyou/dev/repos/<repo-id>/config.json

Install validates the cached skills/ddev/runtime.json manifest, the current CLI version/capabilities, every declared module skill, and every required rule before writing runtime config. It records resolved module paths under ~/.deweyou/agents/assets/skills, but does not install assets or create a task session. Run deweyou-cli update --agents-only to refresh the cache.

The install command does not write DDev state into the project repository and does not add a new git exclude rule. It removes old DDev passive Codex hooks from earlier versions, but it does not install new hooks.

DDev starts only when the user invokes $DDev/ddev or when a repository's AGENTS.md explicitly opts into DDev as the default workflow for non-trivial development tasks. If DDev is missing on a machine, tell the user to run npm install -g deweyou-cli, deweyou-cli update --agents-only, and deweyou-cli agent init --skills ddev --mode link --yes, then deweyou-cli dev install; do not install it silently during unrelated work.

deweyou-cli dev status

Prints the current DDev runtime, repo state, branch metadata, and legacy branch session status. Use dev session status for the managed task lifecycle.

deweyou-cli dev status

deweyou-cli dev doctor

Diagnoses local DDev setup.

deweyou-cli dev doctor

It reports whether the runtime root exists, whether the global DDev module skill cache exists, whether global per-repository state exists, whether legacy branch session state exists, whether legacy repo-local DDev state or legacy git exclude wiring is present, and whether DDev passive Codex hooks are absent. It also verifies the runtime schema, CLI version/capabilities, manifest-backed module registry, and required rules. Missing runtime state or declared assets fail. A missing active task session is normal. DDev does not diagnose or manage other harness agents.

deweyou-cli dev session

Manages one explicit task per session. Branch, worktree, and head are metadata; they are not the session key.

deweyou-cli dev session start --title "task title"
deweyou-cli dev session list
deweyou-cli dev session status [--id <session-id>]
deweyou-cli dev session close [--id <session-id>]
deweyou-cli dev session archive [--id <session-id>]
deweyou-cli dev session clean --id <session-id> --force
deweyou-cli dev session clean --all --force

start creates only session.json, task.md, events.jsonl, and summary.md. Normal completion uses close. archive retains a closed session locally. Permanent cleanup requires --force and refuses active sessions. --all removes task sessions, archives, and checkout pointers only for the current repository; it preserves DDev assets, config, and all other repositories. Old branch-named directories remain visible as legacy until explicit cleanup.

deweyou-cli dev clean

Removes DDev-owned global per-repository state.

deweyou-cli dev clean --dry-run
deweyou-cli dev clean --branch feature/demo --force
deweyou-cli dev clean --all --force
deweyou-cli dev clean --all --dry-run

This is a compatibility command for legacy branch sessions. It follows the same permanent-cleanup rules as dev session clean: non-dry-run deletion requires --force, active managed sessions are refused, and --all keeps runtime and repository config intact.

deweyou-cli dev uninstall

Removes DDev-owned global state for the current repository and cleans the global runtime only when no other repository state remains.

deweyou-cli dev uninstall
deweyou-cli dev uninstall --dry-run

It removes the current repository's global state under ~/.deweyou/dev/repos/<repo-id>/, legacy <repo>/.deweyou/dev/ state if it exists, the exact legacy .deweyou/dev/ line from local git exclude, and old DDev passive Codex hooks from earlier versions. It removes ~/.deweyou/dev/ only when no other repository state remains. It does not diagnose or manage other harness agents.

deweyou-cli dev demo

Creates and serves the active task-session static HTML demo workspace.

deweyou-cli dev demo --no-server
deweyou-cli dev demo --port 4173
deweyou-cli dev demo --id <session-id> --port 0

It creates:

~/.deweyou/dev/repos/<repo-id>/sessions/<session-id>/demo/index.html

With --no-server, it only creates the demo files. Without --no-server, it starts a local static server and prints the URL. The demo is local working state and should stay out of git unless explicitly promoted into product source.

deweyou-cli dev record

Validates one structured session event and appends it to events.jsonl.

deweyou-cli dev record --kind node --data \
  '{"node_id":"verify","node_type":"verification","status":"completed"}'
deweyou-cli dev record --kind evidence --data-file evidence.json
printf '%s' '{"status":"confirmed","acceptance_source":"user"}' | \
  deweyou-cli dev record --kind requirement

Supported kinds are requirement, node, evidence, failure, review, recovery, and delivery. The command records facts only; it does not execute, retry, approve, or deliver nodes.

Validation covers session identity, strict ISO timestamps, duplicate event ids, references, state transitions, and completed-delivery consistency. Writes are size-bounded and serialized with a per-log lock.

| Kind | Required payload fields | | --- | --- | | requirement | status, acceptance_source | | node | node_id, node_type, status | | evidence | evidence_id, claim_id, evidence_type, status, summary | | failure | failure_id, node_id, failure_class, summary | | review | review_id, scope, verdict | | recovery | recovery_id, source_event_id, restart_from, reason, status | | delivery | delivery_id, status, summary |

Failure classes are requirement, design, implementation, verification, environment, permission, external, user_decision, or unknown. Keep secrets and large raw logs out of payloads; record redacted summaries and artifact references instead.

deweyou-cli dev summary

Validates all persisted session events, regenerates summary.md, and prints a Markdown or JSON view.

deweyou-cli dev summary
deweyou-cli dev summary --format json
deweyou-cli dev summary --id <session-id>

The summary shows the latest node states, claims and evidence, failures, review verdicts, recovery hints, delivery events, and open issues.

Install Modes

| Mode | Repository Writes | Best For | |------|-------------------|----------| | link | Installs selected skills through npx skills; symlinks selected rules and optionally root DESIGN.md. | Daily local work where updates should be immediately visible after cache refresh. | | copy | Installs selected skills through npx skills --copy; copies selected rules and optionally root DESIGN.md. | Repositories that should keep a snapshot of the selected assets. | | pointer | Writes .agents/manifest.json; selected assets stay in the global cache. AGENTS.md is updated only when selected rules or a design contract require repository instructions. | Minimal repo footprint and tooling that can follow absolute cache paths. |

Files Created

Depending on the selected mode, deweyou-cli agent init may create or update:

AGENTS.md
.agents/manifest.json
.agents/skills/<skill>/SKILL.md
.agents/rules/<rule>.md
DESIGN.md

AGENTS.md receives managed sections only when selected rules or a design contract require repository instructions. Existing content outside those managed sections is preserved.

Project installs write repository instruction files such as AGENTS.md and CLAUDE.md. Skill installs are delegated to npx skills add, which writes the selected skill package into agent-native skill directories such as .agents/skills/<skill> or .claude/skills/<skill> for project installs and ~/.agents/skills/<skill> or ~/.claude/skills/<skill> for global installs. Global rule installs write user-level instruction files such as ~/.codex/AGENTS.md and ~/.claude/CLAUDE.md.

Safety Notes

  • Run deweyou-cli update --agents-only before deweyou-cli agent init.
  • Asset ids must be kebab-case and must exist in the cached registry.
  • --force only replaces destinations that are already managed by this CLI. It refuses to overwrite unrelated user-created files or directories.
  • --dry-run is the safest way to preview what init would write.
  • Set DEWEYOU_AGENTS_SOURCE only when you want to override the default source checkout, usually while developing this asset hub locally.

Development

The CLI source and tests are written in TypeScript. Vite+ builds the published JavaScript files into dist/.

npm run typecheck
npm test
npm run test:coverage
npm run build
npm pack --dry-run

Release

Merging CLI package changes into main runs the release workflow. It typechecks, runs tests, verifies the package with npm pack --dry-run, infers the next version from conventional commit messages, prepends CHANGELOG.md, tags cli-vX.Y.Z, and publishes deweyou-cli to npm.

Release commit rules:

  • feat: creates a minor release.
  • fix:, perf:, and refactor: create a patch release.
  • ! or BREAKING CHANGE creates a major release.
  • docs: entries are included in the changelog only when another releasable CLI commit is present.
  • test: and chore: do not publish by themselves.

Relationship To deweyou/agents

deweyou/agents continues to provide the actual skills, rules, design contracts, and asset validation workflow. The CLI generates the cache registry during deweyou-cli agent update.

deweyou-cli does not replace those assets. It gives every repository a repeatable way to choose and wire the assets it wants, without manually copying or linking the same files again and again.