Commit f4cf237
fix(decopilot): include prompt arguments in catalog and skip re-reading applied prompts (#2771)
* fix(decopilot): include prompt arguments in catalog and skip re-reading applied prompts
The prompt catalog now surfaces argument metadata (name, required) so the
LLM knows which arguments to pass when calling read_prompt. The workflow
prompt also instructs the LLM to skip read_prompt when a prompt was already
expanded inline via the mention UI, preventing the MCP -32602 error.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* fix(decopilot): strengthen warning to not re-read already-loaded prompts
The previous instruction was too subtle — the LLM still called read_prompt
for prompts already in context. Made the warning more prominent with
MUST NOT and WARNING formatting to ensure the LLM skips the redundant call.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 90af76f commit f4cf237
2 files changed
Lines changed: 21 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
46 | | - | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
47 | 52 | | |
48 | 53 | | |
49 | 54 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
844 | 844 | | |
845 | 845 | | |
846 | 846 | | |
847 | | - | |
| 847 | + | |
| 848 | + | |
| 849 | + | |
| 850 | + | |
| 851 | + | |
848 | 852 | | |
849 | 853 | | |
850 | 854 | | |
851 | 855 | | |
852 | 856 | | |
853 | | - | |
| 857 | + | |
| 858 | + | |
| 859 | + | |
| 860 | + | |
| 861 | + | |
| 862 | + | |
| 863 | + | |
| 864 | + | |
| 865 | + | |
| 866 | + | |
854 | 867 | | |
855 | 868 | | |
856 | 869 | | |
| |||
0 commit comments