OpenClaw Workspace Configuration Lessons from Two Months of Use

✍️ OpenClawRadar📅 Published: April 17, 2026🔗 Source
OpenClaw Workspace Configuration Lessons from Two Months of Use
Ad

An OpenClaw user shared detailed lessons after two months of using the AI coding agent, emphasizing that workspace configuration matters more than the tool itself. The developer found that a well-built workspace improves the experience by 5-10x compared to a standard setup.

SOUL.md Configuration

Generic instructions like "be helpful and professional" have minimal impact. Effective SOUL.md files should:

  • Include specific behaviors like "lead with the answer, context after" or "if you don't know, say so, don't make things up"
  • Stay between 50-150 lines maximum, as every line consumes context window tokens
  • Focus on edge cases rather than normal scenarios: what the agent should do when it doesn't know something, when requests are out of scope, or when priorities conflict
  • Test every line by asking: if deleted, does agent behavior change? If not, remove it

AGENTS.md as Standard Operating Procedure

This file should answer "how do you work" rather than "who are you" (which is SOUL.md's role). Key insights:

  • The most valuable rule added: "before any non-trivial task, run memory_search first" to prevent guessing
  • When the agent makes mistakes, add rules to prevent recurrence, with negative instructions ("never do X without checking Y") often working better than positive ones
  • Rules in bootstrap files are advisory only—the model follows them because asked, not because they're enforced
  • For rules that truly cannot be broken, use tool policy and sandbox configuration instead of relying on strongly worded markdown
Ad

MEMORY.md Management

This file loads every session, so it should contain only information that needs permanent retention:

  • Include key decisions, user preferences, operational lessons, and rules learned from mistakes
  • Daily information goes in memory/YYYY-MM-DD.md files that the agent searches when needed
  • Hard limits: 20k characters per file, 150k total across all bootstrap files—exceeding causes silent truncation
  • Instructions typed in chat do NOT persist once context compaction occurs
  • Connect your workspace to git to recover accidentally overwritten MEMORY files from commit history

USER.md and Skills Optimization

The USER.md file is underrated—including background, preferences, timezone, and work context reduces repetition and saves tokens. For skills:

  • Having 30 skills installed doesn't inject 30 full skills files into every prompt, but the skill list itself consumes context
  • Reducing from 15+ skills to 5 noticeably improved output quality
  • Test: if a skill disappeared tomorrow, would you notice? If not, uninstall it

Common Problems with Poor Setup

When persona setup isn't solid, these issues emerge quickly:

  • Agent keeps drifting, requiring constant correction in an endless loop
  • Tokens wasted on inefficient actions like opening a browser when a script would work
  • Too many skills loaded, bloating context and preventing proper functionality
  • Inconsistent output for the same task across different sessions

The developer, who works in e-commerce, created product sourcing and Shopify operations personas after finding most available personas inadequate. They noted that while every industry has workflows that could be packaged into personas, good resources are scattered across paid platforms, GitHub, random blogs, and old posts, with many "personas" being just single SOUL files that aren't usable out of the box.

📖 Read the full source: r/clawdbot

Ad

👀 See Also

100 Tips for Building a Personal AI Agent: From Cloud Prototype to Production
Guides

100 Tips for Building a Personal AI Agent: From Cloud Prototype to Production

Six weeks of building a persistent AI agent — not a chatbot wrapper — that manages tasks, tracks deals, reads emails, and analyzes data. Key lessons: Write a Constitution not a system prompt, use flat markdown files for memory, and version your identity file in git.

OpenClawRadar
How to safely run llama.cpp native tools (exec_shell_command) with multi-sandboxing on Linux
Guides

How to safely run llama.cpp native tools (exec_shell_command) with multi-sandboxing on Linux

A practical guide to enabling llama.cpp native tools, especially exec_shell_command, and running them inside multiple sandboxes (Firejail + tiny Alpine VM) for safe web fetching and command execution via the llama-server web UI.

OpenClawRadar
🦀
Guides

JIT Compiling Code in 5μs: Building a Fast JIT for Postgres pgrust

pgrust's JIT compiler compiles SQL queries in about 5μs, enabling JIT for every query. The author explains how AI-assisted assembly targeting makes fast JIT practical.

OpenClawRadar
Claude API Rate Limits: Timezone Windows, Context Management, and MCP Overhead
Guides

Claude API Rate Limits: Timezone Windows, Context Management, and MCP Overhead

Analysis of Claude API rate limits reveals tighter restrictions during peak hours (5am-11am PT / 8am-2pm ET weekdays), with context management and MCP server usage significantly impacting token consumption. Practical strategies include working outside peak windows, starting fresh conversations for new tasks, and auditing MCP integrations.

OpenClawRadar