cd /news/ai-agents/pencil-4-0 Β· home β€Ί topics β€Ί ai-agents β€Ί article
[ARTICLE Β· art-157002] src=github.com β†— pub= topic=ai-agents verified=true sentiment=↑ positive

Pencil 4.0

Pencil released version 4.0.0, adding Model Context Protocol (MCP) support that lets AI coding assistants including Claude Desktop, Cursor, Antigravity and VS Code design and edit vector wireframes on the canvas through natural language. The release runs an MCP server at http://localhost:1919/mcp with tools such as insert_shapes, update_shapes, align_shapes, distribute_shapes, list_pages, create_page, search_resources and render_preview, and adds @group auto-layout containers for horizontal or vertical stacks. Pencil 4.0 also adds a declarative 4-tier style resolution engine, 90-degree connector support and an image editor tool, plus fixes for shape resizing and SVG transform handling in update_shapes and insert_shapes.

read3 min views1 publishedOct 24, 2026
Pencil 4.0
Image: Michielbdejong (auto-discovered)

Repository navigation #

Pencil 4.0 transforms Pencil into an AI-ready visual design studio! You can now pair your favorite AI coding assistants directly with Pencil to build, refine, and iterate on vector wireframes in real time.

Key Highlights

  • Design Wireframes with AI : Connect assistants like Claude Desktop, Cursor, Antigravity, and VS Code to design, arrange, and edit wireframes on your canvas using natural language.
  • Instant, Zero-Lag Canvas Updates : AI operations happen in memory in real time, with no waiting on disk polling, reloads, or file saving.
  • Smart Auto-Layout Containers (@group) : Group UI components into automatic horizontal (row) or vertical (column) stacks with automatic bounding boxes; say goodbye to manual pixel math and tedious coordinate nudging!
  • AI "Sees" What You See : Connected assistants can request live canvas snapshots and cropped previews (render_preview ) to visually inspect layout, typography, and contrast just like a human designer.
  • Watch Your AI Work Live : See active edits in real time with live canvas animation overlays and a floating status pill (AgentStatusPill ).

Model Context Protocol (MCP) Features & Tools

  • Draw, Style & Rearrange : Full control to add, update, reposition, group, align, and delete canvas elements (insert_shapes ,update_shapes ,align_shapes ,distribute_shapes ).
  • Full Document & Multi-Page Control : Assistants can navigate and structure projects autonomously (list_pages ,create_page ,rename_page ,switch_page ).
  • Icon & Stencil Discovery : Assistants can search installed icon libraries (Tabler, Lucide, FontAwesome) and discover UI components across all installed collections (search_resources ,list_collections ).
  • Privacy & Collection Governance : Decide which stencil libraries and assets the AI can see, with complete toggle control in application preferences.
  • 1-Click Assistant Setup : Built-in configuration generator inSettings > MCP with one-click copying for popular assistants, plus server lifecycle controls (start/stop/restart) onhttp://localhost:1919/mcp .

Canvas, Stencils & UI Enhancements

  • Declarative 4-tier style resolution engine with type-scoped defaults and single-inheritance custom styles.
  • Support for right-angle (90Β°) connectors (#380 ).
  • New image editor tool with expand and shrink support for image data (ImageEditDialog ).
  • Support copying and pasting images across different Pencil documents (#393 ).
  • Batch selection in Font Management Dialog.
  • Configurable handle color for canvas editors.
  • On-screen editing for blank plain text shapes.
  • Create collection files directly in Stencil Generator (#645 ).
  • Search and filter collections in Collection Management Dialog; view collection versions.
  • Non-blocking update notification dialogs for Pencil and installed stencil collections.

Bug Fixes & Improvements

  • Fixed canvas shape dimension resizing in update_shapes and hardened top-level box schema.
  • Fixed direct SVG transform manipulation in update_shapes andinsert_shapes .
  • Fixed rotation handling when rasterizing selection.
- Fixed HTML code colors not appearing in recently used colors ([#422](https://github.com/evolus/pencil/issues/422) ).
- Fixed menu positioning and implemented menu overflow mode for long menus ([#603](https://github.com/evolus/pencil/issues/603) ).
  • Fixed image bounds invalidation on offscreen canvas.
  • Fixed fallback handling in font editor for missing fonts.
  • Fixed alignment options for Process shapes in Flowchart.
  • Fixed text alignment for List Box shape.
  • Fixed HTML entity rendering (& ) in links.
  • Removed obsolete OpenClipart pane.
── more in #ai-agents 4 stories Β· sorted by recency
── more on @pencil 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain β€” perfect for shipping the agent you just read about.

$git push zahid main
β†’ Live at https://your-agent.zahid.host βœ“
Get free account β†’ Pricing
from €0/mo Β· no card required
LIVE [news/pencil-4-0] indexed:0 read:3min 2026-10-24 Β· β€”