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

Canonical: https://cwyn.com/pages/openclaw-guide-agents-md-truncated.html
Last updated: 2026-11-23T05:42:51-05:00

OpenClaw operations guide

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 November 23, 2026 · Published November 18, 2026

The [OpenClaw Token Bill Kit](https://cwyn.com/pages/pack-openclaw-token-bill-kit.html) is an optional paid kit with a spend-audit checklist and weekly worksheet for comparing input usage after a prompt change.

OpenClaw Token Bill Kit $24.95

Audit OpenClaw model spend with verified token controls, routing and cache snippets, and a weekly bill review worksheet.

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](https://docs.openclaw.ai/concepts/context) 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](https://cwyn.com/pages/claude-code-guide-skills-vs-subagents-hooks.html#7-claude-md-vs-skills-vs-rules) 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](https://cwyn.com/pages/claude-code-guide-hooks-examples.html#4-block-edits-to-protected-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](https://cwyn.com/score) to choose your next setup improvement.

## Related guides

- [OpenClaw context overflow: recover a long task without losing its handoff](https://cwyn.com/pages/openclaw-guide-context-overflow.html)
- [OpenClaw prompt cache misses: test reuse before changing retention](https://cwyn.com/pages/openclaw-guide-prompt-cache-misses.html)
- [AGENTS.md examples and best practices](https://cwyn.com/pages/claude-code-guide-agents-md-examples.html)

## Next steps

- [All 135 OpenClaw guides](https://cwyn.com/guides/openclaw/)
- [OpenClaw setup walkthrough](https://cwyn.com/setup/openclaw/)
- [Check your OpenClaw AGENTS.md](https://cwyn.com/score/setup-file-checker/?profile=openclaw)
- [OpenClaw Complete Setup Pack ($14.95)](https://cwyn.com/pages/pack-openclaw-complete-setup-pack.html)
