OpenViking
volcengine
Self-evolving Context Database for AI Agents. Unify Agent Memory, Knowledge RAG and Skills.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:MisRightW/dsh-at-file
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
@ workspace file references for DeepSeek Harness: type @ in the web composer, pick a file from the workspace, and its content is injected into the model context when you send the prompt — no copy-paste, no extra tool round trip.
中文说明见 README.zh.md。
dsh plugin --profile web add github:MisRightW/dsh-at-file
# or, from the git URL directly
dsh plugin --profile web add https://github.com/MisRightW/dsh-at-file.git
# or, from a published npm package
dsh plugin --profile web add dsh-at-file
The first GitHub install runs the package's prepare build; pnpm asks you to allow it once (copy the exact package key pnpm prints into the profile's pnpm-workspace.yaml under allowBuilds). See the harness plugin guide for the mechanics.
@ in the composer — a Files group lists workspace files (the group title shows as file until the harness localizes it).@main), path prefix (@src/m), or substring; arrow keys + Enter pick.@path token naming a readable regular file expands host-side into an injected <at-file path="…"> content block appended to the model request; unresolvable or oversized tokens stay plain prose.The literal @path stays in the prompt, and the injected message is recorded on the session log with an at-file source, so the model input is reconstructable from the log.
| Half | Package entry | Role |
|---|---|---|
| Host | dsh-at-file (default) |
AtFileService (ctx.atFile) exposes the atFile Remote namespace (atFile.list, addressed by session id) over a bounded workspace index; the agent/pre-step listener expands @path tokens into injected file content |
| Browser | dsh-at-file/client |
Mounts the atFile namespace (ctx.remote.$mount) and registers the @ trigger source that lists candidates through it |
The Remote wire contract is the hand-authored typert/ artifact pair (the frozen InvocationDescriptor shape, mirroring what the harness's typert generator emits); the dsh.bundle manifest in package.json plus cordis.patch.yml make the package a drop-in profile bundle.
The host half reads a validated Config (patchable from the profile's cordis.patch.yml):
| Key | Default | Meaning |
|---|---|---|
maxFiles |
1000 | Maximum index rows per list call |
maxDepth |
8 | Maximum directory depth walked |
maxBytes |
65536 | Per-file injection cap; larger files are not indexed |
maxReferences |
8 | Maximum references expanded per pre-step |
skipDirectories |
.git, node_modules, dist, build, out, coverage, __pycache__, .venv |
Directory basenames never indexed (case-insensitive) |
The harness monorepo carries an in-tree implementation that also patches two core client packages. This standalone plugin cannot:
slash.menu dictionary lives in the harness core; the group shows the raw source name file.Everything else — candidates, filtering, caching, @path expansion, injection bounds, logging — is identical.
pnpm install # peer deps come from the dsh host; see pnpm-workspace.yaml
pnpm build # tsdown → lib/index.js (host) + lib/client.js (browser)
pnpm test # vitest: host + client suites
pnpm typecheck
The tests run against the published @deepseek-ai/* rc packages, so an API drift in a harness release surfaces here first.
MIT — see LICENSE.
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: file。