Skip to content

gut(commands): remove dead model/thinking/exec infrastructure and stop command#2280

Merged
alexey-pelykh merged 1 commit intomainfrom
gut/remove-dead-model-thinking-exec-infra
Apr 11, 2026
Merged

gut(commands): remove dead model/thinking/exec infrastructure and stop command#2280
alexey-pelykh merged 1 commit intomainfrom
gut/remove-dead-model-thinking-exec-infra

Conversation

@alexey-pelykh
Copy link
Copy Markdown

Summary

Remove dead model/thinking/reasoning/elevated/exec infrastructure — inline directive type fields, model directive parser, thinking-level types and normalization, help text references, and the stop command registry entry with its stub handlers.

Closes #2134

What was removed

  • Model directive parser (model.ts) and its tests — extractModelDirective() ran during parse but result was never acted on
  • Thinking/reasoning/elevated types (ThinkLevel, ElevatedLevel, ReasoningLevel) and their normalization functions — CLI agents manage their own thinking/reasoning levels
  • Dead InlineDirectives fieldshasModelDirective, hasThinkDirective, hasReasoningDirective, hasElevatedDirective, hasExecDirective and associated data fields (never populated to true)
  • directive-handling.levels.ts — resolved current think/reasoning/elevated levels from session (dead without the types)
  • stop command — registry entry + handleStopCommand/handleAbortTrigger stub handlers (real abort mechanism in abort.ts is untouched)
  • Help text references/compact, /stop, /think, /model, /context, /skill removed from buildHelpMessage()

What was kept

  • VerboseLevel, normalizeVerboseLevel, NoticeLevel, normalizeNoticeLevel, UsageDisplayLevel, normalizeUsageDisplay, resolveResponseUsageMode — alive infrastructure
  • Verbose and queue directive fields on InlineDirectives
  • abort.ts and abort-cutoff.ts — real abort mechanism
  • Telegram's local TelegramReasoningLevel type — separate local type

Files affected

  • 3 files deleted, 20 files modified
  • Net: -799 lines deleted, +38 lines added

Test plan

🤖 Generated with Claude Code

@alexey-pelykh alexey-pelykh enabled auto-merge (squash) April 11, 2026 09:38
…p command (#2134)

Remove non-functional model directive parser, thinking/reasoning/elevated
level types and normalization, dead InlineDirectives type fields, stop
command registry entry with stub handlers, and dead help text references.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@alexey-pelykh alexey-pelykh force-pushed the gut/remove-dead-model-thinking-exec-infra branch from 64f84f9 to 6300b4b Compare April 11, 2026 09:42
@alexey-pelykh alexey-pelykh merged commit 593b371 into main Apr 11, 2026
10 checks passed
@alexey-pelykh alexey-pelykh deleted the gut/remove-dead-model-thinking-exec-infra branch April 11, 2026 09:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

gut(commands): remove 11 gutted/vestigial command definitions

1 participant