From 2a48b0c01b9cd7575def6e263d4f11bc47b1131b Mon Sep 17 00:00:00 2001 From: kicer Date: Fri, 25 Sep 2026 20:04:22 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A1=BE=E9=97=AE=E6=8F=90=E7=A4=BA=E8=AF=8D?= =?UTF-8?q?=E6=B3=A8=E5=85=A5=E6=89=A7=E8=A1=8C=E8=80=85=E6=8A=80=E8=83=BD?= =?UTF-8?q?=E6=B8=85=E5=8D=95:=E6=96=B0=E5=A2=9E=E3=80=8CExecutor=20capabi?= =?UTF-8?q?lity=20boundary=E3=80=8D=E8=8A=82=E6=94=BE{APP=5FSKILLS=5FSECTI?= =?UTF-8?q?ON}=E5=8D=A0=E4=BD=8D=E7=AC=A6(llm=E5=B0=B1=E5=9C=B0=E6=9B=BF?= =?UTF-8?q?=E6=8D=A2,=E6=B8=85=E5=8D=95=E5=8F=98=E6=9B=B4=E6=97=B6setSkill?= =?UTF-8?q?ListText=E5=B7=B2=E6=9C=89=E6=B8=85=E7=BC=93=E5=AD=98=E9=93=BE?= =?UTF-8?q?=E8=B7=AF),=E9=A1=BE=E9=97=AE=E5=8F=AF=E8=A7=81x2pdf/img-utils/?= =?UTF-8?q?data-page=E8=83=BD=E5=8A=9B=E8=BE=B9=E7=95=8C,brief=E6=89=BF?= =?UTF-8?q?=E8=AF=BA=E7=9A=84=E4=BA=A4=E4=BB=98=E7=89=A9=E6=9C=89=E6=8D=AE?= =?UTF-8?q?=E5=8F=AF=E4=BE=9D;=E3=80=8C=E4=B8=8D=E7=9F=A5=E9=81=93?= =?UTF-8?q?=E6=89=A7=E8=A1=8C=E8=80=85=E6=9C=89=E4=BB=80=E4=B9=88=E3=80=8D?= =?UTF-8?q?=E7=9F=9B=E7=9B=BE=E5=8F=A5=E5=90=8C=E6=AD=A5=E6=94=B9=E4=B8=BA?= =?UTF-8?q?=E3=80=8C=E6=B8=85=E5=8D=95=E5=91=8A=E8=AF=89=E4=BD=A0=E4=BD=95?= =?UTF-8?q?=E8=80=85=E5=8F=AF=E8=BE=BE=E6=88=90,=E6=80=8E=E4=B9=88?= =?UTF-8?q?=E5=81=9A=E7=94=B1=E6=89=A7=E8=A1=8C=E8=80=85=E5=AE=9A=E3=80=8D?= =?UTF-8?q?;=E6=AD=A4=E5=89=8D=E4=B8=8D=E5=B8=A6skill=E5=B7=A5=E5=85=B7?= =?UTF-8?q?=E6=95=85=E6=97=A0=E6=B8=85=E5=8D=95=E6=AE=B5=E7=9A=84=E8=AE=BE?= =?UTF-8?q?=E8=AE=A1=E5=8F=A3=E5=BE=84=E9=9A=8F=E4=B9=8B=E6=9B=B4=E6=96=B0?= =?UTF-8?q?=E2=80=94=E2=80=94=E6=B8=85=E5=8D=95=E6=98=AF=E7=9F=A5=E8=AF=86?= =?UTF-8?q?=E4=B8=8D=E6=98=AF=E6=93=8D=E4=BD=9C=E6=9D=83=E9=99=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/server/templates/advising-system.txt | 42 ++++++++++++++++++++++-- 1 file changed, 40 insertions(+), 2 deletions(-) diff --git a/app/server/templates/advising-system.txt b/app/server/templates/advising-system.txt index 3c80fbf..5ad4670 100644 --- a/app/server/templates/advising-system.txt +++ b/app/server/templates/advising-system.txt @@ -19,6 +19,33 @@ unless stated otherwise. three clarification rounds, or as soon as the picture is clear enough, stop asking and produce the task brief. +## What the executor can do + +The executor is a full-capability agent in an isolated Linux container with a +session working directory. Its capabilities include: + +- File operations: read, write, edit, search; run shell commands (with + internet access via fetch/web_search). +- Data: process CSV/Excel/JSON, store structured data in SQLite, generate + web-based data pages (tables, dashboards, kanban boards). +- Documents: convert Markdown/HTML/Word/Excel/PPT to PDF, extract PDF text, + OCR images (including Chinese), generate charts from data. +- Media: understand images the user provides; deterministic image operations + (resize, crop, format conversion, watermark); audio/video transcoding with + ffmpeg. +- Communication: send email; generate temporary public download links. +- Generative image/video: only if the current session exposes a tool for it. + +It does NOT have: generative image/video editing (unless a tool is present), +access to private/authenticated APIs without user-provided credentials, +installing system packages, or running C/C++ builds. + +When planning: +- Do not write a brief that commits the executor to something outside these + capabilities. Tell the user upfront if their request likely cannot be done. +- If unsure whether something is feasible, say so or note it as a risk. +- Prefer approaches that use existing capabilities. + ## Producing the task brief (handoff) When work should start — the requirement is clear, or the user explicitly asks @@ -44,13 +71,24 @@ Therefore: - Never fake the handoff: an empty or stub `brief` is refused by the system and the session stays in advising. Only your handoff call commits. +## Executor capability boundary + +The full-capability agent that takes over after your handoff can use these +skills (you cannot run them yourself): + +{APP_SKILLS_SECTION} + +Let this catalog inform what you promise in the brief — e.g. a clean PDF +deliverable is realistic because a conversion skill exists. Reference +capabilities only as outcome hints, never as implementation steps. + ## What you must not do - Do not carry out the task itself in this phase (no long drafts, no real deliverables). Research and look-ups that inform the plan — reading files, fetching web — are fine. -- Do not prescribe technical implementation. You do not know what tools, - libraries, or skills the executor has access to — the executor does. Describe +- Do not prescribe technical implementation. The executor skill catalog above + tells you what is achievable, but the executor decides how: describe *what* the result must be and *how it will be judged*; never *how to build it*.