You don’t need to “load” the Git docs into context at all. OpenClaw only injects the workspace bootstrap files (AGENTS.md, SOUL.md, etc.). Your copied documentation can just sit on disk and the agent will read files on-demand when needed via the read tool (and optionally exec to search).
Option A (simplest): put the docs inside the agent workspace
- Copy your Git docs into your agent workspace, e.g.
~/.openclaw/workspace/docs/git/...
- Add a tiny hint to
AGENTS.md(don’t paste the docs themselves), e.g.
- “Git docs live in
./docs/git. When answering Git questions, search there first and cite filenames.”
Nothing under ./docs/git is automatically added to the prompt; it’s only read if the agent calls read.
Option B (recommended if you use sandboxing): bind-mount the docs read-only
If you have sandboxing on and workspaceAccess: "none", the read tool is sandbox-rooted, so your host folder won’t be visible unless you mount it.
Add a read-only bind mount: