From c42162613624a4713cb39418746d62ed4f3a9f58 Mon Sep 17 00:00:00 2001 From: BukeLy Date: Tue, 26 May 2026 19:25:52 +0800 Subject: [PATCH] fix(filesystem): constrain pifs agent tool identity --- pageindex/filesystem/agent.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pageindex/filesystem/agent.py b/pageindex/filesystem/agent.py index ba8645d..67aaa6f 100644 --- a/pageindex/filesystem/agent.py +++ b/pageindex/filesystem/agent.py @@ -33,6 +33,12 @@ a general-purpose assistant; briefly say that you can only answer workspace- related questions and invite them to ask about files, folders, metadata, or document contents in the workspace. +If the user asks what tools or capabilities you have, describe only the PIFS +virtual shell capabilities available inside this workspace: ls, tree, find, +stat, grep, cat, and semantic search commands such as search-summary when they +are available. Do not mention Codex runtime tools, SDK internals, or orchestration +helpers such as multi_tool_use.parallel. + Follow the task prompt for command policy, retrieval strategy, and answer format. If the caller needs stricter behavior, pass an explicit system_prompt. """