{"slug": "show-hn-poly-one-cli-and-purl-syntax-across-26-language-package-managers", "title": "Show HN: Poly – One CLI and PURL syntax across 26 language package managers", "summary": "RitualDev-Lab released Poly, a standalone CLI that applies one PURL-based syntax to add, remove and synchronize dependencies across 26 language package managers, including Node.js, Python, Rust and Go. Poly delegates 100% of dependency resolution to native tools (uv, pnpm, cargo, go) and adds a composite SHA-256 lockfile (poly.lock), a zero-drift --frozen CI mode, and structured JSON agent output with MCP support aimed at autonomous coding agents such as Claude Code, Cursor and Windsurf. The tool ships as a zero-dependency native binary for Linux, macOS and Windows, also installable via Homebrew, Scoop and npm.", "body_md": "**The Universal Polyglot CLI Package & Dependency Orchestrator**\n\nOne consistent syntax to add, remove, and synchronize dependencies across **Node.js, Python, Rust, and Go**.\n\n**Official Web Platform & Interactive Simulator**: [https://poly.ritualdev.in](https://poly.ritualdev.in)\n\n**Official VS Code Extension**: [RitualDev-Lab/vscode-poly](https://github.com/RitualDev-Lab/vscode-poly)\n\n**Official GitHub Action**: [RitualDev-Lab/setup-poly](https://github.com/RitualDev-Lab/setup-poly)\n\n**Enterprise Web Repository**: [RitualDev-Lab/poly-web](https://github.com/RitualDev-Lab/poly-web)\n\nModern engineering teams rarely build in a single programming language. A typical stack often pairs a **Next.js frontend**, a **Python AI backend**, and **Rust/Go microservices or WebAssembly crates**.\n\nSwitching cognitive context between `pnpm add`, `uv add`, `cargo add`, and `go get` creates friction and trips up autonomous AI coding agents (Claude Code, Cursor, Windsurf).\n\n`poly` acts as a zero-latency orchestrator that translates universal package requests into the fastest native package manager on your system.\n\n```\n                         ┌─────────────────────────────┐\n                         │      poly CLI Runner        │\n                         │   (Zero-Runtime Overhead)   │\n                         └──────────────┬──────────────┘\n                                        │\n             ┌──────────────────────────┼──────────────────────────┐\n             ▼                          ▼                          ▼\n  ┌──────────────────────┐   ┌──────────────────────┐   ┌──────────────────────┐\n  │   Node.js (npm)      │   │     Python (PyPI)    │   │      Rust (Cargo)    │\n  │  pnpm · bun · npm    │   │      uv · pip        │   │         cargo        │\n  └──────────────────────┘   └──────────────────────┘   └──────────────────────┘\n```\n\n- **PURL Standard & Shorthand** : Use`npm:zod` ,`pypi:fastapi` ,`cargo:tokio` , or standard`pkg:npm/...` specifications.\n- **Polyglot Workspaces (`poly.toml`)** : Orchestrate monorepos with parallel dependency synchronization across members.\n- **Composite Cryptographic Lockfile (`poly.lock`)** : High-speed SHA-256 integrity verification tracking all underlying native lockfiles.\n- **Zero-Drift CI/CD Mode (`--frozen`)** : Deterministically fails if any manifest or lockfile is modified out-of-band.\n- **Cross-Stack Task Runner (`poly run <task>`)** : Concurrently run scripts across services with colorized prefix streaming.\n- **Native Engine Delegation** : Zero custom solvers or lockfile corruption.`poly` delegates 100% of the resolution to verified native tools (`uv` ,`pnpm` ,`cargo` ,`go` ).\n- **Interactive Disambiguation** : When multiple manifests exist in the same directory,`poly` presents an inline selection prompt.\n- **AI Agent Friendly** : Eliminates shell syntax hallucination for autonomous coding agents.\n\n| Capability | Poly ( `@ritualdev-lab/poly` ) | Turborepo | Nx | \n|---|---|---|---|\n| **Native JS/TS + Python (`uv`) + Rust (` cargo`) + Go** | Built-in ( `poly.toml` ) | JS/TS primary | Plugins required | \n| **Composite Cryptographic Lockfile (`poly.lock`)** | Yes (SHA-256) | No | No | \n| **Built-in OSV Vulnerability Scan & `poly fix`** | Yes | No | Limited | \n| **Structured JSON Agent Output (`--agent`) + MCP** | Native | No | Limited | \n| **Zero-Cloud Local Cache** | Yes (default) | Yes (local) | Yes (local) | \n\nShow that your polyglot monorepo uses deterministic `poly` orchestration:\n\n```\n[![Built with Poly](https://raw.githubusercontent.com/RitualDev-Lab/poly/main/badges/built-with-poly.svg)](https://github.com/RitualDev-Lab/poly)\n```\n\n`poly` is available as a **zero-dependency standalone native binary** for Linux, macOS, and Windows (no Node.js or npm required), as well as via Homebrew, Scoop, and npm.\n\n```\ncurl -fsSL https://poly.ritualdev.in/install.sh | sh\nirm https://poly.ritualdev.in/install.ps1 | iex\nbrew install RitualDev-Lab/tap/poly\nscoop bucket add ritualdev https://github.com/RitualDev-Lab/scoop-bucket\nscoop install poly\n# Global install via npm\nnpm install -g @ritualdev-lab/poly\n\n# Or run on-demand via npx\nnpx @ritualdev-lab/poly add pypi:fastapi\n```\n\nUse the official [setup-poly](https://github.com/RitualDev-Lab/setup-poly) action in your workflow:\n\n```\n- name: Set up Poly\n  uses: RitualDev-Lab/setup-poly@v1\n  with:\n    version: 'latest'\n\n- name: Sync dependencies & verify zero drift\n  run: poly install --frozen\n\n- name: Cross-stack CVE security gate\n  run: poly audit --fail-on high\n# Explicit ecosystem shorthand\npoly add npm:zod\npoly add pypi:fastapi\npoly add cargo:tokio --features full\npoly add go:github.com/gin-gonic/gin\n\n# Adding development dependencies\npoly add npm:vitest -D\npoly add pypi:pytest -D\n\n# Auto-detect ecosystem from current working directory\ncd services/api\npoly add requests    # Automatically routes to PyPI via uv or pip\npoly remove npm:lodash\npoly remove pypi:scikit-learn\n# Sync dependencies for closest project\npoly install\n\n# Synchronize all polyglot projects across an entire monorepo\npoly install --all\n\n# Upgrade specific package to latest compatible version\npoly update npm:zod\npoly update pypi:fastapi\n\n# Upgrade all dependencies across all ecosystems\npoly update\n```\n\nScan package registries concurrently across **Node.js (npm), Python (PyPI), Rust (crates.io), and Go proxy** in under 300ms, printing a unified, color-coded semver table (`MAJOR`, `MINOR`, `PATCH`):\n\n```\n# Scan outdated dependencies across all workspace members\npoly outdated\n\n# Machine-readable output for CI/CD gates or AI agents\npoly outdated --json\n\n# Filter scan to a specific workspace directory\npoly outdated --filter services/ai\n\n# Guided batch upgrade: patches manifests & synchronizes poly.lock\npoly upgrade\n\n# Upgrade specific packages across ecosystems\npoly upgrade zod fastapi tokio\n```\n\nUnify your heterogeneous development environment with a single command. `poly dev` concurrently launches frontend dev servers, Python AI backends, and Rust/Go services, streaming color-coded, uniformly aligned prefixes per service and guaranteeing graceful shutdown (killing process trees without leaving zombie ports on Ctrl+C):\n\n```\n# poly.toml\n[workspace]\nmembers = [\"apps/*\", \"services/*\"]\n\n[scripts]\ndev = { parallel = [\"web:dev\", \"api:dev\", \"worker:dev\"] }\ntest = { parallel = [\"web:test\", \"api:test\", \"worker:test\"] }\n# Start all microservices in parallel with colored streaming prefixes\npoly dev\n\n# Filter to a specific service or slice\npoly dev --filter web\n\n# Run cross-stack test suite across all services\npoly test\n```\n\nFast, zero-dependency tab completion for all subcommands, flags, workspace member targets, and dynamic task completions from `poly.toml` and `package.json` (`poly run <TAB>`):\n\n```\n# Bash (add to ~/.bashrc)\neval \"$(poly completion bash)\"\n\n# Zsh (add to ~/.zshrc)\neval \"$(poly completion zsh)\"\n\n# Fish (add to ~/.config/fish/config.fish)\npoly completion fish | source\n\n# PowerShell (add to $PROFILE)\npoly completion powershell | Out-String | Invoke-Expression\n# Synchronize all workspace members concurrently\npoly sync\n\n# Enforce zero-drift in CI/CD pipelines (fails if lockfile is out of sync)\npoly install --frozen\n\n# Verify composite lockfile cryptographic integrity without modifying disk\npoly lock --verify\n\n# Run cross-stack scripts across services with colorized prefix streaming\npoly run dev\npoly run test --filter apps/web\n# Query OSV database for known vulnerabilities across all ecosystems\npoly audit\n\n# Automatically remediate vulnerabilities and patch manifests\npoly fix\n\n# Dry-run remediation without modifying files on disk\npoly fix --dry-run\n\n# Enforce security gates in CI/CD (fails build if HIGH or CRITICAL CVEs exist)\npoly audit --fail-on high\n\n# Export standard SARIF v2.1.0 report for GitHub Advanced Security\npoly audit --format sarif --output poly-security.sarif\n\n# Audit license compliance & flag forbidden copyleft licenses (GPL/AGPL)\npoly license --check\n\n# Generate CycloneDX v1.5 or SPDX v2.3 Software Bill of Materials (SBOM)\npoly sbom --format cyclonedx --output sbom.json\npoly sbom --format spdx --output spdx.json\n# Run complete diagnostic suite (Node, Python, Rust, Go, C compiler, registries, drift)\npoly doctor\n\n# Machine-readable diagnostic report for CI or agent pipelines\npoly doctor --json\n# Generate production multi-stage Dockerfile and docker-compose.yml\npoly docker\n\n# Generate with VS Code / GitHub Codespaces DevContainer configuration\npoly docker --devcontainer\n\n# Preview generated container artifacts without writing to disk\npoly docker --devcontainer --dry-run\n\n# Output artifacts to custom target directory\npoly docker --output-dir ./deploy/docker\n# Generate Ed25519 cryptographic signing keypair (PEM format)\npoly attest keygen\n\n# Generate in-toto SLSA Provenance v1.0 statement\npoly attest generate --output attestation.json\n\n# Cryptographically sign provenance statement into DSSE envelope\npoly attest sign --key poly-key.pem --output signed-envelope.json\n\n# Verify DSSE envelope signature & enforce zero artifact drift on disk\npoly attest verify --attestation signed-envelope.json --key poly-key.pub\n\n# Evaluate enterprise license whitelists and CVE thresholds\npoly policy --fail-on-violation\n# Save dependency artifacts (node_modules, .venv, target) into local / CI cache\npoly cache save\n\n# Restore dependency artifacts using deterministic OS/Arch/poly.lock hash key\npoly cache restore\n\n# Purge local cache\npoly cache clean\n\n# Verify reachability and latency of corporate registries (Artifactory, Nexus, AWS CodeArtifact)\npoly registry test\n```\n\nBridge directly into your hosted **[poly-cloud-api](https://github.com/RitualDev-Lab/poly-cloud-api)** server:\n\n```\n# Authenticate against your hosted Poly Cloud API server (stores in ~/.poly/config.json)\npoly login --url https://cache.ritualdev.in --token poly_tok_abc123 --workspace default\n\n# Display active authenticated session\npoly whoami\n\n# Inspect live cluster latency, hit rate (%), saved compute time, and dollar ROI\npoly cache status\npoly cache status --json\n\n# Invalidate remote cache for the current git branch with one command\npoly cache purge\npoly cache purge --branch feature/login-flow\npoly cache purge --all\n\n# Log out and remove local stored credentials\npoly logout\n```\n\nAutonomous coding agents (**Claude Code, Cursor, Windsurf, Devin, Codex**) struggle with dependency management—wasting 40% of their context windows reading verbose package manager progress bars, hallucinating commands in monorepos, and risking supply-chain attacks from unvetted lifecycle scripts.\n\n`poly` is built from the ground up as the native package orchestrator for AI agents:\n\n```\n# Token-Efficient Output (--agent): Replaces 1,000 lines of npm/pip output with 3 lines of structured JSON\npoly add --agent npm:zod\npoly install --agent\n\n# Built-in Supply-Chain Script Sandboxing: Neutralizes malicious postinstall lifecycle scripts\npoly add --sandbox npm:shady-pkg\npoly sandbox check npm:shady-pkg       # Pre-flight lifecycle script inspection before installation\n\n# 1-Click Agent Command Shortcut: Turns on sandbox, non-interactive mode, and compact JSON\npoly agent add npm:zod\npoly agent install\npoly agent audit\n\n# 1-Click MCP Setup: Auto-detects Claude Desktop, Cursor, and Windsurf and injects Poly's MCP server\npoly mcp install\n\n# Auto-generate agent prompt directives (.cursorrules, .cursor/rules/poly.mdc, CLAUDE.md)\npoly init --ide all\n\n# Token-Efficient Inspection Mode: Saves ~80% context tokens for coding agents\npoly detect --json     # Concise detected environments and primary ecosystem\npoly list --json       # Compact workspace members & direct dependency map\npoly audit --json      # Streamlined vulnerability report with zero preamble noise\npoly outdated --json   # Concurrent cross-ecosystem outdated scan in <300ms\n\n# Universal Test & Task Runner (prevents agents from guessing subfolder commands)\npoly test              # Runs test suites across all stack members (Node, Python, Rust, Go)\npoly run <task>        # Runs cross-stack tasks (e.g. 'poly run build', 'poly run dev')\n\n# Start stdio Model Context Protocol (MCP) server directly\npoly mcp\n\n# Output raw MCP client configuration JSON snippet\npoly mcp --config\n```\n\nStop malicious code and legal liability **before bytes touch the disk**:\n\n- **24-Hour Quarantine Cooldown** : Automatically halts packages published`<24h` ago, preventing 95%+ of zero-day maintainer account takeovers on npm & PyPI.\n- **Auto-Rollback to Mature Release** : In`rollback` mode (default), Poly transparently pins to the latest verified release published`>=24h` ago.\n- **Pre-Execution License Gate** : Blocks copyleft licenses (GPL, AGPL, SSPL) before download, preventing developers and AI agents from contaminating closed-source codebases.\n\n```\n# Pre-flight check package age, quarantine status, and license compliance\npoly firewall check npm:zod\npoly firewall check pypi:fastapi --agent\n\n# Bypass quarantine window explicitly for testing newly published releases\npoly add npm:fast-logger --allow-untested\n```\n\nConfigure firewall policy directly in `poly.toml`:\n\n```\n# poly.toml\n[security]\nquarantine_hours = 24       # Cooldown threshold (0 to disable)\nquarantine_action = \"rollback\" # \"rollback\" (mature release) or \"block\"\n\n[security.licenses]\npolicy = \"denylist\"\ndenied = [\"GPL-2.0\", \"GPL-3.0\", \"AGPL-1.0\", \"AGPL-3.0\", \"SSPL-1.0\"]\non_violation = \"block\"      # \"block\" or \"warn\"\npoly which npm     # e.g., pnpm (v9.15.4)\npoly which pypi    # e.g., uv (v0.5.1)\npoly which cargo   # e.g., cargo (v1.84.0)\n```\n\nMIT © [RitualDev Lab](https://ritualdev.in)\n\nIf you find this project valuable, consider supporting our open-source development:", "url": "https://wpnews.pro/news/show-hn-poly-one-cli-and-purl-syntax-across-26-language-package-managers", "canonical_source": "https://github.com/RitualDev-Lab/poly", "published_at": "2026-11-27 19:27:25+00:00", "updated_at": "2026-11-27 19:43:40.052490+00:00", "lang": "en", "topics": ["developer-tools", "ai-agents", "agent-protocols"], "entities": ["RitualDev-Lab", "Poly", "Claude Code", "Cursor", "Windsurf", "Turborepo", "Nx", "uv"], "also_reported_by": [], "takeaway": "Poly maps shorthand like npm:zod, pypi:fastapi and cargo:tokio to native resolvers and adds a --frozen mode that fails CI when any manifest or lockfile changes out-of-band.", "recommendation": null, "alternates": {"html": "https://wpnews.pro/news/show-hn-poly-one-cli-and-purl-syntax-across-26-language-package-managers", "markdown": "https://wpnews.pro/news/show-hn-poly-one-cli-and-purl-syntax-across-26-language-package-managers.md", "text": "https://wpnews.pro/news/show-hn-poly-one-cli-and-purl-syntax-across-26-language-package-managers.txt", "jsonld": "https://wpnews.pro/news/show-hn-poly-one-cli-and-purl-syntax-across-26-language-package-managers.jsonld"}}