TabbyML / pochi

Home Page:https://docs.getpochi.com

Repository from Github https://github.comTabbyML/pochiRepository from Github https://github.comTabbyML/pochi

Add input intellisense for tool names and symbols in prompt box

wsxiaoys opened this issue · comments

Feature Description

I'd like to request a feature to add input intellisense/auto-completion support for tool names and symbols in the Pochi prompt input box

Image

It would be helpful to also have autocomplete for:

  • Tool names when referencing them in prompts
  • Symbol names for better discoverability

Implementation Details

Based on my analysis of the codebase, Pochi already has a robust autocomplete system using:

  • @tiptap/extension-mention for mentions
  • @tiptap/suggestion for suggestion handling
  • fuzzy search implementation for matching items

The tool names are defined in packages/tools/src/index.ts in the ClientTools object and are already categorized by permissions in ToolsByPermission.

Example Usage

When a user types `read`, suggestions would appear:

  • `readFile` - Request to read the contents of a file at the specified path

Related Code References

🤖 Generated with Pochi