{
 "schema_version": 1,
 "generated": "2026-10-26",
 "id": "sakanaai-autoillustrate--hand-edit-figure-before-restyle",
 "repo": "SakanaAI/AutoIllustrate",
 "repo_url": "https://github.com/SakanaAI/AutoIllustrate",
 "repo_slug": "sakanaai-autoillustrate",
 "title": "Hand-edit a generated diagram before the final restyle",
 "page_title": "How to hand-edit a generated diagram before the final restyle with Auto Illustrate",
 "summary": "Open the draft diagram in diagrams.net in your browser, fix it, then continue the run to produce the enhanced PNG.",
 "who": "A paper author who received a generated draft that is mostly right but needs manual layout or label fixes before the final image.",
 "problem": "Automated layouts can misplace a box or label, and the final restyle step should only run once the structure is correct.",
 "outcome": "An edited full_figure.drawio and an enhanced PNG that reflects the manual changes.",
 "steps": [
  "Install the draw.io desktop CLI and Claude Code CLI as in the install section, and set OPENAI_API_KEY. (inferred, check the README)",
  "`autoillustrate examples/ai_scientist_method.tex --prompt \"Please make a diagram illustrating the method of our scientific research paper in a single panel. We intend to use it as front-page diagram in our research paper.\" --interactive` (replace the path and prompt with your own) (inferred, check the README)",
  "When the run opens full_figure.drawio in the diagrams.net editor in your browser, make your changes there.",
  "Press Enter in the terminal to re-export the PNG and continue to the enhance phase.",
  "On a remote machine, add `--editor-port <port>` and use `ssh -L <port>:127.0.0.1:<port>` to reach the editor. (inferred, check the README)"
 ],
 "agent_prompt": "Using the repo SakanaAI/AutoIllustrate, start an interactive run on <path to .tex file> with -i and wait for the editor step. After the user confirms edits, press Enter and verify that figures/full_figure_enhanced.png is written in the run folder.",
 "agents": [
  "claude-code"
 ],
 "difficulty": "Intermediate",
 "time": "1 hour",
 "basis": "readme",
 "caveat": "The editor runs on 127.0.0.1, so remote use needs the SSH port forward described in the README.",
 "category": "Research",
 "tags": [
  "Research"
 ],
 "lang": "typescript",
 "requirements": [
  "Node 22 or newer",
  "draw.io desktop CLI on PATH as drawio",
  "Claude Code CLI (claude) on PATH, since it is the default agent",
  "OPENAI_API_KEY set in the shell or a .env file",
  "Python 3.10 or newer (the CLI creates its own cached venv on first run)"
 ],
 "risk": "none",
 "seen_in_the_wild": false,
 "mentioned_publicly": false,
 "risks": [
  {
   "tag": "credentials",
   "notice": "The interactive run keeps agents running with your inherited environment, including API keys, so use trusted source files only."
  }
 ],
 "best": false,
 "score": 0.9,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/sakanaai-autoillustrate/hand-edit-figure-before-restyle/",
 "md": "https://dedupedai.com/use-cases/sakanaai-autoillustrate/hand-edit-figure-before-restyle/index.md",
 "disclaimer": "Deduped lists open-source repositories that belong to other people. We do not own, maintain, audit, or vouch for any of them, and a repo appearing here is not an endorsement or a safety check. The use cases, steps, and prompts are written by AI and may be incomplete, outdated, or just wrong. Where a use case is marked \"Seen in the wild\", we link to public posts where someone described something similar, but we have not verified those posts and the use case itself is still our AI's own write-up. Use all of this at your own risk. Only run code, commands, or agents on systems and accounts you are authorized to use, and read the code and every command before you run it, especially anything that touches credentials, files, or the network. Nothing here is professional, security, legal, or financial advice. All trademarks and project names belong to their respective owners, and their use here does not imply affiliation. Content is provided as is, without warranties of any kind. Found a mistake, a safety problem, or something you want removed? Email hello@dedupedai.com and we will look at it promptly.",
 "api": "https://dedupedai.com/api/v1/usecases/sakanaai-autoillustrate--hand-edit-figure-before-restyle.json",
 "api_version": "v1"
}
