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
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
- packages/vscode-webui/src/components/prompt-form/form-editor.tsx - Current mention implementation
- packages/tools/src/index.ts - Tool definitions
- packages/vscode-webui/src/components/prompt-form/context-mention/ - File mention implementation
- packages/vscode-webui/src/components/prompt-form/workflow-mention/ - Workflow mention implementation
🤖 Generated with Pochi