Skip to content

Conversation

@jtpio
Copy link
Member

@jtpio jtpio commented Oct 30, 2025

Looking into #205

https://github.com/jupyter-ai-contrib/jupyterlab-ai-commands extracts the tools from jupyterlite-ai and converts them to regular JupyterLab commands.

With this PR, there is now only 2 tools left:

  • discover_commands
  • execute_commands

The prompt is also updated to guide the LLM to use the commands from jupyterlab-ai-commands for file and notebook manipulation.

The tool call UI is also updated to show the command id:

jupyterlite-ai-lab-commands.mp4

@jtpio jtpio added the enhancement New feature or request label Oct 30, 2025
@jtpio jtpio mentioned this pull request Oct 30, 2025
@brichet
Copy link
Collaborator

brichet commented Nov 7, 2025

@jtpio
Copy link
Member Author

jtpio commented Dec 5, 2025

This may still need an iteration to check how diffs should be handled, since jupyterlite-ai exposes some diff settings to the user.

@jtpio jtpio mentioned this pull request Dec 30, 2025
6 tasks
- For other JupyterLab operations (terminal, launcher, UI), use specific keywords like 'terminal', 'launcher', etc.
- IMPORTANT: Always use 'jupyterlab-ai-commands' as the query for file/notebook tasks - this returns a focused set of commands instead of 100+ generic JupyterLab commands
KERNEL PREFERENCE FOR NOTEBOOKS AND CONSOLES:
Copy link
Member Author

Choose a reason for hiding this comment

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

We can have something like this in the prompt for now while waiting for jupyterlab/jupyterlab#18337

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants