Repository navigation
Closed
Labels
enhancementNew feature or request
Description
Summary
An AST-based cross-reference of every exported symbol in internal/ found 18 exported symbols with zero references anywhere in the module (non-test and test alike). All are 3–6 months old, so this is rot rather than in-flight work.
Safe to delete because:
internal/is unreachable from outside the module.internal/extensions/symbols.goexposes only thekit/ext/extnamespace to Yaegi — nointernal/app|session|agent|ui|tools|messagepackage is reachable from an interpreted extension.- None appear in any in-repo interface (an interface method name would have counted as a use).
Candidates
| File:line | Symbol |
|---|---|
internal/app/app.go:786,814 |
RunOnce, RunOnceResult |
internal/agent/agent.go:595,1448 |
GenerateWithLoop, GetSystemPrompt |
internal/ui/scrolllist.go:197,202,654,818 |
SetItemGap, ItemGap, AtTop, ScrollPercent |
internal/ui/popup_list.go:510 |
SelectedItem |
internal/ui/input.go:1018 |
PendingImageCount |
internal/ui/session_selector.go:151 |
SetCurrentPath |
internal/message/content.go:197,205 |
AddPart, AddToolCall |
internal/session/tree_manager.go:1001,1237 |
GetCwd, AddLLMMessages |
internal/session/tree_validation.go:12 |
ValidateParentChain |
internal/tools/connection_pool.go:114,598 |
SetOAuthFlow, GetConnectionStats |
internal/tools/mcp.go:242,1106,1241 |
TaskConfig, SetOnResourcesChanged, RefreshServerResources |
internal/extensions/runner.go:1035 |
SubscribeCustomEvent |
Special case: internal/core/truncate.go:19 — DefaultMaxLineLen is an exported alias of the private defaultMaxLineLen, referenced only by its own declaration. Delete the alias, keep the private constant.
Explicitly OUT of scope (recent — confirm with author first)
internal/daemon/tunnel.go:236,239(StatusCh,Exited) — daemon/tunnel landed 7 days ago in a commit markedwip; this is active scaffolding.internal/agent/agent.go:1227GetExtraToolCount(8 days old).internal/app/app.go:841RunOnceWithDisplay(5 weeks old).
Verification
go build ./... && go test -race ./...
Metadata
Metadata
Assignees
Labels
enhancementNew feature or request
Activity
mark-iii-labs-huly commentedon Sep 4, 2026
Connected to Huly®: KIT-120
Merge pull request #128 from mark3labs/chore/119-remove-dead-internal…
chore: remove dead exported symbols in internal/ (mark3labs#119)