Files
swarm-master/openclaw/hooks/bootstrap-extra-files/HOOK.md
William Valentin 5900a51f3d Include all credentials and runtime config
Remove secret exclusions from .gitignore (local-only repo).
Add openclaw runtime state: credentials, identity, devices,
hooks, telegram, secrets, agent configs.
Exclude noisy/binary data: sessions, sqlite, media, temp files.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-12 12:20:33 -07:00

1.4 KiB
Executable File

name, description, homepage, metadata
name description homepage metadata
bootstrap-extra-files Inject additional workspace bootstrap files via glob/path patterns https://docs.openclaw.ai/automation/hooks#bootstrap-extra-files
openclaw
emoji events requires install
📎
agent:bootstrap
config
workspace.dir
id kind label
bundled bundled Bundled with OpenClaw

Bootstrap Extra Files Hook

Loads additional bootstrap files into Project Context during agent:bootstrap.

Why

Use this when your workspace has multiple context roots (for example monorepos) and you want to include extra AGENTS.md/TOOLS.md-class files without changing the workspace root.

Configuration

{
  "hooks": {
    "internal": {
      "enabled": true,
      "entries": {
        "bootstrap-extra-files": {
          "enabled": true,
          "paths": ["packages/*/AGENTS.md", "packages/*/TOOLS.md"]
        }
      }
    }
  }
}

Options

  • paths (string[]): preferred list of glob/path patterns.
  • patterns (string[]): alias of paths.
  • files (string[]): alias of paths.

All paths are resolved from the workspace and must stay inside it (including realpath checks). Only recognized bootstrap basenames are loaded (AGENTS.md, SOUL.md, TOOLS.md, IDENTITY.md, USER.md, HEARTBEAT.md, BOOTSTRAP.md, MEMORY.md, memory.md).