Bring past conversations in

Copy the conversations you had in another app into Past tasks, read only, with one small format any reader can print. Check it first, then find them by words, day and project.

On this page
  1. The official plugins
  2. A reader someone else wrote
  3. Install and consent
  4. When it runs, and if it can’t
  5. Run it
  6. The format
  7. What is brought in
  8. Writing a reader
  9. The manifest
  10. A plugin repository’s index

If you have months of conversations in another AI app you are leaving, Ducter can keep them as 做过的事 / Past tasks: read only, with their own day and project, found by the same words and time words as everything else. The other app isn’t changed, and Ducter never pushes anything at you about them.

Ducter has no reader built in. A reader comes from a plugin repository — a git repository with an index.json at its root — and Ducter knows two kinds: the one official repository (https://github.com/wey-gu/ducter-plugins) and the ones you add yourself.

The official plugins

Open Settings › 插件 / Plugins. The 带进来 / Importers shelf shows what the repositories carry: each app’s own icon meeting Ducter’s page, its name, one line of what it reads, and where it comes from (官方 / Official for the official repository). Apps whose store is on this computer come first and say 这台电脑上有它 / It’s on this computer.

The official repository carries Lody and other readers. Lody’s reader runs your own signed-in lody command and goes online through it. The other readers say exactly what they read; some open a local store read only and never go online. 装上 / Install opens a sheet that says, one fact each, what the reader will do (every place it reads, every command it starts) and what it won’t (see your conversations with Ducter, change the files it reads, read anywhere else, and go online unless it says so), where it comes from and its pinned version. 装上 on that sheet installs it at the commit and content hash the repository pins and brings the conversations in; nothing is read before you choose it. Ducter then tells you in the conversation how many came in.

Settings › 导入 / Import keeps what was brought in: each installed reader, what it brought and when, 再带一次 / Bring in again, and its updates. With nothing brought in yet it is one card that says what can come in and opens Plugins; once something is in, its foot links there for more.

If you already brought Lody in when Ducter had a built-in Lody reader, nothing moves: the plugin has the same app name and account, so your imported tasks keep their ids and messages. Bringing Lody in again adds only conversations and messages that are new.

A reader someone else wrote

Add their repository in Settings › 插件 › 插件仓库 › 加一个插件仓库 / Add a plugin repository, or from a terminal:

ducter plugin source add https://github.com/someone/ducter-plugins
ducter plugin source list

Their plugins appear on the Plugins shelves, marked 你加的仓库 / From your repository. Unless the official repository lists the same id, version and content hash, they also say 没有人替你检查过 / Nobody has checked it for you. The check is about exact bytes, not a promise: the official index is the only list Ducter treats as reviewed.

You can still install a single reader directly, without a repository:

ducter plugin add https://github.com/someone/acme-notes-reader
ducter plugin add ~/src/my-reader

Ducter installs it at a fixed commit and records a hash of its files; it never runs anything while installing. ducter plugin list shows what is installed, its pin and what it reads; ducter plugin update <id> moves to a newer pin; ducter plugin remove <id> removes it and hides the conversations it brought in.

One tap on 带进来 installs the plugin, then the same literal card for every source:

When it runs, and if it can’t

Run it

my-reader | ducter import -

Or from a file:

ducter import threads.jsonl

For a reader of your own (not Lody), check first, writing nothing:

my-reader | ducter import --check

--check prints how many conversations and messages the stream holds, and why it stopped if it did. Run it until it is clean, then import.

The format

One JSON object per line. Nothing else is read.

{"t":"source","format":"ducter-import/1","app":"Lody","account":"workspace:my-team","reader":"lody-cli","readerVersion":"1"}
{"t":"thread","id":"S-8f2a","title":"Fix the flaky WAL test","folder":"/Users/me/src/hawdb","repo":"github.com/acme/hawdb","branch":"fix-wal","agent":"codex","model":"gpt-5.5","createdAt":"2026-10-02T03:11:00Z","updatedAt":"2026-10-02T05:40:12Z","archived":false}
{"t":"msg","thread":"S-8f2a","id":"m1","role":"user","text":"The WAL test fails one run in five…","at":"2026-10-02T03:11:00Z"}
{"t":"msg","thread":"S-8f2a","id":"m2","role":"assistant","text":"It races the checkpoint…","at":"2026-10-02T03:14:31Z"}
{"t":"skipped","thread":"S-8f2a","what":"attachment","n":2}
{"t":"end","threads":1,"messages":2}

The reader may print nothing else: system prompts, tool calls, their output and thinking aren’t part of the format. Unknown fields are dropped rather than stored. A line whose t Ducter doesn’t know stops the stream.

Limits. One message’s text is at most 256 KB. A title is at most 200 characters. One thread has at most 20,000 messages in one run. Every time is a valid ISO time and not in the future.

Stopping early is safe. If a record is bad or the stream ends without end, everything before it that was whole is kept and the last, possibly cut-off conversation is left out. The import says where it stopped. The next run picks up from what is there.

Keys are hidden. Every title, message and field passes through the same secret detector Ducter uses everywhere, before anything is stored. A pasted API key, a password in a URL or a card number in a message is shown as dots.

What is brought in

Each thread becomes one past task:

A card offers 打开 / Open and 带着它开新任务 / New task from this. It never offers 接着做 / Continue: the conversation lives in the other app and Ducter only has a copy. Import the same reader again and nothing is duplicated; a conversation that grew brings only its new messages. A message edited in the other app isn’t updated.

These tasks are not on 任务 / Tasks and never need you: no card, no count, and the partner isn’t woken by them. The partner can still find one when you ask about it, and says which app it came from.

Writing a reader

A reader can be any language and any length; it only has to read the other app’s store without changing it, and print these lines to standard output. The quickest start writes a working one:

ducter plugin new importer acme-notes
ducter plugin check acme-notes --stream

It writes a small reader, its manifest, a README, a test and a fixture/ folder laid out like a home folder. check --stream runs the reader in the same sandbox Ducter uses, with ~ meaning that fixture, and says what it would bring in. See Plugins for everything check looks at.

  1. Print source once.
  2. For each conversation, print thread, then its visible messages, then skipped if some things couldn’t be brought.
  3. Print end with the counts.

Use the other app’s own ids for threads and messages: Ducter uses them to recognise a conversation it already has. Leave out tool calls, thinking, system prompts and unfinished (streaming) messages. Count their attachments as skipped rather than dropping them silently.

A first run on a copy of a small store is the fastest way to see the card. If the format changes later, Ducter keeps accepting this one: a new version is added, never swapped in.

The manifest

A plugin folder has a ducter-plugin.json at its top:

{
  "format": "ducter-plugin/1",
  "id": "acme-notes",
  "kind": "importer",
  "version": "0.2.0",
  "name": { "en": "Acme Notes", "zh": "Acme 笔记" },
  "app": { "name": "Acme Notes", "icon": "icon.png" },
  "author": { "name": "Your name" },
  "emits": "ducter-import/1",
  "run": ["bun", "main.ts"],
  "reads": ["~/Library/Application Support/AcmeNotes/**/*.sqlite*"],
  "starts": [],
  "uses": [
    {
      "command": "lody",
      "online": true,
      "why": {
        "en": "It reads your conversations with the lody command already signed in on this computer, and goes online.",
        "zh": "它会用你电脑上已经登录的 lody 命令读你的对话,会联网。"
      }
    }
  ],
  "detect": ["~/Library/Application Support/AcmeNotes/store.sqlite"],
  "ducter": "^0.1"
}

A plugin repository’s index

A repository is any git repository with an index.json at its root:

{
  "format": "ducter-plugins/1",
  "plugins": [
    {
      "id": "acme-notes",
      "path": "plugins/acme-notes",
      "version": "0.2.0",
      "commit": "0123456789abcdef",
      "hash": "<sha256>",
      "app": "Acme Notes",
      "icon": "icon.png"
    }
  ]
}

The same reader can be run by hand while you write it: bun main.ts | ducter import --check, then bun main.ts | ducter import -.