← 返回
未分类 中文

Workspace Org

Standardized workspace directory layout for multi-agent OpenClaw deployments. All agent-generated files go under files/ to keep root clean. Defines where age...
标准化工作空间目录结构,适用于多代理 OpenClaw 部署,所有代理生成的文件统一存放在 files/ 目录下,保持根目录整洁,并定义相应的位置。
zaixi zaixi 来源
未分类 clawhub v2.1.0 1 版本 100000 Key: 无需
★ 0
Stars
📥 295
下载
💾 0
安装
1
版本
#latest

概述

Workspace Org

Standardized directory conventions for OpenClaw multi-agent workspaces.

Layout

workspace/                          ← or any agent workspace dir
├── AGENTS.md, SOUL.md ...         ← core config (never moved)
├── skills/                        ← ClawHub skills
├── memory/                        ← long-term memory
├── files/                         ← all agent-generated content
│   ├── tmp/       disposable temp files
│   ├── notes/     working docs worth keeping
│   ├── inbox/     deliverables from other agents
│   ├── outbox/    files for owner/other agents
│   ├── archive/   inactive projects
│   └── experts/   (workspace root only) expert engagements

Rules

  • Core config files stay at workspace root. Never moved.
  • All generated files go into files/{subdir}/. No exceptions.
  • Cross-agent handoff: sender writes to files/outbox/, receiver picks from files/inbox/.

Cleanup policy

SubdirCleanup rule
---------------------
files/tmp/Eligible for auto-cleanup at any time
files/notes/Keep; never auto-clean
files/archive/Manual review before removal
files/experts/Remove after expert engagement ends
files/inbox/Clear after processing deliverable

Enforcement for future work

When creating files

All generated files go into files/ subdirectories:

  • Temp/one-off scripts, patches, downloads → files/tmp/
  • Keep-worthy docs, analysis, snapshots → files/notes/
  • Cross-agent handofffiles/inbox/ or files/outbox/
  • Old projectsfiles/archive/

Periodic compliance check

# Check if current workspace has layout violations
python3 {{SKILL_DIR}}/scripts/sweep.py

# JSON output for automation
python3 {{SKILL_DIR}}/scripts/sweep.py --json

Fix existing violations

python3 {{SKILL_DIR}}/scripts/apply.py --execute

HEARTBEAT.md can include a periodic sweep to catch drift.

Scripts

scripts/apply.py

Creates files/ and sub-directories, migrates existing files into correct locations.

Auto-detects workspace root vs agent workspace. Dry-run by default.

Agent directories (containing AGENTS.md) are never moved.

scripts/sweep.py

Audits workspace for layout violations. Returns exit code 0 (clean), 1 (warnings), or 2 (violations).

References

  • layout.md — Full specification with agent-type variations

版本历史

共 1 个版本

  • v2.1.0 当前
    2026-05-08 13:40 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

ai-agent

Agent Browser

rez0
用于 AI 代理的浏览器自动化 CLI。当用户需要与网站交互(包括浏览页面、填写表单、点击按钮、截图等)时使用。
★ 843 📥 322,509
ai-agent

Self-Improving + Proactive Agent

ivangdavila
自我反思+自我批评+自我学习+自组织记忆。智能体评估自身工作、发现错误并持续改进。
★ 1,406 📥 324,515
ai-agent

Find Skills

guipi888
场景驱动+关键词双模式技能发现工具。当用户用自然语言描述场景/需求(如"我想做一个海报""帮我分析股票"),或明确说"安装技能/find skills/找个skill"时,自动从官方内置、本地已安装、SkillHub、虾评、GitHub、C
★ 1,489 📥 553,533