litefuse/dsh-litefuse-plugin

Exports each DSH turn to Litefuse as an agent trace: generations, tool spans, subagent subtrees and token usage, collected in-process.

Turns every DSH turn into one Litefuse trace — an agent root, one generation per model call with real latency and token usage, one tool span per execution including run_code dispatches, and a nested container for every subagent the turn delegated to — implementing the Litefuse agent-trace spec v1.2 in-process on the harness's own session event feed.

Infrastructure & Deployment ★ 0
View on GitHub ↗

Install

npx @deepseek-ai/dsh plugin --profile web add -w dsh-litefuse-plugin

Put the project key pair in ~/.dsh/.env as LITEFUSE_PUBLIC_KEY and LITEFUSE_SECRET_KEY, then boot as usual. The install patch reads everything from the environment, so most deployments need no configuration; overrides go in the profile's cordis.patch.yml, where an id-targeted patch replaces the whole config and you must restate the fields you keep. Uninstall with remove -w, or set DSH_LITEFUSE_DISABLED=1 to stop exporting without uninstalling. Its own log is $DSH_HOME/litefuse.log, and DSH_LITEFUSE_DEBUG=1 makes it verbose.

Compatibility

Fail-open everywhere: every handler is self-contained and every failure is logged and swallowed, because a throwing listener would starve every observer registered after it. Zero runtime dependencies — no SDK — and spans go straight to the OTLP endpoint. Spans are written once, when they end, so an in-flight step is deliberately invisible until it closes, and the trace appears as soon as its first span completes. Known limits the README states itself: out-of-process subagents (acp, codex, the SDK providers) publish no session events here and get their own traces; a background one-shot delegation is not nested; parallel tool spans can overstate duration because results commit in model order; there is no durable outbox, so buffered spans die with the process and delivery is at-most-once; and a delegation sharing neither a descriptor nor its prompt can mis-bind. Credentials are references, never values: only the public key's first ten characters are ever logged.

Details

Alternatives

beex-labs/dsh-desktop-plugin · april-jk/dsh-mobile-plugin · YOLO-LZL/dsh-ssh-plugin

More plugins in Infrastructure & Deployment

Browse more in Infrastructure & Deployment

Guides for Infrastructure & Deployment plugins