2nd dokployH
Find a file
Tianyi Cui 3bef6b38c7 refactor(session-persistence-sqlite): drop the materialized column; use row existence as the signal (review #35)
The `materialized` INTEGER column was redundant: create()/update() already
keep a lazy session in memory and write no row, so a `sessions` row is
written only by the first append. Its EXISTENCE is the materialization
signal — has()/list() now report exactly the sessions that have a row,
matching the JSONL backend's "file exists ⇔ materialized".

The column only existed to force has()/list() to FALSE for an all-tail
crash (a partial first turn, zero committed events). That actually
DIVERGED from the JSONL backend, whose file (and thus has()=true) survives
a first append that never reached turn/end. Removing the column drops that
special case: an all-tail session keeps its row and stays present, the
same as JSONL. The orphaned tail rows are still removed by the deferred
truncation-repair on the next append, and load() stays non-mutating.

Also: add a TODO to route through a cordis db service if one is adopted,
and correct the README's Node-version framing to the repo's engines (>=24).
2026-06-16 20:35:01 +08:00
.agents/skills/dsh-code-review feat: migrate to pnpm 2026-06-16 14:55:37 +08:00
.claude docs: accuracy sweep, architecture restructure, two ADRs, review skill 2026-06-13 22:05:34 +08:00
.github/workflows Merge branch 'split/turn-enclosure' into split/session-persistence 2026-06-16 17:01:36 +08:00
docs Merge branch 'split/agent-factory' into split/session-persistence-sqlite 2026-06-16 17:09:39 +08:00
examples Merge branch 'split/turn-enclosure' into split/session-persistence 2026-06-16 17:01:36 +08:00
packages refactor(session-persistence-sqlite): drop the materialized column; use row existence as the signal (review #35) 2026-06-16 20:35:01 +08:00
scripts Merge branch 'split/agent-factory' into split/session-persistence-sqlite 2026-06-16 17:09:39 +08:00
vendor feat: migrate to pnpm 2026-06-16 14:55:37 +08:00
.gitignore Merge branch 'split/turn-enclosure' into split/session-persistence 2026-06-16 17:01:36 +08:00
AGENTS.md feat: migrate to pnpm 2026-06-16 14:55:37 +08:00
CLAUDE.md Initialize repo with README, AGENTS.md, and CLAUDE.md symlink 2026-06-10 22:58:56 +08:00
eslint.config.mjs Replace dumble with tsdown for JS bundling 2026-06-11 22:34:43 +08:00
knip.json Add examples/coding-agent and the docs cookbook 2026-06-13 18:30:50 +08:00
lefthook.yml feat: migrate to pnpm 2026-06-16 14:55:37 +08:00
LICENSE Initialize repo with README, AGENTS.md, and CLAUDE.md symlink 2026-06-10 22:58:56 +08:00
package.json feat: migrate to pnpm 2026-06-16 14:55:37 +08:00
pnpm-lock.yaml Merge branch 'split/agent-factory' into split/session-persistence-sqlite 2026-06-16 17:09:39 +08:00
pnpm-workspace.yaml docs: tighten allowBuilds comments 2026-06-16 16:25:24 +08:00
README.md feat: migrate to pnpm 2026-06-16 14:55:37 +08:00
tsconfig.base.json feat(session-persistence-sqlite): second backend validating the abstraction 2026-06-15 21:45:21 +08:00
tsconfig.build.json feat(session-persistence-sqlite): second backend validating the abstraction 2026-06-15 21:45:21 +08:00
tsconfig.json Fix CI: order steps by artifact dependency, resolve fresh-clone builds 2026-06-11 23:10:43 +08:00
tsconfig.test.json Set up monorepo infra: Yarn 4 workspaces, tsc -b + dumble build, vitest 2026-06-11 10:52:45 +08:00
tsconfig.typecheck.json feat(session-persistence-sqlite): second backend validating the abstraction 2026-06-15 21:45:21 +08:00
tsdown.config.ts feat: migrate to pnpm 2026-06-16 14:55:37 +08:00
vitest.config.ts feat: migrate to pnpm 2026-06-16 14:55:37 +08:00
vitest.e2e.config.ts feat: migrate to pnpm 2026-06-16 14:55:37 +08:00

DeepSeek Harness

Monorepo for the DeepSeek Harness group.

Projects

  • DeepSeek Code — DeepSeek's coding agent product.

Development

This monorepo is built on the Cordis framework (vendored as source under vendor/), microkernel-style: everything is a plugin.

pnpm install
pnpm run test          # vitest
pnpm run demo:echo     # runnable echo-agent example (no API key needed)
pnpm run demo:coding   # the real DeepSeek coding agent (needs DEEPSEEK_API_KEY)

For humans, start with the development guide for local setup, hooks, environment variables, and quality gates, then read the architecture design before package work. Local context lives in packages/ and vendor/.

For agents, follow AGENTS.md.