codingstark-dev/opencode-dataset-plugin — explained in plain English
Analysis updated 2026-05-18
Capture every tool call and edit from an OpenCode session into a JSONL dataset.
Review captured session records in a terminal UI and accept or reject each one.
Export accepted records into OpenAI, Alpaca, ShareGPT, or DPO training formats.
Save a specific completed task as a labeled training example on demand.
| codingstark-dev/opencode-dataset-plugin | alamops/agetor | aza-ali/blendpixel.com | |
|---|---|---|---|
| Stars | 12 | 12 | 12 |
| Language | TypeScript | TypeScript | TypeScript |
| Setup difficulty | easy | hard | easy |
| Complexity | 3/5 | 4/5 | 2/5 |
| Audience | researcher | developer | developer |
Figures from each repo's GitHub metadata at analysis time.
Requires OpenCode and Bun installed to run the plugin and its CLI commands.
opencode-dataset is a plugin for OpenCode, an AI coding agent, that captures your agent sessions and turns them into a local training dataset. Every tool call, file edit, message, and permission request that happens during a session gets written to a plain text file in a line by line JSON format called JSONL, which is easy to read, diff, and load into common machine learning tools like the Hugging Face Datasets library. Before anything is saved, the plugin redacts common secrets such as API keys, bearer tokens, GitHub tokens, AWS access keys, JWTs, private keys, and fields named password, token, secret, or authorization. This means the captured dataset should not contain your credentials even if they appeared in a session. Once records are captured, you can review them using a terminal interface built with OpenTUI. It shows pending examples first so you can accept or reject them with single key presses, and switches to showing everything once nothing is left pending. There is also a one shot review mode meant for automated checks in continuous integration pipelines. Accepted records can then be exported into several formats that are commonly used to train or fine tune language models: a simple OpenAI style chat format, the Alpaca instruction format, ShareGPT conversation format, and a preference based DPO format with chosen and rejected examples. The plugin also adds a tool inside OpenCode itself called save_training_example, so you can ask the agent to save a completed task as a labeled training example directly, and that record is marked accepted right away. Installation is a single command through OpenCode's plugin system, followed by a small JSON configuration entry pointing to where the dataset file should live. The project is written in TypeScript and uses Bun for local development, testing, and building.
A plugin that records your OpenCode AI agent sessions into a local dataset you can review and export for training language models.
Mainly TypeScript. The stack also includes TypeScript, Bun, OpenTUI.
Setup difficulty is rated easy, with roughly 5min to a first successful run.
Mainly researcher.
This repo across BitVibe Labs
Verify against the repo before relying on details.