davidjurgens/potato
davidjurgens/potato has 443 GitHub stars and 79 forks. GitHot measured 0 stars in 24 hours, +3 in 7 days, and +4 in 15 days. Last checked 2026-11-09 19:49 UTC. Last push 2026-10-31.
potato: the portable annotation tool
Measured star growth
- in 24h
- 0
- in 7 days
- +3
- in 15 days
- +4
- in 1 month
- Collecting history
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
README.md
OriginalPotato: The Portable Annotation Tool
Potato is a free, self-hosted annotation platform for NLP, Agentic, GenAI, and qualitative research. Annotate text, audio, video, images, documents, agent traces, and more — or run a full qualitative data analysis (QDA) workflow with a living codebook, memos, and cases. Configured entirely through YAML. No coding required.
Try the live demo on HuggingFace Spaces — no installation needed. More at www.potatoannotator.com.
Quick Start
pip install potato-annotation
# The examples/ folder ships with the source repo (see "run from source" below).
# After a PyPI install, clone the repo for the examples, or point `potato start`
# at your own config (see docs/quick-start.md).
potato start examples/classification/single-choice/config.yaml -p 8000
Or run from source (recommended to get the examples/):
git clone https://github.com/davidjurgens/potato.git
cd potato && pip install -r requirements.txt && pip install -e .
python potato/flask_server.py start examples/classification/single-choice/config.yaml -p 8000
Open http://localhost:8000 and start annotating. Browse the examples/ directory for ready-to-use templates.
Using Claude Code, Codex, or Cursor? Install the Potato skill first. It shows the agent how to design a task, build and run it, check the interface, and export the annotations.
/plugin marketplace add davidjurgens/potato-skill
/plugin install potato-skill@potato
For Codex or Cursor: npx skills add davidjurgens/potato-skill --agent codex cursor
What Can You Annotate?
Potato covers traditional NLP labeling, AI agent evaluation, and interpretive qualitative analysis.
The tables below are a representative sample, not a complete list. Schemes and data types compose freely, custom layouts and raw HTML let you build interfaces beyond these, and new schema types can be added. If you don't see your task here, it's likely still possible.
Data Types
| Modality | Capabilities |
|---|---|
| Text | Classification, span labeling, entity linking, coreference, pairwise comparison (docs) |
| Agent Traces | Step-by-step evaluation of LLM agents, tool calls, ReAct chains, and multi-agent systems (docs) |
| Web Agents | Screenshot-based review with SVG click/scroll overlays, or live browsing with automatic trace recording (docs) |
| RAG Pipelines | Retrieval relevance, answer faithfulness, citation accuracy, hallucination detection |
| Audio | Waveform visualization, segment labeling, ELAN-style tiered annotation, and 21 transcript/subtitle formats read directly — Whisper, cloud ASR, SRT/VTT, YouTube captions, TextGrid/EAF. No transcript? Potato runs Whisper and speaker diarization locally (docs, transcripts) |
| Video | Frame-by-frame labeling, temporal segments, playback sync (docs) |
| Images | Bounding boxes, polygons, landmarks, classification (docs) |
| Dialogue | Turn-level annotation, conversation trees, interactive chat evaluation, and diarized transcripts synced to their audio (docs) |
| Documents | PDF, Word, Markdown, code, and spreadsheets with coordinate mapping (docs) |
| 3D & Volumes | Lidar and photogrammetry point clouds with 3D boxes and per-point segments; CT and MR volumes (DICOM, NIfTI) with label masks painted in linked axial, coronal and sagittal views (point clouds, volumes) |
| Maps | Labelled points, lines and polygons drawn on a map, pinned places, and labelled regions of an outline map (docs) |
| Science viewers | Protein structures with residue selection, genome loci in igv.js for variant review, and spectrograms with time-frequency boxes for bioacoustics (proteins, genomes, spectrograms) |
| Signals | Multi-channel EEG, ECG and sensor recordings (EDF/BDF, WFDB, CSV/Parquet) with interval, event and sleep-epoch labels, exported as BIDS events (docs) |
| Chemistry and spectra | Draw or correct chemical structures, mark atoms in a molecule, and pick and integrate peaks in NMR, IR and MS spectra (structures, spectra) |
| Microscopy and pathology | Multichannel OME-Zarr and OME-TIFF images with regions and cell classes; whole-slide regions from and to QuPath and ASAP; DICOM SEG and SR export (microscopy, clinical formats) |
| Astronomy | FITS cutouts as science/reference/difference triplets with light curves, for real/bogus vetting and morphology (docs) |
Annotation Schemes
| Scheme | Use Case |
|---|---|
| Radio / Checkbox / Likert | Classification, multi-label, rating scales |
| Span annotation | NER, highlighting, hallucination marking |
| Pairwise comparison | A/B testing, best-worst scaling |
| Per-step ratings | Evaluate individual agent actions or dialogue turns |
| Free text | Open-ended responses with validation |
| Triage | Rapid accept/reject/skip curation (docs) |
| Conditional logic | Adaptive forms that respond to prior answers (docs) |
| Interlinear glossing | Morpheme segmentation, glosses and a free translation for each sentence (docs) |
| Ego networks | A respondent names people, answers questions about each, links who knows whom, and places them on a map (docs) |
| Listening tests | MUSHRA, BS.1116, ACR, DCR, CCR, P.835 and ABX audio tests (docs) |
| Measurement | Visual analogue scales, semantic differentials, constant-sum, price lists, belief elicitation and other survey measures (docs) |
Agent & LLM Evaluation
Potato reads traces from the major agent frameworks and evaluates them at the trajectory, step, span, or comparison level.
Trace Formats
Import traces from any major agent framework with the built-in converter:
python -m potato.trace_converter --input traces.json --input-format openai --output data.jsonl
Supported formats: OpenAI, Anthropic/Claude, ReAct, LangChain, LangFuse, WebArena, SWE-bench, OpenTelemetry, CrewAI/AutoGen/LangGraph, MCP, Aider, Claude Code, ATIF, SWE-Agent, and Web Agent. Auto-detection is available with --auto-detect.
Evaluation Levels
| Level | What You Annotate | Example |
|---|---|---|
| Trajectory | Overall task success, efficiency, safety | "Did the agent complete the task?" |
| Step | Individual action correctness, reasoning quality | Per-turn Likert ratings on each agent step |
| Span | Specific text segments within agent output | Highlight hallucinated claims, factual errors |
| Comparison | Side-by-side A/B agent evaluation | "Which agent performed better?" |
Web Agent Viewer
A viewer for GUI agent traces. You step through the screenshots one action at a time, with SVG overlays for clicks, bounding boxes, mouse paths, and scrolls. Annotators rate each step with inline controls, and a filmstrip bar jumps between steps.
Ready-to-Use Agent Examples
| Example | What It Evaluates |
|---|---|
| agent-trace-evaluation | Text agent traces with MAST error taxonomy + hallucination spans |
| visual-agent-evaluation | GUI agents with screenshot grounding accuracy |
| agent-comparison | Side-by-side A/B agent comparison |
| rag-evaluation | RAG retrieval relevance and citation accuracy |
| openai-evaluation | OpenAI Chat API traces with tool calls |
| anthropic-evaluation | Claude messages with tool_use blocks |
| swebench-evaluation | Coding agents with patch correctness ratings |
| multi-agent-evaluation | Multi-agent coordination (CrewAI, AutoGen, LangGraph) |
| web-agent-review | Pre-recorded web traces with step-by-step overlay viewer |
| web-agent-creation | Live web browsing with automatic trace recording |
Qualitative Data Analysis (QDA)
Potato also supports interpretive qualitative research, the kind of work done in NVivo, ATLAS.ti, or MAXQDA, self-hosted and free.
| Capability | Description |
|---|---|
| Living codebook | The codebook is an evolving markdown document of rules, definitions, examples, and rationales rather than a list of labels. Edit it in a full-page document view or inline while coding, with versioning, diff, and restore; semantic edits can re-flag affected excerpts for review (docs) |
| In-vivo coding | Create codes directly from a highlighted passage, in the participant's own words (example) |
| Memos | Attach analytic notes to excerpts, codes, or the whole project as your interpretation develops (docs) |
| Cases | Group instances into units of analysis — participants, interviews, documents, sites — for case-based comparison (docs) |
| Search | Full-text search across your corpus and annotations to find, revisit, and code recurring patterns (docs) |
| Codebook distillation | Turn the human-authored codebook into an LLM prompt for AI-assisted coding |
Enable it with qda_mode, which turns these features on together; see the QDA Mode guide and the runnable qda-mode-example.
Experiments & Surveys
| Capability | Description |
|---|---|
| Experiment flow | Assign participants to conditions, show or skip pages by condition, screen participants out, counterbalance page order, and randomize questions (docs) |
| Runtime phases | Run a jsPsych timeline, a headphone check, or a task on another server (oTree, Empirica, a hosted survey) as a page of the study (docs) |
| Survey import | potato import turns a Qualtrics, SurveyJS, LimeSurvey, XLSForm, REDCap, Beiwe or Network Canvas questionnaire into Potato survey pages, with their show/hide logic (docs) |
| Survey instruments | A library of validated questionnaires (personality, mental health, affect, demographics) to drop into pre- and post-study pages (docs) |
| Self-paced reading | Self-paced reading and the Maze task, with a reading time for each region (docs) |
| Scheduled sessions | Follow-up waves, experience-sampling prompts and Delphi rounds, with email, SMS or Prolific reminders (docs) |
AI-Powered Annotation
LLM Label Suggestions
Connect any LLM provider to pre-annotate instances and suggest labels. Annotators then review and correct rather than labeling from scratch, which is the point: correcting a draft is faster than producing one.
Supported backends: OpenAI, Anthropic, Ollama, vLLM, Gemini, HuggingFace, OpenRouter
Decision models, new in 2.11.0, pick one label from the options and write no text: systemone reaches Jev, OpenJev or laya-serve over HTTP, and laya runs in process. Solo Mode and the labeling engine use them; ai_support does not accept them.
Labeling Engine
Models label the dataset, and people supply labels for a blind random sample. The engine tests the machine labels against that sample under the contracts you declare (for example, at most 5% of accepted machine labels wrong, with 90% confidence), accepts the labels the test supports, sends the rest to people, and writes a certificate saying what was tested on how many human labels. Run it from the annotation server or with potato label run|status|certify|certificate|export (docs).
Active Learning
Potato reorders your annotation queue based on model uncertainty so annotators label the most informative instances first. Supports uncertainty sampling, BADGE, BALD, diversity, and hybrid strategies (docs).
Model Training
Train a model on the study's own annotations from the admin Training page, on the annotation server, on a GPU machine over ssh, or on a machine that polls for jobs. There are 15 trainers: a scikit-learn classifier that needs no extra install, transformer classifiers for text, spans and images, box and outline detectors, an audio segment tagger, LLM fine-tuning on free-text answers and pairwise preferences, and calibration or fine-tuning of the decision models. Each run is scored on held-out items, and its predictions can go back into the study as prelabels for annotators to correct (docs).
Solo Mode
A human-LLM collaborative workflow where the system learns from annotator feedback and progressively transitions to autonomous LLM labeling as agreement improves (docs).
Chat Assistant
An LLM-powered sidebar where annotators can ask questions about difficult instances. It answers from your task description and annotation guidelines, and never writes a label itself (docs).
Quality Control & Workflows
Quality Assurance
| Feature | Description |
|---|---|
| Attention checks | Automatically inserted known-answer items to verify engagement |
| Gold standards | Track annotator accuracy against expert labels |
| Inter-annotator agreement | Krippendorff's alpha (general) and Cohen's kappa (step-level agent evaluation) |
| Training phase | Practice annotations with feedback before the real task |
| Behavioral tracking | Timing, click patterns, and annotation change history |
| Psychometrics | Live IRT (multiclass GLAD, Whitehill et al. 2009) fit as annotations arrive: per-item label posteriors, annotator ability with standard errors, item difficulty, and discrimination flags for codebook bugs — no gold labels, no LLM (docs) |
| Boundary probing | Counterfactual probes map each annotator's decision boundary; paraphrase-invariance flags inconsistency (docs) |
| Truth Serum | Surprisingly-popular scoring (Prelec et al., Nature 2017): gold-free verdicts that beat majority vote on hard items, plus annotator calibration (docs) |
| Paper Mode | python -m potato.paper config.yaml emits a compilable LaTeX dataset report — methods paragraphs, booktabs tables, IAA, limitations — ready to cut-paste (docs) |
| Think-Aloud Mode | Speak while you annotate: fully-local speech-to-text, verbatim rationale streams, labels committed by voice via rule-based phrase detection — no LLM (docs) |
Annotation Workflows
| Workflow | Description |
|---|---|
| Multi-annotator | Multiple annotators per item with overlap control and agreement metrics |
| Adjudication | Expert review of annotator disagreements to produce gold labels (docs) |
| Solo mode | Human-LLM collaboration with progressive automation (docs) |
| Crowdsourcing | Nine crowd providers: Prolific, CloudResearch Connect, SONA, Microworkers, Clickworker, invite links for hired experts, a generic provider for any panel that passes a participant ID in the URL, the legacy url_direct login, and MTurk for archived studies (MTurk closed on September 30, 2026) (docs, choosing a platform) |
| Triage | Rapid accept/reject/skip for data curation (docs) |
| Multiplayer Rooms | Live shared sessions: norming (blind vote → reveal → discuss, with blind vs. post-discussion α), huddle (walk current disagreements together), and shadow (trainees watch the host annotate) (docs) |
| Pocket Mode | Annotate from your phone: installable PWA with a card-stack UI, one-tap labeling, and offline annotation that syncs on reconnect (docs) |
Continuous Evaluation Loop
Close the loop from production traces to graded, regression-gated evaluation:
| Capability | Description |
|---|---|
| Capture | Instrument any agent with the @traceable tracing SDK, or POST traces to the ingestion webhook |
| Automate | Rules (filter → sample → actions) route incoming traces to queues, datasets, evaluators, or webhooks |
| Curate | Versioned datasets & experiments + semantic search/slices to find what to review |
| Evaluate | Programmatic evaluators (trajectory match, tool-use, LLM-judge, heuristics) + a side-by-side model arena |
| Gate | Run evals in pytest and fail CI on score-threshold regressions |
| Calibrate | LLM-judge ↔ human alignment with auto-calibration from human corrections; judges categorical, span, and free-text outputs |
Authentication & Deployment
Potato supports six authentication methods:
| Method | Use Case |
|---|---|
| In-memory | Local development, quick studies |
| Password + file persistence | Team annotation with shared credential files (docs) |
| Database | Production deployments with SQLite or PostgreSQL (docs) |
| OAuth / SSO | Google, GitHub, or institutional OIDC login (docs) |
| Clerk | Managed authentication via Clerk.com (docs) |
| Passwordless | Low-stakes tasks where ease of access matters (docs) |
Passwords are hashed with per-user PBKDF2-SHA256 salts. Admins can reset passwords via CLI (potato reset-password) or REST API. Self-service token-based reset is also available.
To put a task online, potato deploy up config.yaml --provider <target> creates
the server, gets an HTTPS certificate and starts the task. The targets are AWS
(Lightsail, EC2, ECS Express), Jetstream2 and other OpenStack clouds, Hetzner,
Vultr, Linode, DigitalOcean, Fly.io, Railway, Render, Heroku and HuggingFace
Spaces. Where the host's disk does not survive a restart, --backup hf|s3 keeps
the annotations in a dataset or bucket and restores them when the server
starts. potato deploy button writes Deploy to Heroku, Deploy to Render and
AWS Launch Stack buttons for a task's repository. Start with
Installing and running Potato.
Example Projects
Ready-to-use templates organized by type in examples/:
| Category | Examples |
|---|---|
| Classification | Radio, checkbox, Likert, slider, pairwise comparison |
| Span | NER, span linking, coreference, entity linking |
| Agent Traces | LLM agents, web agents, RAG, multi-agent, code agents |
| Audio | Waveform annotation, classification, ELAN-style tiered |
| Video | Frame-level labeling, temporal segments |
| Image | Bounding boxes, PDF/document annotation |
| Advanced | Solo mode, adjudication, quality control, conditional logic |
| QDA | Qualitative analysis: living codebook, in-vivo coding, memos, cases |
| AI-Assisted | LLM suggestions, Ollama integration |
| Custom Layouts | Content moderation, dialogue QA, medical review |
| Text | Correcting handwritten-text recognition, line by line |
| Conversation | ConvoKit corpora, threaded forums, conversation trees |
| Spatial | Lidar cuboids (KITTI), lidar sequences, depth-map evaluation |
| Embodied | Robot episodes in LeRobot format |
| Labeling Engine | Certified machine labels for text, images and agent traces |
| Crowdsourcing | Prolific, CloudResearch Connect, SONA, Microworkers, expert invites, generic panels |
| Agent Testing | Chat with a live agent, or a coding agent in a subprocess or Docker, then rate it |
| Plugins | A minimal plugin package that adds a display type |
Live Demos on HuggingFace
Try Potato in your browser — no installation. A growing catalog of one-click demo Spaces covers classification, span/NER, agent-trace evaluation, multimodal, QDA, and more:
- Flagship demo — agent trace evaluation
- Full demo catalog & collection — every annotation type as a live Space
- Deploy your own —
build_space.py+deploy_space.pyfrom a single manifest
Research Showcase
The Potato Showcase contains annotation projects from published research — sentiment analysis, dialogue evaluation, summarization, and more.
Documentation
Potato has two complementary doc sites: potatoannotator.com/docs for guides, tutorials, and higher-level walkthroughs, and Read the Docs for the complete, version-matched technical reference (every config option, the full HTTP API, and internals). The links below point to the guide pages.
For coding agents
Install the Potato skill first. Agent Instructions has the install commands for each agent.
Without the skill, an agent can still work from these specs. The config schema
and the OpenAPI spec are generated from the code, so they match what the server
accepts. llms-full.txt is generated from the docs pages, and llms.txt is
curated by hand:
| Artifact | What it gives you |
|---|---|
llms.txt |
Curated index of the docs (llms.txt standard) |
llms-full.txt |
Every documentation page in one file |
| Config JSON Schema | All 183 config keys, 80 annotation types, 31 display types — validates a config.yaml before the server runs |
| OpenAPI 3.1 spec | All 534 HTTP paths, with per-operation auth and config gating |
Every config in examples/ carries a # yaml-language-server: $schema=…
modeline, so editors validate it live. See
Machine-Readable Specs for editor
setup, CI validation, and jq recipes.
Development
# Run tests
pytest tests/ -v
# By category
pytest tests/unit/ -v # Unit tests (fast)
pytest tests/server/ -v # Integration tests
pytest tests/selenium/ -v # Browser tests
# With coverage
pytest --cov=potato --cov-report=html
See the Testing guide for which tier to write in, the test-file security rules, the annotation-persistence testing pattern, and the drift tests that keep the generated specs honest.
Contributing
Bug fixes, new annotation types, documentation corrections and example projects are welcome. CONTRIBUTING.md covers setup and what to run before opening a PR; the full contributor guide covers the checklist for adding an annotation type and what reviewers look at.
Support
- Issues: GitHub Issues
- Questions: [email protected]
- Docs: potatoannotator.readthedocs.io
License
Potato is free software, licensed under the GNU General Public License v3.0 or later (GPLv3+). You are free to use, study, modify, and redistribute it — including for commercial purposes — provided that any distributed derivative works are also licensed under the GPLv3+ and made available with their source code. See the LICENSE file for the full terms.
Citation
If you use Potato in your research, please cite the Potato 2.0 paper (ACL 2026 System Demonstrations):
@inproceedings{jurgens-etal-2026-potato,
title = "Potato 2.0: A Comprehensive Annotation Platform with {AI}-in-the-Loop Support",
author = "Jurgens, David and
Chen, Michael and
Iyer, Lina",
editor = "Durrett, Greg and
Jian, Ping",
booktitle = "Proceedings of the 64th Annual Meeting of the Association for Computational Linguistics (Volume 3: System Demonstrations)",
month = jul,
year = "2026",
address = "San Diego, California, United States",
publisher = "Association for Computational Linguistics",
url = "https://aclanthology.org/2026.acl-demo.37/",
pages = "374--386",
ISBN = "979-8-89176-392-0",
}
To reference the original Potato release, cite the Potato 1.0 paper (EMNLP 2022 System Demonstrations):
@inproceedings{pei-etal-2022-potato,
title = "{POTATO}: The Portable Text Annotation Tool",
author = "Pei, Jiaxin and
Ananthasubramaniam, Aparna and
Wang, Xingyao and
Zhou, Naitian and
Dedeloudis, Apostolos and
Sargent, Jackson and
Jurgens, David",
editor = "Che, Wanxiang and
Shutova, Ekaterina",
booktitle = "Proceedings of the 2022 Conference on Empirical Methods in Natural Language Processing: System Demonstrations",
month = dec,
year = "2022",
address = "Abu Dhabi, UAE",
publisher = "Association for Computational Linguistics",
url = "https://aclanthology.org/2022.emnlp-demos.33/",
doi = "10.18653/v1/2022.emnlp-demos.33",
pages = "327--337",
}
Explore related projects
ytdl-org/youtube-dl
Command-line program to download videos from YouTube.com and other video sites
141,500 starsexcalidraw/excalidraw
Virtual whiteboard for sketching hand-drawn like diagrams
135,396 starsgodotengine/godot
Godot Engine – Multi-platform 2D and 3D game engine
119,840 starsmrdoob/three.js
JavaScript 3D Library.
117,983 stars