Skip to content

feat: Allow unknown slash commands to passthrough to Claude Code in agentic mode #129

@HaqimIskandar

Description

@HaqimIskandar

Problem

In agentic mode, unknown slash commands (e.g., /workflow, /skill, /add-memory) are ignored or error because they're not registered as Telegram bot commands.

Solution

Remove & ~filters.COMMAND\ filter from the agentic text handler so ALL text messages (including unknown slash commands) are passed through to Claude Code.

Change

\\python

Line ~320 in src/bot/orchestrator.py

OLD:

filters.TEXT & ~filters.COMMAND

NEW:

filters.TEXT
\\

Result

  • Existing commands still work: /start, /new, /status, /verbose, /repo\ (higher priority CommandHandler)
  • Unknown slash commands now passthrough: /workflow activate job-hunter, /skill use resume-optimizer, /add-memory\
  • Natural conversation continues to work (no slash commands)

Testing

Test created: \ ests/test_orchestrator_passthrough_simple.py
Test passes: Verifies \ ilters.TEXT\ is used, not \ ilters.TEXT & ~filters.COMMAND\

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions