惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

小众软件
小众软件
博客园_首页
M
MIT News - Artificial intelligence
雷峰网
雷峰网
GbyAI
GbyAI
博客园 - 叶小钗
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
V
V2EX
S
SegmentFault 最新的问题
H
Help Net Security
Apple Machine Learning Research
Apple Machine Learning Research
H
Hackread – Cybersecurity News, Data Breaches, AI and More
博客园 - 【当耐特】
V
Visual Studio Blog
月光博客
月光博客
G
Google Developers Blog
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
腾讯CDC
云风的 BLOG
云风的 BLOG
美团技术团队
Microsoft Azure Blog
Microsoft Azure Blog
A
About on SuperTechFans
有赞技术团队
有赞技术团队

Recent Commits to openclaw:main

test: merge chat side-result checks · openclaw/openclaw@ddd2c2a test: merge cron history checks · openclaw/openclaw@f7eb746 test: merge responsive navigation shell checks · openclaw/openclaw@c2e4b47 docs(changelog): add codex oauth fixes · openclaw/openclaw@628e6cd test: merge navigation routing cases · openclaw/openclaw@5d8cecb Tests: mock channel registry bundled fallback · openclaw/openclaw@2b08233 Secrets: avoid broad web search discovery for single plugin config · openclaw/openclaw@a464f59 test: merge config view browser checks · openclaw/openclaw@20cf511 fix(status): align oauth health with runtime · openclaw/openclaw@eed7116 feat: add macOS screen snapshots for monitor preview (#67954) thanks … · openclaw/openclaw@f377db1 fix: report shared auth scopes in hello-ok (#67810) thanks @BunsDev · openclaw/openclaw@0b6c39b Auto-reply: avoid eager bundled route fallback · openclaw/openclaw@3ea1bf4 Tests: narrow session binding contract setup · openclaw/openclaw@54e4e16 fix(macOS): enable undo/redo in webchat composer text input (#34962) · openclaw/openclaw@00951dc Tests: speed up channel setup promotion · openclaw/openclaw@82b529a Docs: refresh agent instructions · openclaw/openclaw@5775fe2 fix(auth): serialize OAuth refresh across agents to fix #26322 (#67876) · openclaw/openclaw@8e79080 test: allow ollama public surface boundary test · openclaw/openclaw@7d4f1a6 Docs: add test performance guardrails · openclaw/openclaw@89706d3 Tests: restore context-engine usage proof · openclaw/openclaw@e4c4f95 Tests: slim context engine runtime coverage · openclaw/openclaw@74c198f ci: retry failed custom checkouts · openclaw/openclaw@0ee5baf test: trim duplicate provider auth onboarding cases · openclaw/openclaw@1ffc02e matrix: fix sessions_spawn --thread subagent session spawning (#67643) · openclaw/openclaw@1ce2596 test: reduce auth choice fixture churn · openclaw/openclaw@857b9cd test: mock health status config boundaries · openclaw/openclaw@9d5ab4a test: mock onboard config io boundary · openclaw/openclaw@299694d test: mock legacy state plugin boundaries · openclaw/openclaw@2713089 test: mock channel install boundaries · openclaw/openclaw@b945248 test: mock doctor preview channel boundaries · openclaw/openclaw@b1a3ad4
refactor: shorten agent tool descriptions · openclaw/open...
steipete · 2026-05-17 · via Recent Commits to openclaw:main

@@ -1,83 +1,77 @@

1-

export const EXEC_TOOL_DISPLAY_SUMMARY = "Run shell commands that start now.";

2-

export const PROCESS_TOOL_DISPLAY_SUMMARY = "Inspect and control running exec sessions.";

3-

export const CRON_TOOL_DISPLAY_SUMMARY = "Schedule cron jobs, reminders, and wake events.";

4-

export const SESSIONS_LIST_TOOL_DISPLAY_SUMMARY =

5-

"List visible sessions with mailbox filters and optional previews.";

6-

export const SESSIONS_HISTORY_TOOL_DISPLAY_SUMMARY =

7-

"Read sanitized message history for a visible session.";

8-

export const SESSIONS_SEND_TOOL_DISPLAY_SUMMARY =

9-

"Send a message to another visible session or configured agent.";

10-

export const SESSIONS_SPAWN_TOOL_DISPLAY_SUMMARY = "Spawn sub-agent or ACP sessions.";

11-

export const SESSIONS_SPAWN_SUBAGENT_TOOL_DISPLAY_SUMMARY = "Spawn sub-agent sessions.";

12-

export const SESSION_STATUS_TOOL_DISPLAY_SUMMARY = "Show session status, usage, and model state.";

13-

export const UPDATE_PLAN_TOOL_DISPLAY_SUMMARY = "Track a short structured work plan.";

1+

export const EXEC_TOOL_DISPLAY_SUMMARY = "Run shell now.";

2+

export const PROCESS_TOOL_DISPLAY_SUMMARY = "Inspect/control exec sessions.";

3+

export const CRON_TOOL_DISPLAY_SUMMARY = "Schedule reminders, cron, wake events.";

4+

export const SESSIONS_LIST_TOOL_DISPLAY_SUMMARY = "List visible sessions; filters/previews.";

5+

export const SESSIONS_HISTORY_TOOL_DISPLAY_SUMMARY = "Read sanitized session history.";

6+

export const SESSIONS_SEND_TOOL_DISPLAY_SUMMARY = "Message session or configured agent.";

7+

export const SESSIONS_SPAWN_TOOL_DISPLAY_SUMMARY = "Spawn subagent or ACP session.";

8+

export const SESSIONS_SPAWN_SUBAGENT_TOOL_DISPLAY_SUMMARY = "Spawn subagent session.";

9+

export const SESSION_STATUS_TOOL_DISPLAY_SUMMARY = "Show session status/model/usage.";

10+

export const UPDATE_PLAN_TOOL_DISPLAY_SUMMARY = "Track short work plan.";

14111512

export function describeSessionsListTool(): string {

1613

return [

17-

"List visible sessions with optional filters for kind, label, agentId, search, recent activity, derived titles, and last-message previews.",

18-

"Use this to discover a target session before calling sessions_history or sessions_send.",

14+

"List visible sessions; filter by kind, label, agentId, search, activity.",

15+

"Use before sessions_history or sessions_send target selection.",

1916

].join(" ");

2017

}

21182219

export function describeSessionsHistoryTool(): string {

2320

return [

24-

"Fetch sanitized message history for a visible session.",

25-

"Supports limits and optional tool messages; use this to inspect another session before replying, debugging, or resuming work.",

21+

"Fetch sanitized history for visible session.",

22+

"Use before replying, debugging, resuming; supports limits/tool messages.",

2623

].join(" ");

2724

}

28252926

export function describeSessionsSendTool(): string {

3027

return [

31-

"Send a message into another visible session by sessionKey or label, or to a configured agent by agentId.",

32-

"Thread-scoped chat sessions are rejected; target the parent channel session for inter-agent coordination.",

33-

"Missing configured agent main sessions are created before send; waits for the target run and returns the updated assistant reply when available.",

28+

"Send message to visible session by sessionKey/label, or configured agent by agentId.",

29+

"Thread-scoped chats rejected; target parent channel session.",

30+

"Creates missing configured-agent main session; waits for reply when available.",

3431

].join(" ");

3532

}

36333734

export function describeSessionsSpawnTool(options?: {

3835

acpAvailable?: boolean;

3936

threadAvailable?: boolean;

4037

}): string {

38+

const runtimeDescription =

39+

options?.acpAvailable === false

40+

? 'Spawn clean child session; default `runtime="subagent"`.'

41+

: 'Spawn clean child session; default `runtime="subagent"`; set `runtime="acp"` explicitly for ACP.';

4142

const baseDescription = [

42-

'Spawn a clean isolated session by default with `runtime="subagent"` or `runtime="acp"`.',

43+

runtimeDescription,

4344

options?.threadAvailable

44-

? '`mode="run"` is one-shot and `mode="session"` is persistent and thread-bound.'

45-

: '`mode="run"` is one-shot background work.',

46-

"Subagents inherit the parent workspace directory automatically.",

47-

"Native subagents receive the delegated task in their first visible `[Subagent Task]` message.",

48-

'For native subagents only, set `context="fork"` when the child needs the current transcript context; otherwise omit it or use `context="isolated"`.',

49-

"Use this when the work should happen in a fresh child session instead of the current one.",

45+

? '`mode="run"` one-shot; `mode="session"` persistent/thread-bound.'

46+

: '`mode="run"` one-shot background work.',

47+

"Subagents inherit parent workspace.",

48+

"Native subagents get task in first visible `[Subagent Task]` message.",

49+

'Native only: `context="fork"` only when child needs current transcript; else omit or `isolated`.',

50+

"Use for fresh child-session work.",

5051

];

5152

if (options?.acpAvailable === false) {

52-

return baseDescription

53-

.map((line) =>

54-

line.replace(

55-

' with `runtime="subagent"` or `runtime="acp"`',

56-

" with the native subagent runtime",

57-

),

58-

)

59-

.join(" ");

53+

return baseDescription.join(" ");

6054

}

6155

return [

6256

...baseDescription.slice(0, 3),

63-

'`runtime="acp"` is for external ACP harness ids such as codex, claude, gemini, or opencode, or agents configured with `agents.list[].runtime.type="acp"`.',

57+

'`runtime="acp"` for ACP harness ids: codex, claude, gemini, opencode, or agent ACP runtime config.',

6458

...baseDescription.slice(3),

6559

].join(" ");

6660

}

67616862

export function describeSessionStatusTool(): string {

6963

return [

70-

"Show a /status-equivalent session status card for the current or another visible session, including usage, time, cost when available, and linked background task context.",

71-

'Use `sessionKey="current"` for the current session; do not use UI/client labels such as `openclaw-tui` as session keys.',

72-

"Optional `model` sets a per-session model override; `model=default` resets overrides.",

73-

"Use this for questions like what model is active or how a session is configured.",

64+

"Show /status-like card for current/visible session: model, usage, time, cost, tasks.",

65+

'Use `sessionKey="current"` for current session; UI labels like `openclaw-tui` are not keys.',

66+

"`model` sets session override; `model=default` resets.",

67+

"Use for active model/session config questions.",

7468

].join(" ");

7569

}

76707771

export function describeUpdatePlanTool(): string {

7872

return [

79-

"Update the current structured work plan for this run.",

80-

"Use this for non-trivial multi-step work so the plan stays current while execution continues.",

81-

"Keep steps short, mark at most one step as `in_progress`, and skip this tool for simple one-step tasks.",

73+

"Update current run plan.",

74+

"Use for non-trivial multi-step work; keep plan current while executing.",

75+

"Short steps; max one `in_progress`; skip for simple one-step work.",

8276

].join(" ");

8377

}