facet

agent
Security Audit
Fail
Health Warn
  • License — License: MIT
  • Description — Repository has a description
  • Active repo — Last push 0 days ago
  • Low visibility — Only 5 GitHub stars
Code Fail
  • rm -rf — Recursive force deletion command in scripts/fetch-rtk.sh
  • rm -rf — Recursive force deletion command in scripts/updater-json.sh
  • exec() — Shell command execution in ui/app.js
Permissions Pass
  • Permissions — No dangerous permissions requested

No AI report is available for this listing yet.

SUMMARY

Desktop client for Claude Code, Codex, Gemini, Grok, Cursor and OpenCode in one window. Runs the official CLIs on your own plans, with lean defaults that spend fewer tokens than the terminal.

README.md

Facet

English · Português (Brasil)

Facet: home screen with activity, plan usage and the composer

A desktop client in Rust (Tauri) to chat with Claude, Codex, Gemini, Grok, Cursor and OpenCode in one window, as a replacement for the Claude desktop app. The look follows obsidian-prism.

Facet never calls the model APIs. It runs each vendor's official CLI as a child process and talks to it over ACP (Agent Client Protocol), or over claude's headless stream-json. Each agent uses its owner's own paid plan, the way each vendor's terms allow. The reasoning is in docs/PLANO.md (Portuguese).

Personal, open-source project (MIT, see LICENSE). Facet is not affiliated with Anthropic, OpenAI, Google, xAI, Anysphere or the OpenCode team. Everyone uses their own accounts and follows each service's terms.

Agents

Agent How Facet runs it Sign-in
Claude claude -p (stream-json) claude, then /login
Codex codex-acp codex login
Gemini agy acp (Antigravity CLI) agy acp --login
Grok grok agent stdio grok login
Cursor cursor-agent acp cursor-agent login
OpenCode opencode acp opencode auth login (optional: it has free models)

Settings shows which CLIs are installed and signed in, with the install command for the missing ones.

What it does

  • Chat with lean defaults: in Chat mode the agents run without your MCP servers, plugins and project files, so each turn costs a fraction of the tokens.
  • Code mode: the agent works in a folder you pick, optionally in its own git worktree, and asks before running tools (with a diff for edits). Side panel with files, changes and a terminal.
  • Lean code (on by default, Claude only): keeps the tools, your CLAUDE.md files and your subagents, and leaves out what weighs on every turn:
    • plugins and hooks are left out;
    • MCP servers come in only if you tick them in Settings → MCP servers in lean mode;
    • skills come in when you call them with /name in the message.
  • Compressed command output with rtk in Code mode, for Claude and Codex, without touching your config.
  • Several chats at once, up to 4 side by side (Ctrl+\).
  • History in SQLite, with search, rename, export to Markdown and rewind to a message.
  • Plan usage for Claude and Codex (5h and 7d windows), and OpenCode's weekly tokens and cost, read from what the CLIs report locally. Facet never reads your auth tokens.
  • Model and reasoning effort per agent. Claude's top level is Ultracode (--effort max).
  • English or Brazilian Portuguese UI (Settings → Interface → Language).
  • Auto-update from GitHub Releases on Windows and Linux (see docs/RELEASE.md).

A quick tour

A chat with Claude Model picker with real names
Chat that costs little. This whole exchange used 1.1K tokens: the title bar keeps the total, and each reply shows its own. Real model names. "Default · Opus 5.5", Fable 5.2, older versions: read from Claude Code's local catalog, no tokens spent.
Ultracode effort level Cursor theme
Ultracode. Claude's top reasoning level (--effort max), one drag away. One theme per agent. Switch to Cursor and the whole window, mascot included, follows.
Settings: agents, sign-in status and accounts
Settings. Which CLIs are installed and signed in, the install command for the missing ones, several accounts per agent, and the language.

How much it saves

Your plan has 5-hour and weekly limits, and every token sent to the model counts. Facet only sends what the chat needs. Measured with the official CLIs:

Code mode, the same Claude on the same project, with the same prompts. Amounts are API prices, which is how plan limits are counted:

Task Terminal (claude) Facet
Edit the project and test it, 2 turns (Sonnet) $0.20 $0.08 (−60%)
Refactor, add 4 commands with tests and review, 3 turns (Sonnet) $1.28 $0.74 (−42%)
The same, with "Subagents" off — $0.53, finished with 20 tests passing

Chat mode, fixed context sent on every turn (Opus): terminal ~61,500 tokens, Facet ~1,900.

Codex: Facet costs the same as codex in Code mode (+1.5% on a "hi") and less in Chat (16,842 against 21,682 tokens). With rtk, shell commands come back shorter.

Against Orca 1.4.282, the first measurement gave 178,505 tokens on turn 1, against 166,832 for the terminal and 118,221 for Facet (Haiku).

The method, the Gemini numbers and the reason for each difference are in docs/COMPARATIVO.md (Portuguese).

Run

On Linux, Tauri needs WebKitGTK and its libraries (webkit2gtk-4.1, libsoup-3.0, gtk+-3.0, librsvg). Check the current list in the Tauri 2 docs. The first build takes a few minutes.

cargo run

On Linux, scripts/install-desktop.sh registers the built binary with the desktop, so the dock and Alt+Tab show Facet's logo (GNOME on Wayland only takes the icon from a .desktop entry).

Before committing (CI runs the same):

cargo fmt && cargo clippy --all-targets -- -D warnings && cargo test

Licenses

Facet's code is MIT (see LICENSE). The exceptions:

  • The Inter font in ui/fonts/ is OFL 1.1 and ships inside the binary, so Inter-LICENSE.txt must ship with it. The same goes for Instrument Serif (OFL 1.1, greeting and headings) with InstrumentSerif-LICENSE.txt.
  • The Claude, Codex, Gemini and Grok logos in ui/index.html come from LobeHub Icons (MIT). The Cursor and OpenCode icons are Facet's own drawings. The trademarks belong to their companies and only identify each service.
  • rtk-oss 1.2.1 (Apache-2.0, the rtk-oss build, not the BUSL rtk) compresses shell output in Code mode with Claude (as a hook) and Codex (on its PATH, with a one-line instruction). scripts/fetch-rtk.ps1 or scripts/fetch-rtk.sh download it (SHA256 checked) into binaries/ (outside git), and it ships inside the app in rtk/ with LICENSE-rtk. Without it Facet uses an rtk installed on PATH if that one supports rtk hook claude, and otherwise runs normally and skips rtk.
  • Code highlighting uses highlight.js 11.9.0 (BSD-3-Clause), vendored in ui/vendor/highlight.js with highlight.LICENSE. The colors in ui/vendor/hljs-facet.css are Facet's.
  • The colors, glass, shadows, rim gradient and animation curves in ui/style.css come from obsidian-prism's style.css, which is GPL-3.0. Only the values were reused; the HTML, CSS rules and JS are Facet's. If this repo ever includes code from prism (JS, CSS, shaders, sprites), the whole repo has to become GPL-3.0.

Reviews (0)

No results found