SquarePact Word Add-In Connects to OpenClaw Gateway for Agentic Document Editing

SquarePact, a third-party Word add-in (not affiliated with OpenClaw), has added a feature that connects directly to your own OpenClaw gateway over WebSocket. This lets your AI agent edit the document you have open in Word.
How It Works
- The add-in connects to your gateway over WebSocket.
- Edits never apply automatically. The agent proposes an edit, which appears as a card in the add-in; you approve or dismiss it.
- Before applying an approved edit, the add-in rechecks that the current document content still matches what the agent saw. If the document has changed, the edit fails instead of applying to the wrong location — no stale edit surprises.
Key Technical Learnings
Tool Declaration via Message Text
OpenClaw provides no way to declare tools in the chat client. SquarePact works around this by describing the tools in the message text on every turn, then parsing the agent's reply for tool calls. Smaller local models sometimes produce malformed JSON in tool calls, so the add-in sends a retry message restating the required format, capped at 2 retries per turn.
Conversation History on Gateway
OpenClaw keeps conversation history server-side. SquarePact never sends history — each turn is just the tool contract plus the new message. Reopening an old chat reattaches to the same session, which dramatically simplified the client.
Word Bullet Normalization
Word's default bullet characters use Symbol font private-use Unicode, which reads back as empty text. The agent kept reporting broken bullets that were actually fine until SquarePact normalized them before sending to the agent.
Setup and Availability
Setup guide: squarepact.com/openclaw-setup
Site: squarepact.com
The developers are asking the community what other document editing capabilities they'd want their agent to perform that this integration doesn't yet support.
📖 Read the full source: r/openclaw
👀 See Also

Code Evolution Method Triples LLM Performance on ARC-AGI-2 Benchmark
Researchers achieved a 2.8x improvement on the ARC-AGI-2 benchmark using code evolution with open-weight models, reaching 34% accuracy at $2.67 per task. The same method pushed Gemini 3.1 Pro to 95% accuracy at $8.71 per task.

Visual Studio 2022 Extension Adds Native Ollama Integration for Local LLMs
A free extension for Visual Studio 2022 connects directly to local Ollama endpoints, enabling private AI coding assistance without switching between tools. It supports models like DeepSeek and Llama 3 with cloud fallback options.

OpenClaw Implements Agent History Compression to Reduce Context Usage
OpenClaw now compresses agent history by replacing completed subtask logs with structured summaries, reducing ~1M tokens to ~30K. The system uses a 4-pass scanner to identify task lifecycles and generates masked summaries that maintain agent compatibility.

RouteLLM Setup for Cost-Effective AI Task Routing
A Reddit user shares a Docker Compose configuration that combines Ollama's local Qwen3.5:4b model with GitHub Copilot via OpenWire, using RouteLLM to route complex tasks to GPT-4o while handling simpler tasks locally.