diff options
| author | Paul Buetow <paul@buetow.org> | 2026-04-11 22:48:06 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-04-11 22:48:06 +0300 |
| commit | 1c45c52c722f562c39c024f2a09fa37f57337d8a (patch) | |
| tree | 1128c3529a3f473a7caa51e3abd12c887e580624 /pi/agent/extensions | |
| parent | dfbd14c57697b02af04f37252aa500fecaa37d6a (diff) | |
remove the path
Diffstat (limited to 'pi/agent/extensions')
| -rw-r--r-- | pi/agent/extensions/agent-plan-mode/README.md | 16 | ||||
| -rw-r--r-- | pi/agent/extensions/agent-plan-mode/utils.ts | 4 | ||||
| -rw-r--r-- | pi/agent/extensions/nemotron-tool-repair/index.ts | 6 |
3 files changed, 13 insertions, 13 deletions
diff --git a/pi/agent/extensions/agent-plan-mode/README.md b/pi/agent/extensions/agent-plan-mode/README.md index 5ea23a1..4890115 100644 --- a/pi/agent/extensions/agent-plan-mode/README.md +++ b/pi/agent/extensions/agent-plan-mode/README.md @@ -26,7 +26,7 @@ todo list. - `/task-update <selector> :: <new description>` Replace a task description. - `/task-modify <selector> :: <mods>` - Apply `~/go/bin/ask modify` arguments to a task. + Apply `ask modify` arguments to a task. - `/tasks` Show started and `+READY` tasks for the current repo. - `/task-next [run]` @@ -40,10 +40,10 @@ todo list. ## Rules -- all task operations go through `~/go/bin/ask`, never raw `task` -- tasks are scoped to the current git repo through the `~/go/bin/ask` wrapper +- all task operations go through `ask`, never raw `task` +- tasks are scoped to the current git repo through the `ask` wrapper - use alias IDs for task references -- `~/go/bin/ask add` prints `created task <alias-id>`, and subsequent task operations should keep using that alias ID +- `ask add` prints `created task <alias-id>`, and subsequent task operations should keep using that alias ID - planning mode is read-only by design - the extracted plan is session-local, so `/plan`, the planning prompt, `/plan-create-tasks`, and `/plan-exit` should happen in the same interactive @@ -160,13 +160,13 @@ Analyze the repo and give me a Plan: for the next implementation slice. ## Notes And Limits - Planning mode is read-only by design. -- All task operations still go through `~/go/bin/ask`, never raw `task`. -- `~/go/bin/ask` uses subcommand syntax. It is not a natural-language - task assistant and should never be called like `~/go/bin/ask agent-task-management ...`. +- All task operations still go through `ask`, never raw `task`. +- `ask` uses subcommand syntax. It is not a natural-language + task assistant and should never be called like `ask agent-task-management ...`. - Execution mode injects the current task back into the agent prompt so the model works against the real task rather than an in-memory checklist. - Execution mode treats the focused task as the already-selected starting - point and blocks repeated identical `~/go/bin/ask info <id>` lookups until the + point and blocks repeated identical `ask info <id>` lookups until the agent has moved on to repo inspection, implementation, tests, review, or a different command. - Full `/plan` state is not meant to be passed across unrelated one-shot `pi -p` diff --git a/pi/agent/extensions/agent-plan-mode/utils.ts b/pi/agent/extensions/agent-plan-mode/utils.ts index f388dff..8652333 100644 --- a/pi/agent/extensions/agent-plan-mode/utils.ts +++ b/pi/agent/extensions/agent-plan-mode/utils.ts @@ -1,12 +1,12 @@ /** Shown in prompts/docs for Pi skills and extensions (task CLI). */ -export const DO_CLI_REF = "~/go/bin/ask"; +export const DO_CLI_REF = "ask"; export function resolveDoExecutable(): string { return `${process.env.HOME ?? ""}/go/bin/ask`; } /** Full path and bare name for `ask`; legacy `do` prefixes still match old prompts/scripts. */ -const DO_INVOCATION_PREFIXES = ["~/go/bin/ask", "ask", "~/go/bin/do", "do"] as const; +const DO_INVOCATION_PREFIXES = ["ask", "ask", "~/go/bin/do", "do"] as const; /** Recognize task CLI invocations (prefer `ask`; `do` kept for backward compatibility). */ export function matchDoInvocation(trimmed: string): { rest: string } | undefined { diff --git a/pi/agent/extensions/nemotron-tool-repair/index.ts b/pi/agent/extensions/nemotron-tool-repair/index.ts index 3eb1e87..9bb8f94 100644 --- a/pi/agent/extensions/nemotron-tool-repair/index.ts +++ b/pi/agent/extensions/nemotron-tool-repair/index.ts @@ -36,15 +36,15 @@ Additional tool-use discipline for this model: - Do not emit example tool-call markup or pseudo-tool syntax for the user to read. - Emit at most one tool invocation at a time, then wait for the tool result. - After a tool result, continue from that result instead of restating the plan. -- There is no "submit" tool. When your task is complete, respond with your final answer directly. If you are working on a tracked task, mark it done via bash: ~/go/bin/ask done <id>. +- There is no "submit" tool. When your task is complete, respond with your final answer directly. If you are working on a tracked task, mark it done via bash: ask done <id>. `.trim(); // Qwen Coder models are trained on agent frameworks that include a "submit" tool // as a task-completion signal. Since no such tool exists here, calling it causes -// a "Tool submit not found" error. Redirect to a final answer or ~/go/bin/ask done instead. +// a "Tool submit not found" error. Redirect to a final answer or ask done instead. const QWEN_TOOL_DISCIPLINE = ` Additional tool-use discipline for this model: -- There is no "submit" tool. When your task is complete, respond with your final answer directly. If you are working on a tracked task, mark it done via bash: ~/go/bin/ask done <id>. +- There is no "submit" tool. When your task is complete, respond with your final answer directly. If you are working on a tracked task, mark it done via bash: ask done <id>. `.trim(); interface FileModelConfig { |
