Skip to content

Conversation

@ashwin-ant
Copy link
Collaborator

Replace the over-engineered Mode interface/registry/detector pattern with straightforward inline logic. There are only 2 modes (tag and agent) and the complexity wasn't justified.

  • Delete Mode interface, registry, and prepare pass-through modules
  • Export prepareTagMode() and prepareAgentMode() as standalone functions
  • Inline trigger checking and mode dispatch in run.ts/prepare.ts
  • Change generatePrompt/createPrompt to take modeName string instead of Mode
  • Remove dead code (extractGitHubContext, unused detector helpers)
  • Update CLAUDE.md to reflect new architecture

@ashwin-ant ashwin-ant changed the base branch from ashwin/unified-entrypoint to main February 4, 2026 04:09
Replace the over-engineered Mode interface/registry/detector pattern with
straightforward inline logic. There are only 2 modes (tag and agent) and
the complexity wasn't justified.

- Delete Mode interface, registry, and prepare pass-through modules
- Export prepareTagMode() and prepareAgentMode() as standalone functions
- Inline trigger checking and mode dispatch in run.ts/prepare.ts
- Change generatePrompt/createPrompt to take modeName string instead of Mode
- Remove dead code (extractGitHubContext, unused detector helpers)
- Update CLAUDE.md to reflect new architecture
@ashwin-ant ashwin-ant force-pushed the ashwin/simplify-mode-system branch from 81e043d to 188d392 Compare February 4, 2026 04:11
Copy link
Collaborator

@km-anthropic km-anthropic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what goes around comes around

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.

3 participants