dsh-rich-context
Agent manager for DeepSeek Harness — edit the AGENTS.md files your agents read, and define subagent personas: named roles with their own system prompt and a pinned provider / model / effort route, launchable as real sessions.
管理 AGENTS.md 与子代理人格:全局/工作区编辑、源扫描与默认切换;每个角色一个 Codex 风格 TOML(含 provider/model/effort 路由),编译为 DSH 预设、可从面板或模型的 agents 工具启动为真实会话。
Install
dsh plugin --profile web add dsh-rich-context
Restart the dsh web process. An Agents entry appears in the sidebar (under Skill Center).
Two modes
Context — the AGENTS.md manager (unchanged from v0.1):
- Global — edit
~/.dsh/AGENTS.mdwith the monospace editor (Ctrl+S saves) - Workspace — pick a workspace from the dropdown, edit its root
AGENTS.md - Sources — scan 10 tool directories, symlink any detected
AGENTS.md/CLAUDE.mdas the default
Agents — the persona roster:
- One
~/.dsh/agents/<id>.tomlper agent:name,description,provider,model,effort,sandbox_mode,developer_instructions(the system prompt) - Saves are free-form; the roster computes route health live against the model catalog;
agents launchrefuses invalid routes - Import copies + converts foreign agent files (Codex TOML, Claude/Gemini markdown frontmatter), normalizing all five effort spellings; sources are never touched
Model-facing agents tool
agents launch runs a persona as a one-shot subagent of the calling session: the persona file's contents become the child's system prompt, the child runs on the route its file pins, and its final output returns inline — the same contract as Claude Code / Codex subagents. list shows the roster, read one definition. Read-only personas get write/exec tools denied.
Architecture
src/host.js Node half — /api/rich-context/{state,file,template,sources,default}
plus /agents/{list,file,catalog,import,launch}: persona TOML store,
preset compiler, live model catalog, session spawner with seed
request/header route, and the `agents` tool registration.
src/client.bundle.js Browser half — pure DOM overlay (no React dependency):
sidebar entry + panel with Context/Agents mode tabs.
No comments yet. Be the first to write one.