Skip to content

Allow slash commands to be defined as Markdown files under .jupyter/commands #14

@dlqqq

Description

@dlqqq

Claude Code and other agentic assistants allow users to define new slash commands in natural language stored in files like AGENTS.md.

There are two options for implementing this feature:

  1. Make custom slash commands be persona-specific. This would mean that every persona needs to provide its own way of reading AGENTS.md, providing slash command completions, and handling slash commands routed to it like @Jupyternaut /custom-slash-command.

  2. Implement this capability inside jupyter_ai_chat_commands. Perhaps, this package could detect the default persona in the current chat by calling something inside jupyter_ai_router. This would allow jupyter_ai_chat_commands to call the persona directly to generate a list of slash commands defined in AGENTS.md, and automatically provide completions for those slash commands through the UI. This would require a new get_custom_slash_commands() method on BasePersona.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions