Skip to main content
Glama

sweep_dead_code

Detect and remove unused imports, functions, and orphan files. Uses text-reference fallback to avoid deleting dynamically referenced code, with safe transactional edits.

Instructions

Detect dead code: unused imports/functions, orphan files, unused_guard signal. Text-reference fallback counts CLI-string refs as alive (miss-over-delete bias). Remove via edit_transaction. Out of scope: dynamic/reflection wiring.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
scopeNoScan scope: directory relative to workspace_dir (default: ".")
include_filesNoAlso detect orphan files (default: false)
workspace_dirYesREQUIRED: project root (abs).

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/wulun811/LiuHe'

If you have feedback or need assistance with the MCP directory API, please join our Discord server