Making OpenClaw remember what it's doing after compaction —…
    Neura MarketNeura Market/Perplexity
    ChatGPTChatGPTClaudeClaudeGeminiGeminiCursorCursorGrokGrokPerplexityPerplexityDeepSeekDeepSeek
    CoPilotCoPilotStable DiffusionStable DiffusionMidjourneyMidjourney
    View All Directories
    OverviewRulesPromptsMCPsAgentsGamesBlogVideosGuidesCoursesCommunityTrending
    PerplexityBlogMaking OpenClaw remember what it's doing after compaction
    Back to Blog
    Making OpenClaw remember what it's doing after compaction
    openclaw

    Making OpenClaw remember what it's doing after compaction

    Wu Haotian April 6, 2026
    0 views

    This is a submission for the OpenClaw Writing Challenge OpenClaw is great and I've been using it...


    title: Making OpenClaw remember what it's doing after compaction published: true tags: openclaw, agentmemory, devchallenge, openclawchallenge canonical_url: https://blog.whtsky.me/tech/2026/making-openclaw-remember-what-its-doing-after-compaction/

    This is a submission for the OpenClaw Writing Challenge

    OpenClaw is great and I've been using it across a dozen Discord channels: travel planning, coding projects, daily briefings, each in its own thread, concurrently. During the journey, I found OpenClaw could have amnesia: lost track of key guidance and restrictions, or forgot the task it was working on, oftentimes, especially as conversations got long.

    Why this happens

    Although AI looks like magic and works like magic, under the hood it still has its boundaries, and in this case, its context window. The mighty AI can only process a certain amount of information, and if your threads go beyond that, OpenClaw uses compaction to summarize previous conversations, thus reducing the amount of information AI needs to process. The thing is, compaction is not (and cannot be) lossless. Your critical guidance, rules you must follow, tasks in progress, all could be lost during the compaction, and voilà, your agent has amnesia.

    The fix

    Instead of putting everything inside your conversation only, I created openclaw-pawpad to give each individual OpenClaw session a freeform note file and a structured task list to read and update. This information is persisted on disk and does not get impacted by compaction.

    How? The plugin registers a hook that reads the files and injects their content into the system prompt on every agent turn. The injected context looks like this:

    <pawpad>
    Your persistent session state — survives context compaction.
    Update via pawpad_tasks and pawpad_note tools.
    
    <tasks description="Session tasks (2/4 done)">
    - [x] (high) Set up Docker build + Nginx reverse proxy
    - [x] (high) Fix TLS certificate error (switched to distroless)
    - [ ] (low) Write deployment docs
    </tasks>
    <notes description="Session notes">
    - Runtime image: gcr.io/distroless/static-debian12 (not Alpine — TLS issues)
    - LLM backend: localhost:4141, model gpt-5-mini
    - Nginx: proxy_cache keys_zone needs restart (not reload) to clear
    - This is an open source project — no local-only dependencies allowed
    </notes>
    </pawpad>
    

    The agent gets tools to manage the task list and freeform notes. Writes are atomic so you don't end up with half-written files.

    Setup

    It's easy to set up:

    openclaw plugins install openclaw-pawpad
    

    No configuration needed. Restart OpenClaw and it works.

    Does it help?

    I've been playing with it for a few weeks. Before pawpad, my agent would get amnesia after ~15 minutes of heavy conversation. Now the tasks and notes persist across compactions and the agent never forgets.

    But since I'm the one creating this plugin, my experience could just be placebo and your mileage may vary. So feel free to test and let me know your thoughts!

    Tags

    openclawagentmemorydevchallengeopenclawchallenge

    Comments

    More Blog

    View all
    Five Gemma-4 models, one accelerator: what porting E2B 31B to AWS Inferentia2 taught megemma

    Five Gemma-4 models, one accelerator: what porting E2B 31B to AWS Inferentia2 taught me

    I ported the whole Gemma-4 family — E2B, E4B, 12B, 31B, and the 26B-A4B MoE — to run on...

    X
    xbill
    Hey DEV, I'm Tobore. Let's actually connect.community

    Hey DEV, I'm Tobore. Let's actually connect.

    Hey DEV, I'm Tobore. Let's actually connect. I've been on here for a while now, mostly writing and...

    L
    Laurina Ayarah
    I burned through thousands of AI tokens. Then a friend did it for freeai

    I burned through thousands of AI tokens. Then a friend did it for free

    (yep, kinda clickbait, just for the funsies 😊) At the beginning of the year, I relaunched my...

    P
    Paulo Henrique
    Claude might be saturating your machineai

    Claude might be saturating your machine

    My laptop was sitting idle with the fan at full tilt. Nothing was running that I knew of. The culprit...

    S
    Sidhant Panda
    Automated GitHub Code Reviews Using Google Geminigithubactions

    Automated GitHub Code Reviews Using Google Gemini

    I Built a Thing! TL;DR — Google Gemini-based Pull Request reviews and Issue Triaging for...

    D
    Darren "Dazbo" Lester
    What is an "agentic harness," actually?ai

    What is an "agentic harness," actually?

    I've been hearing the word "harness" thrown around a lot lately. I assumed it just meant "the IDE" or...

    T
    Tilde A. Thurium

    Stay up to date

    Get the latest Perplexity prompts, rules, and resources delivered to your inbox weekly.

    Neura Market LogoNeura Market

    Discover the best AI prompts, plugins, and resources for Perplexity and more.

    Content Types

    • Rules
    • Prompts
    • MCPs
    • Agents
    • Guides

    Platforms

    • ChatGPT Directory
    • Claude Directory
    • Gemini Directory
    • Cursor Directory
    • Grok Directory
    • Perplexity Directory
    • DeepSeek Directory
    • CoPilot Directory
    • Stable Diffusion Directory
    • Midjourney Directory
    • All Directories

    Resources

    • Blog
    • Documentation
    • Help Center
    • Marketplace

    Legal

    • Privacy Policy
    • Terms of Service

    © 2026 Neura Market. All rights reserved.

    |

    Not affiliated with any AI platform vendors.

    Neura Market

    Custom AI Systems & Services

    Our team of experienced AI builders will help build custom AI systems, workflows, and solutions for your business.

    Request custom work

    Ready-made automations for this

    Workflows from the Neura Market marketplace related to this Perplexity resource

    • Automate SEO-Optimized Blog Creation with GPT-4, Perplexity AI & Multi-Language Supportn8n · $24.99 · Related topic
    • Automate SEO Blog Content Creation with GPT-4, Perplexity AI, and WordPressn8n · $24.99 · Related topic
    • Automate SEO Blog Creation + Social Media with GPT-4, Perplexity, and WordPressn8n · $24.99 · Related topic
    • Auto-Generate SEO Blog Posts with Perplexity, GPT, Leonardo & WordPressn8n · $14.99 · Related topic
    Browse all workflows