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

codex-astra-efficiency

v0.1.0

Published

A lightweight Astra-specific efficiency layer for ChatGPT Plus users in Codex.

Readme

Codex Astra Efficiency

Use Astra normally in Codex. Measure the work, not just the burn.

Codex Astra Efficiency (CAE) is a lightweight Astra-specific observability and efficiency layer for ChatGPT Plus users working in Codex.

The product constraint above all others is simple:

Codex should still feel like Codex.

You launch Codex normally, select Astra through native /model, give it real work, and let the agent operate normally. CAE stays beside that workflow to make Astra usage more observable and, only where real evidence supports it, more efficient.

v0.1.0 release: v0.1.0 is the first public early release of CAE. It is intentionally observability-first: trustworthy measurement and native Codex integration come before unproven efficiency interventions.

What CAE does

  • Targets the exact configured Astra model and remains a strict no-op for other models.
  • Uses native Codex UserPromptSubmit and Stop hooks for privacy-safe local observations.
  • Reads native Codex model/quota surfaces without replacing Codex authentication or model selection.
  • Tracks 5-hour and weekly Plus windows independently when Codex exposes them authoritatively.
  • Refuses to invent a quota delta across unknown or changed reset boundaries.
  • Preserves unrelated Codex hooks/configuration during setup and uninstall.
  • Keeps observations local by default and does not persist raw prompts, responses, source code, cwd paths, account identity, or raw native session/turn ids.
  • Fails open if CAE observation itself fails, so CAE does not block a productive Codex turn.

CAE does not increase OpenAI limits, automate resets, silently substitute another model, or currently promise a fixed percentage of Astra savings.

Scope

  • Plan: ChatGPT Plus first.
  • Surface: Codex first.
  • Model: Astra only.
  • Users: everyday Codex users through professional developers.
  • Workload: real software work, including substantial tasks.
  • Goal: increase useful completed work per unit of Astra allowance by reducing avoidable burn without reducing the work to toy tasks.

Quick start

The complete release installation and troubleshooting guide is in docs/INSTALL.md.

Install the global CLI from npm:

npm install -g codex-astra-efficiency

Alternatively, install from a downloaded GitHub Release package artifact:

npm install -g ./codex-astra-efficiency-0.1.0.tgz

Then configure the exact Astra target and install the CAE hooks:

cae doctor
cae target set gpt-6-astra
cae setup --dry-run
cae setup
cae readiness

A healthy setup reports:

ready_for_live_hook_capture

Launch Codex normally, use /model, select GPT-6-Astra, and work normally.

Useful local commands:

cae doctor
cae probe
cae readiness
cae quota
cae setup --dry-run
cae setup
cae uninstall --dry-run
cae uninstall
cae target show
cae target set <exact-model-id>
cae target clear
cae events

Before removing the global package, remove CAE-owned hooks with:

cae uninstall
npm uninstall -g codex-astra-efficiency

Native Codex workflow

CAE does not launch a replacement agent UI or require a prompt DSL, proxy, repository restructuring, or alternate model picker.

Ordinary installations use the normal Codex command automatically:

  • Unix-like: codex
  • Windows: codex.cmd

If the user's working Codex command is a wrapper or another executable path, CAE can use that exact launcher:

CAE_CODEX_COMMAND=/path/to/codex-or-wrapper cae doctor
CAE_CODEX_COMMAND=/path/to/codex-or-wrapper cae probe
CAE_CODEX_COMMAND=/path/to/codex-or-wrapper cae readiness
CAE_CODEX_COMMAND=/path/to/codex-or-wrapper cae quota

The override is one executable path/name, not an arbitrary shell command.

Codex's native hook review/trust prompt remains a real first-run step. CAE does not bypass it.

Supported v0.1 boundary

The automated CLI/test surface is validated across Ubuntu, Windows, and macOS with Node.js 20+.

The authoritative Android live-Astra validation runtime is codexu (Ubuntu-under-Termux) using the user's real Codex executable.

Native Termux Codex is a separate compatibility lane and is not part of the declared v0.1 support surface unless that lane passes before release.

See docs/INSTALL.md and docs/RELEASE_CRITERIA.md.

How CAE measures before it optimizes

CAE separates:

  1. observed facts;
  2. deterministic measurements;
  3. signals;
  4. efficiency hypotheses;
  5. validated interventions.

A short run is not automatically efficient. An expensive run is not automatically wasteful. Task outcome, validation, scope, rework, quota movement, duration, and eventually native token counters belong together.

The post-v0.1 direction is to learn passively from real Astra work instead of repeatedly spending allowance on artificial benchmarks. Native input/cached/output/reasoning counters, context occupancy, Plus allowance movement, and useful-work outcome must remain distinct measurements.

See:

Product principles

  1. Native Codex workflow. No mandatory harness migration, custom agent UI, task DSL, proxy, or repo restructuring.
  2. Astra means Astra. CAE does not silently substitute cheaper models.
  3. Measure before promoting defaults. Efficiency behavior must be justified by real Plus work.
  4. Separate quota windows. 5-hour and weekly limits are tracked independently.
  5. Unknown stays unknown. Missing or ambiguous measurement data is never converted into a confident number.
  6. Do not kill productive work. CAE does not terminate a useful turn because a threshold was crossed.
  7. Large work is not waste. CAE targets avoidable work, not ambitious work.
  8. Local by default. Usage evidence stays local unless the user explicitly exports something.
  9. Minimal interruption. Warnings and controls should be rare and high-value.
  10. No quota-circumvention claims. CAE works around the allowance the user already has; it does not change entitlement.

Current validation state

As of the v0.1.0 release:

  • Exact native Astra target: gpt-6-astra.
  • Codex CLI validated: 0.153.2 on Node.js 20+.
  • Native default reasoning observed: low.
  • Native quota authority observed: shared_default / default / limitId=codex.
  • Live hook capture proven: Real UserPromptSubmit and Stop hooks captured and verified under native Codex.
  • Strict non-Astra no-op proven: Non-Astra turns (gpt-5.6-sol) execute with zero hook interference and zero observation records.
  • Installed artifact validation: The globally installed [email protected] package passed end-to-end live release-candidate validation in normal Codex workflow.
  • Privacy-safe opaque correlation: Proven across turns; zero raw prompts, responses, file paths, cwd strings, repository names, or credentials persisted.
  • Setup and uninstall safety: Verified idempotent; removes only CAE-owned handlers and leaves user hooks byte-for-byte intact.
  • Cross-platform CI: Green across Ubuntu, Windows, and macOS.
  • Support boundary: Authoritative live runtime is codexu (Ubuntu under Termux). Native Termux Codex is explicitly excluded from v0.1 support.
  • No fixed savings claim: v0.1.0 makes no unsupported claim of fixed percentage savings; native token accounting and optimization mechanisms are deferred post-v0.1.

Historical validation receipts remain available under receipts/. Current release authority is docs/RELEASE_CRITERIA.md plus trackers/STATE.md.

v0.1 release boundary

The first public release should be trustworthy and usable, not artificially “finished.”

Hard blockers are correctness/safety problems such as misleading quota measurements, false readiness, destructive setup/uninstall, privacy leaks, unexpected non-Astra behavior, ordinary supported CLI crashes/hangs, or materially false installation documentation.

Richer analytics, automatic task classification, broader platform support, and speculative efficiency interventions can follow in later releases when they are validated.

See docs/V0_1_RELEASE_PLAN.md.

Contributing

Bug reports, measurement anomalies, feature requests, and focused pull requests are welcome after the repository becomes public.

A report is evidence to investigate, not automatically a confirmed bug. Confirmed issues are reproduced and validated before fixes are promoted. Correct community patches can be accepted directly, but they receive the same independent code, test, privacy, dependency, workflow, and security review as maintainer-authored changes.

See CONTRIBUTING.md and SECURITY.md.

Release/change history

See CHANGELOG.md.

Authorities and deeper engineering notes