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

@dougvk/askcodex

v0.3.1

Published

OpenClaw askcodex plugin: per-chat Codex PTY sessions with handoff/resume/reset/new workflow.

Readme

@dougvk/askcodex

OpenClaw plugin that runs one Codex PTY runtime per chat session and delivers completed responses back to chat.

Commands

  • /askcodex help
  • /askcodex status
  • /askcodex new [abs path]
  • /askcodex <prompt>
  • /askcodex stop
  • /askcodex reset
  • /askcodex handoff
  • /askcodex resume

Command Behavior

  • /askcodex help: shows command usage for this plugin.
  • /askcodex status: returns a single PTY-oriented status view.
  • /askcodex new [abs path]: archives prior session state and starts a fresh Codex session.
  • /askcodex <prompt>: sends a prompt to the active Codex PTY; if a turn is already running, it returns a busy error.
  • /askcodex stop: stops the active Codex PTY for this chat.
  • /askcodex reset: keeps session identity when available and restarts runtime state.
  • /askcodex handoff: returns a local codex resume --yolo <session-id> command for interactive handoff.
  • /askcodex resume: restarts Codex automation for this chat in the stored workspace/session context.

Requirements

  • codex CLI available on PATH, or configure codexBin.
  • PTY runtime support (@lydell/node-pty is packaged as a dependency).
  • OpenClaw gateway with this plugin enabled.
  • Dedicated codexHome and defaultCwd must be configured in plugins.entries.askcodex.config.
    • Plugin load fails with a helpful error if either is missing or non-isolated.

Install

Local tarball (recommended while private)

npm pack
openclaw plugins install ./dougvk-askcodex-<version>.tgz

npm spec (private package)

openclaw plugins install @dougvk/askcodex@<version>

Config

Plugin manifest config schema is in openclaw.plugin.json.

Common keys:

  • codexHome
  • defaultCwd
  • codexBin
  • deliveryMode
  • forceAbsoluteAgentConfig

State Layout And Isolation

askcodex writes state in two places:

  • Plugin records under agent root:
    • <agentRoot>/askcodex/<session-hash>.json
    • <agentRoot>/askcodex/archive/*.json
  • Codex runtime/session files under codexHome:
    • default: ~/.cache/askcodex-codex-home
    • session JSONL: <codexHome>/sessions/YYYY/MM/DD/*.jsonl

Recommended setup for a dedicated plugin home:

{
  "plugins": {
    "entries": {
      "askcodex": {
        "enabled": true,
        "config": {
          "codexHome": "/srv/openclaw/state/askcodex-prod/codex-home",
          "defaultCwd": "/srv/openclaw/workspaces/askcodex-prod",
          "codexBin": "/usr/local/bin/codex"
        }
      }
    }
  }
}

Best practices:

  • Use a unique codexHome per environment (prod/stage/dev).
  • Do not share one codexHome across unrelated gateways/agents.
  • Keep codexHome and defaultCwd on persistent storage with restricted permissions.
  • If using relative agents.*.config_file in Codex config, set sharedConfigDir explicitly.

Tests

npm test