agent-browser
Browse the web for any task — research topics, read articles, interact with web apps, fill forms, take screenshots, extract data,…
Add /compact command for manual context compaction. Solves context rot in long sessions by forwarding the SDK's built-in /compact slash command. Main-group or trusted sender only.
Claude Code
$ npx -y skills add sbusso/claudeclaw --skill add-compact --agent claude-code
Codex
$ npx skills add sbusso/claudeclaw --skill add-compact -a codex -y
Cursor
$ npx skills add sbusso/claudeclaw --skill add-compact -a cursor -y
Gemini CLI
$ npx skills add sbusso/claudeclaw --skill add-compact -a gemini-cli -y
GitHub Copilot
$ npx skills add sbusso/claudeclaw --skill add-compact -a github-copilot -y
OpenCode
$ npx skills add sbusso/claudeclaw --skill add-compact -a opencode -y
Windsurf
$ npx skills add sbusso/claudeclaw --skill add-compact -a windsurf -y
name: add-compact description: Add /compact command for manual context compaction. Solves context rot in long sessions by forwarding the SDK's built-in /compact slash command. Main-group or trusted sender only.
Adds a `/compact` session command that compacts conversation history to fight context rot in long-running sessions. Uses the Claude Agent SDK's built-in `/compact` slash command — no synthetic system prompts.
**Session contract:** `/compact` keeps the same logical session alive. The SDK returns a new session ID after compaction (via the `init` system message), which the agent-runner forwards to the orchestrator as `newSessionId`. No destructive reset occurs — the agent retains summarized context.
Check if `src/session-commands.ts` exists:
test -f src/session-commands.ts && echo "Already applied" || echo "Not applied"
If already applied, skip to Phase 3 (Verify).
Merge the skill branch:
git fetch upstream skill/compact git merge upstream/skill/compact
> **Note:** `upstream` is the remote pointing to `sbusso/claudeclaw`. If using a different remote name, substitute accordingly.
This adds:
npm test npm run build
./src/runtimes/docker/build.sh
> **Service name:** Derived from the directory name: `com.claudeclaw.<dirname>` (macOS) / `claudeclaw-<dirname>` (Linux). For example, if cwd is `my-assistant`, the service is `com.claudeclaw.my-assistant`. Determine the correct service name before running service commands below.
launchctl kickstart -k gui/$(id -u)/com.claudeclaw # macOS # Linux: systemctl --user restart claudeclaw
1. Start ClaudeClaw in dev mode: `npm run dev` 2. From the **main group** (self-chat), send exactly: `/compact` 3. Verify:
4. From a **non-main group** as a non-admin user, send: `@<assistant> /compact` 5. Verify:
6. From a **non-main group** as the admin (device owner / `is_from_me`), send: `@<assistant> /compact` 7. Verify:
8. While an **active container** is running for the main group, send `/compact` 9. Verify:
10. Send a normal message, then `/compact`, then another normal message in quick succession (same polling batch): 11. Verify:
12. From a **non-main group** as a non-admin user, send `@<assistant> /compact`: 13. Verify:
14. From a **non-main group** (with `requiresTrigger` enabled) as a non-admin user, send bare `/compact` (no trigger prefix): 15. Verify:
16. After compaction, verify **no auto-compaction** behavior — only manual `/compact` triggers it
git clone <your-fork> /tmp/claudeclaw-test cd /tmp/claudeclaw-test claude # then run /add-compact npm run build npm test ./src/runtimes/docker/build.sh # Manual: send /compact from main group, verify compaction + continuation # Manual: send @<assistant> /compact from non-main as non-admin, verify denial # Manual: send @<assistant> /compact from non-main as admin, verify allowed # Manual: verify no auto-compaction behavior
Browse the web for any task — research topics, read articles, interact with web apps, fill forms, take screenshots, extract data,…
Add Gmail integration to ClaudeClaw. Can be configured as a tool (agent reads/sends emails when triggered from WhatsApp) or as a…
Add image vision to ClaudeClaw agents. Resizes and processes WhatsApp image attachments, then sends them to Claude as multimodal…
Add Ollama MCP server so the container agent can call local models for cheaper/faster tasks like summarization, translation, or…
Adds Parallel AI MCP integration to ClaudeClaw for advanced web research capabilities.
Direct browser control via CDP for web interaction: automation, scraping, testing, screenshots, and site/app work. Also covers…
Browser automation CLI for AI agents. Use when the user needs to interact with websites, including navigating pages, filling…