claude code, but much cheaper, powered by deepseek
Repo oratis/deepcode, read from GitHub 3 h ago. oratis has not joined Take My Repo.
npm install -g @oratis/deepcode@0.5.3. Or download and install the attached oratis-deepcode-0.5.3.tgz; add --omit=optional to skip the experimental Claude SDK.deepcode-0.5.3.vsix with Extensions: Install from VSIX….latest.json, DeepCode.app.tar.gz and its detached signature are attached. The feed pins the update URL to this version.PR #299 completed Mac/CLI packaging; PR #300 adds the approved key migration and updater safety fixes. Independent review and artifact verification covered signature rejection with the old key or tampered inputs, a clean single-app archive, matching manifest metadata, and byte-for-byte equality between the DMG app and updater app.
Final Apple app submission: 603a94f2-3183-4bc1-a60e-9a65dd76f615 — Accepted.
Final Apple DMG submission: 3cf23cab-416c-4d4a-9eb1-3123e309dff1 — Accepted.
The app, DMG and extracted updater app pass signature, notarization-ticket and Gatekeeper checks. Runtime tests use isolated homes and loopback model fixtures to verify session recovery, explicit Write approvals, cancellation, late-approval rejection and provider-stream shutdown. The desktop includes the native engine; the experimental Claude SDK is not bundled with the DMG.
Validation evidence · Upgrade and rollback instructions
Release CI passed. All six release artifacts were downloaded and matched their GitHub SHA-256 digests. The public latest-update endpoint serves the verified v0.5.3 manifest. The npm registry serves @oratis/deepcode@0.5.3 with the latest tag; its downloaded tarball is byte-for-byte identical to the tested GitHub CLI asset.
Published verification reports: artifact hashes, updater signature and runtime, npm registry readback.
DeepCode-0.5.2-arm64.dmg. Developer ID signed, Apple notarized and stapled. Drag DeepCode into Applications; Node is included.deepcode-0.5.2.vsix, installed with Extensions: Install from VSIX….oratis-deepcode-0.5.2.tgz, then run npm install -g --omit=optional ./oratis-deepcode-0.5.2.tgz.The desktop package includes the native engine. The experimental Claude SDK is not bundled with the DMG; it remains an optional dependency of the CLI.
PR #299 received independent reviews and passed all cross-platform CI checks. Both the app and DMG passed Apple notarization, ticket validation and Gatekeeper. Tests against the mounted DMG cover session lifecycle, native model/tool execution with a loopback fixture, explicit Write approval, cancellation, late-approval rejection, provider-stream shutdown and restart recovery. No real vendor API was used. The signed desktop GUI also opened successfully.
Apple app submission: 98d57770-21d2-46c4-94ee-d045be8f922f — Accepted.
Apple DMG submission: 68b0845c-bb66-4c99-809e-654f31941c61 — Accepted.
Validation record · Implementation progress
No macOS build in this release. Apple signing credentials were not configured when it was cut; see
docs/RELEASING.md.
Not published to npm.
NPM_TOKENwas not configured when this release was cut; install from source or the VSIX.
interactive,headless, app-server, desktop and editor profiles. Profile patches cansessions-v2 journal; rehearse rollback on a copy or an isolatedNo macOS build in this release. Apple signing credentials were not configured when it was cut; see
docs/RELEASING.md.
Not published to npm.
NPM_TOKENwas not configured when this release was cut; install from source or the VSIX.
engine: "native" and start a new session;The following changes accumulated on main since v0.3.0 are also included.
deepcode mcp serve now applies your permission settings. It executedPreToolUse hooks — the same shape as therunAgent bypass fixed in #181, in a different entry point. Every call nowpermissions.defaultMode is clamped to default exactly as a scheduled job'spermissions.allow says it can and nothing else,--mode. --sandbox also applies now; it did not before.Grep and Glob results in the desktop are now clickable locations. Both
tools attach the places they found as structured data — resolved from their
own parsed rows, where a path containing : is still unambiguous — and the
desktop renders a search's card as a list of openable paths (with line and
matched text in content mode) instead of a grey text blob. Clicking one opens
it in the file panel. This is the locations render intent the DSH round
specified and deferred: re-deriving entries by parsing the formatted result
text was the rejected design, and attaching them at the source is what makes
the entries exact. A session restored from its log has only the text the
model saw, so replayed cards degrade to today's plain-text body.
/plan enters plan mode directly (/plan off leaves it) — the same
switch /mode plan already threw, one word shorter and matching what Claude
Code users type. A trailing prompt (/plan do X) is refused with a pointer
rather than silently dropped, because half-obeying a command teaches the
wrong lesson about what it did.
Persistent shells now last a whole CLI session, and /shells shows them.
The registry landed in #273 owned by a single runAgent call, which meant a
shell opened in one turn was gone by the next — a slower Bash with extra
steps. The REPL now owns one registry for the session and threads it through
every turn, so cd, export, and an activated virtualenv survive from one
message to the next.
/shells lists what is open and where each started; /shells close <id>
closes one and whatever is still running in it. Worth having because the
change is what makes these processes outlive a turn: without a view of them,
the user has no way to see or stop something the agent left running.
Everything closes when the session ends, including when it ends by throwing —
these are real processes in their own process group, so they do not die with
the CLI. Background tasks and sub-agents deliberately do not share the
session's shells: two agents interleaving commands in one shell would each be
wrong about its state.
A shell that survives between tool calls (#273) — ShellOpen / ShellRun /
ShellClose / ShellList. Every Bash call is a fresh process, so cd,
export, and source venv/bin/activate were forgotten the moment they
returned; the workaround was re-pasting the whole prefix into every command,
which still could not hold a running dev server.
Not a PTY. That would mean node-pty, a native dependency needing a build for
every platform the desktop ships to, bought for full-screen programs that are a
small share of the value. This runs over pipes with a per-session random
sentinel, and says plainly in its description that vim and top do not work.
Commands run with stdin closed so cat cannot swallow the sentinel, and stderr
is merged at the shell so the streams interleave in true order.
Interrupting an overrunning command signals the shell's children, not its
process group — signalling the group kills a non-interactive bash, which would
lose the session every time. Lifetime is guaranteed rather than remembered: a
run that opens its own registry closes every shell before returning, including
when the loop throws. Idle shells close themselves and there is a cap on how
many can be open.
The agent can search its own past sessions (#272) — SessionSearch finds
text across previous sessions and SessionRead follows a hit into the
surrounding conversation. Every session was already on disk as JSONL and
nothing could read it back, so "how did we fix this last month" was
unanswerable while the answer sat in a file the agent wrote.
Scoped to the current workspace by default, matched on a resolved path boundary
so /a/project cannot capture /a/project-two. Neither tool takes a scope
argument: widening the search is a privacy decision, and a parameter would let
the model consent to reading another project's history on the user's behalf.
SessionRead enforces the same rule, so knowing an id is not authorisation. No
index — a scan is fast at this volume, and an index is a second copy of the
truth that can disagree with it.
Tools declare how they should be drawn (#271). Every tool call rendered as
the same grey blob: an Edit showed its result sentence but never the change,
a Bash showed output with no sign of which command produced it. A tool now
declares a render intent beside its schema — Bash is terminal,
Edit/Write/NotebookEdit are diff — and the desktop draws real coloured
+/- lines and a shell transcript. The mapping lives in core so the CLI and
the extension read one answer instead of each hardcoding tool names.
Presentation is a pure function of the call's arguments, never the result or
the filesystem, so a replayed session renders as it did live. That is why
Write renders as wholly added: its arguments genuinely do not say what the
file held before.
A backstop deadline on every tool call (#270). Only Bash bounded itself;
a Grep against a stalled mount could hang the turn forever with nothing on
screen but a blinking cursor. Deliberately generous (10 min default) so each
tool's own limit fires first and produces the more specific error — this only
covers the case where the inner limit never fires. A caller-requested timeout
always wins when longer. On a side-effecting tool the message says the effect is
unknown rather than implying nothing happened.
The loop notices when the model is repeating itself (#269). The most
expensive agent failure is the loop that neither errors nor terminates: same
tool, same arguments, same answer, quietly spending the budget. At 3, 5, and 8
consecutive identical calls an escalating reminder is injected. It has no veto,
which is what makes false positives affordable. Excluded tools are transparent
to the chain rather than resets, so a bookkeeping call interleaved into a loop
cannot launder it, and calls the gate refused still count.
thread/delete — the protocol could list, fork and archive threads but not
delete one, so the desktop deleted session files through Tauri instead. The
app-server is the single owner of thread storage; a client removing files
behind it can pull the ground out from under an open writer. Served under the
existing threadManagement capability, with the local writer kept as the
fallback for a sidecar too old to know the method.
Change ledger records provenance. Each entry now carries derivedFrom —
the files the turn read before making that change — answering the question
after "what changed" and "how do I undo it": what was it derived from. That
is what you ask when a generated file is wrong and you need to know which
input to fix. Shown by deepcode ledger show. Built on the existing ledger
rather than a second store.
It is observed, not declared: only Read counts (Grep/Glob take a search
root and return many paths — calling the root an input claims a derivation the
turn did not make), a failed read is not an input, and the file being written
is excluded so an Edit does not look self-derived. Absent rather than empty
when there is nothing to say.
Trigger sources for scheduled jobs — a job can now fire from a calendar
file or a file change, not only a clock. { "kind": "ics", "path": "team.ics", "match": "release" } fires when a matching event starts;
{ "kind": "file", "paths": ["schema.json"] } fires when a watched path
changes. schedule still means cron and existing jobs need no migration.
Everything is polled by the existing scheduler run, so there is no
daemon and no way for a trigger to fire while nothing is listening. See
docs/triggers.md.
Standard iCalendar text is the only calendar input — no vendor SDK, no OAuth
to a calendar service. The reader handles DTSTART, folded SUMMARY lines and
RRULE FREQ=DAILY/WEEKLY with INTERVAL/BYDAY/UNTIL/COUNT, and
reports anything it cannot express rather than dropping it: a silently
ignored RRULE is a job that never fires, and that failure is
indistinguishable from "nothing was scheduled". All-day entries never fire —
they name a day, not a moment. A trigger decides when, never what may happen:
every scheduled run still goes through the unattended clamp.
The in-app updater has a feed. tauri.conf.json has had
updater.active: true and a committed public key since the desktop app
shipped, pointing at a latest.json that nothing ever produced — so the app
polled, 404ed, and silently never updated. The release pipeline now enables
updater artifacts, signs them, writes the manifest and attaches it, all gated
on a signing key being present so a credential-less release still builds. When
the key is absent the release body says the feed is missing, because an
updater polling a 404 forever looks identical to one that has found no update.
Generating the key pair remains yours — see docs/RELEASING.md.
Task delegationsecrets/**" bound the main agentdeny is deliberately not waivable, this was the one gate that wasGrep and Glob returned results the contract denies reading. Both takeevaluatePath the gate uses — no second globask is not filtered: mid-search there is nobody toGrep skipped the same filter.--sandbox read-only was not read-only on Linux. buildLinuxBwrapArgs--bind <cwd> <cwd>, and bwrap applies binds inallowWrite, which read-only leaves empty. #226 introduced the mode axisenabled: true shape are unaffected.A rethrown error keeps the one that caused it. Five places wrapped a
caught error in a new Error carrying only its .message — settings and
trust-store loading, the hook trust file, and the MCP headersHelper — so a
parse failure or a spawn error arrived with the original stack, errno and
path discarded. They now pass { cause }, and ESLint's preserve-caught-error
keeps the next one from being written.
Tool output could flood the model's context, or vanish (#268). Two defects,
one cause: nothing central bounded what a tool result put in front of the
model, so each tool improvised.
WebFetch improvised by not bounding at all — it returned the whole response
body, capped only at 5 MiB of bytes. A 5 MiB page is roughly 1.5M tokens; one
call ended the session. Bash improvised by destroying evidence: it sliced at
30 KB and wrote the remainder nowhere, and the tail of a failing test run is
exactly the part worth reading.
A spill policy now runs on every tool result. Anything at or under the
threshold passes through untouched; anything over becomes a head-and-tail
preview naming the file holding the full text, saved beside that session's
snapshots and retrievable with Read. Both ends, weighted toward the tail,
because stack traces and exit codes live at the end. A host with no filesystem
still gets the bound and is told the output was not saved rather than shown a
path that does not exist.
Release notes come from the CHANGELOG. gen-release-notes.ts walked the
commit range, and with no preceding tag it fell back to the root commit — which
is how v0.3.0's release page came to say "0 commits." after #250 fixed the
shallow clone. It now takes the tagged version's CHANGELOG entry, which is
written for humans and groups changes by what they mean rather than by the verb
the commit happened to start with. Repo-relative links are rewritten to
absolute URLs pinned at the tag, since a release body does not render inside
the repository. Falling back to commits still works and says so in the body.
The desktop sidebar was a second reader of the session directory. Archive
and delete went through Tauri while the protocol served the same threads, and
the list did too — window.deepcode.sessions.list() had preferred the
protocol since #231, but Sidebar.tsx bypassed the shim and called
listSessions() directly. All three now go through the owner, and deleting a
thread removes both its protocol snapshot and its canonical session
projection: list reads both, so removing one left the row reappearing on the
next refresh as an empty session that could not be opened.
deleteSession refuses a session id that is not a single path segment, before
removing anything. It ends in a recursive delete of <root>/<id>, and .. —
the id that resolves to the directory above the sessions root — is spelled
entirely in characters an id may legitimately contain, so the character-class
check both it and the thread store relied on admitted it. Every in-tree caller
validates first; a delete this destructive should not depend on that.
Grep over a single file no longer prefixes every line with a colon.
ripgrep omits the filename when the search path is one file — there is
nothing to disambiguate — so its --null output carries no NUL, and rejoining
the record as path:text with an absent path emitted :1:hit. Parsing now
distinguishes "rg printed no path" from "rg printed an empty field", and the
separator is written back only where rg wrote one. Such a row is attributed to
the search root for contract filtering, so the result filter does not depend on
the pre-call gate having adjudicated that call correctly.
CI installs ripgrep and sets DC_REQUIRE_RIPGREP=1. The Grep suite
self-skips when rg is absent, so it may never have run in CI — and it now
covers ripgrep's --null output format, which the tool parses byte for byte.
The test suite could re-initialise your own repository. git reads
GIT_DIR from the environment and a git hook sets it, so a fixture calling
git init on a temp directory from inside the pre-commit gate did not
initialise the temp directory — it re-initialised the developer's checkout as
bare and wrote the test identity into its config, after which every git
command there failed with "this operation must be run in a work tree".
apps/server/src/workspace-diff.test.ts was the fixture; the code it tests
scrubs the environment, the fixture did not. Three other fixtures had each
grown their own copy of the scrub, two carrying a comment describing this
precise failure — a convention passed by word of mouth that had stopped being
enforced. They now share gitSpawnEnv, and a check fails the build if a test
spawns git without it.
The CLI is published as @oratis/deepcode. 0.3.0 renamed it away from
deepcode-cli because that name belongs to an unrelated project — but
@deepcode/cli was not ours either. The leaf name is unpublished, which is
what made it look free; the @deepcode scope holds @deepcode/tsc and
@deepcode/dcignore, and npm rejects a publish into a scope you do not own. A
scope is not claimable by publishing into it, so pnpm publish would have
returned the same 403 the rename was meant to fix. The new name is the
repository owner's personal scope, which needs no organisation to exist first.
Nothing was ever published under either old name, so no installed package
changes. The binary is still deepcode.
A test now asserts that every npm i -g … in a current document or in CLI
source names the package apps/cli/package.json publishes. Both renames so far
moved some install strings and left others behind. It scans the whole
repository minus an explicit list of historical snapshots, rather than an
allowlist of the documents somebody thought of — an allowlist has to be
extended by whoever adds the next document, and stays silent when they forget,
which is the same shape as the bug it is there to catch.
apps/cli/README.md — the npm landing page — still described the CLI as an
"M0 骨架,命令入口存在但不能用" and pointed at milestone numbers for when
features would arrive. It shipped in the package files list.
docs/research/deepseek-harness.md gradesdocs/DSH_ADOPTION_PLAN.md argues eachA Cordis-style "everything is a plugin" rewrite: dsh spends 219 packages
expressing what DeepCode expresses in 4, and that ratio is what shipping a
third-party plugin ecosystem costs — we do not ship one, so we would pay the cost
and collect none of the benefit. It also self-describes as a developer preview
that will break compatibility, while 0.3.0 is out with npm, VSIX, DMG and an
update feed downstream. Take the discipline, not the framework.
Also rejected: its workflow engine, which introduces model-written code executed
behind a boundary its own docs say is not a security boundary, with no use case
our sub-agents fail to cover. Deferred pending a product decision: the goal
domain and the Ralph loop, which change when an agent stops rather than what it
can do. Reasoning in the adoption plan §2.
No macOS build in this release. Apple signing credentials were not configured when it was cut; see
docs/RELEASING.md.
Not published to npm.
NPM_TOKENwas not configured when this release was cut; install from source or the VSIX.
A workspace-governance layer: what the agent may touch, what it changed, and how
to undo it. Derived from a first-hand study of Floatboat's open Selfware
protocol — see docs/research/floatboat.md for
the research (with evidence grading) and
docs/FLOATBOAT_ADOPTION_PLAN.md for what was
adopted, what was rejected, and where the implementation diverged from the plan.
@deepcode/cli, not deepcode-cli. Install withnpm i -g @deepcode/cli. The unscoped name on npm belongs to an unrelateddeepcodepermissions.defaultMode of bypassPermissions or acceptEdits — chosen fordefault for scheduled jobs, whichprofile.mode.env could be read, and there was no way to say otherwise. PermissionRead(.env*) matcheddeny cannot be waived by bypassPermissions. It states/combo drafts exclude paths the contract denies reading and redactdeepcode contract <show|init|check>. Optional; with nodeepcode ledger <list|show|export|rollback>. Anchanges,governance). Stored outside the repository so git status stays clean.confirm is a required argument, so a caller that cannot ask a humanruntime/capabilities — a protocol method answering what the runtime mayinitialize's/combo — distil a finished thread into a SKILL.md draft, withallowed-tools derived from the tools actually called. (#243)mode, permissions, and sandbox foronApprovalRequired: 'abort' for scheduled jobs, plus exit code 6. A jobdeepcode doctor prints the runtime capability declaration and thetool_use blocks unanswered, which a provider rejectsdocs/cli-flags.md's exit-code table contradicted the implementation (it3 as "tool denied" and 5 as "API key invalid"). Corrected againstapps/cli/src/headless.ts, which owns the contract. (#237)docs/file-contract.md,docs/change-ledger.md,docs/combo.md,docs/research/floatboat.md,docs/FLOATBOAT_ADOPTION_PLAN.md.docs/security-model.md gains threats #8–#10 and a residual-risk section.self self-executing distribution (a supply-chain surface for a coding agent),
Floatboat's passive habit observation across files and browser tabs (a privacy
line, and unnecessary — /combo gets the value from an explicit invocation),
cross-organisation agent networks, and a second loopback HTTP runtime alongside
the app-server. Reasoning in the adoption plan §3.
No macOS build in this release. Apple signing credentials were not configured when it was cut; see
docs/RELEASING.md.
Not published to npm.
NPM_TOKENwas not configured when this release was cut; install the VSIX below or build from source.
Full commit list: v0.3.0 compare view