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-camel

v0.1.0

Published

`codex-cli-camel` is a Codex CLI fork with integrated **CaMeL prompt-injection defense methodology**. This implementation is based on Google DeepMind's CaMeL work and adapted to Codex CLI runtime boundaries.

Readme

codex-cli-camel

codex-cli-camel is a Codex CLI fork with integrated CaMeL prompt-injection defense methodology. This implementation is based on Google DeepMind's CaMeL work and adapted to Codex CLI runtime boundaries.

What is added vs upstream

  • Native CaMeL guard in the core turn pipeline.
  • Runtime modes:
    • off
    • monitor (warn, continue)
    • enforce (block suspicious turn)
  • CLI commands:
    • codex camel activate --mode monitor|enforce --threshold <n>
    • codex camel deactivate
    • codex camel status
    • codex camel scan "<payload>"
    • codex camel compare
  • Reproducible benchmark harness and runtime comparison docs.
  • Companion plugin path (medium protection):
    • https://github.com/nativ3ai/codex-cli-camel-plugin

CaMeL references (source methodology)

  • Paper (arXiv): Defeating Prompt Injections by Design
    https://arxiv.org/abs/2503.18813
  • Google research repository:
    https://github.com/google-research/camel-prompt-injection

Install (this fork)

npm (global, one line)

npm install -g codex-camel
codex --version

Build from source

git clone https://github.com/nativ3ai/codex-cli-camel.git
cd codex-cli-camel/codex-rs

curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
source "$HOME/.cargo/env"
rustup component add rustfmt clippy

cargo build -p codex-cli
cargo run -p codex-cli -- --help

Optional local binary install

cd codex-rs
cargo install --path cli --force
codex --help

Activate guard

# Persist guard in ~/.codex/config.toml
codex camel activate --mode monitor --threshold 6

# Check effective settings (env vars override config)
codex camel status

# Switch to strict enforcement
codex camel activate --mode enforce --threshold 6

# Disable
codex camel deactivate

Environment override knobs:

export CODEX_CAMEL_GUARD_MODE=monitor   # off | monitor | enforce
export CODEX_CAMEL_GUARD_THRESHOLD=6

Malicious prompt behavior

Monitor mode

  • suspicious input/tool-context is detected
  • warning is emitted
  • turn continues

Enforce mode

  • suspicious input/tool-context is detected
  • turn is blocked
  • explicit error is returned

Benchmarks and research docs

Run benchmark:

python3 benchmarks/camel_guard/benchmark.py
cat benchmarks/camel_guard/latest.json

Latest benchmark snapshot

| Metric | Value | | --- | ---: | | samples | 8 | | threshold | 6 | | accuracy | 1.00 | | benign false-positive rate | 0.00 | | malicious detection rate | 1.00 | | throughput (samples/sec) | 456074.47 |

Implementation matrix

| Implementation | Scope | Protection level | Runtime behavior | | --- | --- | --- | --- | | codex-cli-camel (this fork) | Core CLI/runtime hooks | High | monitor warn, enforce block | | codex-cli-camel-plugin | Plugin/hook layer | Medium | Hook-based scan and policy actions | | hermes-agent-camel | Hermes agent runtime | High | Runtime-integrated CaMeL guardrails |

Security model notes

  • This fork adds deterministic low-overhead guarding at runtime boundaries.
  • It is not a complete formal defense by itself.
  • Keep Codex approval policy and sandboxing enabled for defense-in-depth.