Repository navigation
Declass 0.3.0
Frontier AI coding. Private context stays local.
Try Declass on a repository before setting anything up: declass exposure reads it on your machine and shows, file by file, what a coding agent could send to a cloud model and what Declass does with each file instead. It needs no model or API key and shows counts, never values.
Install
macOS and Linux, on ARM64 or x86-64:
curl -fsSL https://raw.githubusercontent.com/maximpri/declass/main/install.sh | bash
declass exposureThe one-line installer checks checksums. To also check the signature, add the release key to ~/.config/declass/allowed_signers first; the installer then requires a valid signature:
declass-release namespaces="declass-release" ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJ/yZBQ7s2UaTX2x3k8uIrKu8TIVW8FSpylPIDeIggzh
Key fingerprint: SHA256:sNU36mHF7ZWVl1UKd0nS1PnY07hDy/mRNC0U/aaMEqU. Installation guide
Assets: for each platform, declass-0.3.0-<target>.tar.gz with .SHA256SUMS and .SHA256SUMS.sig (signed), plus -unsigned archives with checksums for the default installer. Every archive includes the corresponding source and license notices. The macOS binaries and disk images are not Apple-signed or notarized.
See what an agent could send
declass exposurereads the repository on your machine with Declass's own detectors and
reports, file by file, how many secrets and personal-data values a coding agent could send to a
cloud model, and what Declass does with each file instead. It needs no model, API key or setup,
makes no network requests and creates no run state. It shows counts, never values.
--jsonand--allare available; exit 1 means findings were listed.
Details
Pin and verify extensions
declass extensions lockpins skills and plugins by the content of every file they hold;
declass extensions verifyreports any that changed, are not pinned, or are pinned but gone,
with exit codes and SARIF output for CI. A repository can commit.declass/extensions.lock
to pin its own skills (.agents/skills,.claude/skillsand the like), which other coding
agents read too. Entries use ToolHive's lock file field names and content digest.
Details- Every run and session checks skills and plugins against their pins before loading them
(extensions.integrity):warn(the default) says what changed,enforceleaves it out.
Your own skills and plugins are pinned the first time they load; installing a plugin pins it.
A loaded skill is sealed to the files that were checked. - MCP servers are pinned too: the command line, the program it resolves to, the package and
version a launcher such asnpxruns, install directories you name, and every tool definition.
A launcher without an exact version is named (enforcedoes not start it). A server that
rewrites its tools after approval is caught at the next start, or during the run: Declass
lists its tools again after a change notice and after its 1st, 2nd, 4th, 8th... call, and
underenforcewithholds the server for the rest of the run.declass extensions lock mcp:<server>,verify --live,diffandforgetmanage the pins. - Advisories about extensions, in the OSV format: shipped with Declass (the first names the
maliciouspostmark-mcpreleases), your feeds (extensions.advisory_urls, fetched by
declass extensions advisories update, never during a run;--onlinealso asks osv.dev), and a
project's.declass/advisories/. A malicious or revoked extension is left out in every mode. - Signed plugins: a publisher signs a package with
ssh-keygen -Y sign -n declass-plugin(over
declass plugins digest DIR);declass plugins installchecks it against the keys you list in
extension_signers,--require-signedrefuses unsigned packages, and the signer is pinned:
another signer later needs--allow-signer-change.
Files another tool runs later
- A write to a file that another tool runs or loads later is now noticed: an editor's tasks
(.vscode/tasks.json), a direnv.envrc, a dev container, another coding agent's settings,
MCP servers, skills or instructions, git and commit hooks, CI workflows, package scripts and
build scripts. Those that run without a further step are asked about in any approval mode
(oversight.autorun_triggers = "ask", the default; a run without a terminal refuses them);
the rest are recorded (oversight.build_triggers = "note"). Writes by commands are detected
too. A run lists them when it ends,declass triggerslists them for every run, and the
Changes panel marks them. - New audit events:
file_write(path and digests),command_run(digest, program, access,
network, exit code, duration) andtrigger_written.declass audit eventsexports a run's
security events as JSON lines, with paths and commands hashed unless--include-paths, and
detections/sigma/holds Sigma rules over them (they passsigma check).
Sandbox containment tests
- A probe (
declass-probe, test-only) tries to get out of the sandbox: reading denied files, run
state and Declass's sign-ins, writing outside the workspace and into.gitand.declass,
reaching the network, a local socket and the clipboard. It runs with no sandbox first (what
works on this machine), then sandboxed with network off and on, on macOS and in the Linux
matrix. A second test checks, side by side, what each kind of process may read: commands of
every kind, MCP servers and language servers.
Security
- MCP and language servers can no longer read your credentials (DECLASS-2026-040). Stdio MCP
servers, language servers and the security review's reference lookup were not denied the
credential stores in the home directory (~/.ssh, cloud, registry and git tokens, coding
agents' logins, shell histories) or Declass's own sign-ins, as commands are. The sandbox now
denies them to every process it starts, whatever the caller lists. - This can break a server that relied on one of them, such as a cluster tool reading
~/.kube,
a GitHub server reading~/.config/gh, ornpxwith a private registry token in~/.npmrc. Let
that server read what it needs in the owner config:
declass config set mcp.servers.<name>.read_home_secrets '[".kube"]' --confirm. Entries must be
on the sandbox's list (SECURITY.md);declass doctorwarns about each exception.
A native package cannot grant one.
Fixes
- With git 2.54 (Apple Git-157), a
gitcommand run throughrun_commandfailed with
fatal: error reading '.../.git'and no pointer to the git tools, because that git no longer
says "Operation not permitted" when the sandbox refuses.git. Declass now recognises it and
points atgit_status,git_logand the other git tools again. - Tokio 1.53.3 (RUSTSEC-2026-0386,
AsyncFd's safe constructors). The Linux sandbox's network
bridge now waits on its channel as a Tokio Unix socket instead of throughAsyncFd.
Release tooling: Apple signing and notarization
tools/release.sh --apple-identitysigns the macOS binary with a Developer ID Application
certificate (hardened runtime, secure timestamp) before the checksums and SSH signature, and
records the signer inBUILDINFO.txt. Other certificates are refused.tools/package-dmg.sh --apple-identity --notary-profilesigns the disk image, notarizes it,
staples the ticket and checks it with Gatekeeper before its checksum is made. It refuses a
payload whose binary is not signed by the same identity.- The disk-image installer reports the installed binary's Apple signature.
Details