continue-custom/core/tools
shanevcantwell d80845c403
feat: add tool prompt override support in .continuerc.json (#9314)
* feat: add tool prompt overrides support in YAML model config

Adds per-model tool prompt overrides under chatOptions in YAML config:

```yaml
models:
  - name: my-model
    chatOptions:
      toolPromptOverrides:
        run_terminal_command:
          description: "Custom description"
        view_diff:
          disabled: true
```

This replaces the JSON-only implementation with YAML-only support as
requested by maintainers. The JSON implementation is preserved on the
`feature/tool-prompt-overrides-json` branch for reference.

Changes:
- Add toolOverrideSchema to chatOptionsSchema (packages/config-yaml)
- Add ToolOverride interface and toolPromptOverrides to LLMOptions (core)
- Store and apply overrides in BaseLLM.streamChat()
- Add applyToolOverrides utility with comprehensive tests

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* feat(cli): add tool prompt overrides support for CLI parity

Apply toolPromptOverrides from YAML model config in CLI,
ensuring feature parity with VS Code extension.

- Add applyChatCompletionToolOverrides helper for CLI tool format
- Apply overrides in streamChatResponse before LLM calls
- Support description changes and disabling tools
- Add unit tests for override logic

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* chore: package lock update

* ci: retrigger after hub 502

* refactor: rename toolPromptOverrides to toolOverrides

- Rename property across core, config-yaml, and CLI
- Consolidate ToolOverride type to extend ToolOverrideConfig from
  config-yaml instead of duplicating 7 fields
- Inline record-to-array conversion to match file patterns

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* chore: retrigger CI (clean run)

* chore: revert gui package-lock to main

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
Co-authored-by: Dallin Romney <dallinromney@gmail.com>
2026-02-02 21:55:21 -08:00
..
definitions Merge branch 'main' into agent-skills 2026-01-15 11:39:22 +05:30
implementations fix: use ide.runCommand when Windows host connects to WSL 2026-01-19 10:55:16 -07:00
policies prettier 2025-10-16 19:08:31 -07:00
systemMessageTools fix: remove blank test file 2025-07-29 15:31:57 -07:00
applyToolOverrides.ts feat: add tool prompt override support in .continuerc.json (#9314) 2026-02-02 21:55:21 -08:00
applyToolOverrides.vitest.ts feat: add tool prompt override support in .continuerc.json (#9314) 2026-02-02 21:55:21 -08:00
builtIn.ts add read skill tool 2025-12-30 12:51:16 +05:30
callTool.ts add read skill tool 2025-12-30 12:51:16 +05:30
constants.ts feat: tool call args preprocessing (#7992) 2025-09-30 18:49:29 -07:00
index.ts read skill is a tool definition 2026-01-06 17:31:04 +05:30
mcpToolName.ts fix: sanitize mcp names 2025-08-28 15:12:55 -07:00
mcpToolName.vitest.ts fix: core type error 2025-09-24 17:41:46 -07:00
parseArgs.ts fix: support object-type arguments in tool call parsing 2026-01-21 18:16:12 +08:00
parseArgs.vitest.ts Address comments from @RomneyDa 2025-12-02 20:28:45 +00:00
searchWebGating.vitest.ts fix test lints 2026-01-06 17:58:53 +05:30