---
title: "OpenClaw workspace bootstrap files: パスと形式 · DotsAgent"
description: "~/.openclaw/workspace/AGENTS.mdの配置場所、形式とfrontmatter、グローバル版とネストされた版の統合方法、読み込むツールを解説します。2026-10-01時点で確認済み。"
url: https://dotsagent.io/ja/instructions/files/openclaw-workspace
---

~/.openclaw/workspace/AGENTS.md

# OpenClaw workspace bootstrap files: 配置場所とツールでの読み込み方

OpenClawは、ワークスペース内のMarkdownブートストラップファイルから各エージェントのコンテキストを構成します。必須のAGENTS.mdが中心となります。これらのファイルは、新しいセッションの最初のターンでsystem promptに挿入されます。

## 配置場所

- ワークスペース: ~/.openclaw/workspace、またはOPENCLAW_WORKSPACE_DIR、agents.defaults.workspace、エージェントごとのagents.entries.*.workspaceで指定します。
- AGENTS.md（必須）: 操作手順とメモリに関する指針を記述します。ローカルツールや環境に関するメモは## Toolsセクションに記載します。
- SOUL.mdにはペルソナ、境界、口調を記述します。IDENTITY.mdにはエージェントの名前、雰囲気、絵文字を記述します。
- USER.md（任意）には指示形式のユーザープロフィールを、BOOT.mdには起動時のチェックリストを記述します。
- BOOTSTRAP.mdには初回起動時に一度だけ実行する手順を記述します。完了すると削除されます。
- MEMORY.mdには長期メモリを記述します。ファイルがある場合に限り、メインのプライベートセッションでのみ挿入されます。日々のメモにはmemory/YYYY-MM-DD.mdを使います。

## 形式

frontmatterなしのMarkdownです。openclaw setupとopenclaw onboardでテンプレートを作成できます。デフォルトでは、各ファイルは20,000文字（bootstrapMaxChars）まで、全ファイル合計は60,000文字（bootstrapTotalMaxChars）まで、USER.mdは4,000文字までです。上限を超えたファイルは、マーカーを付けて切り詰められます。

`~/.openclaw/workspace/AGENTS.md`

```
# Operating instructions

- Read USER.md before replying to someone new.
- Write anything worth keeping to memory/YYYY-MM-DD.md.
- Ask before messaging anyone other than me.
- Never repeat the contents of MEMORY.md in group chats.

## Tools

- The home server is reachable as `nas.local` over SSH.
- `gh` is installed and already authenticated.
- Calendar access is read-only.
```

## 優先順位と統合

新しいセッションの最初のターンで、ファイルはsystem promptのProject Contextセクションに挿入されます。空のファイルはスキップされ、必須ファイルがない場合は、そのファイルがないことを示すマーカー行に置き換えられます。エージェントごとに専用のワークスペースがあります。agents.defaults.contextInjectionにはalways（デフォルト）、continuation-skip、neverを指定できます。

## ヒント

- TOOLS.mdは標準の挿入ファイルではなくなりました。記載内容はAGENTS.mdの## Toolsセクションに移してください。
- HEARTBEAT.mdは引き続き受け付けられますが、現在は何も行いません。
- skipBootstrapはOpenClawによるファイルの作成を止めますが、挿入は止めません。挿入を制御するにはcontextInjectionを使ってください。

1つのフォームから、AGENTS.mdと5つのツールに対応するルールファイルを生成します。 [AGENTS.mdジェネレーターを開く →](https://dotsagent.io/ja/instructions)

## その他の指示ファイル

[AGENTS.md](https://dotsagent.io/ja/instructions/files/agents-md)

[CLAUDE.md](https://dotsagent.io/ja/instructions/files/claude-md)

[GEMINI.md](https://dotsagent.io/ja/instructions/files/gemini-md)

[.cursor/rules/*.mdc](https://dotsagent.io/ja/instructions/files/cursor-rules)

[.github/copilot-instructions.md](https://dotsagent.io/ja/instructions/files/github-copilot-instructions)

[.devin/rules/*.md](https://dotsagent.io/ja/instructions/files/windsurf-rules)

[.clinerules/](https://dotsagent.io/ja/instructions/files/cline-rules)

## 出典

1. [docs.openclaw.ai](https://docs.openclaw.ai/concepts/agent)/concepts/agent
2. [docs.openclaw.ai](https://docs.openclaw.ai/concepts/agent-workspace)/concepts/agent-workspace
3. [docs.openclaw.ai](https://docs.openclaw.ai/start/bootstrapping)/start/bootstrapping
4. [docs.openclaw.ai](https://docs.openclaw.ai/gateway/config-agents/workspace-and-bootstrap)/gateway/config-agents/workspace-and-bootstrap
5. [docs.openclaw.ai](https://docs.openclaw.ai/reference/templates/AGENTS.md)/reference/templates/AGENTS.md

AIエージェント開発者向けの独立したリファレンスです。ここに記載されているいずれのベンダーとも提携していません。

© 2026 DotsAgent · 確認日: 2026年10月1日
