anthropic fix
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"activePack": "solid_snake",
|
"activePack": "solid_snake",
|
||||||
"volume": 1.5,
|
"volume": 1.5,
|
||||||
"muted": false,
|
"muted": true,
|
||||||
"enabledCategories": {
|
"enabledCategories": {
|
||||||
"session.start": true,
|
"session.start": true,
|
||||||
"task.acknowledge": true,
|
"task.acknowledge": true,
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
"lastChangelogVersion": "0.64.0",
|
"lastChangelogVersion": "0.64.0",
|
||||||
"defaultProvider": "anthropic",
|
"defaultProvider": "anthropic",
|
||||||
"defaultModel": "claude-opus-4-6",
|
"defaultModel": "claude-opus-4-6",
|
||||||
"defaultThinkingLevel": "medium",
|
"defaultThinkingLevel": "xhigh",
|
||||||
"theme": "matugen",
|
"theme": "matugen",
|
||||||
"lsp": {
|
"lsp": {
|
||||||
"hookMode": "edit_write"
|
"hookMode": "edit_write"
|
||||||
@@ -12,4 +12,4 @@
|
|||||||
"timeoutSeconds": 300,
|
"timeoutSeconds": 300,
|
||||||
"enabled": true
|
"enabled": true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -0,0 +1,14 @@
|
|||||||
|
import type { ExtensionAPI } from "@mariozechner/pi-coding-agent";
|
||||||
|
|
||||||
|
const TARGET = "about pi itself, its SDK, extensions, themes, skills, or TUI";
|
||||||
|
const REPLACEMENT = "about pi, its SDK, extensions, themes, skills, or TUI";
|
||||||
|
|
||||||
|
export default function(pi: ExtensionAPI) {
|
||||||
|
pi.on("before_agent_start", (event, ctx) => {
|
||||||
|
if (ctx.model?.provider !== "anthropic") return;
|
||||||
|
if (!event.systemPrompt.includes(TARGET)) return;
|
||||||
|
return {
|
||||||
|
systemPrompt: event.systemPrompt.replace(TARGET, REPLACEMENT),
|
||||||
|
};
|
||||||
|
});
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user