Skip to content

feat(export): add bulk export for filtered conversations #408

Closed

Description

@Sinity

Use case

Dump every user message across all sessions matching a filter (e.g. all conversations touching `__thoughtspace`) into one analyzable corpus. Currently:

```bash
polylogue --path __thoughtspace list --format json |
jq -r '.[].id' |
while read id; do
polylogue export "$id" --format json
done
```

35 sessions × ~1.5 s per export = ~50 s of subprocess overhead. Most of it is python interpreter startup + DB connection setup repeated.

Proposal

`polylogue export-bulk` (or `polylogue dump`) verb that takes the same filters as `list` and emits all matched conversations in one call:

```bash
polylogue --path __thoughtspace --since 2026-03 export-bulk --format jsonl --message-role user > corpus.jsonl
```

Output: one conversation per line in JSONL (or a tar of markdown files for the markdown format). One DB connection, one process startup.

Adjacent

Pairs with #406 — a typed bulk-export becomes the canonical "give me all the user prose across these sessions" workflow.

Activity

  1. added
    type:feat
    area:core
    on Apr 26, 2026
  2. changed the title [-]Bulk-export verb for filtered conversation set[/-] [+]feat(export): add bulk export for filtered conversations[/+] on Apr 26, 2026
  3. added a commit that references this issue on Apr 26, 2026
    ea640a8
  4. added a commit that references this issue on May 7, 2026
    8d8605a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:cliarea:coretype:feat

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions