What We Do Here
Standard AI chat interfaces treat serious writing, teaching, and research like disposable text streams: long threads lose the plot, silently paraphrase primary sources, invent numbers, overwrite paragraphs you carefully phrased yourself, and leave you copy-pasting fragments into Word at the end.
The Ivory Tower turns DeepSeek Harness (dsh) — normally a software-engineering harness — into a calm, paper-first co-authoring studio without forking a single line of upstream code. Instead of terminals and code diffs, human and agent share a real desk, a verified local library, and a live page workbench:
-
Receipted Web Research (Web Missions & Discovery):\
When you need fresh facts or literature, the agent runs bounded Web Missions rather than opaque one-shot web summaries. Candidate URLs are discovered (Serper, local browser39, or SearXNG), fetched into a local project store (with default private-network SSRF protection), and checked deterministically so every cited source and number on screen actually appears in the retrieved pages before a mission closes.
-
A Local Library With Cryptographic Quote Provenance (Fundus):\
Trusted mission pages, chat drag-and-drop uploads, your own folders of .docx, .odt, text-layer .pdf, .md, .txt, .wiki, and .csv documents, and historical or scientific images are indexed locally in Fundus (SQLite full-text search + content-addressed SHA-256 storage, zero external Office binaries). Whenever a primary-source quote is placed onto a document page, its SHA-256 hash and exact wording are verified against the archived passage (with explicit 'adapted' attribution support for simplified excerpts) — catching silent AI paraphrasing or quote drift automatically before you export.
-
Side-by-Side Co-Authoring That Protects Your Hand (Galley & Plates):\
Beside the conversation sits Galley (Setzerei), a live page workbench typeset locally at true A4/Letter dimensions via Typst, paired with Plates (Bildtafeln) for crisp, deterministic vector timelines, charts, causal flows, and worksheet exercises.
- You can write, reorder sections, insert archive media, or pin margin notes directly on the page in
0 ms with zero AI calls.
- Your words are protected: any section authored or edited by you is locked to your hand. When the agent suggests revisions to your text, it stages a reviewable draft proposal rather than overwriting your prose.
- Export anytime to print-ready
.pdf or clean, editable .docx for Word and LibreOffice.
-
Calm Editorial Control on Local GPUs or Cloud Models (Ivory Shell, Regisseur & Compaction):\
Coder chrome gives way to a warm Paper & Ink workspace organized by Courses (~/IvoryTower/Courses/), a lightweight Plan · Build · Review switch (separating open brainstorming, active drafting, and pure Lektorat margin critique), and language-preserving Editorial Compaction that keeps English or German threads coherent across long multi-hour sessions — running identically on local models (llama.cpp, Ollama), institutional ISO-27001 proxies, or frontier cloud APIs.
-
Honest Draft Transparency & Local Editorial Journal (Morgue):\
Agent-generated documents carry an honest draft disclosure (eu-ai-draft) until a human explicitly reviews and signs off in Galley (eu-ai-reviewed). Every course maintains a zero-prompt-token, SHA-256 checksum-chained Editorial Activity Journal (.dsh/morgue/ledger.jsonl) with pure Redux point-in-time replay (morgue_audit) tracking human edits, proposal gates, verified vs. adapted quotes, and exported deliverable hashes.
Architecture Overview
flowchart TB
subgraph Shell["Shell & Desktop Layer (Zero Upstream Fork)"]
DESK["apps/ivory-desktop (Electron 44)<br/>+ dsh-ivory-shell (Paper Theme · Course Shelf · Start Desk)"]
end
subgraph Control["Control & Context Pipeline (91%+ KV-Cache Hit)"]
REG["dsh-regisseur<br/>(Plan · Build · Review · APFS .dsh/* Shield · BM25 Gateway · StudioBrief)"]
CS["dsh-compaction-studio<br/>(Language-Preserving 7-Section Editorial Checkpoints)"]
end
subgraph Craft["Page Workbench & Engraved Vector Figures"]
GAL["dsh-galley<br/>(Block AST · Human Proposal Gate · Typst Proof · PDF/DOCX Export)"]
GT["dsh-galley-templates<br/>(teaching-de & academic Blueprints)"]
PLT["dsh-plates<br/>(Deterministic SVG Timelines, Charts, Flows & Exercises)"]
end
subgraph Knowledge["Receipted Research & Local Archive"]
WD["dsh-web-discovery<br/>(Serper → browser39 → SearXNG)"]
WM["dsh-web-missions<br/>(Allowlisted / SSRF-Guarded Crawl & Claim Verifier)"]
FUN["dsh-fundus<br/>(SQLite FTS5 · .docx/.odt/.pdf Intake · SHA-256 Quote Check)"]
end
subgraph Compliance["Editorial Journal & Provenance (0 Prompt Tokens)"]
MOR["dsh-morgue<br/>(SHA-256 ledger.jsonl · Pure Redux Replay · morgue_audit)"]
end
DESK --> REG
DESK -.-> CS
WD --> WM --> FUN
GT -->|"registerTemplate + preflight"| GAL
FUN -->|"fundus-quotes + stageMedia + registerAssetResolver"| GAL
PLT -->|"plates-layout + stageMedia + registerAssetResolver"| GAL
REG <-->|"Compass + Exit Gate + Housekeeper"| GAL
REG -->|"studio_call_tool"| PLT
REG -->|"studio_call_tool + admitAttachment"| FUN
GAL -.->|"tools/result + ivory:galley-action"| MOR
REG -.->|"attachment-admitted + guard-blocked"| MOR
MOR -->|"morgue_audit (read-only review)"| REG
The Eleven Monorepo Packages
All 10 runtime Studio organs and 1 shared build-tooling package live together under packages/ in this repository and publish independently to npm:
| Package |
Role in the Studio |
Layer |
Version |
dsh-ivory-shell |
Studio Desk & Theme: Zero-fork preset-studio, Paper/Desk/Ink palette, reactive Course shelf (studio_create_course), Start Desk, UI zoom & silent diagnostic issue reporter |
Shell |
0.2.1 |
dsh-regisseur |
Editorial Conductor: Plan · Build · Review posture pill & FS/tool guard, APFS-safe .dsh/* store shield, BM25 specialist tool gateway, traceable chat-attachment admission, StudioBrief & bounded self-repair gate |
Control |
0.1.4 |
dsh-compaction-studio |
Editorial Memory: Language-preserving (EN/DE) 7-section session compaction retaining active document, source, and figure references |
Control |
0.1.1 |
dsh-galley |
Page Workbench (Setzerei): Live human + agent page co-authoring, HiDPI paper zoom, human-edit proposal protection, editable margin notes, header crest slots, human-only eu-ai-reviewed sign-off (eu-ai-draft agent default), local Typst proofing & per-chat .pdf/.docx export |
Craft |
0.2.9 |
dsh-galley-templates |
Domain Blueprints: Selectable teaching-de (Arbeitsblatt, Verlaufsplan, Quellensammlung) & academic (Seminar Handout, Literature Matrix) packs |
Craft |
0.1.0 |
dsh-plates |
Engraved Vector Figures (Bildtafeln): Deterministic print-grade SVGs for timelines (incl. highlighted stations), charts, causal flows, and worksheet exercises |
Craft |
0.1.5 |
dsh-fundus |
Local Source & Media Vault: SQLite FTS5 + SHA-256 archive over .docx/.odt/.pdf/.md/.wiki/.csv, web-mission imports & images, with verbatim/adapted quote verification & media staging |
Knowledge |
0.2.0 |
dsh-web-missions |
Receipted Web Research: Budgeted, SSRF-guarded local browser39 crawl store with deterministic citation and number verification (mission_verify) |
Knowledge |
1.0.0 |
dsh-web-discovery |
Search URL Supply: serper.dev → browser39 → searxng candidate URL discovery companion feeding dsh-web-missions |
Knowledge |
1.1.0 |
dsh-morgue |
Editorial Activity Journal (Redaktionsarchiv): Zero-token SHA-256 checksum-chained course log (ledger.jsonl), torn-tail auto-recovery, pure Redux action replay (morgue_audit), and provenance logs |
Compliance |
0.1.0 |
dsh-build-tools |
Dual-Face Plugin Bundler: Shared ESM host + CJS web-client bundler, hermetic .mjs test emitter & artifact byte-diff verifier |
Infra |
0.2.0 |
Quickstart
Run the Full Studio From This Monorepo
Prerequisites: Node.js >= 20 (24+ recommended for dsh host), pnpm 11+, and dsh (@deepseek-ai/dsh 0.2.2-rc.5) on your PATH.
pnpm install # install & build all 11 Studio workspace packages
pnpm run ci # run umbrella tests + build + 10/10 bundle conformance + all 11 hermetic suites
pnpm start # pack fresh tarballs into ~/.dsh-ivory (zero symlinks) & launch Studio on :3088
Run or Package the Standalone Desktop App (apps/ivory-desktop)
apps/ivory-desktop (0.2.5) packages @deepseek-ai/dsh@0.2.2-rc.5 + all 10 Studio runtime organs into a self-contained zero-fork Electron desktop app (.AppImage on Linux, .dmg on Apple Silicon macOS; Windows .exe target configured for v0.3 — zero local Node, Python, or CLI required for end users):
pnpm run desktop:stage # stage hoisted dsh runtime + 10 Studio brick tarballs
pnpm run desktop:dev # launch standalone Electron window directly (~2s)
pnpm run desktop:smoke # headless 6-organ live boot & HTTP verification
pnpm run desktop:package:linux # build self-contained IvoryTower-*.AppImage
Or Install Individual Published Bundles Into Any dsh Profile
dsh plugin --profile web add \
dsh-ivory-shell \
dsh-regisseur \
dsh-compaction-studio \
dsh-galley \
dsh-galley-templates \
dsh-plates \
dsh-fundus \
dsh-web-missions \
dsh-web-discovery \
dsh-morgue
Studio Laws
- Werkzeugkasten, Never a Slop Factory: Human-authored sections require explicit proposal approval; primary-source quotes are hash-checked against
Fundus; and automated repair is capped at 1 bounded step before holding safely in 🔒 Review.
- Domain-Neutral Core, Opinionated Leaf Packs: Core organs stay strictly English-first and domain-neutral; curriculum or discipline-specific blueprints live in selectable leaf packs (
dsh-galley-templates).
- Provider-Agnostic by Construction: Zero hard dependency on proprietary cloud APIs or Docker containers — verified across local
llama.cpp models (Qwen 3.8, Inkling 2 Mini), fast MoE gateways, and frontier cloud models.
- Prompt-Cache Discipline (
91%+ Prefix Hit Rate): Tool definitions and persona headers stay frozen from Turn 1 (and dsh-morgue injects 0 prompt tokens) so local KV caches and cloud prompt caches stay warm across mode shifts and compactions.
- Three-Tier Isolation: Global archive (
~/.ivory-tower/fundus/), per-Course workspaces (~/IvoryTower/Courses/<slug>/ — outside macOS TCC/iCloud ~/Documents), and strict per-chat document pinning so parallel sessions never collide.
- Earned Human Sign-Off & Zero PII: Zero student or personal PII in Studio schemas; agent-authored sheets default to
'eu-ai-draft' until a human explicitly signs off ('eu-ai-reviewed') in the workbench.
- Acyclic Zero-Fork Composition: Peer organs (
dsh-plates, dsh-fundus, dsh-galley-templates, dsh-morgue) never import each other — they attach inward to ctx.galley, ctx.regisseur, and ctx.ivoryShell.
TypeScript Seam Contracts (the-ivory-tower@0.2.5)
The root npm package the-ivory-tower publishes the canonical cross-organ Cordis TypeScript contracts (ctx.galley, ctx.fundus, ctx.plates, ctx.regisseur, ctx.ivoryShell, ctx.morgue, StudioTailToolProvider) alongside the frozen 10-organ Studio manifest:
npm install the-ivory-tower
import {
STUDIO_ORGANS,
STUDIO_MODES,
STUDIO_TOOL_CATEGORIES,
getStudioOrgan,
isValidStudioTailToolSchema,
probeStudioUmbrella,
} from 'the-ivory-tower'
import type {
GalleyServiceLike,
FundusServiceLike,
PlatesServiceLike,
RegisseurServiceLike,
IvoryShellServiceLike,
MorgueServiceLike,
StudioTailToolProvider,
} from 'the-ivory-tower'
License
MIT — see LICENSE.