# ID-Coder: Qualitative Thematic Coding

> Turn survey answers, reviews, or interviews into a reviewed codebook, themes, and a research report, then measure how reliably the codebook can be reapplied.

ID-Coder: Qualitative Thematic Coding is a free AI agent skill on Agensi by Aryan Singh. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: Free
- Creator: [Aryan Singh](https://www.agensi.io/creators/aryan-singh)
- Version: 0.1.1
- Last updated: 2026-11-19
- Security: scan passed (2026-11-19); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/id-coder-qualitative-thematic-coding
- Tags: research-analysis, agents-orchestration

## About this skill

ID-Coder is an agent-driven thematic-analysis pipeline for the [pi](https://github.com/earendil-works/pi) coding agent. Point it at a corpus and a research question, and it builds a codebook in stages you can inspect: open coding, an optional validator, consolidation, clustering, and labeling. It then stops at a **human codebook review gate**.

After you approve the codebook in the terminal or the browser viewer, it refines and enriches the clusters, builds a hierarchy and meta-themes, and writes a research report grounded in quotes.

The second half tests the codebook. Deductive agents recode every quote using only the codebook, at three levels of detail. Krippendorff's α measures their agreement with the inductive coding, and the disagreements go to blind LLM judges and human judges.

**What the skill teaches your agent**
- Check or create `.idcoder/config.json`, then resume from checkpoints instead of starting over
- Stop at the review gate and hand control to the researcher. The agent never approves, renames, merges, or drops clusters itself
- Answer questions from structured inspection (codebook, a single cluster, meta-themes, report, evaluation, usage) and quote only grounded examples
- Run the evaluation and explain what α and the judge preferences mean

**Credits**
- Authors: Aryan Singh, Yucai Zhong, Nima Motieifard, Chuyuan Li, and Jian Zhu
- Method: *ID-Coder: LLM-based Inductive-Deductive Coder for Qualitative Coding*
- Original implementation: [Thematic_Analysis_Main](https://github.com/nimamot/Thematic_Analysis_Main)
- pi port and skill: [pi-idcoder](https://github.com/extreme-coder/pi-idcoder) (MIT)

## Requires

- pi coding agent 1.1+
- pi-idcoder extension (npm)
- Node.js 22.19+
- LLM provider configured in pi
- Embeddings API or local model

Install with `pi install npm:pi-idcoder`. For fully local embeddings, install @huggingface/transformers. The skill only runs where the idcoder_* tools are available.

## Known limitations

Doesn't run without pi and the pi-idcoder extension. The agent won't approve or edit the codebook for you, so a researcher has to review it unless review.enabled is false. Evaluation requires a completed run with enrichment enabled. LLM and embedding costs depend on the provider you configure.

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the ID-Coder: Qualitative Thematic Coding skill from Agensi" and describe your task.
3. Your agent loads the skill from Agensi when it needs it. Nothing is downloaded.

## Frequently asked questions

### Does the agent approve the codebook for me?

No. The run pauses at the review gate, and only a human can approve, rename, merge, split, or drop clusters. You can turn the gate off with review.enabled: false for fully automated runs.

### Which models can I use?

Any model pi supports, including OpenCode, Anthropic, OpenAI, Google, or a local OpenAI-compatible server such as vLLM, SGLang, or Ollama. Embeddings can come from any OpenAI-compatible API or run fully locally with transformers.

### What corpus formats are supported?

CSV (a text_review, review_text, or text column), JSONL, or TXT with one document per line.

### Can I resume a crashed or aborted run?

Yes. Every finished unit of work is checkpointed, so a run resumes from where it stopped.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
