I ripped out OpenClaw's default markdown memory and built a Node.js/Postgres API layer instead

✍️ OpenClawRadar📅 Published: May 31, 2026🔗 Source
I ripped out OpenClaw's default markdown memory and built a Node.js/Postgres API layer instead
Ad

A developer building a Cognitive Productivity Analyzer with OpenClaw hit a wall with the default MEMORY.md file after weeks of use. The flat text file turned into a hallucination engine — the agent recalled deprecated API designs as truth and forgot agreed-upon system tradeoffs. The fix: disable memory-core plugin and build a deterministic enforcement layer.

Architecture Details

  • Database: PostgreSQL with strict schemas for system_architecture_rules, api_design_decisions, and feature_roadmaps.
  • Middleware: Node.js/Express backend exposed to OpenClaw via custom tool calls.
  • Typed Contracts: Agent must execute POST /memory/architecture with a TypeScript-validated JSON payload to record design tradeoffs or API routes.
  • Immutable Context Injection: On query, the tool layer retrieves exact rows from Postgres and injects them into the context window before the agent reasons.
Ad

Results

Context drift dropped to absolute zero. The agent cannot hallucinate a database schema because it's constrained by relational data. Updating an architectural rule overwrites the old row — no conflicting notes. Tradeoff: ~150ms latency per tool call and a weekend of backend coding.

Takeaway

The developer argues that agent memory is not a storage problem but an API design problem. Forcing the LLM to categorize thoughts through strict tool boundaries prevents state corruption over hundreds of iterations. Considering open-sourcing the Node repository.

📖 Read the full source: r/openclaw

Ad

👀 See Also

nex-life-logger: Local Activity Tracker for OpenClaw Agents
Tools

nex-life-logger: Local Activity Tracker for OpenClaw Agents

nex-life-logger is a background activity tracker that runs locally on your machine, giving OpenClaw agents memory of your computer activities. It tracks browser history, active windows, and YouTube transcripts, storing everything in a local SQLite database with no cloud data transmission.

OpenClawRadar
Cognitive Science Technique Boosts LLM Creativity: /reframe Slash Command for Claude Code
Tools

Cognitive Science Technique Boosts LLM Creativity: /reframe Slash Command for Claude Code

A Reddit user developed a /reframe slash command for Claude Code that implements a cognitive science technique called distance-engagement oscillation, which improved creative problem-solving by 40% in tests across three open-weight LLMs.

OpenClawRadar
HostedShell: A Web-Based Deployment Solution for OpenClaw Agents
Tools

HostedShell: A Web-Based Deployment Solution for OpenClaw Agents

HostedShell is a hosted version of OpenClaw that eliminates local CLI setup, dependency management, and manual pairing by providing a web console with direct terminal access and filesystem updates.

OpenClawRadar
Outworked v0.3.0 adds iMessage support, built-in browser, and scheduling for Claude Code agents
Tools

Outworked v0.3.0 adds iMessage support, built-in browser, and scheduling for Claude Code agents

Outworked v0.3.0 introduces iMessage channel support for agent communication, a built-in browser for web interaction, scheduling via cron, tunneling for local sharing, and enhanced MCP/Skills support. The desktop app orchestrates Claude Code agents as a team to handle coding tasks, web research, and automated workflows.

OpenClawRadar