SheltonLiu-N/nano-cordis

SheltonLiu-N★ 7TypeScript最后同步: 2026-08-18

在 GitHub 打开

A nano re-implementation of Cordis and DeepSeek Harness, an AI agent runtime built out of plugins, small enough to read in an afternoon.

README 摘要

English 中文 NanoCordis is a small, readable codebase that answers one question: how do you build an AI agent runtime out of plugins? It contains two layers, about 1600 lines of TypeScript in total: - src/cordis/ — a minimal re-implementation of the Cordis plugin framework that keeps every core idea (plugins, services, dependency-driven loading, effects, events, configuration-driven composition, hot reload) and leaves out the rest. - src/harness/ — a minimal agent harness built on it, in the shape of DeepSeek Harness: a session log that is the only source of truth, a loop that asks a model and runs its tool calls, a tool pipeline, an approval policy, a command line — each one a plugin. You can read the whole thing in an afternoon. Wherever the real projects do more at a specific place in the code, a short // Omitted: or // Differs: comment says what they do and why; whole subsystems that are simply absent are listed at the end of this document. Either way you always know where the full version goes further. Why this exists An agent harness is the program around a language model: it keeps the conversation, decides what the model sees, executes the tools the model asks for, and talks t…

在 GitHub 查看完整 README →
Agent/智能体cordiscordis-plugindeepseekdeepseek-harnessdshdsh-pluginnanonano-cordis

分类