Skip to content

Automation and CLI

ProtoCode includes an automation server that lets AI agents (Claude Code, Codex, Gemini CLI…) and external tools control the program from the same computer through the robolacytech command line. An agent can, for example, create a project, declare variables, write programs in any language, compile, simulate and read or force values.

Open it with Tools → Automation.

Automation window

Option Description
Server enabled Turns the server on. The status is shown at the top: Listening on 127.0.0.1:port · N client(s).
Start when the program opens Starts the server automatically when ProtoCode opens.
Port TCP port. 0 = automatic.

The server only listens on the local computer (127.0.0.1): it cannot be reached from the network. The CLI indicator in the status bar shows whether it is running, its port and the connected clients.

Choose what connected tools may do:

Permission Allows
Read project and state Reading the project, files and state.
Create and modify content Creating and editing files, variables, tasks and programs.
Build Compiling.
Simulate and force values Starting and stopping the simulation, writing and forcing variables.
Delete or discard (with confirmation) Deleting files or discarding changes, always with confirmation.
Create and open projects on disk Creating, opening and saving projects.
Auto-confirm destructive operations Skips the confirmation of destructive operations. Not recommended.

Everything an agent does goes into the editor’s undo history, so you can revert it with Ctrl+Z.

The right column shows whether the robolacytech CLI is installed and its version, plus the list of Agent skills: instruction packages that teach each AI agent how to use ProtoCode. From here you can install, update or uninstall the skill for each detected agent.

With ProtoCode open and the server running:

Terminal window
robolacytech protocode status # program, project and simulation state
robolacytech protocode tools # available command groups and commands
robolacytech protocode project info # files and tasks of the open project
robolacytech protocode build compile # compile
robolacytech protocode sim start # start the simulation
robolacytech protocode sim read --targets '[{"variable":"IO.Motor"}]'

Every command returns a JSON object ({"ok": true, "data": …}) meant to be read by an agent. With the skill installed, you can simply ask the agent in natural language, for example: “In ProtoCode, create a Ladder program that starts a conveyor with a push button and stops it after 10 parts, compile it and test it”.