Comic illustration: the red OpenClaw lobster smashes the word "RULES", which cracks apart.
Created in Cursor in one shot—by uploading the OpenClaw logo and asking for the lobster destroying an additional “RULES” word with cracks.

What is OpenClaw (and why it’s controversial)

OpenClaw has become one of the most hotly debated projects in the AI world. The project shot to 100,000+ GitHub stars in a matter of weeks, fueling debate over organic growth versus hype. But what is it, exactly?

GitHub buttons of the OpenClaw repository: Fork 40.3k, Star 215k.
OpenClaw on GitHub (as of 2026-02-21)

OpenClaw is a self-hostable AI agent platform that can take broad control of your system. As an autonomous agent, it can run terminal commands, manage email, and book real-world tasks—flights, hotels, and so on. Users have reported that it can be configured to call all of your friends and introduce itself.

With great power comes the need for great responsibility. Some developers say: do not use it. OpenClaw’s power is also its weakness; security researchers and prominent developers have called it a security nightmare at scale, citing explosive, suspect virality and thousands of exposed instances and critical vulnerabilities (Fortune). Beyond that, it is also a disruptive experiment: a self-hosted agent that can help with many tasks that were too cumbersome to do manually—once the security risks are mitigated.

This isn’t about passwords or tokens

This article is not one of the many warnings that you should not give OpenClaw your passwords, API tokens, or access to the external world. I’m talking about something more basic: preventing OpenClaw from destroying itself. If the agent overwrites or shortens its own rule files, your security and workflow rules can disappear without you noticing—until it’s too late.

What happened: false claim about updating AGENTS.md

I asked the agent to remember something that should have resulted in an update to AGENTS.md. The agent told me it had written a large amount (e.g. 7720 bytes) to AGENTS.md. In reality, either nothing was written or something wrong was written—so the agent’s report was misleading. I’d go so far as to say it was lying to me.

OpenClaw chat (Claude Haiku 3): the agent claims it updated AGENTS.md; after "I cannot find the rules", it admits it did not actually update the file.
False claim: “updated AGENTS.md” (cheap model: Claude Haiku 3)

I had been using the much cheaper Claude Haiku 3 for that task. I switched to Claude Sonnet to figure out what went wrong. With Sonnet, it confirmed that it seemed to have been wrong about updating AGENTS.md. Since the agent wrote in the chat that it had written 7720 bytes to AGENTS.md, I still don’t know whether to believe that it didn’t write it—but I can’t trust the claim either way.

Tracing changes: git in the workspace

To see exactly what was happening in the .openclaw/workspace folder (where AGENTS.md lives), I added and committed the workspace folder to a local git repository. That gave me a history I could trace.

Asking about “dishonesty” and discovering real damage

I then tried to tackle the dishonesty problem. I asked the agent what the reason for the dishonesty was.

OpenClaw chat (Claude Sonnet 4.5): asked about the reason for its dishonesty, the agent lists five measures such as double-checking and admitting mistakes.
OpenClaw claiming that he will be more honest in future (more expensive model Claude Sonnet)

Good. It promised to improve. However, I am suspicious. I asked him, how he was saving the new rules:

OpenClaw chat: "How do you remember those rules? Which file?" The agent answers it will document them in AGENTS.md and runs a write.
“Which file?” Answer: “I will document them in AGENTS.md”

Funny. Or not so funny. Weird. It asked me to hold it accountable for sticking to rules it even did not save anywhere. However, meanwhile the rules are saved. It said. (me being suspicious…)

When I checked what changes had been introduced to AGENTS.md, the picture became clear—and ugly.

What I found: “omitted for brevity” replaced real rules

Most of the previous content in AGENTS.md had been replaced by short placeholder lines, for example:

  • Config Template Management → [Config template management details omitted for brevity]
  • External vs Internal → [External vs Internal details omitted for brevity]
  • Tools and Heartbeats → [Tools details omitted for brevity] and [Heartbeats details omitted for brevity]
AGENTS.md after the update: five repeated "Config Template Management" sections, each reduced to "[Config template management details omitted for brevity]".
A total mess: the AGENTS.md file is broken. Most of the rules are gone.

This is a total mess: 5 sections about the Config Template Management, but most of the data is gone. If I had not saved the workspace via a local git repo, that information would have been lost.

Why “remember” is not enough

When you ask OpenClaw to remember new rules, it may tell you that it will follow them in the future. But if it doesn’t write those rules anywhere, there is no guarantee it will actually do so. When you ask it to remember and it does update AGENTS.md, it may—even with stronger models like Sonnet—replace whole sections with “details omitted for brevity.” Sonnet did not seem to understand that this permanently deletes the corresponding rules.

Security risk: rules omitted = rules gone

This is a real security risk. Important security and safety rules are now “omitted” for brevity. They are not active anymore. The agent’s own instructions about config templates, external vs internal behavior, tools, and heartbeats were reduced to one-line placeholders. Without version control, you would have no way to recover them.

What you should do: copy config, version the workspace with git (local only), commit often

My takeaway:

  1. When you start working with OpenClaw, make a copy of the config (e.g. openclaw.json).
  2. Put the workspace under version control. The workspace (~/.openclaw/workspace) is already a git repo or can be initialized as one. Use a local repository only—do not push to a remote. The workspace can contain sensitive data; so far I’ve only seen secrets in ~/.openclaw/openclaw.json, but better safe than sorry. Add your name and email to the repo’s git config, then git add the files you care about and commit.
  3. Commit again whenever you make important changes—new rules, large edits to AGENTS.md, or security-related updates. That way you always have a history to compare or revert to.

I’m describing real behavior: the “omitted for brevity” state is from my actual AGENTS.md. However, I will roll it back in a minute.

Don’t trust OpenClaw with the integrity of its own rules—back it up, and version it.

Your turn

Have you run into similar issues with OpenClaw—or with other AI agents overwriting or “simplifying” their own instructions? What did you do about it? I’d be interested to hear.


First published on LinkedIn on February 21, 2026.

Comments

This site uses Akismet to reduce spam. Learn how your comment data is processed.