OpenClaw operations guide

OpenClaw AGENTS.md truncated: check which instructions reach the model

Short answer. Find which OpenClaw workspace instructions are truncated, then test a shorter AGENTS.md against prompt size and instruction coverage. When OpenClaw follows some workspace instructions and misses others, inspect what the session actually received. A large bootstrap file can have instructions cut from the injected copy while keeping the original file intact.

Last updated · Published

The OpenClaw Token Bill Kit is an optional paid kit with a spend-audit checklist and weekly worksheet for comparing input usage after a prompt change.

By CWYN · Reviewed November 18, 2026 for OpenClaw 2026.11.5

When OpenClaw follows some workspace instructions and misses others, inspect what the session actually received. A large bootstrap file can have instructions cut from the injected copy while keeping the original file intact.

1. Confirm the agent and workspace

Use the same agent and runtime as the affected conversation. Confirm the effective workspace, then identify the instruction the agent missed and the file where it lives. Use a disposable test agent if the original workspace contains private material or the omitted instruction governs live actions.

2. Compare raw and injected sizes

Run /context list in the affected chat after a normal turn. The context reference describes raw and injected sizes and truncation marks. Use /context detail if you need to distinguish workspace instructions from tool schemas, skill metadata, or transcript history. An on-demand estimate before an ordinary turn can differ from the report built during the turn.

3. Identify the cap that cut the file

Check the effective per-file cap agents.defaults.bootstrapMaxChars and the combined cap agents.defaults.bootstrapTotalMaxChars. A file can be below its own cap and still have less room within the combined budget. Record the observed truncation and compare it with the location of the missed instruction. Keep diagnostics and workspace contents private.

4. Shorten one bootstrap file in a test workspace

Save the original first. Keep instructions that must apply on every turn in AGENTS.md. Move long examples and task-specific reference material to a separate file with a short reminder of when to read it. Keep permission settings and approval rules in force during the test. For Claude Code, see the hook example for protecting files. If the agent cannot read a reference file, keep its essential instructions in the bootstrap file.

5. Check instruction coverage and input usage

Compare fresh chats using the same reply model, tools, and harmless input. Ask the agent to apply a specific instruction without repeating that instruction in your prompt. Recheck the injected sizes and use provider input usage where available. If the task loses a needed rule or requires repeated file reads, restore the original and revise the split before using it in production.

Get your free CWYN Score to choose your next setup improvement.

Next steps