Resources

Qwen Paperclip Adapter

External Paperclip adapter that wraps Qwen Code CLI as a managed subprocess. Pipes prompts via CLI arguments, parses streaming JSON, and maintains session continuity across heartbeats using Qwen's native `session_id` and `-r` resume flag.

External [Paperclip](https://github.com/paperclipai/paperclip) adapter that integrates [Qwen Code CLI](https://github.com/QwenLM/qwen-code) as a managed subprocess. Pipes prompts via command-line arguments, parses streaming JSON output, and maintains session continuity across heartbeats using Qwen's native sessionid and the -r resume flag.

Part of the [@superbiche/paperclip-adapters](https://github.com/superbiche/paperclip-adapters) external adapter pack.

Development history

The core runtime components (execute.ts, parse.ts, skills.ts, test.ts) originated from Alex Ivanov's upstream contribution in [paperclipai/paperclip#1490](https://github.com/paperclipai/paperclip/pull/1490). Following the shift toward external plugins in [PR #2218](https://github.com/paperclipai/paperclip/pull/2218), the code was extracted into this standalone package with Ivanov's approval. External packaging and plugin-system integration by [@superbiche](https://github.com/superbiche) and [@tsbwc](https://github.com/tsbwc).

Current status

Shipped as v0.1.2 on npm. Session resumption is verified end-to-end — Paperclip persists Qwen sessions in the database and reuses them across consecutive heartbeats, with Qwen confirming reuse via usage.sessionReused: true.

The adapter declares:

supportsSessionResume: true nativeContextManagement: "confirmed"

Builds from commit 3d15798 onward auto-load session management; earlier versions require a restart.

Install

Visit resource

Shared by superbiche