Directory Compare FCRS-1.0 /llms.txt
← Back to Directory

lex

$ lex Community Low Risk
POSIX / Open Source · Files & Search · See Upstream · macos / linux / windows

lex (lex) — Lexical analyzer generator. Given the specification for a lexical analyzer, generates C code implementing it. Note: On most major OSes, this command is an alias for flex.. Verified across tldr-pages Corpus, npm Registry; included for structured shell automation under FCRS-1.0 baseline review.

FCRS-1.0 Score
72 /100
Usable w/ Caveats
Low Confidence
Zero-Friction Install
npm install -g @nlabs/lex
CLI vs MCP Decision CLI Only

Pure CLI utility (lex); directly invoked in shell workflows without an equivalent MCP server layer.

Agent-Readiness Checklist

— JSON Output
— Field Filtering
✓ Non-Interactive
— Dry-Run
— Read-Only Mode
— NO_COLOR Clean
— Self-Describing
— Official SKILL.md

Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.

FCRS-1.0 6-Dimension Breakdown

Agent-Readiness 16 / 25

Registry-verified CLI binary (lex); inspect --help output before assuming structured JSON flags.

  • Indexed in tldr-pages Corpus, npm Registry
  • Command usage documented in tldr-pages
Trust & Safety 19 / 25

Classified as low risk based on files-search scope and upstream package metadata.

  • Install channel verified via npm install -g @nlabs/lex
  • Package checksum verified by upstream registry
Setup & Portability 11 / 15

Installable via npm install -g @nlabs/lex across macos, linux, windows.

  • Primary install: npm install -g @nlabs/lex
Utility & Efficiency 12 / 15

Lexical analyzer generator. Given the specification for a lexical analyzer, generates C code implementing it. Note: On most major OSes, this command is an alias for flex.

  • Official homepage/source: https://manned.org/lex
Maintenance & Lineage 7 / 10

community lineage tool maintained by POSIX / Open Source.

  • Upstream repository: nitrogenlabs/lex
Docs & Verifiability 7 / 10

Upstream documentation linked at https://manned.org/lex; baseline FCRS cap applies until local probe runs.

  • https://manned.org/lex

Security, Auth & Guardrails

Auth Modes
No Auth
Credential Storage

Local execution tool; typically requires no external credentials unless targeting remote endpoints.

Side Effects
Read-Only Local Write
Cost & Quotas

Open-source / free local execution; zero API token or SaaS billing overhead from the binary itself.

Copyable Guardrail for CLAUDE.md / AGENTS.md
When invoking `lex`, verify flags with `lex --help` first, close stdin to avoid interactive prompts, and require confirmation before remote or destructive mutations.

Agent-Ready Command Recipes

Safe Read-Only Queries

Inspect available subcommands & flags
lex --help

Discover supported flags and subcommands for lex before constructing automated calls.

Verify binary version & availability
lex --version

Confirm lex is installed and executable in PATH with zero side effects.

Strengths for Agents

  • + Indexed in tldr-pages Corpus, npm Registry with reproducible install via npm install -g @nlabs/lex
  • + Includes practical community usage examples in tldr-pages for lex

Caveats & Pitfalls

  • ! Low-confidence baseline review: not yet locally probed on this host; run lex --help to verify flags before scripting

Tested Agent Hosts

Follow Ecosystem Links