Claude: Replace AGENTS.md symlinks with explicit workspace instructions
Convert .claude/CLAUDE.md and .codex/CODEX.md from symlinks to ../.openclaw/AGENTS.md into standalone files that instruct the agent to read IDENTITY.md, MEMORY.md, SOUL.md, TOOLS.md, and USER.md directly. Drop the SessionStart hook in .claude/settings.local.json and the project_doc_fallback_filenames / project_doc_max_bytes entries in .codex/config.toml, since the entrypoint files now reference the workspace docs explicitly. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
30fc7775a5
commit
55fc52a0f6
|
|
@ -1 +0,0 @@
|
|||
../.openclaw/AGENTS.md
|
||||
16
.claude/CLAUDE.md
Normal file
16
.claude/CLAUDE.md
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
# Claude Workspace Instructions
|
||||
|
||||
Before doing any work in this repository, read these files in full:
|
||||
|
||||
- `IDENTITY.md`
|
||||
- `MEMORY.md`
|
||||
- `SOUL.md`
|
||||
- `TOOLS.md`
|
||||
- `USER.md`
|
||||
|
||||
Use them as the workspace context for identity, user preferences, memory, local tools, and operating conventions.
|
||||
|
||||
Additional workspace folders:
|
||||
|
||||
- `skills/` — skills available for tasks in this repository.
|
||||
- `memory/` — persisted notes and references for this workspace.
|
||||
|
|
@ -1,16 +0,0 @@
|
|||
{
|
||||
"hooks": {
|
||||
"SessionStart": [
|
||||
{
|
||||
"hooks": [
|
||||
{
|
||||
"type": "command",
|
||||
"command": "content=\"\"; for f in .claude/SOUL.md .claude/USER.md .claude/MEMORY.md .claude/IDENTITY.md .claude/TOOLS.md; do if [ -f \"$f\" ]; then content=\"$content\\n--- $f ---\\n$(cat \"$f\")\"; fi; done; jq -n --arg ctx \"$content\" '{hookSpecificOutput: {hookEventName: \"SessionStart\", additionalContext: $ctx}}'",
|
||||
"timeout": 10,
|
||||
"statusMessage": "Loading SOUL.md, USER.md, MEMORY.md, IDENTITY.md, TOOLS.md..."
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
|
|
@ -1 +0,0 @@
|
|||
../.openclaw/AGENTS.md
|
||||
16
.codex/CODEX.md
Normal file
16
.codex/CODEX.md
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
# Claude Workspace Instructions
|
||||
|
||||
Before doing any work in this repository, read these files in full:
|
||||
|
||||
- `IDENTITY.md`
|
||||
- `MEMORY.md`
|
||||
- `SOUL.md`
|
||||
- `TOOLS.md`
|
||||
- `USER.md`
|
||||
|
||||
Use them as the workspace context for identity, user preferences, memory, local tools, and operating conventions.
|
||||
|
||||
Additional workspace folders:
|
||||
|
||||
- `skills/` — skills available for tasks in this repository.
|
||||
- `memory/` — persisted notes and references for this workspace.
|
||||
|
|
@ -3,5 +3,3 @@
|
|||
# Codex currently supports one explicit instruction entrypoint file.
|
||||
# That file can then instruct Codex to read additional local files at session start.
|
||||
model_instructions_file = "CODEX.md"
|
||||
project_doc_fallback_filenames = ["AGENTS.md", "IDENTITY.md", "MEMORY.md", "SOUL.md", "TOOLS.md", "USER.md"]
|
||||
project_doc_max_bytes = 131072
|
||||
|
|
|
|||
|
|
@ -1 +0,0 @@
|
|||
../../.openclaw/AGENTS.md
|
||||
16
.kiro/steering/KIRO.md
Normal file
16
.kiro/steering/KIRO.md
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
# Claude Workspace Instructions
|
||||
|
||||
Before doing any work in this repository, read these files in full:
|
||||
|
||||
- `IDENTITY.md`
|
||||
- `MEMORY.md`
|
||||
- `SOUL.md`
|
||||
- `TOOLS.md`
|
||||
- `USER.md`
|
||||
|
||||
Use them as the workspace context for identity, user preferences, memory, local tools, and operating conventions.
|
||||
|
||||
Additional workspace folders:
|
||||
|
||||
- `skills/` — skills available for tasks in this repository.
|
||||
- `memory/` — persisted notes and references for this workspace.
|
||||
Loading…
Reference in New Issue
Block a user