community upload

OpenClaw Workspace Template

by @kindomLee

kindomLee OpenClaw Workspace Template Mock-published from GitHub discovery for ClawLodge. - Source repo: https://github.com/kindomLee/openclaw-workspace-temp...

OpenClaw Workspace Template

Production-tested workspace template for OpenClaw AI agents, extracted from a real agent running 3+ months in production.

What You Get

A fresh OpenClaw agent is stateless β€” it wakes up, helps you, and forgets everything. This template turns it into something that persists, learns, and improves over time.

After installing:

  • 🧠 Your agent remembers β€” Daily logs (memory/YYYY-MM-DD.md) + curated long-term memory (MEMORY.md) with priority levels and auto-expiry. It reads yesterday's and today's logs every session.
  • πŸ”§ Your agent learns from mistakes β€” A three-tier self-improvement system (repair / optimize / innovate) tracks errors, corrections, and knowledge gaps. Problems that recur 3+ times auto-promote to long-term memory so they never happen again.
  • πŸ€– Your agent delegates β€” Battle-tested sub-agent patterns with inject-rules, result verification, and delivery confirmation. Your main agent stays focused while sub-agents handle heavy lifting.
  • πŸ“‹ Your agent maintains itself β€” Routine checks framework (Type A: fixed logic / Type B: needs LLM) so your agent doesn't waste tokens on things a shell script can do.
  • πŸ›‘οΈ Your agent verifies everything β€” Four defense lines: create β†’ execute β†’ deliver β†’ alert. "I did it" is never enough β€” it checks that the user actually received the result.
  • πŸ‘€ Your agent has personality β€” SOUL.md defines who it is, IDENTITY.md gives it a name and emoji, USER.md helps it understand you.

Features

  • Memory System: Daily logs + long-term curation with P0/P1/P2 priority and auto-archival
  • Self-Improvement: Error tracking, correction learning, recurring pattern detection
  • Routine Checks: Type A/B monitoring framework, crontab templates
  • Sub-agent Patterns: inject-rules, REVIEW_THEN_DELIVER, STATUS_PENDING fallback
  • Starter Skills: Memory management, Obsidian markdown, Telegram HTML replies, temp file handling
  • Multi-instance Support: Run multiple specialized agents with isolated workspaces

Quick Start

  1. Install OpenClaw if you haven't:
    curl -fsSL https://openclaw.ai/install.sh | bash
    
  2. Clone this template:
    git clone https://github.com/kindomLee/openclaw-workspace-template.git
    cd openclaw-workspace-template
    
  3. Run the bootstrap script:
    chmod +x bootstrap.sh
    ./bootstrap.sh
    
  4. Point OpenClaw to your new workspace:
    openclaw config set agents.defaults.workspace /path/to/your/workspace
    openclaw gateway restart
    
  5. Fill in USER.md and IDENTITY.md with your specific information
  6. Start chatting β€” your agent will use the workspace files automatically

Directory Structure

clawd/                          # Your workspace root
β”œβ”€β”€ AGENTS.md                   # Core agent instructions and workflows
β”œβ”€β”€ SOUL.md                     # Personality and interaction guidelines
β”œβ”€β”€ IDENTITY.md                 # Agent identity configuration
β”œβ”€β”€ USER.md                     # Information about the human user
β”œβ”€β”€ TOOLS.md                    # Tool references and quick commands
β”œβ”€β”€ MEMORY.md                   # Long-term curated memory
β”œβ”€β”€ HEARTBEAT.md                # Heartbeat check instructions
β”œβ”€β”€ memory/                     # Daily memory logs
β”‚   └── YYYY-MM-DD.md           # Date-specific memory files
β”œβ”€β”€ .learnings/                 # Self-improvement tracking
β”‚   β”œβ”€β”€ ERRORS.md               # Error tracking and fixes
β”‚   β”œβ”€β”€ LEARNINGS.md            # Knowledge gaps and improvements
β”‚   └── FEATURE_REQUESTS.md     # New capability requests
β”œβ”€β”€ guides/                     # Implementation guides
β”‚   β”œβ”€β”€ self-improvement.md     # How to implement learning systems
β”‚   β”œβ”€β”€ routine-checks.md       # Automated monitoring setup
β”‚   β”œβ”€β”€ sub-agent-patterns.md   # Task delegation patterns
β”‚   └── multi-instance.md       # Multiple agent instance setup
β”œβ”€β”€ skills/                     # Starter agent skills
β”‚   β”œβ”€β”€ memory/                 # Memory management skill
β”‚   β”œβ”€β”€ write-tmp/              # Temp file writing workaround
β”‚   β”œβ”€β”€ telegram-html-reply/    # Rich HTML replies for Telegram
β”‚   └── obsidian-markdown/      # Obsidian-flavored markdown
β”œβ”€β”€ scripts/                    # Utility scripts
β”œβ”€β”€ reference/                  # Documentation and references
└── tmp/                        # Temporary files

Guides Overview

Self-Improvement Guide (guides/self-improvement.md)

Learn how to implement systematic self-improvement in your AI agent, including error tracking, learning from corrections, and building long-term capabilities.

Routine Checks Guide (guides/routine-checks.md)

Set up automated monitoring and maintenance workflows, from simple health checks to complex analytical tasks.

Sub-agent Patterns Guide (guides/sub-agent-patterns.md)

Master the patterns for delegating complex tasks to specialized sub-agents, including communication protocols and error handling.

Multi-instance Guide (guides/multi-instance.md)

Run multiple specialized agent instances for different purposes, with proper isolation and resource management.

Getting Started

After running bootstrap.sh, you'll have a complete workspace template. The key files to customize are:

  1. USER.md - Information about yourself and your preferences
  2. IDENTITY.md - Your agent's personality and identity
  3. TOOLS.md - Add your specific tools and services
  4. AGENTS.md - Customize workflows for your use case

Requirements

  • OpenClaw v1.x or higher
  • Unix-like operating system (Linux, macOS, WSL)
  • Basic shell environment

License

MIT


This template represents real-world patterns from a production OpenClaw deployment. Adapt and modify as needed for your specific use case.

Workspace

Current published snapshot. New publishes overwrite this view.

Download .zip
24 FilesUpdated 2026-03-10 05:09:40 UTC1 redactions1 blocked
Published via backfill-null-source-repo-v1
bootstrap.shtext Β· 4.1 KB

Source Repository

Original GitHub repository for this setup.

Community

No comments yet.