Skip to content

About

Agent2Figure (AAAI 2027): Evidence-grounded scientific figure generation via deterministic geometry compilation to editable vectors.

Resources

Stars

1 star

Watchers

0 watching

Forks

Repository files navigation

Agent2Figure: Evidence-Grounded Scientific Figure Generation via Geometry Compilation to Editable Vectors

🌐 Project Page • 💻 Code • 🚀 Claw Orchestrator • 📚 Citation

Agent2Figure turns paper text, a target caption, or a declarative FigureSpec (architecture diagrams, pipelines, hybrid visual scenes, and quantitative data charts) into editable vector SVG, selectable-text PDF, and native PowerPoint figures. It runs on Claw Orchestrator (clawo) by separating semantic planning from deterministic geometry compilation and repairing residual issues at the specification level.

News

  • [2026-12] Agent2Figure is accepted to AAAI 2027. Paper preprint and open-source release on Claw Orchestrator.
  • [2026-09] Our earlier coordinate-free layout recipe, Declare, Compile, Look, was presented as an oral at the ECCV 2026 Multimodal Digital Agents Workshop.

Highlights

  • 🧩 Coordinate-free FigureSpec: language models declare typed elements, relations, grouping constraints, and paper provenance while raw coordinates are rejected at schema time.
  • 📐 Deterministic geometry compiler: exact bundled Carlito glyph metrics, hierarchical constraint layout, port spreading, and orthogonal obstacle-avoiding routing guarantee alignment and non-overlap by construction.
  • 🖼️ Hybrid visual-vector figures: embed photorealistic or stylized image assets inside a compiled vector skeleton so visuals stay rich while boxes, math, and arrows remain editable.
  • 🔍 Cross-family runtime verification: clawo enforces deterministic SVG and print-scale checks alongside fresh-session cold reads and visual reviews on a separate model family, rolling back to the best round automatically.
  • 📦 Camera-ready vector exports: instant browser-free PNG previews, searchable TrueType vector PDFs with zero Type 3 fonts, Track B data charts, and native editable PPTX files for co-authors.

Gallery

All figures below were compiled directly by Agent2Figure without hand-editing SVG coordinates.

Causal Video World Model (Pure Vector) Structure-Guided Ligand Design (Hybrid Bio-AI)
Autonomous LaTeX to Figure (clawo Claude + Gemini) Track B Multi-Panel Evaluation (Paper Tables 2 & 4)

More examples and paper comparisons are on the project page.

Quick Start

Requires Node.js 22+.

git clone https://github.com/Enderfga/Agent2Figure && cd Agent2Figure
npm install && npm run build

Compile, audit, and preview an example FigureSpec into SVG, 2× PNGs, PDF, and editable PPTX:

node dist/bin/cli.js compile examples/video-world-model.spec.json \
  --out-dir out/demo --pdf --pptx --audit --strict --venue neurips

# Live-reloading local workbench (color, grayscale, colorblind, cold-read, X-Ray, 1:1 print ruler)
node dist/bin/cli.js watch examples/video-world-model.spec.json

Initialize a paper- or institution-specific theme (a2f.config.json) and run the full multi-engine pipeline from a paper file (with optional whiteboard/sketch --ref-image) on a local clawo server (clawo serve &):

node dist/bin/cli.js init config
node dist/bin/cli.js generate --paper paper.tex \
  --caption "Overview of our method architecture." \
  --out-dir out/fig1 --planner claude --reviewer agy --venue neurips --max-rounds 4 --max-budget 3.0

The first command builds out/demo/figure.svg, figure.png, figure.gray.png, figure.cold.png, figure.pdf, and audit.json in under two seconds.

Best results in practice: we strongly recommend combining three steps instead of running fully hands-off generation: (1) pair the compiler with high-quality visual references or generated image assets (--hybrid-assets), (2) use human-in-the-loop steering (--interactive) to confirm the initial skeleton and layout direction before multi-round visual refinement, and (3) pre-specify a paper-specific or institution-specific color palette and visual motif upfront so figures stay cohesive with your paper and do not fall into a generic look.

  • 🧩 FigureSpec schema, patching and implementation notes (guide).
  • 🔁 Multi-engine clawo workflow, --explore fan-out and hybrid assets (guide).
  • 📊 Standalone SVG audit, Track B charts, PPTX and PDF trimming (guide).
  • 🛠️ Agent Skill for Claude Code, Codex, Cursor and Antigravity (skill).

Ways to run

For Start here
CLI compiler, watch & auditor Deterministic compilation, live a2f watch workbench, hybrid assets and SVG audits node dist/bin/cli.js compile / watch above
Claw Orchestrator workflow End-to-end paper (or --ref-image sketch) to vector figure with cross-family visual review node dist/bin/cli.js generate (guide)
MCP server (a2f-mcp) Calling compile, audit, patch, chart, PPTX and generate tools from any MCP host docs/charts-and-exports.md
Agent Skill Dropping Agent2Figure straight into a coding agent skills/agent2figure/SKILL.md
Track B data charts & PPTX Quantitative matplotlib plots and native editable PowerPoint export docs/charts-and-exports.md

Citation

@misc{fang2026agent2figure,
  title  = {Agent2Figure: Evidence-Grounded Scientific Figure Generation via Geometry Compilation to Editable Vectors},
  author = {Fang, Guian and Liu, Mengsha and Shou, Mike Zheng},
  year   = {2026}
}
Workshop version (ECCV 2026 Multimodal Digital Agents Workshop, Oral)

The coordinate-free layout recipe at the core of Agent2Figure was presented as an oral at the ECCV 2026 Multimodal Digital Agents Workshop, under the title Declare, Compile, Look: Coordinate-Free Layout Generation with Vision-in-the-Loop Repair.

@inproceedings{fang2026declare,
  title     = {Declare, Compile, Look: Coordinate-Free Layout Generation with Vision-in-the-Loop Repair},
  author    = {Fang, Guian and Liu, Mengsha and Shou, Mike Zheng},
  booktitle = {ECCV 2026 Multimodal Digital Agents Workshop},
  year      = {2026},
  url       = {https://openreview.net/forum?id=Romd50Ce0w}
}

Acknowledgement

Agent2Figure runs on Claw Orchestrator and bundles the OFL Carlito font family for deterministic glyph metrics. Our Track B quantitative data-chart styling and QA workflow are adapted from nature-skills (nature-figure) and its upstream figures4papers conventions. We will keep refining this repository continuously with lessons learned from day-to-day paper writing.

License

Code: MIT. Bundled fonts: Carlito (SIL Open Font License 1.1) and DejaVu Sans Mono (Bitstream Vera / DejaVu License).

About

Agent2Figure (AAAI 2027): Evidence-grounded scientific figure generation via deterministic geometry compilation to editable vectors.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages