From raw micrographs
to analytical validation,
in one conversation.

Agentic-J is an AI agent that analyses microscopy images with the tools the community already trusts: Fiji and its plugins, the scientific Python stack and napari. Describe your question in plain English. It adapts the analysis to your data, picks the right plugin or library, writes and debugs the code, and documents the whole project. If a tool is missing, it can install it.

Runs locally Your data stay on your machine Apache 2.0 · open source

3
engines: Fiji, Python, napari
25
Fiji plugin skill packs
11
Python & napari skills
7
specialist agents
3
modes: conventional, exploratory, education
localhost:6080/vnc.html — Agentic-J + Fiji
Agentic-J chat panel next to a live Fiji desktop in the browser
The chat panel and a live Fiji desktop, served to your browser by noVNC.
Community tools

Fiji, Python and napari in the same chat.

Agentic-J builds on the plugins and libraries the bioimage community develops and validates, and picks the right one for each step. Each tool below comes with a curated skill that the agent loads when needed. Need something else? Ask the agent to install it.

Fiji / ImageJ

GROOVY · MACROS · UI GUIDANCE

A full Fiji with curated plugins. The coder writes Groovy against real plugin APIs, and the debugger reads the ImageJ log and fixes the script with surgical edits.

3D ImageJ SuiteBigStitcherBio-Formats BioVoxxel ToolboxBoneJbUnwarpJ CellposeCLIJ2Coloc 2 CSBDeepDeepImageJFeatureJ Labkit MorphoLibJNeuronJOrientationJ Sholl AnalysisSNTStackReg StarDistTrackMateTransformJ TurboReg

Python

CONDA ENVS · STATS · PUBLICATION PLOTS

The Python analyst writes scripts for the scientific Python stack. A one-line header selects which of the container's conda environments the script runs in.

Cellpose 3Cellpose-SAMBig-FISH cp_measureBrainGlobescikit-image scikit-learnstatisticsmatplotlib / seaborn plotnine

napari

MCP · 3D · INTERACTIVE

A napari viewer is available through the Model Context Protocol. The agent opens layers, adjusts views and hands you tools, and napari opens only when a task needs it.

napari viewermicro-samobject classifier fine-tuning
Install

Install in four steps.

You'll need Docker, at least 12 GB of RAM, 50 GB of free disk, and an OpenAI or OpenRouter API key.

i.

Clone the repo

Install Git and Git LFS, because the knowledge base is stored with LFS.

git lfs install
git clone \
  https://github.com/MMV-Lab/Agentic-J.git
cd Agentic-J
ii.

Add your key

Copy the template, open it in a text editor and fill in one key. In nano, save with Ctrl+O, Enter and exit with Ctrl+X; on Windows, notepad .env works too. If you skip this step, a setup wizard will ask for the key.

cp .env.template .env
nano .env
# set one of:
OPENAI_API_KEY=sk-...
OPEN_ROUTER_API_KEY=sk-...
iii.

Add your images

Put your files in ./data/. The agent sees them at /app/data.

Agentic-J/
├── data/
│   └── my_image.tif
├── .env
└── docker-compose.yml
iv.

Launch

When it's ready, open localhost:6080/vnc.html in your browser.

docker compose up

Changing the key later

Edit .env again (nano .env), then restart so the container reads it:

docker compose down
docker compose up

If you entered a key in the setup wizard, it is saved inside the container and takes precedence over .env. Remove it once before restarting:

docker compose exec imagentj rm /home/imagentj/api_keys.env

Have an NVIDIA GPU?

The GPU build accelerates Cellpose, StarDist, micro-sam and fine-tuning. It needs driver 560+, nvidia-container-toolkit and CDI enabled in Docker. GPU guide →

docker compose -f docker-compose.yml \
  -f docker-compose.gpu.yml up -d
Installing Agentic-J
Installation video · coming soon

Where your files live

The container sees one folder of your computer. Put your images there, and everything the agent writes appears there straight away.

./data on your computer and /app/data inside the container are the same folder YOUR COMPUTER ./data/ ├── my_image.tifyour images ├── projects/one folder per analysis └── chats/chat history AGENTIC-J CONTAINER /app/data/ Fiji Python napari read your images and write every result back here same folder
Demonstrations

One agent, four ways to work.

Let it run the analysis, fine-tune a model with you, guide you click by click, or teach you.

Plugins from a prompt
Demo video · coming soon

Describe what you want to measure. The agent picks a suitable plugin, such as TrackMate, StarDist or MorphoLibJ, writes a Groovy script against its real API, runs it in Fiji and fixes it when the ImageJ log shows an error. You keep the script and can re-run it outside the agent.

Reproducibility

Reproducible by default.

Every analysis becomes a self-contained project folder with the raw data, scripts, results, figures and logs. A state ledger records each step as it happens, and at the end the agent writes a workflow report from it.

The project folder

Created by the agent when an analysis starts.

data/projects/my_project/
├── raw_images/              copy of your source images
├── processed_images/
│   ├── channels/            split or pre-processed TIFFs
│   └── montages/            overview images
├── scripts/
│   ├── imagej/              generated Groovy scripts
│   └── python/              stats & plotting scripts
├── data/                    measurement CSVs, tables
├── figures/                 plots, publication figures
├── logs/                    execution logs
├── state_ledger.json
├── Workflow_Documentation.md
└── QA_Checklist_Report.md   if QA is enabled

The state ledger

Excerpt from a real project: BoneJ trabecular morphometry of micro-CT scans. Long values are shortened.

state_ledger.json
{
  "project_root": "/app/data/projects/earthworm_mouse_trabecular_architecture",
  "scientific_goal": "Quantify L3 trabecular bone volume fraction, ...",
  "operating_mode": "script",
  "key_decisions": [ ... ],
  "image_metadata": {
    "bit_depth": 8, ..., "n_images": 67, ..., "modality": "microCT", ...
  },
  ...
  "recommended_plugin": "BoneJ",
  "completed_steps": [
    ...
    {
      "phase": "4b",
      "step": "bonej_batch_measurement",
      "status": "completed",
      "details": "Approved BoneJ pipeline processed all 66 ...",
      "timestamp": "2026-10-05T14:55:00Z",
      "script_path": ".../scripts/imagej/phase4b_batch_bonej_all_specimens.groovy",
      "output_paths": [ ".../data/specimens_bonej_raw.csv", ... ],
      "parameters": { ..., "processed_specimens": 66, "errors": 0, ... }
    },
    ...
  ],
  "current_phase": "7"
}

The ledger lives on disk and its list of steps is append-only, so it survives context compaction in long sessions.

Publication

Cite Agentic-J.

Agentic-J: An AI Agent for Biological Microscopy Image Analysis

Lukas Johanns†, Marilin Moor†, Davide Panzeri, Yu Zhou, Xinyi Chen, Nora F. K. Pauly, Zixuan Pan, Matthias Gunzer, Andreas Müller, Yiyu Shi, Hedi Peterson, Jianxu Chen*

arXiv:2606.02080 [cs.MA] · 2026 · †equal contribution · *corresponding

@article{johanns2026agenticj,
  title   = {Agentic-J: An AI Agent for Biological
             Microscopy Image Analysis},
  author  = {Johanns, Lukas and Moor, Marilin and
             Panzeri, Davide and Zhou, Yu and
             Chen, Xinyi and Pauly, Nora F. K. and
             Pan, Zixuan and Gunzer, Matthias and
             M{\"u}ller, Andreas and Shi, Yiyu and
             Peterson, Hedi and Chen, Jianxu},
  journal = {arXiv preprint arXiv:2606.02080},
  year    = {2026}
}