ShadowCode
Health Uyari
- License — License: Apache-2.0
- Description — Repository has a description
- Active repo — Last push 0 days ago
- Low visibility — Only 5 GitHub stars
Code Basarisiz
- rm -rf — Recursive force deletion command in .github/workflows/release.yml
- process.env — Environment variable access in .github/workflows/release.yml
Permissions Gecti
- Permissions — No dangerous permissions requested
Bu listing icin henuz AI raporu yok.
Local-first AI coding workspace for macOS, Windows and Linux. Bring coding agents, cloud models or local GGUF models; edit files, run checks and review changes in one desktop app.
ShadowCode
One harness. All models.
Download ShadowCode for Windows, macOS and Linux · User guide
Project bots in the 2.8.0 candidate
Open a project and choose Bots in the top bar. Give one bot the job of reviewing changes and another the job of preparing release notes. Each keeps its own conversation, instructions, avatar and model choice. Both work in the same project on your computer. Use Find a bot to search the roster by name, job or section. Give a bot project knowledge files, teach it a repeatable procedure or schedule a routine that reports back in its own conversation.
Open Project room to share a short note with several bots before their next tasks. To hand work to another project bot, try “Send a message to Juniper.” Review the recipient and message on the approval card. After delivery, choose Open exchange to see what Juniper received.
On macOS, a bot using ShadowCode’s native tools can inspect an open app you connect, press a named control or fill a text field. Each operation requires approval. Choosing a local model keeps the model processing for that turn on your machine. Set up a project bot

Project room and responsive layouts · Current candidate qualification · Earlier Mac qualification
New in 2.7
The 2.7.1 patch improves streaming privacy, installation recovery, mobile approvals and check results. Patch details
ShadowCode 2.7 brings multi-forge PR compare support (GitHub, GitLab, Bitbucket, Azure DevOps, Forgejo / Codeberg / Gitea), phone-friendly standalone PWA touch & safe-area polish for approving tasks over Tailscale or LAN, and ready-to-use Homebrew Cask and WinGet manifests (docs/PACKAGE_MANAGERS.md). 2.7 release notes
| Platform | Quick install |
|---|---|
| macOS (Apple Silicon & Intel) | curl -fsSL https://raw.githubusercontent.com/ShadowfetchStudio/ShadowCode/main/scripts/install-macos.sh | bash (Homebrew tap instructions) |
| Windows (x64) | irm https://raw.githubusercontent.com/ShadowfetchStudio/ShadowCode/main/scripts/install-windows.ps1 | iex (WinGet manifests in packaging/winget/) |
Linux (amd64, arm64) |
Signed APT repo (shadowfetchstudio.github.io/ShadowCode/apt), signed AppImage, or Flatpak — see Install |
New in 2.6
Pin files in the editor and reopen them from Quick Open. Enter filename:42 to jump directly to a line, or use #symbol to search code. Open Markdown preview to read an unsaved draft with its source in the Files panel.
Filter the Changes list by path and see exactly how many lines each visible diff adds and removes. In Mission Control, search tasks by project, prompt or model and sort by activity. These controls are shared across every desktop build. 2.6 release notes

An open-source project by Shadowfetch
ShadowCode is a free, local-first AI coding agent for Windows, macOS and Linux.
Work with Codex, Claude Code, Cursor, Antigravity, Grok, OpenRouter, and supported local AI models from one desktop application.
Bring your existing subscriptions, use API keys, or run open-weight models on your own hardware.
Your computer. Your models. Your workflow.
Developed and maintained by Shadowfetch.
Licensed under Apache 2.0.
Official project: https://github.com/ShadowfetchStudio/ShadowCode
Publisher: https://shadowfetch.com
The code is open source; the Shadowfetch and ShadowCode product identity is covered by the trademark and branding policy.

The full workspace image above shows native Linux 2.3.3. The Quick Open image under New in 2.6 comes from the shared interface running the demo project.
- One picker. The composer lists Subscriptions (or Vendor CLIs when billing is unconfirmed), On this computer
and API keys in one menu. Each row shows whether it is ready, whether it
runs locally or in the cloud, and the usage figures the vendor reports. - Usage figures come from the vendor. If a vendor exposes no usage, the row
says Usage unavailable and gives the reason. ShadowCode never makes up a
figure. - Local models run on your hardware. A bundled, pinned llama.cpp supports
Metal/CPU on macOS and Vulkan/CPU in the Linux and Windows packages. A short list of free, Apache-2.0 models (Granite,
Gemma 4, gpt-oss, Qwen3.6) downloads on request, with a recommendation for
your memory and graphics card. Models already in an Ollama store can be
imported by reference without copying. - You approve actions. Choose Ask before actions or Allow project edits.
Approval cards show the actual diff or command, say in one sentence what it
does, how much it can affect and whether Rewind can undo it. After a task
you review just what it changed (riskiest files first, with Explain this
change), keep or undo each change, and rewind shell commands and
subscription edits too. - Nothing leaves by accident. Commits, pushes and pull requests are
checked for secrets first, new packages are looked up before they are
installed, API keys can be kept in the system keyring, and paid models
stop to ask at a spending limit you set. - Explicit execution boundaries. ShadowCode's native agent uses the
configured command sandbox. Vendor agents and your own terminal follow
their own execution rules; their tools do not inherit that sandbox. - A capable agent. Subagents, language-server error checking after each
edit, a repo map and code search over projects of up to 250,000 files, one
rulebook for every agent, roles (a model to plan, one to implement, one to
review), second opinions from another model, and support forCLAUDE.md,
Cursor rules and Claude Code skills. - Help when it goes wrong. A failed task says what went wrong in plain
words with the next step, a stuck task pauses and asks, heads-ups point
out skipped tests or changed CI, and Help (?) explains the words the app
uses. - Edit and verify. The editor highlights code and preserves drafts; attached
context shows bounded content and estimates. Run a check… starts an explicit
command without another model turn, keeping your draft. The 2.4 workspace
also exposes project checks before the first model turn. - Everything in one window. Run tasks side by side in worktrees, use your
own terminal, go from commit to pull request, preview the app you're
building, dictate with your voice, and follow along from your phone.
What's new in 2.4
Version 2.4 combines a simpler first run with an Apple Silicon-focused workspace
and local-runtime reliability work. The source, release packages and
platform-specific qualification are linked above.
- Start in the conversation. Open a project with ask-first approvals, then
connect a subscription, enter an API key, or choose a local download from the
empty conversation. No second blocking setup wizard. Starter cards prepare a
prompt without sending it or changing permissions. - Files, conversation and terminal together. Direct Files, Terminal and
Preview controls, a keyboard/pointer resizable side pane with a remembered
width, and an optional bottom terminal keep the working surfaces accessible.
Terminal commands preserve unsaved Files; Hide preserves the shell and restores
focus. A delayed terminal load cannot take focus from a newer editor/composer
choice. Toolbar pressed states reflect both Files and a visible dock. - Layout that follows text size. Split panes preserve at least 380 layout
pixels for the conversation; compact windows use overlays. Browser/CSS zoom
and native webview zoom keep their separate scaling paths. - Project and verification context. Folder, branch, project checks and the
latest task review stay within reach. Project-specific New task actions share
the activation queue, so a late creation response cannot replace a newer
conversation selection. A finished task is not presented as a passed check. - Mac keyboard and accessibility behavior. Command-Shift-M opens the model
picker; Control-backtick reaches Terminal. Command-M and Command-backtick stay
available to native window behavior. Option-arrow editing and IME composition
remain with text input; terminal cursor blinking follows Reduce Motion changes. - Review the content actually shown. Keep markers bind to file revisions,
expire after content changes, and reject stale task/list/detail responses.
Failed, busy or no-op undo operations recover an interrupted diff load. - Apple Silicon runtime reliability. Native arm64 packaging is preferred
even from Rosetta shells, and Metal shader resources are checked. Fresh
shared-memory headroom is checked before eligible loads and CPU retries;
cancellation interrupts readiness waits and preserves tracking when refused.
These are bounded correctness changes, not measured speed improvements.
See the implementation and qualification record
and local-model behavior and limits. The recorded 2.4
validation is summarized under Tests.
Install
From 2.6.1 onward, GitHub Actions signs build provenance for each desktop download. After downloading a 2.7.1 package, verify it with gh attestation verify <downloaded-file> --repo ShadowfetchStudio/ShadowCode --source-ref refs/tags/v2.7.1. The result identifies the repository and release workflow. The Linux publisher signatures and APT checks below also apply. macOS Gatekeeper and Windows Authenticode use their own publisher identities.
Linux releases target x86_64 Linux with glibc 2.39 or newer (Ubuntu 24.04 or later).
From 2.1.0, aarch64 (64-bit ARM) packages are built and qualified too:ShadowCode_VERSION_aarch64.AppImage and ShadowCode_VERSION_arm64.deb.
Each is signed for its own target and
published next to the x86_64 files, with its signature files namedRELEASE-AUTH-aarch64, RELEASE-AUTH-aarch64.sig,RELEASE-MANIFEST-aarch64.json and SHA256SUMS-aarch64; download those with
the package and use the same installer and verifier commands with the aarch64
file name. See
Distributing.
From 2.2.0 each release also carries Flatpak bundles for both architectures
(ShadowCode_VERSION_x86_64.flatpak, ShadowCode_VERSION_aarch64.flatpak,
checked with ShadowCode_VERSION_flatpak.sha256; see Flatpak)
and macOS disk images (see macOS).
Check GitHub releases
for published versions. The 2.7.1 x86_64 Linux packages and checksums are:
ShadowCode_2.7.1_amd64.AppImageShadowCode_2.7.1_amd64.debSHA256SUMS,RELEASE-MANIFEST.json,RELEASE-AUTHandRELEASE-AUTH.sig(download these beside the package; the installer checks
the publisher's signature before running anything)
macOS
From 2.2.0, releases also carry ShadowCode_VERSION_aarch64.dmg (Apple
silicon) and ShadowCode_VERSION_x64.dmg (Intel), for macOS 12 or later,
with their SHA-256 checksums in ShadowCode_VERSION_macos.sha256. The app
includes llama.cpp with Metal for local models.
Install or update with one command; it picks your Mac's image, checks it
against the release's checksums, puts ShadowCode in Applications and links
the shadowcode command into ~/.local/bin:
curl -fsSL https://raw.githubusercontent.com/ShadowfetchStudio/ShadowCode/main/scripts/install-macos.sh | bash
Quit ShadowCode before updating. If another process changes either installation
path during an update, the installer stops and attempts to restore the previous
entries. A collision during restoration leaves the affected files in the
recovery directory printed by the installer. Keep that directory until you
have verified the app and CLI. Installer recovery checks
Or download the .dmg from the release page and drag ShadowCode into
Applications. The app is distributed on GitHub only and is not notarized by
Apple, so the first time you open a copy downloaded in a browser macOS
refuses it: open System Settings › Privacy & Security and choose Open
Anyway next to ShadowCode (the installer above does not need this).
On macOS your settings and history are in ~/Library/Application Support/ShadowCode, shell commands run in the macOS sandbox (Seatbelt) and
API keys can be kept in the Keychain. To build the app yourself, runscripts/build-macos-app.sh on a Mac with Xcode, Rust 1.95, Node 22 and
cmake.
Windows
The Windows 2.7.1 release provides ShadowCode_2.7.1_x64-setup.exe for
64-bit Windows 10 (version 1809 or later) and 11, with its SHA-256 checksum inShadowCode_2.7.1_windows.sha256. It installs for your user only (no
administrator rights) and includes llama.cpp for local models (Vulkan/CPU) and the
shell used by the Windows sandbox (busybox-w32, GPL-2.0; its complete source
is published beside the installer asShadowCode_2.7.1_busybox-w32-source.tar.gz).
Install or update with one command in PowerShell; it checks the installer
against the release's checksums, installs it for the current user and adds
the shadowcode command to your PATH:
irm https://raw.githubusercontent.com/ShadowfetchStudio/ShadowCode/main/scripts/install-windows.ps1 | iex
Or download the installer from the release page and run it. It is
distributed on GitHub only and is not code-signed, so Windows SmartScreen
shows Windows protected your PC for a copy downloaded in a browser:
choose More info, then Run anyway (the command above does not need
this).
On Windows the app is in %LOCALAPPDATA%\ShadowCode, settings in%APPDATA%\ShadowCode\config and history in %LOCALAPPDATA%\ShadowCode.
Shell commands run in an AppContainer sandbox with busybox sh, so they
keep their POSIX syntax; the network allow-list is not available on
Windows. The Windows version is new: it is tested on GitHub's Windows
runners and one Windows 11 laptop, not yet on a wide range of PCs. See
the Windows port notes.
AppImage (recommended)
The installer requires signed release packages. Published 0.32.0
assets are checksum-only and cannot be installed by this new entry point; use
the instructions shipped with that released version for those existing assets.
The 0.33.0 release attempt failed before signing and publication. Its tag stays
unchanged. Version 0.33.1 was the first signed release. The 2.7.1 source trust policy authorizes 0.33.0 through 2.7.1, retaining the same key, epoch, targets and historical floor. The 2.4.0 tag retains its original ceiling. Public signature verification is recorded in release authentication; a policy range alone does not establish signing, publication or qualification. An independently trusted installer bundle whose policy ends below 2.7.1 will reject 2.7.1. Obtain and independently authenticate a reviewed bundle with the updated policy before installing; do not replace trust files with copies from the downloaded release.
For development, use Build from source.
Obtain an independently authenticated installer bundle as described below,
then put the signed release AppImage, SHA256SUMS, RELEASE-MANIFEST.json,RELEASE-AUTH and RELEASE-AUTH.sig in one folder. Run the installer from the
reviewed bundle, which supplies its own verifier, public keys and installation
policy. Never obtain those trusted keys from the candidate download itself.
See publisher authentication for the exact
bundle and bootstrap requirements.
From that independently authenticated installer bundle, run:
bash /path/to/trusted-bundle/scripts/install-appimage.sh /path/to/downloads/ShadowCode_2.7.1_amd64.AppImage
The installer takes the AppImage path (or --recover), resolves its own trusted
policy and keys, and verifies the adjacent release metadata. It installs only
the AppImage for the machine it runs on: _amd64.AppImage on x86_64 and_aarch64.AppImage on aarch64, whose signed target must match the machine. Verifier flags such
as --trust-dir are not installer options.
- verifies the publisher signature, release identity and exact private AppImage
snapshot before executing it. Checksum-only packages, checksum overrides and--unverifiedare refused; the flag is not a signature bypass. - records the highest authenticated release durably and refuses downgrades or
changed bytes under the same version. Restoring an older working app after
failure does not lower this record. - starts the new AppImage (
--version) before replacing anything. - extracts the bundled llama.cpp runtime (
usr/lib/shadowcode) and checks it:
no absolute or dangling symlinks,COMMIT,architectures.txtandNOTICES
present, andllama-server --versionreports the pinned commit. - swaps the runtime into
~/.local/lib/shadowcodewith a rename. The old runtime
is kept as~/.local/lib/shadowcode.previousuntil the install succeeds and is
put back if a later step fails. - installs the AppImage as
~/Applications/ShadowCode.AppImage, theshadow
andshadowcodelaunchers in~/.local/bin, and the desktop entry. - leaves settings, history and project data alone. It removes older ShadowCode
AppImages only after a successful install. - records interrupted replacement before activation and restores the prior
AppImage/runtime on retry when all recorded identities still match. Run./ShadowCode/scripts/install-appimage.sh --recoverto attempt that recovery
without the original download, using the same trusted installer bundle. Changed, ambiguous or activation-stage states
are preserved for manual recovery. - when a display is available, checks the first window: before activation it
snapshots the profile database with SQLite'sVACUUM INTO(close ShadowCode
first; the installer refuses while it runs), then starts the new version,
which must report that its database opened and its main window loaded
within 120 seconds. Otherwise it is stopped and the AppImage, runtime,
launchers and database snapshot are all restored;--recoverdoes the same
after an installer crash during the check.SHADOWCODE_FIRST_START_CHECK
(auto,require,skip) andSHADOWCODE_FIRST_START_TIMEOUT(seconds)
change this. Without a display the check is skipped and says so. An older
version never opens a database a newer version changed, so a rollback
cannot corrupt it.
After obtaining and verifying the intended package, run the AppImage without installing it:./ShadowCode_2.7.1_amd64.AppImage --appimage-extract-and-run. FUSE is not
required.
Debian package
The recommended route is the signed APT repository, which delivers updates
through apt upgrade:
sudo install -d -m 0755 /etc/apt/keyrings
curl -fsSLo /tmp/shadowcode-archive-keyring.gpg \
https://shadowfetchstudio.github.io/ShadowCode/apt/shadowcode-archive-keyring.gpg
gpg --show-keys --with-fingerprint /tmp/shadowcode-archive-keyring.gpg
# Compare the fingerprint with release/trust/APT-SIGNING-KEY in a reviewed
# copy of the repository at a release tag; stop if it differs.
sudo install -m 0644 /tmp/shadowcode-archive-keyring.gpg /etc/apt/keyrings/
sudo tee /etc/apt/sources.list.d/shadowcode.sources >/dev/null <<'EOF'
Types: deb
URIs: https://shadowfetchstudio.github.io/ShadowCode/apt
Suites: stable
Components: main
Architectures: amd64 arm64
Signed-By: /etc/apt/keyrings/shadowcode-archive-keyring.gpg
EOF
sudo apt update && sudo apt install shadow-code
The keyring is fetched once, over HTTPS, and must be checked against the
fingerprint in a reviewed copy of the repository: like the AppImage
installer's trust bundle, a key downloaded beside the packages does not
authenticate itself. Signed-By scopes the key to this one source; it is not
added to APT's global trusted keys. The repository key is a separate OpenPGP
key from the Ed25519 publisher key: CI indexes only a .deb that already
passed verify-native-release.sh against release/trust, then signsInRelease and Release.gpg.
Downgrade and rollback protection comes from APT. It verifies InRelease with
the keyring, checks every index and package against the SHA-256 sums in the
signed Release, and never replaces an installed version with a lower one
during apt upgrade; a downgrade needs an explicit shadow-code=VERSION and--allow-downgrades. Earlier versions stay in the pool so an administrator can
roll back deliberately. Release carries no Valid-Until by default, so a
mirror or network attacker could keep serving an old signed Release (a
freeze); that withholds updates but cannot install anything older than what is
installed. The repository is published by the release workflow only; nothing
in ShadowCode adds or contacts it by itself.
To install one release by hand instead, verify the Debian artifact using the independently trusted verifier bundle.
The staging directory must not already exist; install the verified snapshot:
version=2.7.1 # Set this to the release you downloaded.
bash /path/to/trusted-bundle/scripts/verify-native-release.sh \
--bundle-dir /path/to/downloads \
--trust-dir /path/to/trusted-bundle/release/trust \
--artifact ShadowCode_${version}_amd64.deb \
--stage-dir ./verified-deb-$version \
--expect-version "$version"
sudo apt install ./verified-deb-$version/ShadowCode_${version}_amd64.deb
A .deb installed by hand this way gets no updates and none of the APT
repository's rollback protection; add the repository above to get both.
Checksums alone do not authenticate a publisher.
The deb installs shadowcode and the same llama.cpp runtime in/usr/lib/shadowcode, with a manual page (man shadowcode) and bash, zsh and
fish completions. It depends on git, libgomp1, libssl3, libasound2,
WebKitGTK and libc6 (>= 2.39), and recommends libvulkan1, which is needed
for GPU inference, and bubblewrap, which the shell sandbox uses. Removing or
purging it leaves your settings and history in place.
For the AppImage, shadowcode completions bash|zsh|fish prints the
completion script.
Distributions and administrators: see Distributing ShadowCode
for verification, dependencies, default settings and the update-check switch.
Updates
At most once a day, and when you press Check now in Settings ›
About, ShadowCode asks GitHub for the latest release. The request carries
no version or identifier, and nothing is downloaded or installed for you.
When a newer version exists, Update available appears in the status bar;
Settings › About links the release notes and shows how to update this
installation (the authenticated installer for the AppImage, apt upgrade from the
ShadowCode APT repository or your package manager for the deb, the macOS
installer command for the Mac app). Turn it off there with Check for updates once a
day; Offline mode pauses it. Distributions can turn it off for everyone.
First run
The following describes the 2.4 flow. The older 2.3.3 screenshots in this
README retain their original version labels.
- Open a project folder. Trust is requested because project instructions,
hooks and plugins can influence or run work. Ask-first approvals remain the
default for a new installation. - Start from the empty conversation. Connect Codex, Claude Code, Cursor,
Antigravity or Grok through the vendor's sign-in flow; Antigravity also offers
Install & connect. Other missing vendor CLIs still need installation. - Alternatively, enter an OpenRouter, xAI or OpenAI API key inline, or choose
a free local model. Downloads start only after explicit confirmation. New
keys use the macOS Keychain or Linux desktop keyring when available. - Choose a ready model and write a task. Open the picker with
Command+Shift+Mon Mac orCtrl+Mon Windows/Linux, or use the composer
button. Settings › Accounts and Settings › Local models remain
available for managing connections, models and endpoints.
The picker

The picker groups vendor routes under Subscriptions or Vendor CLIs, alongside On this computer and API
keys (OpenRouter, clearly marked as billed per token). Every row is a
concrete target with a stable ID, for example cli:cursor:auto,local:gguf:<hash> or api:openrouter:qwen/qwen3-coder. Selecting it applies to the current
conversation, and ShadowCode remembers the choice per conversation. Rows
show:
- Local or Cloud.
- Availability: Ready, Sign in, Setup required or Unavailable. A
row that isn't ready stays visible and tells you why. - Vision if the model and the runtime both accept images.
- Chat only if a model has no tool support (a local chat template
without tool calls, or an OpenRouter model that doesn't listtools), so it
can answer questions but can't read or edit files. - Usage: see below.
Send stays disabled until a ready row is selected. If you switch to a
different provider during a conversation, ShadowCode asks before sending local
content to the cloud. See the user guide.
Accounts and usage

Settings › Accounts checks each vendor CLI with its own documented status
command or protocol handshake. ShadowCode never opens credential files.
Connect runs the vendor's official login command and relays the URL or
device code it prints. Disconnect runs the vendor's logout command, after a
confirmation, because that signs the CLI out everywhere on this computer. It
then forgets ShadowCode's cached status, stored usage and resumable session IDs
for that vendor.
Active sign-ins remain available when you leave Accounts and return. Each
provider keeps its own progress and Cancel control, so connecting another
provider does not hide the first. A connected account alone does not establish
subscription billing; the app shows unknown billing when the vendor supplies
no evidence.
| Vendor | Runtime ShadowCode starts | Connect runs | Models come from | Image input | Approvals reach ShadowCode | Usage shown |
|---|---|---|---|---|---|---|
| Codex | codex app-server (JSON-RPC) |
codex login |
app-server model/list |
Yes (localImage), per model |
Yes: command and file-change requests. Codex runs in its own sandbox (workspace-write, or read-only for Plan/Review) |
Rate-limit windows per quota pool (for example 5-hour and weekly), reset times, plan, and credits only when reported |
| Claude Code | claude -p --output-format stream-json --input-format stream-json --permission-prompts host |
claude auth login |
Claude Code's own model list (SDK initialize): Default, aliases and full model names |
Yes (image blocks) | Yes, through --permission-prompts host. Claude's own settings can pre-approve tools without asking |
5-hour and weekly plan windows and reset times, reported during tasks |
| Cursor | cursor-agent acp (Agent Client Protocol) |
cursor-agent login |
ACP session models, with exact IDs | When ACP initialize advertises image support |
Yes, through ACP permission requests | Usage unavailable: Cursor reports its plan tier, not the remaining allowance |
| Antigravity | Google's ACP agent server agy_acp_server.par (installed from Accounts) |
Google sign-in through the server's authenticate |
The model config option of the ACP session |
Yes (ACP image support) | Yes, through ACP permission requests | Usage unavailable: the server reports no plan usage |
| Grok | grok agent stdio (ACP) |
grok login |
ACP session models (falls back to grok models) |
No: ACP reports image: false |
Yes, through ACP. Plan/Review stops before sending the prompt unless the CLI confirms plan mode | Usage unavailable: Grok reports token counts per task only |
- API keys are never used. Vendor CLIs start with provider API-key
variables such asOPENAI_API_KEYandANTHROPIC_API_KEYremoved from their
environment, so a subscription turn is never quietly billed per token. If a
CLI itself is signed in with an API key, its rows say
API key login · billed per token and show no plan usage. - Usage is saved. The last usage snapshot is stored locally and shown as
Last checked … after a restart, until the next check. - Plan limits stop the task. If a vendor reports its plan limit, the task
stops with Plan limit reached and you pick another model. ShadowCode never
buys credits, redeems resets or turns on overages.
Setup details: subscriptions.
Antigravity runs through Google's official ACP agent server instead of theagy CLI, so it asks ShadowCode before running commands or editing files.
Install on its Accounts card downloads the server once (334 MB from
dl.google.com, checksum-verified); Connect signs in with Google.
Disconnect deletes ShadowCode's private Antigravity sign-in and leaves theagy CLI and the Antigravity app signed in. Details:
subscriptions.
Allowance and plan limits
The Allowance button in the status bar lists every way you can run a
model and how much of it is left: each subscription's reported usage windows
and reset times (or Usage not reported), OpenRouter credits left (the
smaller of your key's limit and your account balance), and the local models
that are ready (no quota). Only reported figures are shown.
When a subscription reports its plan limit, ShadowCode can keep going on a
local model: the same conversation continues on a model on this computer,
with the usual summary of earlier turns. This is the default; set When a
plan runs out to Ask me to choose each time. Details:
user guide.
Compare
Compare (in the composer's More menu) runs one task on 2 or 3
models, each in its own Git worktree that starts from your latest commit plus your
uncommitted work. Your checkout is not touched while they work. The
Comparisons view shows the lanes side by side: files changed, checks run,
time and usage, and a link to each lane's conversation. Keep one result to
apply its changes to your working tree (nothing is committed), and Wins in
this project counts which model you kept. Managed local models run one after
another; cloud lanes can run concurrently. If cleanup cannot finish, retained
copies remain visible for retry. Save unsaved app editor drafts before starting
a comparison. Details: compare.
Second opinions
Another model can review a change or an answer without touching your files:
it runs read-only, like Ask. In the Git tab, Review staged changes
(or Review before every commit) lists findings next to the diff they
point at, with Ask the agent to fix this and Dismiss; the commit waits
until you have seen them, never longer than you want. A task's Review
changes has Review with another model, and Ask another model under
an answer adds a labelled second opinion to the conversation that you can
continue on that model. ShadowCode suggests a different model from the one
that wrote the change, records usage and cost like any task, keeps offline
mode local, and asks before local work goes to a cloud reviewer. Details:
user guide.
Working in the window
Version 2.4 adds direct workspace controls and an optional docked terminal.
Workspace. Open Files, Terminal or Preview directly from the toolbar.
Resize the side pane by pointer or keyboard; compact layouts use an overlay.
Dock the terminal below the workspace to keep a file and conversation visible.
Hiding its view leaves the shell running.Composer. Type
@to attach project files or folders (or a
subagent), ↑ for earlier prompts, and switch between Code, Plan
and Ask. Model, mode, permission and web controls stay visible; More
holds reasoning effort, Compare and Worktree to keep the message area clear.
A non-default effort remains marked on the More button.
Your messages can be edited and resent, retried or copied.Editor. Open project files with syntax highlighting, find/replace,
undo/redo and recovery drafts. Saving checks whether the file changed on
disk before replacing it.Run a check. Use Run project check… in the workspace context bar,
even before the first model turn, or Run a check… on a completed task.
You choose the command. It uses the usual approvals, keeps your composer draft and records
fresh output without another model turn. A passing check confirms that
command only.Drawer. Your own terminals (a real shell, never shown to the model), a
Git tab (branches, a suggested commit message, push, pull requests
throughghorglabwith CI checks), a Preview of your dev server
where Pick element puts an element into your next message, and
Tools (goals, automations, issues, background processes, worktrees).Voice. See Voice input below.
Details: user guide, app preview.
What the agent can do
These apply to ShadowCode's own agent (local, OpenRouter and API models);
subscription CLIs bring their own agents.
- Subagents explore, plan or review in parallel, or make changes in an
isolated worktree that come back as a diff for your approval. Define your
own in.shadow/agents,.claude/agentsor.opencode/agent
(subagents). - Code intelligence. Language servers (rust-analyzer, TypeScript,
Pyright, gopls, clangd) report the errors an edit introduced; a ranked repo
map andsearch_codehelp the agent find its way; an optional small
embedding model adds search by meaning
(code intelligence). - Your project's instructions.
AGENTS.md,CLAUDE.md(also nested),
Cursor rules, and Claude Code commands and skills are read; MCP tools are
offered directly and your enabled MCP servers reach the subscription CLIs
too. - One rulebook for every agent. Your profile's rules, skills, commands
and agents (~/.config/shadowcode/profile/) reach ShadowCode's own agent
and every subscription CLI through each CLI's own per-run option, merged
with the project's files. Settings › Rules & skills switches items on
and off, shows what each agent reads, imports a profile from Git and adds
starter skills; a skill checker reports problems
(rules and skills). - Long conversations are summarized by the model rather than cut,
OpenRouter requests use prompt caching, and each task records its tokens
and cost.
Parallel tasks
Choose Worktree in the composer's More menu (or pressCtrl+Shift+Enter) to start a task in its own worktree of the project, so it
runs while another task works in your checkout. When it is done, Apply to project (checked with git apply --check first; conflicting files are listed and nothing is written), Keep
as branch or Discard. A worktree task can start from another branch,
and Tools › Worktrees › Setup for new worktrees copies files such as.env, runs setup and teardown commands and gives each task its own PORT.
The sidebar marks conversations that are running,
need your approval, failed or finished while you were elsewhere; desktop
notifications cover the same, and clicking one opens its conversation. The
chip in the status bar shows context use and cost, e.g.42% · 38k / 128k · $0.12. Details:
user guide.
Automations
Tools › Automations runs a saved prompt on a schedule (hourly, daily,
weekdays, weekly or cron) while ShadowCode or shadowcode serve is open,
each run in a fresh worktree with a time limit and a history of results and
cost. Tools › Issues turns a GitHub or GitLab issue into a task on its
own branch and offers a pull request that closes it. A
GitHub Action runs ShadowCode in CI
from an issue comment or a label. Details:
automations.
Remote access (phone)
Follow and steer tasks from your phone or another computer in a browser:
Settings › Remote access (or shadowcode serve --remote without a
window) serves the same interface, off by default and on 127.0.0.1 unless
you choose another address. Pair a device by scanning a QR code; each device
gets its own access key that you can unpair. Terminals stay off remotely
unless you allow them, and secrets are never shown. Use Tailscale
(tailscale serve for HTTPS): plain HTTP on a local network is not
encrypted. Optional phone notifications through ntfy
say when a task needs approval, finishes, fails or reaches a plan limit.
Details: docs/REMOTE.md.
Voice input
Hold the microphone button in the composer (or Ctrl+Shift+Space) and talk;
let go and the words are inserted at the cursor, never sent on their own.
Transcription runs on this computer with whisper.cpp after you install a
model in Settings › Voice (74 MB or 141 MB, downloaded only when you click
Install and checked against a pinned SHA-256), so the audio never leaves the
machine. With an OpenRouter key you can instead choose OpenRouter, about
$0.001 per minute of speech. Details: voice input.
API keys (OpenRouter)
No subscription? Create a key at openrouter.ai/keys
and paste it into Settings › Accounts › OpenRouter. ShadowCode checks it
with OpenRouter, stores it only in your profile (or, if you choose, in the
system keyring), and never shows it again. The
picker's API keys group then lists OpenRouter's text models, with price
per million tokens, Vision when the model accepts images and Chat only
when it has no tool support. Search the picker by name or slug to find one.
These models run on ShadowCode's own agent loop, the same one local models
use, so your permission mode, approvals, checkpoints, the Web toggle,
image attachments (Vision rows) and review all apply. Every token is billed to your OpenRouter account; the Accounts card
shows credits used, your key's limit and the account balance, and a refused
request shows OpenRouter's own explanation (for example that the account is
out of credits). Each job and conversation records its
tokens and cost (/cost), Claude and Gemini requests use prompt caching, and
rate limits are retried automatically. Spending limits (by default $1 a task
and $10 a day) pause a task and ask before it spends more, and the composer
shows a price before you send. Details: OpenRouter.
Local models

Settings › Local models shows the runtime, the detected hardware, the
loaded model, your models, free models to download, and GGUF files you add
(a single file or a folder).
Free models to download. A short list of Apache-2.0 GGUF models, from
Granite 4.2 3B (2.1 GB) to Qwen3.6 35B-A3B (19 GB), each pinned to one
Hugging Face commit and SHA-256. One is recommended for this computer's
memory and graphics card. A download starts only when you choose
Download, checks the free disk space first, can be paused, resumed
(even after a restart) or cancelled, and is verified before the model
appears. Offline mode refuses downloads. Delete removes a downloaded
file. See free models.Your own files. Removing a file you added never deletes it.
Model metadata comes from the file. ShadowCode reads the GGUF header for
architecture, trained context, chat template and tensors, never the file name.
A model whose architecture the bundled llama.cpp doesn't support is listed as
incompatible, with the reason.Tool-template compatibility. The exact supported Hermes 2 Pro Llama-3
metadata and plain-chat template select a bundled upstream tool template.
ShadowCode confirms the runtime's reported template identity before enabling
tools and shows the applied template provenance. It does not rewrite model
files or Ollama settings. Other models keep their embedded template; a
compatibility profile alone does not establish coding quality.Import from Ollama. Models in an existing Ollama store can be imported
by reference: ShadowCode registers the store's blob paths, including any
vision projector. It never copies the blobs, never writes to the store and
doesn't need the Ollama daemon. The store is found throughOLLAMA_MODELS,
the Ollama systemd user unit, or~/.ollama/models.Metal, Vulkan or CPU. macOS bundles llama.cpp with Metal and compiled
shaders. Linux and Windows packages include a loadable Vulkan module and CPU backends. GPU placement is requested according to hardware
and memory estimates; detected support or requested placement is not proof
of observed layer offload. A failed GPU start may retry once on CPU when
admission permits, with the fallback identified separately. Only one model
is loaded at a time; a task's active model cannot be swapped or unloaded.Apple shared memory in 2.4. Eligible loads on positively identified Apple
Metal hardware recheck current estimated headroom with a 2 GiB reserve,
including CPU retries after the previous child exits. Unknown/inconsistent
telemetry is not a hard refusal. The audited pinned runtime's extra host
prompt cache is disabled; the active KV cache remains. These estimates do
not reserve memory or guarantee allocation. Canceling preparation interrupts
readiness waits; if cancellation is refused, the UI continues tracking the
original load until it settles.Memory estimate. Context starts at the lower of the trained context and
16,384 tokens (local_engine.context_size). It is halved until the estimate
fits in VRAM (1 GiB kept free) or RAM (2 GiB kept free), but not below 4,096
tokens. The number shown is the context the server actually runs with.Vision. Only a model with a paired vision projector (mmproj) is marked
Vision. A projector is paired by file name (<model>.mmproj.gguf,<model>-mmproj.gguf,mmproj-<model>.gguf) or when a folder holds exactly
one model and one projector, and it must match the model's embedding width.
After loading, the flag comes from what the server reports.
Vision models also get aview_imagetool.Chat only. If the chat template has no tool calling, no tools are sent to
the model.
The runtime runs llama-server on 127.0.0.1 with a new random key for each
launch, passed through its environment. The server's web UI is disabled.
Details: local models.
Web and network
ShadowCode's own agent loop has web_fetch and web_search. They are offered
only for a task started with web turned on: in the window, the Web chip in
the composer, which appears for local rows. Vendor CLIs use their own web
tools. Web access refuses loopback, private, link-local and metadata
addresses, CGNAT, multicast and non-standard ports. It re-checks every
redirect and caps time and size.web_search uses DuckDuckGo's HTML page. DuckDuckGo often answers automated
requests with a bot check; ShadowCode then asks
Marginalia Search's public API, a keyless API
for programs (an independent index, so results lean toward smaller sites). If
both fail, the tool says no results were retrieved and never makes any up. If
you run your own SearXNG instance, setnetwork.searxng_url (for example http://localhost:8888, with json
enabled under search.formats) and web_search asks it first.web_fetch works independently of search.
Settings › Permissions & network has three network modes:
| Mode | Effect |
|---|---|
| Online | Everything allowed by other settings |
| Web tools off | ShadowCode's own agent loop gets no web tools. Subscriptions still work |
| Offline | Only models on this computer run. Cloud rows are unavailable, and no vendor process is started for status, models or usage |
Permissions
| Mode | ShadowCode's own tools (local and OpenRouter models) |
|---|---|
| Ask before actions | File edits and shell commands wait for your approval |
| Allow project edits | File edits inside the project run without asking. Shell commands, deletes and Git history changes still ask |
These rules apply to ShadowCode's own tools. Privileged commands (sudo, su,pkexec, doas, run0) are blocked unless you allow them, and then they
still ask. Destructive Git commands ask. Edits outside the project are refused.
Plan and Review tasks are read-only.
Approval cards show the diff of a file change or the full command and its
folder. Allow for this task covers the same kind of action (all file
edits, or one program and subcommand such as cargo test) until the task
ends; chained, privileged and destructive commands always ask. Deny with
note tells the agent why. After a task, Review changes shows only that
task's files, with per-change Keep and Undo; Rewind asks first and can be
undone.
Vendor CLIs enforce their own sandbox. ShadowCode shows the approval requests
they send and denies them automatically in read-only tasks. Each vendor
decides which of its actions ask; the table above shows how its requests reach
ShadowCode.
ShadowCode's shell commands run in a bubblewrap sandbox when it is
available: an empty home folder with read-only toolchains, a writable
project, and the network off, on or limited to an allow-list of hosts. Turn
on Require sandbox to refuse commands when bubblewrap is missing;
otherwise Landlock applies with a warning. This is not a complete
operating-system sandbox, and background processes and hooks are not
sandboxed. See SECURITY.md.
Use it from Zed or JetBrains
shadowcode acp runs ShadowCode as an Agent Client
Protocol agent, so it appears in Zed's and
JetBrains' agent panels with the same models, approvals, plans and history as
the window. shadowcode acp --print-config zed prints the entry to paste into
Zed's settings.json:
{
"agent_servers": {
"ShadowCode": { "type": "custom", "command": "/usr/bin/shadowcode", "args": ["acp"], "env": {} }
}
}
The editor's project must be trusted in ShadowCode (or start the agent with--trust). It works with the desktop open or closed. See
ACP_SERVER.md for JetBrains and other clients.
Data locations
| What | Where |
|---|---|
| Settings | ~/.config/shadow-agent/config.yaml (example) |
Secrets for HTTP providers, including the OpenRouter key (OPENROUTER_API_KEY) |
~/.config/shadow-agent/secrets.env (mode 600) |
| Remote access: switches, paired devices (token digests only), phone notifications | ~/.config/shadow-agent/remote.json (mode 600) |
| Conversations, jobs, events, goals, usage snapshots | ~/.local/state/shadow-agent/shadow-agent.db (SQLite, database format 27; copied to shadow-agent.pre-native-<id>.sqlite before an upgrade changes it) |
Backups (Settings › Your data, shadowcode backup) |
~/.local/share/shadow-agent/backups |
| OpenRouter model list (cache) | ~/.local/state/shadow-agent/openrouter-models.json |
| The update check's last answer | ~/.local/state/shadow-agent/update-check.json |
| Webview storage | ~/.local/share/shadow-agent/webview |
| llama.cpp runtime (AppImage install) | ~/.local/lib/shadowcode |
| Free local models (downloaded from Settings › Local models or the first run) | ~/.local/share/shadow-agent/local-models |
| Voice models (installed from Settings › Voice) | ~/.local/share/shadow-agent/voice/models |
| Code intelligence: language servers, embedding models, search vectors (installed from Settings › Code intelligence) | ~/.local/share/shadow-agent/code-intel |
| Antigravity agent server (installed from Accounts) | ~/.local/share/shadowcode/antigravity-acp/1.2.1 |
| Antigravity sign-in (ShadowCode's private profile) | ~/.local/share/shadowcode/antigravity-acp/profile |
| Project notes, skills, attachments | <project>/.shadow/ |
| Your rules, skills, commands and agents for every project, Git imports | ~/.config/shadowcode/profile/ |
| Rules & skills switches, imports and export links | ~/.config/shadow-agent/rulebook.json (mode 600) |
On macOS, settings, data and state are the config, data and state
folders in ~/Library/Application Support/ShadowCode, the cache is~/Library/Caches/ShadowCode, and a llama.cpp runtime you build yourself goes
to ~/Library/Application Support/ShadowCode/llama.cpp (the app carries its
own).
The directories are named shadow-agent, and keep that name in every 1.x
version so every upgrade finds your data. --profile DIR keeps a separate
set, for example for development. The Antigravity directories followXDG_DATA_HOME and are shared by all profiles. Backing up, restoring,
repairing and resetting are in Your data.
Build from source
Requirements: Rust 1.95, Node.js 22.12 or newer, and on Ubuntu 24.04:
sudo apt-get install build-essential pkg-config cmake clang libgtk-3-dev \
libwebkit2gtk-4.1-dev librsvg2-dev libayatana-appindicator3-dev \
libasound2-dev patchelf
cmake, a C++ compiler and libclang build the whisper.cpp insidewhisper-rs-sys (voice input); libasound2-dev is for microphone capture..cargo/config.toml builds it for x86-64 with AVX2 rather than for the
build machine's CPU.
npm --prefix ui ci
npm --prefix ui run build
cargo build -p shadowcode-desktop --locked
./target/debug/shadowcode --profile /tmp/shadowcode-dev --workspace /path/to/project
Local models also need the managed llama.cpp runtime.scripts/build-llama.cpp.sh builds the commit
pinned in tools/llama.cpp.pin without root. It writespackaging/llama.cpp/bin and, unless you pass --no-user-install, installs to~/.local/lib/shadowcode.
- Toolchain:
git, a C/C++ compiler andcmake. For cmake, the script
usesSHADOWCODE_CMAKE, then.venv/bin/cmakein this checkout, thencmakeonPATH.ninjais used if present. - Vulkan module: needs the
libvulkan-devheaders and aglslcshader
compiler.tools/glslc-flatpak.shlooks forSHADOWCODE_GLSLC, thenglslconPATH(Ubuntu packageglslc), then the compiler inside a
user-installedorg.freedesktop.Sdkflatpak runtime. SPIRV-Headers is
fetched automatically at the pinned commit. If glslc or the Vulkan headers
are missing, the script builds a CPU-only runtime and prints a warning.--cpu-onlyorSHADOWCODE_LLAMA_VULKAN=0asks for that explicitly. - Licenses: the license texts of everything compiled in are copied into the
runtime'sNOTICES/.--notices-onlyrefreshes them without recompiling.
Release packaging is described in docs/RELEASING.md.
Tests
2.4.1 source validation
The source checked into a3b09eca6333c2befda3504850f357f09cc25542 has 928 passing UI unit tests, 170 passing full Chromium tests and eight passing focused WebKit tests, with no failures or skips in those runs. See the source verification record. These are source/fixture results; they do not qualify a downloaded public installer, a physical keyboard, native accessibility, endurance or real-model inference. Earlier terminal WebKit matrices remain separate dated evidence.
Historical validation for the frozen 2.4.0 source baseline
(the 2.4.1 patch has separate results in its release notes and qualification record):
| Check | Result |
|---|---|
| UI unit tests | 906 passed in 157 files |
| Full Chromium browser suite | 154 passed |
| Focused WebKit browser suite | 35 passed |
| Native core unit tests | 677 passed; 8 ignored |
| TypeScript, Rust formatting, Clippy and production test-fixture isolation | Passed |
The browser suite uses deterministic service fixtures. A bounded real-model
check on Apple Silicon also exercised load, a short response, reuse, unload,
reload and failure cleanup with Qwen3-0.6B-Q8_0. It does not establish coding
quality, sustained performance, large-model behavior or confirmed Metal layer
offload. Native VoiceOver and non-US physical keyboard qualification remain
outside these results. The development app build is not a notarized distribution
installer. See qualification details.
To run the checks from source:
cargo +1.95.0 fmt --all --check
cargo +1.95.0 clippy --workspace --all-targets --locked -- -D warnings
cargo +1.95.0 build -p shadowcode-desktop --locked # process tests launch this binary
cargo +1.95.0 test --workspace --locked
npm --prefix ui run typecheck
npm --prefix ui test
(cd ui && npx playwright install chromium && npm run test:e2e)
node --test scripts/test-llama-runtime.mjs
bash scripts/test-install-appimage.sh
node scripts/check-secrets.mjs
The Rust tests use fake vendor CLIs and a fake llama-server, so they need no
account or GPU. The Playwright suite runs against vite preview of a test
build with a fake engine. ui/e2e/check-bundle.mjs checks that the fake engine is
not in the production bundle. scripts/check-secrets.mjs fails if a tracked
file looks like it holds a real API key or private key, or if a .env orsecrets.env file is tracked. See CONTRIBUTING.md.
Live checks use real accounts and cost a little plan allowance or credit, so
they are not part of the suite. live_vendor_turn runs one short real turn
through the same service the window uses, in a throwaway profile and project:
cargo run -p shadowcode-core --example live_vendor_turn -- <picker id> [--second|--command|--file|--mcp|--web|--image|--switch <id>|--model-switch <id>] [--effort <level>] [--binary <path>]
--second sends a follow-up to check resume. --command asks for one
harmless shell command and approves it through the approval API. --web
gives the task web tools (ShadowCode's own loop only). --image attaches a
small red PNG. --switch <id> continues the conversation on another row and
checks that consent is asked before the handoff. --model-switch <id> sends
the follow-up on another model of the same vendor (its own session is
resumed). --file asks for one file edit and --mcp enables a small stdio
MCP server for the project and asks the vendor to call it, both approved
through the approval API. --effort <level> sends the composer's reasoning
effort, --prompt <text> replaces the first prompt, and --binary <path>
runs another copy of the vendor CLI (a newer release in a scratch folder).--openrouter-cache <file> starts from a saved OpenRouter model list. Vendor CLIs keep their own
sign-in; OpenRouter rows read the key from OPENROUTER_API_KEY, because the
throwaway profile has no secrets.env.
live_roles_turn runs one small Plan → Implement → Review task (fix a
one-line bug) with a model per role, answering approvals yes and printing
each role's model, cost, verdict and the approvals' labels. --ollama <model>
makes the conversation's model an Ollama model on this computer, so consent
is asked before a cloud role runs; a role left out uses the conversation's
model and skip skips plan or review:
cargo run -p shadowcode-core --example live_roles_turn -- --plan cli:grok --implement "" --review "" --ollama qwen3:8b-q8_0 [--conversation <picker id>]
The free-model list has two network checks and one window check, all opt-in
(they download from Hugging Face). The first re-checks every pin; the second
downloads one model with a pause and a resume; the third drives the real
window through a first run with no account (vendor CLIs hidden, empty HOME),
downloads the smallest model (about 2 GB, into a scratch profile), runs one
short task on it and deletes it:
cargo test -p shadowcode-core --lib catalog_matches_hugging_face -- --ignored
SHADOWCODE_LIVE_DOWNLOAD_DIR=/tmp/models cargo test -p shadowcode-core --lib live_download_pause_resume_verify -- --ignored
xvfb-run -a dbus-run-session -- node scripts/test-native-first-run.mjs
More
- User guide · Architecture ·
Security · Subscriptions ·
Local models · Voice input - The drawer has your own terminals, a Git tab (branch, commit with a
suggested message, push, pull requests with CI status), a Preview of
your dev server where you can pick an element (or a console error) to put
in your next message (app preview), and Tools (goals,
scheduled automations, start a task from a GitHub/GitLab issue, background
processes, worktrees): automations and issues. - Run ShadowCode in GitHub Actions (
/shadowcode <task>in an issue comment,
or a label for a pull request review) with the
GitHub Action. Integrations (skills, MCP, plugins, hooks,
Guardian, vendor tools, health) are under Settings › Advanced. The same executable
also has a CLI (shadowcode run,shadowcode tui,shadowcode mcp serve,shadowcode acp): native CLI, terminal
UI, MCP, editors over
ACP. - Package notices: licenses/native. Packaging
for distributions: Distributing ShadowCode.
Support the project
If ShadowCode is useful to you, you can buy me a coffee.
License
ShadowCode is licensed under the Apache License 2.0 · Copyright
2026 Shadowfetch. If you share a copy or a modified version, include the
NOTICE file, which credits Shadowfetch as ShadowCode's original
creator, and mark the files you changed. The license doesn't grant use of
the ShadowCode name for other products. Releases up to 0.31.0 were
published under the MIT License.
Yorumlar (0)
Yorum birakmak icin giris yap.
Yorum birakSonuc bulunamadi