Skip to content
Proyectos

Acerca de

Developer tools for humans and agents: route work to the right AI coding agent, merge multi-vendor reviews into one gate, pin the skills and MCP servers agents load, compile one setup for every agent, and monitor usage and limits.

Herramientas de desarrollo

Cómo se miden estas cifras

Crecimiento de estrellas medido

in 24h
0
in 7 days
0
in 15 days
0
in 1 month
+15

Cambios netos en períodos que se solapan, no totales diarios. Los datos no disponibles se dejan en blanco. Las estrellas indican interés, no calidad.

README.md

Original

Coding agents each keep their own config, plan limits and logs, so using more than one means copying setup by hand, guessing which plan has room left, and trusting skills and MCP servers nobody pinned. cedr, the command line tool behind cedr.dev, runs them all from one place:

  • Route picks the agent, model and effort for each task, and skips plans near their limits.
  • Council has reviewers from several vendors check a change, and blocks on any serious finding.
  • Guard pins the skills and MCP servers your agents load, and fails CI when one changes.
  • Sync turns one set of rules, skills and MCP servers into each agent's own files.
  • Monitor reports tokens, cost and plan limits across every agent, from local logs.
  • Compare tests whether a new model or setup actually does better, with your own tasks.

Any agent that speaks MCP can call it directly.

[!NOTE] cedr is in public beta. Commands and file formats may still change before 1.0. See how versions work.

✨ Products

Product What it does Start with

Route
Reads your routes.toml, where you set the limits per plan or route and the models per route and work size. Equally suited work goes to the plan with the most room left. cedr route pick review.code

Council
Groups findings that point at the same place. Any P0 or P1 blocks; too few reports is never a silent pass. cedr council plan review.council

Guard
Lints your agent setup. Pins live in .cedr/guard.lock and cover each server's tools, descriptions and network hosts. cedr guard lint

Sync
Sources, including permissions and hooks, live in .cedr/. CI fails on drift; hand edits are kept unless you pass --force. cedr sync init

Monitor
Costs are API-equivalent, with cache use and sessions. Counts leave your machine only when you push them. cedr monitor limits

Compare
Tests decide each trial, within a budget you set. Reports pass rates, cost and how much the difference can be trusted. cedr compare init
Bench Runs a frozen public suite once per coding-agent configuration, reporting the code score, list cost and visual artifacts. cedr bench run --harness claude --model MODEL

Not sure where you stand? cedr doctor checks your account, Route, MCP, Monitor, Sync and Guard setup and prints the fix for whatever is missing. It never changes anything.

Coming next: Index (one code graph every agent shares). See the product line.

📦 Install

Download the archive for your platform from the latest release, unpack it and put cedr on your PATH.

Platform Archive
Linux x86_64 cedr-linux-x86_64.tar.gz
Linux ARM64 cedr-linux-arm64.tar.gz
macOS, Apple silicon cedr-macos-arm64.tar.gz
macOS, Intel cedr-macos-x86_64.tar.gz
Windows x86_64 cedr-windows-x86_64.zip

For example, on Linux x86_64:

curl -fsSL https://github.com/Sheernox/cedr/releases/latest/download/cedr-linux-x86_64.tar.gz | tar -xz
install -m 755 cedr-linux-x86_64/cedr ~/.local/bin/cedr
cedr --version

Linux builds need glibc 2.34 or newer (Ubuntu 22.04, Debian 12, RHEL 9 or later). Every release lists SHA-256 checksums in SHA256SUMS and carries signed build provenance you can check with gh attestation verify <archive> --repo Sheernox/cedr.

To build from source instead, use a current stable Rust toolchain:

cargo install --locked --git https://github.com/Sheernox/cedr cedr

cedr keeps itself up to date: once a day it checks for a release in the background, verifies the archive against SHA256SUMS and replaces itself. cedr update updates right away, cedr update --check only reports, and cedr update --auto off (or CEDR_NO_AUTO_UPDATE=1) turns the daily update off. It never updates in CI, and a cargo install tells you to update with cargo instead. See docs/update.md.

🚀 Try it with no account

None of these needs an account, an API key or a config file:

cedr monitor limits        # each plan window: used, resets, outlook
cedr monitor --since 7d    # a week of agent usage at API prices
cedr guard lint            # problems in this repo's agent setup
cedr sync init             # import this repo's agent files into .cedr/

Then run cedr init for guided setup (starter routes, cedr mcp for your agents, the hourly Monitor timer), and cedr status any time to see limits, spend, pending verdicts and repo drift.

🧭 Quick start with Route

1. Generate routes for the agents installed on your machine.

cedr route init
cedr route show review.code

Use starter routes to preview the file or choose the agents yourself. The Route page in the app can generate a file for an organization.

2. Let cedr see your Claude plan usage. Under T3 Code the t3 source already has it. Otherwise cedr reads what Claude Code caches on its own, and an interactive Claude Code status line keeps it fresher between refreshes: make cedr your status line in ~/.claude/settings.json, adding -- <your command> to keep an existing one.

{ "statusLine": { "type": "command", "command": "cedr route statusline" } }

3. Pick, then record how it went.

$ cedr route pick review.code
[route review.code -> codex/gpt-6.1-sol high | balanced:31%<claude=64% | codex s22% w31%; claude s64% w48% | rules 770517e | pick p-979e77351990]
  codex/gpt-6.1-sol role=review

$ cedr route verdict p-979e77351990 accepted

cedr route stats then shows which model does each kind of work best.

🧰 Commands

Route
Command What it does
cedr route init Generate a starter routes file for the agents on this machine
cedr route pick <route> Choose the agent, model and effort for a kind of work
cedr route pools Show how much room each plan has left, and which ones cedr will use
cedr route list List your routes and the models each one tries
cedr route verdict <pick> <verdict> Record whether the work was accepted, reworked, redone or rejected
cedr route stats Picks and verdicts per route and model
cedr route sync Share history and routes with your cedr.dev organization
Council

Run cedr council skill for the review procedure. Councils support spare members, named reviewers, revision settings and unlimited rounds with a stall stop.

Command What it does
cedr council run <route> Start the reviewers read-only, merge their reports and decide the gate
cedr council plan <route> Name the eligible reviewers to start and the quorum
cedr council merge <reports>... Merge their reports and decide the gate
Guard
Command What it does
cedr guard lint Find problems in a repo's agent setup
cedr guard lock Pin every skill and MCP server in .cedr/guard.lock
cedr guard verify Fail when the setup no longer matches the lock (offline)
cedr guard outdated Inspect newer npm versions and their surface changes without running them
cedr guard push Send pins and findings to your organization's Guard page; --updates includes npm updates
Sync
Command What it does
cedr sync init Import a repo's existing agent files into .cedr/
cedr sync Write each agent's native files; --dry-run prints the diffs instead
cedr sync check Fail when generated files drifted or an organization rule is broken (offline)
cedr sync pull --org <id> Vendor your organization rules into the repo
cedr sync push --org <id> Report drift to the app, without file contents or environment values

Commit the sources, generated files and .cedr/sync.lock. Sync refuses unmanaged Markdown and hand edits unless --force is supplied.

Monitor
Command What it does
cedr monitor Report tokens, cache use and API-equivalent cost; for example --since 7d --by model
cedr monitor limits Each plan window's use, reset, projection and outlook
cedr monitor sessions The costliest sessions
cedr monitor sources What Monitor found for each agent, and why one has no data
cedr monitor push --org <id> Send hourly counts and plan readings to your organization
cedr monitor schedule Install or remove a per-user timer that pushes on a schedule
cedr monitor reset Delete the local store; the next report rebuilds it from the logs still available

Configure collection and optional automatic pushes in ~/.config/cedr/monitor.toml. Missing usage stays unknown.

Bench
Command What it does
cedr bench run --harness H --model M Run a public suite edition in its pinned Docker image
cedr bench probe --harness H --model M Verify shell/file tools and compare clean-context input tokens
cedr bench history Saved runs, newest first
cedr bench show ID Validate and show a saved run
cedr bench export ID... --out DIR Export results and screenshots, with signal kinds only

Use --suite PATH for a local suite or --edition N for a published edition. Bench runs agents and graders only in containers; use Compare for local comparisons. Export writes results and screenshots; patches stay local. There is no spending stop by default: --stop-at-usd USD checks known spend before each task. An edition's goal records over_goal without truncating work. Suites and graders are executable code: run only suites you intend to execute. Results stay local until you export and publish them yourself. Bench contract.

Compare
Command What it does
cedr compare init Write a starter suite to .cedr/compare/
cedr compare plan Validate a suite and show what a run would do, starting nothing
cedr compare run Run the agents and tests within the budget; --fail-on lower fails CI when the candidate does worse
cedr compare push [id]... Send unsent results from the current repo to an organization; --all explicitly selects every repo, ids with --repo supply a missing name, and --dry-run prints bodies without sending
cedr compare history Saved runs, newest first
cedr compare show <id> One saved run's report, with its exit code
cedr compare budget [USD] Show or set the cap (default $2.00); --pull stores the one set in the app

A suite is code: its setup and test commands run with your permissions, so run ones you trust. Compare runs the vendors' unmodified CLIs with your own sign-in or keys, in a fresh clone for each trial. On Linux and macOS, Claude and Codex use clean temporary homes, excluding your user setup and account connectors while keeping the repo's own agent files. Windows isolates only the agent config directory; Codex trials record clean_home: false because home-level user skills remain reachable. The command harness is not isolated. With [sync] already configured, upgrading starts sending each saved run to that organization: the result, repo name, machine id and name, and GitHub PR number and run URL. Prompts, agent output and paths are never sent. Uploads reduce path-like model names to their final segment and cap bodies at 256 KiB; larger results stay saved locally. Use --no-push to skip automatic sending for that run; a later cedr compare push can still send it. Set auto = false to stop both Compare and Route automatic sending. --no-record keeps a run from being saved or sent. Bare pushes select only the current repo; --all explicitly selects every repo. See Compare push.

Everything else
Command What it does
cedr doctor Diagnose account setup, Route, MCP, Monitor, Sync, Guard and Compare; --format json for agents. Failures exit 1; warnings alone exit 0
cedr mcp Serve the Route, Council, Sync, Monitor, Compare, Bench and Doctor tools over MCP on stdio
cedr update Install the latest release now; --check only reports, --auto off stops the daily update
cedr telemetry status|off|on Show or change whether cedr sends anonymous usage data

Run cedr <command> --help for every option, and cedr completions bash|zsh|fish|powershell|elvish for a shell completion script. Every config field, output shape and exit code is specified in the design docs for Route, Council, Guard, Sync, Monitor, Compare, Bench and Doctor.

🛡️ Check every pull request

Guard discovers Claude, Codex, Cursor, Gemini, Copilot, opencode and Grok MCP configs, plus their standard skill folders.

The cedr action installs a released cedr (checked against the release's SHA256SUMS), runs cedr guard lint and cedr guard verify, and shows each finding as an annotation on the pull request. When .cedr/sync.toml exists it also fails on Sync drift:

- uses: actions/checkout@v5
- uses: Sheernox/[email protected]

Replace vX.Y.Z with the latest release. A pinned tag means your CI changes only when you choose.

On GitLab CI, run the CLI directly and publish its Code Quality report so findings appear in the merge request (install cedr first, as above; cedr guard lint --format sarif works the same way for SARIF viewers):

cedr:
  script:
    - cedr guard lint . --format gitlab > cedr-codequality.json
  artifacts:
    when: always
    reports:
      codequality: cedr-codequality.json

Inputs: version, path, strict, verify (auto, true or false), sync, sync-fix, outdated (default true, annotations never fail the job), comment (true keeps one sticky pull request comment with every result; it needs pull-requests: write and is skipped on forks) and push-org, which with a CEDR_API_KEY secret also sends each result and npm updates to the app. Repo-level settings, such as extra skill folders and checks to skip, go in .cedr/guard.toml. See the Guard design for every field.

To run Council, set council to a route id. Use council-base to override the pull request's base branch and council-timeout to change the 900-second per-reviewer limit. council-comment defaults to true and posts one pull request review with pull-requests: write. Council skips fork pull requests. See the Council workflow example to install the vendor CLIs and set their API keys.

🔌 Use it from your agent

cedr mcp offers the Route, Council, Sync, Monitor, Compare, Bench and Doctor tools to any agent that speaks MCP:

claude mcp add cedr -- cedr mcp
codex mcp add cedr -- cedr mcp

🔐 Your keys stay yours

  • Bench and Compare invoke your agents with your sign-in or provider keys; sign-in files are linked or mounted, never copied or printed. Container Bench limits agent egress to provider hosts. Plan usage comes from your agents' own status line and CLI, or from a feed you point it at.
  • Picks, verdicts and stats stay on your machine. cedr route sync sends them to cedr.dev only when you add a [sync] section and a cedr.dev API key.
  • cedr guard lock runs an MCP server only when you pass --introspect, and warns before it does.
  • cedr guard push sends names, versions, hashes and findings, never file contents, environment values or how a server is started.
  • cedr monitor stays local until you run push or enable automatic pushes, and then sends counts only: never prompts, responses, file paths or credentials. cedr monitor push --dry-run shows what a push would send, without sending it.
  • cedr sync push reports drift without sending file contents or environment values.
  • cedr sends anonymous usage data (command names, exit codes, timing, version, OS and which agents are installed) with a random install ID, after telling you on its first run. Never arguments, paths, repo names or code. cedr telemetry off, CEDR_TELEMETRY=0 or DO_NOT_TRACK=1 turn it off. Every field: docs/telemetry.md.

🤝 Contributing

Bug reports and ideas are welcome, and focused fixes can go straight to a pull request. Read CONTRIBUTING.md first, and report security issues privately as described in SECURITY.md.

📄 License

Apache License 2.0. See LICENSE and NOTICE for included third-party work.

Free and open source. Paid plans in the cedr.dev app add features such as routes shared across your machines and team (plans).
Made by Sheernox.

Explorar proyectos relacionados

Cargando…