refactor: rename clawdbot to moltbot with legacy compat
This commit is contained in:
@@ -1,17 +1,17 @@
|
||||
---
|
||||
summary: "How Clawdbot builds prompt context and reports token usage + costs"
|
||||
summary: "How Moltbot builds prompt context and reports token usage + costs"
|
||||
read_when:
|
||||
- Explaining token usage, costs, or context windows
|
||||
- Debugging context growth or compaction behavior
|
||||
---
|
||||
# Token use & costs
|
||||
|
||||
Clawdbot tracks **tokens**, not characters. Tokens are model-specific, but most
|
||||
Moltbot tracks **tokens**, not characters. Tokens are model-specific, but most
|
||||
OpenAI-style models average ~4 characters per token for English text.
|
||||
|
||||
## How the system prompt is built
|
||||
|
||||
Clawdbot assembles its own system prompt on every run. It includes:
|
||||
Moltbot assembles its own system prompt on every run. It includes:
|
||||
|
||||
- Tool list + short descriptions
|
||||
- Skills list (only metadata; instructions are loaded on demand with `read`)
|
||||
@@ -45,12 +45,12 @@ Use these in chat:
|
||||
- `/usage off|tokens|full` → appends a **per-response usage footer** to every reply.
|
||||
- Persists per session (stored as `responseUsage`).
|
||||
- OAuth auth **hides cost** (tokens only).
|
||||
- `/usage cost` → shows a local cost summary from Clawdbot session logs.
|
||||
- `/usage cost` → shows a local cost summary from Moltbot session logs.
|
||||
|
||||
Other surfaces:
|
||||
|
||||
- **TUI/Web TUI:** `/status` + `/usage` are supported.
|
||||
- **CLI:** `clawdbot status --usage` and `clawdbot channels list` show
|
||||
- **CLI:** `moltbot status --usage` and `moltbot channels list` show
|
||||
provider quota windows (not per-response costs).
|
||||
|
||||
## Cost estimation (when shown)
|
||||
@@ -62,12 +62,12 @@ models.providers.<provider>.models[].cost
|
||||
```
|
||||
|
||||
These are **USD per 1M tokens** for `input`, `output`, `cacheRead`, and
|
||||
`cacheWrite`. If pricing is missing, Clawdbot shows tokens only. OAuth tokens
|
||||
`cacheWrite`. If pricing is missing, Moltbot shows tokens only. OAuth tokens
|
||||
never show dollar cost.
|
||||
|
||||
## Cache TTL and pruning impact
|
||||
|
||||
Provider prompt caching only applies within the cache TTL window. Clawdbot can
|
||||
Provider prompt caching only applies within the cache TTL window. Moltbot can
|
||||
optionally run **cache-ttl pruning**: it prunes the session once the cache TTL
|
||||
has expired, then resets the cache window so subsequent requests can re-use the
|
||||
freshly cached context instead of re-caching the full history. This keeps cache
|
||||
|
||||
Reference in New Issue
Block a user