← Back to Plugins
Tools

Session Merger

StressTestor By StressTestor 👁 161 views ▲ 0 votes

openclaw plugin for merging parallel agent sessions. dedup findings, unified timelines. day 17 of 20 days of claw.

GitHub

Install

openclaw plugins install -l

Configuration Example

{
  "plugins": {
    "session-merger": {
      "sessionsDir": "~/.openclaw/sessions",
      "outputDir": "~/.openclaw/merged",
      "deduplicationThreshold": 0.8
    }
  }
}

README

# session-merger

openclaw plugin for consolidating parallel agent sessions. when you run multiple research sessions in parallel, this merges them into one unified result. deduplicates findings, builds a combined timeline, tracks tool usage across sessions.

## install

```bash
openclaw plugins install -l .
```

## config

```json
{
  "plugins": {
    "session-merger": {
      "sessionsDir": "~/.openclaw/sessions",
      "outputDir": "~/.openclaw/merged",
      "deduplicationThreshold": 0.8
    }
  }
}
```

### options

| option | default | what it does |
|--------|---------|-------------|
| `sessionsDir` | `"~/.openclaw/sessions"` | where to find session files |
| `outputDir` | `"~/.openclaw/merged"` | where to write merged output |
| `deduplicationThreshold` | `0.8` | jaccard similarity threshold for dedup (0-1) |

## tools

- **session_list** - list available session files with entry counts and sizes
- **session_merge** - merge multiple sessions into unified result with dedup
- **session_diff** - compare two sessions for overlapping/unique findings
- **session_export** - merge and export to file

## how it works

sessions are JSONL files (one JSON object per line). the merger loads all entries, sorts by timestamp, deduplicates similar assistant messages using jaccard word similarity, and produces a unified timeline with findings extracted.

dedup uses word-level jaccard similarity. two assistant messages with 80%+ word overlap (configurable) are considered duplicates and the first one wins.

## day 17 of [20 days of claw](https://github.com/StressTestor)
tools

Comments

Sign in to leave a comment

Loading comments...