"Everything Is a Plugin": Inside the Cordis Kernel
DeepSeek Harness (CLI package dsh) is built on Cordis, a plugin kernel where models, tools, skills, sessions, sandboxes, storage, agent loops, scheduling, and even the UI are swappable plugins rather than fixed components [1]. DeepSeek states the design rests on two principles - "Everything is a plugin" and "Every run is traceable" - with append-only session logs that record every prompt, reasoning step, tool call, and context injection [2]. Architecture documentation, including a Cordis primer, is written to be legible to both human developers and AI agents reading the codebase [7].
The traceability piece is what several reviewers flagged as the most distinctive feature: a "Trajectory view" lets developers inspect, resume, fork, search, and replay any agent run down to the individual tool call [2]. Reddit discussion in r/PiCodingAgent compared this "small core plus everything as a plugin" pattern to Pi Agent's similar extensions, skills, and tools architecture, treating the "small core plus session/plugin" approach as a shared design pattern across the two harnesses.


