openclaw/docs/cli
Peter Steinberger cf4cb0ac85
feat(agents): report per-run stats (code-mode engagement, round trips, cost) in agent JSON envelopes (#114688)
* feat(agents): add per-run stats to embedded agent run meta

Adds codeModeEngaged, assistantTurns, bridgeCalls, and costUsd to
EmbeddedAgentRunMeta.agentMeta and mirrors them on the agent exec --json
envelope. Code-mode engagement is stamped from the tool-surface truth,
round trips accumulate across attempts beside usage, bridge counts come
from the run's tool-search catalog counters, and cost reuses the shared
model pricing helpers (cache tiers included, omitted without cost data).

* fix(agents): accumulate bridge call counts across run attempts

Attempt cleanup clears the per-attempt tool-search catalog, so retries and
fallbacks discarded earlier bridge counts. Fold each attempt's bridgeCalls
into the run accumulator beside assistantTurns and stamp the cumulative
totals into agentMeta, matching the documented per-run contract.
2026-07-27 23:48:01 -04:00
..
acp.md fix(gateway): keep configured local auth authoritative (#114462) 2026-07-27 05:43:31 -04:00
agent.md feat(agents): report per-run stats (code-mode engagement, round trips, cost) in agent JSON envelopes (#114688) 2026-07-27 23:48:01 -04:00
agents.md refactor(config): config-surface reduction tranche 3 — product consolidations (review request) (#111527) 2026-07-21 20:28:43 -07:00
approvals.md refactor(infra): move exec approvals into the shared SQLite state DB (#114063) 2026-07-26 06:39:23 -04:00
attach.md
audit.md docs: retire config keys that strict validation rejects (#113956) 2026-07-25 18:24:02 -07:00
backup.md fix: make filesystem publication crash-durable (#113453) 2026-07-24 20:58:17 -07:00
browser.md feat(browser): scoped and structured page extraction (#113938) 2026-07-25 19:32:44 -07:00
channels.md fix: open selected channel setup immediately (#113197) 2026-07-27 03:30:15 +10:00
clawbot.md
claws.md feat(claws): materialize CLAW.md prompts (#113454) 2026-07-27 08:30:50 -07:00
commitments.md docs: sync heartbeat, memory, commitments, and system-prompt docs with current behavior (#112295) 2026-07-25 06:49:14 -07:00
completion.md
config.md refactor(config): config-surface reduction tranche 3 — product consolidations (review request) (#111527) 2026-07-21 20:28:43 -07:00
configure.md feat(models): make per-agent allowlists explicit (#110888) 2026-07-18 21:42:05 +01:00
crestodian.md feat(setup): rename Crestodian to OpenClaw system agent 2026-07-14 11:03:02 -07:00
cron.md feat(cron): default agent turns to the current conversation, add /loop, tighten cron tool surface (#114328) 2026-07-27 01:44:38 -04:00
daemon.md refactor(config): purge numeric tuning knobs behind built-in defaults (#111382) 2026-07-19 07:35:45 -07:00
dashboard.md
devices.md
directory.md fix(whatsapp): add live group directory (#109886) 2026-07-17 11:12:07 +01:00
dns.md
docs.md
doctor.md fix(channels): recover dead-lettered inbound events (#111029) 2026-07-19 00:44:23 +01:00
fleet.md docs(fleet): remove MVP framing 2026-07-13 17:56:18 -07:00
flows.md
gateway.md fix(gateway): dev mode suppresses ambient channel env auto-configuration (#112011) 2026-07-20 19:28:07 -07:00
health.md fix(channels): recover dead-lettered inbound events (#111029) 2026-07-19 00:44:23 +01:00
hooks.md refactor(agents): retire TOOLS.md into an AGENTS.md section with a doctor migration (#113966) 2026-07-27 03:56:30 -04:00
index.md fix(cli): isolate explicit profiles from inherited service state (#114446) 2026-07-27 04:59:20 -04:00
infer.md fix(models): refresh bundled provider catalogs (#109410) 2026-07-16 16:47:25 -07:00
logs.md fix(logging): give non-default profiles their own gateway log file (#112777) 2026-07-22 19:08:41 -04:00
mcp.md docs: refresh stale cua-driver claims (cross-platform prerelease, real MCP tool names) 2026-07-20 22:18:21 -07:00
memory.md refactor(config): config-surface reduction tranche 3 — product consolidations (review request) (#111527) 2026-07-21 20:28:43 -07:00
message.md
migrate.md feat(onboard): stage migration imports before promotion (#112798) 2026-07-23 07:06:01 -04:00
models.md feat(cli): add models auth logout (#114407) 2026-07-27 03:48:27 -04:00
node.md refactor(infra): move exec approvals into the shared SQLite state DB (#114063) 2026-07-26 06:39:23 -04:00
nodes.md fix(macos): require explicit consent for privacy-sensitive access (#112321) 2026-07-21 15:28:13 -07:00
onboard.md refactor(agents): retire TOOLS.md into an AGENTS.md section with a doctor migration (#113966) 2026-07-27 03:56:30 -04:00
openclaw.md fix(onboard): survive inference owner drift and prefer subscription logins in guided setup (#112378) 2026-07-21 22:03:26 -07:00
pairing.md feat(ui): manage DM pairing requests in Channels (#112401) 2026-07-22 04:54:20 -07:00
path.md
plugins.md fix(plugins): keep feed trust within env budget (#113364) 2026-07-24 09:19:14 -07:00
policy.md refactor(agents): retire TOOLS.md into an AGENTS.md section with a doctor migration (#113966) 2026-07-27 03:56:30 -04:00
promos.md
proxy.md
qr.md
reset.md refactor: store workspace setup state in SQLite (#109147) 2026-07-16 10:28:36 -07:00
sandbox.md docs(cli): cross-link agent exec from automation and policy pages (#114034) 2026-07-26 01:19:11 -04:00
secrets.md feat(onepassword): add managed SecretRef integration 2026-07-25 06:03:30 -05:00
security.md docs: retire config keys that strict validation rejects (#113956) 2026-07-25 18:24:02 -07:00
sessions.md
setup.md fix(setup): preserve invalid config during baseline setup (#112010) 2026-07-20 19:15:51 -07:00
skills.md feat(skills): support external skills.sh references (#112751) 2026-07-25 08:24:34 -05:00
status.md refactor(config): config-surface reduction tranche 3 — product consolidations (review request) (#111527) 2026-07-21 20:28:43 -07:00
system.md
tasks.md
transcripts.md feat: auto-collect durable meeting transcripts (#113122) 2026-07-23 11:41:08 -07:00
tui.md refactor(config): config-surface reduction tranche 1 — retire dead keys, dedupe channel schemas, add growth ratchet (#111142) 2026-07-19 00:52:37 -07:00
uninstall.md
update.md fix(update): repair obsolete managed Gateway Node (#108668) 2026-07-16 00:41:43 -07:00
voicecall.md
webhooks.md
wiki.md fix(cli): correct optional plugin guidance (#112019) 2026-07-20 21:31:30 -07:00
workboard.md fix(workboard): avoid duplicate proof entries on completion (#111324) 2026-07-19 03:00:37 -07:00
worker.md fix(worker): preserve scheduled tool authority 2026-07-24 01:24:03 -05:00