feat: add example custom commands to agentic mode bot menu#179
Open
sakhnenkoff wants to merge 1 commit intoRichardAtCT:mainfrom
Open
feat: add example custom commands to agentic mode bot menu#179sakhnenkoff wants to merge 1 commit intoRichardAtCT:mainfrom
sakhnenkoff wants to merge 1 commit intoRichardAtCT:mainfrom
Conversation
Add /today, /closeday, /capture, /schedule, /context to get_bot_commands() for Telegram menu visibility. These commands are forwarded to Claude via _handle_unknown_command — this patch only affects menu display. Ref: upstream issue RichardAtCT#173
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Related to #173 and #176.
Adds example user-facing commands to
get_bot_commands()in agentic mode. These commands are NOT registered asCommandHandlers — they appear in Telegram's/menu for discoverability but are forwarded to Claude as natural language via_handle_unknown_command.This is a minimal approach — a stepping stone toward the configurable custom commands feature discussed in #173. The current PR hardcodes 5 example commands; a follow-up could make these configurable via environment variable or config file.
Commands added:
/today— Morning briefing and daily plan/closeday— End of day review and reflection/capture— Quick capture a thought/schedule— Plan your week/context— Load context for a topicHow it works:
get_bot_commands()only (menu visibility)handlerslist in_register_agentic_handlers_known_commands_handle_unknown_command(group 10) catches them and forwards to ClaudeTests
2 new tests + 1 updated test in
tests/unit/test_orchestrator.py:test_vault_commands_in_bot_command_list— verifies commands appear in menutest_vault_commands_not_in_known_commands— verifies they pass through to Claudetest_agentic_bot_commandscount from 6 to 11All existing tests continue to pass.