[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-108615":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":16,"subscribersCount":16,"size":16,"stars1d":16,"stars7d":17,"stars30d":18,"stars90d":16,"forks30d":16,"starsTrendScore":15,"compositeScore":19,"rankGlobal":10,"rankLanguage":10,"license":20,"archived":21,"fork":21,"defaultBranch":22,"hasWiki":23,"hasPages":21,"topics":24,"createdAt":10,"pushedAt":32,"updatedAt":33,"readmeContent":34,"aiSummary":35,"trendingCount":16,"starSnapshotCount":16,"syncStatus":36,"lastSyncTime":37,"discoverSource":38},108615,"gauge-cli","gauge-sh\u002Fgauge-cli","gauge-sh",":dog: The open-source Gauge CLI. Hillclimb your Skills, CLI, SDK, MCP, API, or Docs to make something agents want.","https:\u002F\u002Fwithgauge.com",null,"TypeScript",156,11,3,1,0,4,65,51.74,"MIT License",false,"main",true,[25,26,27,28,29,30,31],"agent-skills","agents","cli","docs","mcp","sdk","testing","2026-11-23 19:38:30","2026-11-23 08:21:54","# Gauge CLI\n\n\u003Cpicture>\n  \u003Csource media=\"(prefers-color-scheme: dark)\" srcset=\"docs\u002Fassets\u002Fgauge-logo-dark.svg\">\n  \u003Csource media=\"(prefers-color-scheme: light)\" srcset=\"docs\u002Fassets\u002Fgauge-logo-light.svg\">\n  \u003Cimg alt=\"Gauge\" src=\"docs\u002Fassets\u002Fgauge-logo-light.svg\" width=\"800\">\n\u003C\u002Fpicture>\n\n[![Package checks](https:\u002F\u002Fgithub.com\u002Fgauge-sh\u002Fgauge-cli\u002Factions\u002Fworkflows\u002Fchecks.yml\u002Fbadge.svg?branch=main)](https:\u002F\u002Fgithub.com\u002Fgauge-sh\u002Fgauge-cli\u002Factions\u002Fworkflows\u002Fchecks.yml)\n[![npm version](https:\u002F\u002Fimg.shields.io\u002Fnpm\u002Fv\u002F%40withgauge%2Fcli)](https:\u002F\u002Fwww.npmjs.com\u002Fpackage\u002F@withgauge\u002Fcli)\n[![License: MIT](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FLicense-MIT-blue.svg)](LICENSE)\n\n**An open-source CLI for hillclimbing Agent Experience.**\n\nMake your Skills, CLIs, SDKs, MCPs and docs easier for coding agents to discover and\nuse. Gauge runs real agents against your product, captures where they get stuck,\nand lets your own coding agent test fixes before you publish them.\n\nThe full loop runs locally with Docker and your existing agent subscriptions or\nAPI keys. **No Gauge account required.**\n\n[Website](https:\u002F\u002Fwww.withgauge.com\u002Fagents\u002F) ·\n[Documentation](https:\u002F\u002Fdocs.withgauge.com\u002Fagents) ·\n[Hosted Gauge](https:\u002F\u002Fagents.withgauge.com) ·\n[npm](https:\u002F\u002Fwww.npmjs.com\u002Fpackage\u002F@withgauge\u002Fcli) ·\n[Changelog](cli\u002FCHANGELOG.md)\n\n## What does Gauge find?\n\nGauge runs and analyzes coding sessions to find the issues that coding agents run into.\n\nCommon findings include:\n\n- An interactive command blocks a coding agent\n- An agent reaches for deprecated commands or outdated API patterns\n- A Skill goes unused even when it should help with the task\n- An agent confidently claims a limitation that does not exist\n- An agent cannot figure out the intended workflow across multiple commands\n\nThe right fix might change error messages, Skill content, help text, code,\nor documentation. The Gauge CLI lets you validate proposed fixes before release.\n\n## Quickstart\n\nGauge is designed to be used by your coding agent. Point it at this repository\nand ask it to get started, or follow the steps below in the project you want to\nimprove.\n\nYou need Node.js **22.13+**, npm, Docker running Linux containers, and\ncredentials for the agent you want to test. Gauge supports Claude Code, Codex,\nPi, and OpenCode. It can use native Claude\u002FCodex logins or API keys; agent usage\nis billed through your provider or subscription.\n\n### 1. Install Gauge and its runtime\n\n```sh\nnpm install -g @withgauge\u002Fcli\ngauge local runtime pull\n```\n\nGauge downloads the published Docker image pinned to your CLI release. The\nimage contains the agent harnesses and standard development tools.\n\n### 2. Set up your project\n\nFrom your project directory (Git is optional):\n\n```sh\ngauge init --local\n```\n\nThis creates a private `.gauge\u002F` workspace, including a SQLite database and\nlocal backend preference. Plain init changes no tracked files. Add `--cases` when\nyou want shared Markdown cases: it also writes a `gauge.json` manifest,\n`gauge-cases\u002F`, and guidance in `AGENTS.md`. Commit those shared files. Keep\n`.gauge\u002F` private: it contains durable measurements and analyses.\n\n### 3. Install the skill\n\nThe [Gauge skill](https:\u002F\u002Fgithub.com\u002Fgauge-sh\u002Fgauge-skills\u002Ftree\u002Fmain\u002Fgauge-agents) teaches your coding agent where to find the CLI's instructions:\n\n```sh\ngauge install-skill\n```\n\n## How the improvement loop works\n\nHillclimbing means making a change, measuring whether it helped, and repeating.\n\n1. **Define realistic tasks.** Your agent saves evals or preference prompts with\n   stable identities, editable defaults, and observable outcomes. Use optional\n   Markdown cases for fully specified measurements intended for sharing or CI.\n2. **Test your current product.** In local mode, Gauge starts fresh Docker sessions\n   and injects the working-tree version of your configured inputs.\n   Each test agent sees the task and configured inputs within its sandbox.\n   Local mode supports Skills, SDKs, CLIs, and files. Hosted compute adds support for\n   docs, authenticated MCPs, and authenticated APIs.\n3. **Find friction.** Gauge normalizes events from Claude Code, Codex, Pi, and\n   OpenCode into consistent transcripts. In local mode, your agent reads the evidence,\n   checks the outcome against the criteria, and identifies what slowed or\n   blocked the task. It publishes structured Findings and judgments through\n   `gauge run analysis save`. In hosted mode, this analysis happens automatically after each session.\n   `gauge run insight` shows the evidence.\n4. **Change and retest.** Your agent edits the product or its guidance and reruns\n   the affected cases against the new artifacts.\n5. **Analyze the evidence.** Check whether the original problem disappeared,\n   whether the task succeeded, and whether the change introduced new friction.\n\nSkills and file inputs are read from your working tree. For an npm CLI or SDK,\nbuild and pack a new tarball before rerunning. Gauge installs these pre-release\nartifacts in the test sessions, so you can validate a fix before publishing it.\n\nThe CLI handles execution and evidence collection. In local mode, your coding agent authors\nthe changes and analyzes the local results.\n\n## A closer look at an eval\n\nSaved evals and preference prompts live in `.gauge\u002Fgauge.sqlite` locally or in\nyour hosted organization. Shared file-based cases optionally live in `gauge-cases\u002F`;\n`gauge.json` declares project inputs and automation. Both measurement sources\nsupport local and hosted execution, with the input differences described below.\nStart with a saved local eval; use a shared case when the task is ready for\nteammates or CI.\n\n\u003Cdetails>\n\u003Csummary>Example: test a release-notes Skill\u003C\u002Fsummary>\n\nCreate `skills\u002Frelease-notes\u002FSKILL.md`:\n\n```markdown\n---\nname: release-notes\ndescription: Write release notes for a new version in the team's format.\n---\n\nWrite RELEASE-NOTES.md with the version as its title, an Added section for new\nfeatures, and a Fixed section for bug fixes. Use one bullet per change.\n```\n\nFor a fresh project, use this `gauge.json`:\n\n```json\n{\n  \"version\": 2,\n  \"inputs\": {\n    \"release-notes\": {\n      \"type\": \"skill\",\n      \"path\": \"skills\u002Frelease-notes\"\n    }\n  }\n}\n```\n\nSave the task and criteria:\n\n```sh\ngauge eval create --local --name \"Release notes\" \\\n  --agent codex --samples 1 \\\n  --text \"Write the release notes for version 1.2.0. We added dark mode and fixed a login crash.\" \\\n  --criterion \"Team format: RELEASE-NOTES.md has a version 1.2.0 title, dark mode under Added, and the login crash fix under Fixed.\"\n```\n\nUse the returned eval ID to preview, then launch when ready:\n\n```sh\ngauge run --eval \u003Ceval-id> --local --input release-notes --dry-run\ngauge run --eval \u003Ceval-id> --local --input release-notes\ngauge instructions session-analysis --local\n```\n\nThe preview checks local readiness without launching an agent. Your coding agent\nthen reads the session and publishes its analysis. After changing the Skill,\nrerun the same eval ID: the new batch snapshots the current input files while\nthe baseline remains intact. Keep the task, criteria, and model pin fixed,\nanalyze both batches, then compare:\n\n```sh\ngauge run --eval \u003Ceval-id> --local --input release-notes\ngauge run compare --local --baseline batch=\u003Cbefore-id> --candidate batch=\u003Cafter-id>\n```\n\nFor a choice study, use `gauge preference create --kind open-ended` with a task\nthat lets the agent choose its approach, then `gauge run --preference \u003Cid>`.\nSupplying the Skill measures choice after that exposure, not discovery on the web.\n\nFor a shared or automated version of the eval, use the same input configuration\nand create `gauge-cases\u002Frelease-notes\u002Fbasic.md`:\n\n```markdown\n---\ncriteria:\n  - name: Release notes follow the team format\n    rubric: RELEASE-NOTES.md has a version 1.2.0 title, dark mode under Added, and the login crash fix under Fixed.\nconfig:\n  agents:\n    - agent: CODEX_CLI\n  sampleCount: 1\n  inputs: [release-notes]\n---\n\nWrite the release notes for version 1.2.0. We added dark mode and fixed a login crash.\n```\n\nThis case uses Codex; use `CLAUDE_CODE`, `PI`, or `OPENCODE` to test another\nharness with its configured credentials. The agent starts in an empty workspace\nwith the Skill installed. The task does not explicitly tell it to use the Skill,\nso the session also reveals whether it discovers the guidance.\n\n```sh\ngauge run --verify --local\ngauge run --dry-run --local\ngauge run --local\ngauge run list --local -o json\n```\n\nVerification checks the config and cases. The dry run previews the sessions and\nchecks local runtime and credential readiness. Neither launches an agent.\n\nResults, transcripts, and available diffs stay under `.gauge\u002F`. Have your coding\nagent follow `gauge instructions session-analysis --local` to assess each\ncriterion and report friction with supporting evidence.\n\nAfter editing the Skill, rerun the case:\n\n```sh\ngauge run --local --files \"gauge-cases\u002Frelease-notes\u002F*.md\"\ngauge run compare --local --baseline batch=\u003Cbefore-id> --candidate batch=\u003Cafter-id>\n```\n\nUse the batch IDs printed by the runs. The comparison summarizes completion, available turns\u002Fduration, and published\ncriterion judgments. Read the findings and evidence to determine whether the fix worked.\n\n\u003C\u002Fdetails>\n\n## What is Gauge?\n\n[Gauge](https:\u002F\u002Fwww.withgauge.com) helps teams improve how AI agents discover,\nchoose, and use their products. **Agent Experience** measures whether agents can\nsuccessfully use your product. **Agent Preference** examines which tools agents\nchoose for a task and why.\n\nThis CLI puts that work in the terminal where you and your coding agent already\nwork. Local execution supports the complete evaluate, analyze, fix, and retest\nloop. The hosted platform adds managed infrastructure and shared measurement\nover time.\n\n## Local or hosted\n\nSign in with `gauge auth login` to use hosted Chat and Agents. On a remote\nterminal, use `gauge auth login --device`. See [signing in](docs\u002Fshared-cli-auth.md)\nfor help with login and API keys.\n\n| | Local | Hosted Gauge |\n| --- | --- | --- |\n| Execution | Docker on your machine, using your agent credentials | Managed compute; sessions keep running when you close your laptop |\n| Results and analysis | File evidence; SQLite measurements, judgments, and Findings authored by your coding agent | Shared results, automated judging, and tracking over time |\n| Queries | Run summaries and Findings; supported fields are discoverable | Findings and additional reporting datasets |\n| Product inputs | Skills, npm CLIs and SDKs, docs and files, web fixtures | Also native binaries, GitHub-resolved website previews, and authenticated MCPs\u002FAPIs |\n| Iteration | Test working-tree changes and pre-release artifacts | Also controlled response rewriting and managed optimization trials |\n| Automation | CLI scripts and local batches | Also scheduled measurements, GitHub App PR checks, and greater concurrency |\n| Account | No Gauge account | Gauge workspace and credits |\n\n[Web fixtures](docs\u002Flocal-web-fixtures.md) let you test changes to content an\nagent encounters, such as a docs page, without publishing them first. They\nreplace pages or route a site to a preview in both local and hosted runs.\nHosted Gauge's gateway also brokers credentials and can rewrite responses\nseparately for each session.\n\nProject inputs on saved eval\u002Fpreference launches, and `--dry-run` for those saved\nmeasurements, are currently local-only. For hosted working-tree input snapshots\nand previews, use case files or a case spec with `gauge run --hosted`.\nFor example, the shared case above supports `gauge run --hosted --dry-run`;\nhosted previews contact Gauge and may upload inputs. Local and hosted saved\nmeasurements have separate IDs and storage.\n\nTo move a project to hosted execution:\n\n```sh\ngauge onboard\ngauge init --hosted\ngauge instructions --hosted\n```\n\n`gauge onboard` signs you in and creates or selects a workspace.\n`gauge init --hosted` changes this checkout's private backend preference; it does\nnot move local measurements or history into hosted storage. Hosted runs use workspace\ncredits. See the [documentation](https:\u002F\u002Fdocs.withgauge.com\u002Fagents) for hosted\nsetup, PR checks, and optimization workflows.\n\n## Commands and documentation\n\nThe CLI bundles instructions for coding agents, so the guidance matches the\ninstalled version:\n\n```sh\ngauge instructions\ngauge instructions init\ngauge instructions run\ngauge instructions eval\ngauge instructions preference\ngauge instructions session-analysis\ngauge instructions --list\ngauge --help\ngauge run --help\n```\n\nUse `-o json` on read commands for scripts and agent analysis. Check the runtime\nwith `gauge local runtime inspect`; configure provider credentials with\n`gauge local profiles --help`. Update the CLI with `gauge update`.\n\nSee the [CLI reference](cli\u002FREADME.md) for configuration, supported inputs,\ncredentials, background runs, cleanup, and CI usage.\n\n## Telemetry\n\nThe installed CLI collects command usage by default: command name, timestamp,\nCLI version, and a random installation ID. It excludes arguments, prompts, file\ncontents, and account identifiers. Disable collection with:\n\n```sh\ngauge telemetry disable\n```\n\nOr set `GAUGE_TELEMETRY_DISABLED=1` for a process or CI environment. See\n[telemetry details](cli\u002FREADME.md#anonymous-cli-telemetry) for storage, delivery,\nand the distinction from authenticated API usage analytics.\n\n## Development\n\nFrom the repository root:\n\n```sh\nnpm ci\nnpm ci --prefix cli\nnpm run check\n```\n\n`check` builds, typechecks, runs tests, and verifies packaged installs. It does\nnot require a Gauge account, Docker, a database, or another repository checkout.\n\n| Directory | Contents |\n| --- | --- |\n| [`cli\u002F`](cli) | CLI commands, bundled agent instructions, and API schemas |\n| [`packages\u002Flocal\u002F`](packages\u002Flocal) | Local Docker session runner and runtime Dockerfile |\n| [`packages\u002Fagent-adapters\u002F`](packages\u002Fagent-adapters) | Agent transports and evidence decoding |\n\nFor a CLI development loop after building, use\n`npm run dev --prefix cli -- --help`.\n\nDocker integration checks run in the [custom runtime workflow](.github\u002Fworkflows\u002Fcustom-runtime.yml).\nThe [runtime](.github\u002Fworkflows\u002Fpublish-runtime.yml) and\n[CLI](.github\u002Fworkflows\u002Fpublish-cli.yml) release workflows validate and publish\nversioned artifacts. Runtime releases produce a qualified manifest; commit it as\n`cli\u002Fruntime-manifest.json` before releasing the CLI.\n\nThe shared libraries also have public npm releases, published by the\n[agent adapters](.github\u002Fworkflows\u002Fpublish-agent-adapters.yml) and\n[local execution](.github\u002Fworkflows\u002Fpublish-local-execution.yml) workflows from\n`gauge-sh\u002Fgauge-cli`. Each package's npm trusted publisher must point to that\nrepository and its matching workflow.\n\nSee [Releasing](RELEASING.md) for repository setup, package permissions,\nand the runtime-to-CLI release sequence.\n\n## Support and contributions\n\nIssues are welcome. Forking and building your own version is the preferred way\nto customize Gauge. Only the Gauge team merges changes into this repository;\nwe periodically consider bringing community changes upstream. See\n[CONTRIBUTING.md](CONTRIBUTING.md).\n\nFor account questions or private reports, contact\n[support@withgauge.com](mailto:support@withgauge.com).\n\n## License\n\n[MIT](LICENSE).\n","Gauge CLI 是一个开源命令行工具，用于评估和优化面向编程智能体（coding agents）的产品体验。它通过本地运行真实智能体（如Claude Code、Codex等），自动捕获其在调用技能（Skills）、CLI命令、SDK、MCP协议或文档时的卡点问题，支持基于测试反馈迭代改进错误提示、帮助文本、API设计与文档内容。项目采用TypeScript开发，依赖Docker与用户自有Agent凭证，全程离线执行，无需注册账户。适用于AI原生工具链开发者、Agent SDK维护者及希望提升智能体兼容性的CLI\u002F平台团队。",2,"2026-11-24 04:34:45","CREATED_QUERY"]