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

推荐订阅源

The Cloudflare Blog
Microsoft Security Blog
Microsoft Security Blog
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
L
LangChain Blog
W
WeLiveSecurity
P
Proofpoint News Feed
月光博客
月光博客
NISL@THU
NISL@THU
L
LINUX DO - 最新话题
Webroot Blog
Webroot Blog
T
Threatpost
Y
Y Combinator Blog
www.infosecurity-magazine.com
www.infosecurity-magazine.com
T
Threat Research - Cisco Blogs
Vercel News
Vercel News
Jina AI
Jina AI
阮一峰的网络日志
阮一峰的网络日志
S
Schneier on Security
J
Java Code Geeks
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
小众软件
小众软件
MyScale Blog
MyScale Blog
N
News and Events Feed by Topic
Stack Overflow Blog
Stack Overflow Blog
有赞技术团队
有赞技术团队
The Hacker News
The Hacker News
Schneier on Security
Schneier on Security
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
Help Net Security
Help Net Security
Recent Announcements
Recent Announcements
S
Security @ Cisco Blogs
C
CXSECURITY Database RSS Feed - CXSecurity.com
S
Securelist
T
The Exploit Database - CXSecurity.com
云风的 BLOG
云风的 BLOG
C
Cisco Blogs
雷峰网
雷峰网
量子位
Google DeepMind News
Google DeepMind News
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
Spread Privacy
Spread Privacy
L
Lohrmann on Cybersecurity
I
Intezer
T
The Blog of Author Tim Ferriss
G
GRAHAM CLULEY
D
DataBreaches.Net
V
Vulnerabilities – Threatpost
P
Privacy & Cybersecurity Law Blog
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
罗磊的独立博客

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 test: trim doctor command hotspots · openclaw/openclaw@c66f16a test: isolate agent auth and spawn hotspots · openclaw/openclaw@9285935 test: stabilize MCP startup disposal race · openclaw/openclaw@dd9d2eb test: merge browser contract server suites · openclaw/openclaw@5817a76 test: narrow ollama provider discovery setup · openclaw/openclaw@a0d9598 build: declare qa-lab aimock runtime dependency · openclaw/openclaw@24431e5 test: speed up safe-bins exec harness · openclaw/openclaw@ee856ab test: preserve tool helpers in embedded runner mocks · openclaw/openclaw@acd86a0 refactor: move memory embeddings into provider plugins · openclaw/openclaw@77e6e4c test: reuse system-run temp fixtures · openclaw/openclaw@7e9ff0f test: trim hotspot wait overhead · openclaw/openclaw@12a59b0 Check: avoid duplicate boundary prep · openclaw/openclaw@baf11b8 test: reduce hotspot fixture overhead · openclaw/openclaw@3a59edd feat(ui): overhaul settings and slash command UX (#67819) thanks @Bun… · openclaw/openclaw@2cfb660 QA Matrix: exit cleanly on failure · openclaw/openclaw@42805d2 QA Matrix: isolate scenario coverage · openclaw/openclaw@7e659e1 Matrix: refresh crypto bootstrap state · openclaw/openclaw@94081d8 QA Lab: add provider registry · openclaw/openclaw@bb7e982 Matrix: add plugin changelog · openclaw/openclaw@4acab55 test: trim more hotspot overhead · openclaw/openclaw@f485311 test: trim remaining hotspot tests · openclaw/openclaw@6ba8626 test: narrow hotspot mocks · openclaw/openclaw@dbc8179 test: isolate gemini embedding request helpers · openclaw/openclaw@cd330f5 test: trim memory and mcp hotspots · openclaw/openclaw@fd48dfa test: slim provider registry mocks · openclaw/openclaw@2e08c77 test: harden Parallels update smoke · openclaw/openclaw@1a98090 feat: default Anthropic to Opus 4.7 · openclaw/openclaw@628b454 fix: harden node-host shell payload mutability checks · openclaw/openclaw@75c551e fix: land node-host approval binding for native binaries (#66731) (th… · openclaw/openclaw@29919bb CI: add daily schedule to CodeQL workflow (#67645) · openclaw/openclaw@69d25f5 fix(gateway): capture config hash after plugin auto-enable to prevent… · openclaw/openclaw@8c11210 fix: repair sanitized replay tool results before send (#67620) (thank… · openclaw/openclaw@c3c7a99 fix: restrict HTML timeout short-circuit to transient statuses · openclaw/openclaw@de129a6 fix: keep TUI watchdog bound to active run (#67401) (thanks @xantorres) · openclaw/openclaw@3525273 Gateway/skills: dedupe skills prefix-match + drop dead fallback on log · openclaw/openclaw@d7f489f Extensions/lmstudio: back off inference preload after consecutive fai… · openclaw/openclaw@b555214 TUI/streaming: add watchdog that resets the activity indicator after … · openclaw/openclaw@f44ab20 Agents/tool-loop: enable unknown-tool stream guard by default · openclaw/openclaw@36ed367 Gateway/skills: invalidate session skills snapshot on config write · openclaw/openclaw@b23d59a fix: classify HTML provider error pages correctly (#67642) (thanks @s… · openclaw/openclaw@e588e90 fix(skills): remove unused model-usage import (#67641) · openclaw/openclaw@55f05df docs(changelog): credit codex fix superseded PRs · openclaw/openclaw@e485f24 fix(openai-codex): normalize stale transport metadata in resolution a… · openclaw/openclaw@90801ba CI: pin Docker-related GitHub Actions (#67632) · openclaw/openclaw@f697b01 Android: modernize WebView and discovery API usage (#67627) · openclaw/openclaw@44a6e50 fix(deps): bump hono to 4.12.14 and @hono/node-server to 1.19.14 (GHS… · openclaw/openclaw@fbccc18 fix(deps): bump dompurify to 3.4.0 (#67614) · openclaw/openclaw@2c2dc00 CI: add explicit permissions to all workflow jobs (fixes code-scannin… · openclaw/openclaw@01b7516 fix: register bundled TTS providers and route overrides correctly (#6… · openclaw/openclaw@6ea3cdd fix: align host tilde paths with OS home (#62804) (thanks @stainlu) · openclaw/openclaw@ecfaf64 fix: flush creds queue before reconnect socket open (#67464) (thanks … · openclaw/openclaw@405c63f fix: strip standalone <function> tool call tags from visible text (#6… · openclaw/openclaw@78df859 fix(agents): preserve cli session metadata before transcript persist … · openclaw/openclaw@898fd04 docs(changelog): move cli transcript entry · openclaw/openclaw@c1817c6 fix(agents): normalize cli transcript api field · openclaw/openclaw@3a3fae0 docs(changelog): note cli transcript persistence · openclaw/openclaw@6c343f1 fix(agents): persist cli transcript turns · openclaw/openclaw@b8ef507 fix(msteams): harden security-sensitive flows (#65841) · openclaw/openclaw@c56b56e [Dashboard] Fix exec approval modal overflow for long command content… · openclaw/openclaw@053c5b0 Docs: remove QA changelog entry · openclaw/openclaw@7fd5771 QA: fix private runtime source loading (#67428) · openclaw/openclaw@d5933af docs(gateway): correct protocol.md schema path, hello-ok example, aut… · openclaw/openclaw@489404d CI: pin Node 22 runners to 22.18.0 · openclaw/openclaw@4ffa621 models.authStatus: normalize provider ids + tighten env-backed escape… · openclaw/openclaw@f2fdb9d Update CHANGELOG.md · openclaw/openclaw@7694a92 test(parallels): clean up npm update guard jobs · openclaw/openclaw@045ea7b Plugins: prefer scanDir override paths · openclaw/openclaw@b2974da fix(dreaming): default storage.mode to "separate" so phase blocks sto… · openclaw/openclaw@8c392f0 fix(memory-core): skip dreaming transcript ingestion via session stor… · openclaw/openclaw@a1b01f0 fix: dedupe replayed exec.finished node events (#67281) · openclaw/openclaw@5dcf526
feat: add core session goals (#87469) · openclaw/openclaw@a509c48
steipete · 2026-05-30 · via Recent Commits to openclaw:main
1+

---

2+

doc-schema-version: 1

3+

summary: "Session goals: durable per-session objectives, /goal controls, model goal tools, token budgets, and TUI status"

4+

read_when:

5+

- You want OpenClaw to keep one objective visible across a long session

6+

- You need to pause, resume, block, complete, or clear a session goal

7+

- You want to understand the get_goal, create_goal, and update_goal tools

8+

- You want to see how goals appear in the TUI

9+

title: "Goal"

10+

---

11+12+

# Goal

13+14+

A **goal** is one durable objective attached to the current OpenClaw session.

15+

It gives the agent and the operator a shared target for long-running work,

16+

without turning that target into a background task, reminder, cron job, or

17+

standing order.

18+19+

Goals are session state. They move with the session key, survive process

20+

restarts, show up in `/goal`, are available to the model through the goal

21+

tools, and appear in the TUI footer when the active session has one.

22+23+

## Quick start

24+25+

Set a goal:

26+27+

```text

28+

/goal start get CI green for PR 87469 and push the fix

29+

```

30+31+

Check it:

32+33+

```text

34+

/goal

35+

```

36+37+

Pause it when work is intentionally waiting:

38+39+

```text

40+

/goal pause waiting for CI

41+

```

42+43+

Resume it:

44+45+

```text

46+

/goal resume

47+

```

48+49+

Mark it complete:

50+51+

```text

52+

/goal complete pushed and verified

53+

```

54+55+

Clear it:

56+57+

```text

58+

/goal clear

59+

```

60+61+

## What goals are for

62+63+

Use a goal when a session has a concrete outcome that should remain visible

64+

across many turns:

65+66+

- A PR closeout: fix, verify, autoreview, push, and open or update the PR.

67+

- A debug run: reproduce the bug, identify the owning surface, patch, and prove

68+

the fix.

69+

- A docs pass: read the relevant docs, write the new page, cross-link it, and

70+

verify the docs build.

71+

- A maintenance task: inspect current state, make bounded changes, run the right

72+

checks, and report what changed.

73+74+

A goal is not a task queue. Use [Task Flow](/automation/taskflow),

75+

[tasks](/automation/tasks), [cron jobs](/automation/cron-jobs), or

76+

[standing orders](/automation/standing-orders) when work should run detached,

77+

repeat on a schedule, fan out into managed sub-work, or persist as a policy.

78+79+

## Command reference

80+81+

`/goal` without arguments prints the current goal summary:

82+83+

```text

84+

Goal

85+

Status: active

86+

Objective: get CI green for PR 87469 and push the fix

87+

Tokens used: 12k

88+

Token budget: 12k/50k

89+90+

Commands: /goal pause, /goal complete, /goal clear

91+

```

92+93+

Commands:

94+95+

- `/goal` or `/goal status` shows the current goal.

96+

- `/goal start <objective>` creates a new goal for the current session.

97+

- `/goal set <objective>` and `/goal create <objective>` are aliases for

98+

`start`.

99+

- `/goal pause [note]` pauses an active goal.

100+

- `/goal resume [note]` resumes a paused, blocked, usage-limited, or

101+

budget-limited goal.

102+

- `/goal complete [note]` marks the goal achieved.

103+

- `/goal done [note]` is an alias for `complete`.

104+

- `/goal block [note]` marks the goal blocked.

105+

- `/goal blocked [note]` is an alias for `block`.

106+

- `/goal clear` removes the goal from the session.

107+108+

Only one goal can exist on a session at a time. Starting a second goal fails

109+

until the current one is cleared.

110+111+

## Statuses

112+113+

Goals use a small status set:

114+115+

- `active`: the session is pursuing the goal.

116+

- `paused`: the operator paused the goal; `/goal resume` makes it active again.

117+

- `blocked`: the agent or operator reported a real blocker; `/goal resume`

118+

makes it active again when new information or state is available.

119+

- `budget_limited`: the configured token budget was reached; `/goal resume`

120+

restarts pursuit from the same objective.

121+

- `usage_limited`: reserved for usage-limit stop states; `/goal resume`

122+

restarts pursuit when allowed.

123+

- `complete`: the goal was achieved. Complete goals are terminal; use

124+

`/goal clear` before starting another goal.

125+126+

`/new` and `/reset` clear the current session goal because they intentionally

127+

start fresh session context.

128+129+

## Token budgets

130+131+

Goals can have an optional positive token budget. The budget is stored with the

132+

goal and measured from the session's fresh token count at creation time. If the

133+

current session only has stale or unknown token usage when the goal starts,

134+

OpenClaw waits for the next fresh session token snapshot and uses that as the

135+

baseline, so tokens spent before the goal existed are not charged to the goal.

136+137+

When token usage reaches the budget, the goal changes to `budget_limited`. This

138+

does not delete the goal or erase the objective. It tells the operator and the

139+

agent that the goal is no longer actively being pursued until it is resumed or

140+

cleared.

141+142+

Token budgets are a session-goal guardrail, not a billing cap. Provider quota,

143+

cost reporting, and context-window behavior still use the normal OpenClaw

144+

usage and model controls.

145+146+

## Model tools

147+148+

OpenClaw exposes three core goal tools to agent harnesses:

149+150+

- `get_goal`: read the current session goal, including status, objective, token

151+

usage, and token budget.

152+

- `create_goal`: create a goal only when the user, system, or developer

153+

instructions explicitly request one. It fails if the session already has a

154+

goal.

155+

- `update_goal`: mark the goal `complete` or `blocked`.

156+157+

The model cannot silently pause, resume, clear, or replace a goal. Those are

158+

operator/session controls through `/goal` and reset commands. This keeps the

159+

agent from quietly moving the target while preserving a clean path for the

160+

agent to report achievement or a genuine blocker.

161+162+

The `update_goal` tool should mark a goal `complete` only when the objective is

163+

actually achieved. It should mark a goal `blocked` only when the same blocking

164+

condition has repeated and the agent cannot make meaningful progress without

165+

new user input or an external-state change.

166+167+

## TUI

168+169+

The TUI keeps the active session's goal visible in the footer next to the

170+

agent, session, model, run controls, and token counts.

171+172+

Footer examples:

173+174+

- `Pursuing goal (12k/50k)` for an active goal with a token budget.

175+

- `Goal paused (/goal resume)` for a paused goal.

176+

- `Goal blocked (/goal resume)` for a blocked goal.

177+

- `Goal hit usage limits (/goal resume)` for a usage-limited goal.

178+

- `Goal unmet (50k/50k)` for a budget-limited goal.

179+

- `Goal achieved (42k)` for a completed goal.

180+181+

The footer is intentionally compact. Use `/goal` for the full objective, note,

182+

token budget, and available commands.

183+184+

## Channel behavior

185+186+

The `/goal` command works in command-capable OpenClaw sessions, including the

187+

TUI and chat surfaces that permit text commands. Goal state is attached to the

188+

session key, not the transport. If two surfaces use the same session, they see

189+

the same goal.

190+191+

Goal state is not a delivery directive. It does not force replies through a

192+

channel, change queue behavior, approve tools, or schedule work.

193+194+

## Troubleshooting

195+196+

`Goal error: goal already exists` means the session already has a goal. Use

197+

`/goal` to inspect it, `/goal complete` if it is done, or `/goal clear` before

198+

starting a different objective.

199+200+

`Goal error: goal not found` means the session has no goal yet. Start one with

201+

`/goal start <objective>`.

202+203+

`Goal error: goal is already complete` means the goal is terminal. Clear it

204+

before starting or resuming another objective.

205+206+

If token usage looks like `0` or stale, the active session may not have a fresh

207+

token snapshot yet. Usage refreshes as OpenClaw records session usage and

208+

transcript-derived totals.

209+210+

## Related

211+212+

- [Slash commands](/tools/slash-commands)

213+

- [TUI](/web/tui)

214+

- [Session tool](/concepts/session-tool)

215+

- [Compaction](/concepts/compaction)

216+

- [Task Flow](/automation/taskflow)

217+

- [Standing orders](/automation/standing-orders)