chore: dead code cleanup — unused exports, stale docs, deprecated functions #302
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Background
Dead code analysis (2026-04-30) found several unused exports, stale documentation, and deprecated code.
Full report:
docs/dead-code-analysis.mdTasks
High priority
createEchoAgent—packages/daemon/src/agent-adapters/echo.tsexported but never referenced anywhere. Remove file + export fromindex.tsisDryRun—packages/workflow-utils/src/role-types.ts, deprecated, always returnsfalse, zero callers. Remove from source +index.tsexportKNOWN_AGENT_ADAPTER_IDS—packages/core/src/agent.ts, never referenced. Either wire it into validation or remove. Containscodexwith no adapter packagepackages/core/README.md— stale API names:parseSenseWorkflowDirective→parseWorkflowTrigger,ParsedSenseWorkflowDirective→ current type,SenseComputeRoute→RoutedSenseOutputAPI surface cleanup
parseDurationStringToMsfrom core public export — only used internally inconfig.ts, no need to exposelabelSenseTriggerfrom core public export —senseTriggerLabelsis sufficient;labelSenseTriggerunused externallyspawnSafere-export fromworkflow-utils— all consumers import directly from@uncaged/nerve-coreMinor cleanup
packages/workflow-utils/src/shared/hermes-agent.tsreferencing deletedhermes-options.tsVerification
pnpm run buildpassespnpm testpasses (all packages)npx biome check .clean