How tonykastaneda/slippy works
Slippy embeds agent-facing automation in Adobe Illustrator and Photoshop. An agent connects to the app’s loopback endpoint, submits a command, and receives the result; edits are performed on the host app’s main thread and surfaced in the Slippy panel. Illustrator and Photoshop each have native command implementations, while Photoshop also contains an earlier UXP-plus-Node bridge retained for reference. The README documents the product flow and capabilities; some internal wiring is not visible in the sampled excerpts, so uncertain links are omitted.
Main entry points: Server.cpp Loopback server · SlippyPlugin.cpp Plug-in entry · PsPlugin.cpp Plug-in entry · main.js UXP panel runtime
Components 24
Shared runtime
- Loopback server
shared/Server.cpp - MCP handling
shared/Mcp.cpp - Command interface
shared/Commands.h - Platform services
shared/Platform.cpp
Illustrator plug-in
- Plug-in entry
illustrator/SlippyPlugin.cpp - Illustrator commands
illustrator/Commands.cpp - Document and art tools
illustrator - Illustrator panel
illustrator/SlippyPanelHostWin.cpp
Photoshop native
- Plug-in entry
photoshop/PsPlugin.cpp - Photoshop commands
photoshop/PsCommands.cpp - Action descriptors
photoshop/PsDescriptor.cpp - Photoshop SDK suites
photoshop/PsSuites.cpp - Docked panel
photoshop/panel/panel.js
Photoshop UXP reference
- UXP bridge server
photoshop/uxp/bridge/src/server.js - Panel link
photoshop/uxp/bridge/src/plugin-link.js - UXP panel runtime
photoshop/uxp/plugin/main.js - UXP command registry
photoshop/uxp/plugin/commands/registry.js - Document commands
photoshop/uxp/plugin/commands/documents.js - Layer commands
photoshop/uxp/plugin/commands/layers.js - Bridge tools
photoshop/uxp/bridge/src/tools.js
Other components
- AI agent
- Illustrator
- Photoshop
- JSON-RPC client
client/slippy_client.py
Connections 25
- AI agent → Loopback server: calls MCP
- AI agent → JSON-RPC client: uses JSON-RPC
- JSON-RPC client → Loopback server: sends requests
- Loopback server → MCP handling: routes MCP
- Plug-in entry → Loopback server: starts server
- Plug-in entry → Loopback server: starts server
photoshop/PsPlugin.cpp - Loopback server → Command interface: dispatches calls
- Plug-in entry → Illustrator commands: dispatches on main thread
illustrator/Commands.cpp - Illustrator commands → Command interface: implements interface
illustrator/Commands.cpp - Plug-in entry → Illustrator: runs in
- Illustrator commands → Document and art tools: implements tools
illustrator/Commands.cpp - Plug-in entry → Illustrator panel: shows activity
- Plug-in entry → Photoshop commands: dispatches commands
- Plug-in entry → Photoshop: runs in
- Photoshop commands → Action descriptors: uses descriptors
photoshop/PsCommands.cpp - Plug-in entry → Docked panel: serves connection info
- Platform services → Loopback server: provides file and socket support
shared/Server.cpp - UXP bridge server → Panel link: routes WebSocket
photoshop/uxp/bridge/src/server.js - UXP bridge server → Bridge tools: registers tools
photoshop/uxp/bridge/src/server.js - Panel link → UXP panel runtime: exchanges calls
- UXP panel runtime → UXP command registry: loads and calls
photoshop/uxp/plugin/main.js - UXP panel runtime → Document commands: loads commands
photoshop/uxp/plugin/main.js - UXP panel runtime → Layer commands: loads commands
photoshop/uxp/plugin/main.js - Document commands → UXP command registry: registers commands
photoshop/uxp/plugin/commands/documents.js - Layer commands → UXP command registry: registers commands
photoshop/uxp/plugin/commands/layers.js