Skip to content

AI Chat for TIA Portal and CODESYS

On this page

The built-in AI Chat is a conversational assistant that is aware of the TIA Portal project you have open. It lives in the chat view of the workbench: open it from the Activity Bar or with the Command Palette (Ctrl+Shift+P → "Chat"). Send a message in the chat input at the bottom, pick a model in the per-message model picker, and the assistant replies in the chat, calling TIA-aware tools when it needs project context.

The assistant introduces itself as AnyAutomation Studio and gives a short capability summary on first greeting: analyze and document PLC blocks; generate, convert, and review SCL / AWL code; browse and search the open TIA Portal project; create and edit tags and user constants in variable tables; run tests and help debug.

The chat mascot

An animated robot sits in the chat title row, to the left of the title. The title row always renders, even on a fresh, empty chat, so the mascot is visible from the moment a session opens, and a new session shows a New Chat label next to it. The mascot reacts to what is happening:

  • At rest it blinks slowly and its eyes follow the pointer.
  • While the assistant is responding the eyes keep blinking and keyboard keys flash in sequence.
  • After several seconds of continuous responding it shifts into a deeper "thinking" state. This is held back for short responses and is suppressed entirely if your system prefers reduced motion.
  • It shows a brief success or error reaction when a response finishes, squints while you type, and goes to sleep after about a minute of idle.

If you prefer a quieter header, right-click the mascot and choose Hide Mascot: it slides into the left edge and only a small corner stays visible. To bring it back, right-click that corner and choose Show Mascot, or type /mascot in the chat input; the same command hides it again. Nothing is sent to the model. The Command Palette offers Chat: Show Mascot and Chat: Hide Mascot as well. Your choice applies to every window and is kept after a restart.

Signing in to a provider

Chat models come from AI providers you sign in to (no API key to paste). The built-in providers use a browser or device sign-in flow, after which their models appear in the chat model picker:

Provider Sign-in
Anthropic (Claude Pro / Max) Reuse an existing Claude Code login or sign in interactively
OpenAI (ChatGPT / Codex) Browser sign-in
xAI (Grok) Browser sign-in
Qwen Device-code sign-in

You can also bring your own API key (BYOK) for additional vendors through the native model management.

With the ChatGPT sign-in, the model list shows the models your plan covers.

Where to sign in: an AI Provider button sits in the chat input toolbar. Clicking it opens the Agent Customizations editor on the Providers page, where every provider has its own row with its status: use Sign In or Sign Out for a subscription provider, enter an API key or a local server address, and switch Web Search on or off. The Command Palette also offers a Manage AI Provider Sign-In list (search "AI Provider"): one row per provider, each showing whether you are signed in. Select a signed-out row to start the sign-in flow; select a signed-in row to confirm and sign out. While a browser sign-in waits for you, a progress notification lets you cancel it. If the browser cannot hand the sign-in back to Studio, for example because another sign-in is still waiting, Studio says so and asks you to paste the full address the browser was redirected to.

Keeping an eye on your subscription usage

When you are signed in with an account subscription, a provider icon appears in the status bar at the bottom right, next to the Copilot icon. Currently for Claude (Anthropic) and OpenAI (ChatGPT): each signed-in provider gets its own icon side by side. Clicking one opens the usage overview of that subscription:

  • Plan and account: the header shows your plan (for example "Claude Max 20x" or "ChatGPT Pro") and, where available, the signed-in e-mail address. The gear next to it opens the provider management.
  • Usage bars: one bar each for the current session and the weekly limit; for Claude, additionally a model-specific weekly limit if your account has one. Each bar shows the percentage used and when the limit resets.
  • Warnings: as a limit gets close, the bar changes color and a notice appears. Once a limit that applies to your whole account is reached, the status bar icon reads "Limit reached" until that limit resets. A limit that applies to a single model is shown in the usage overview instead: it names the model and suggests switching models, and you can keep working with your other models.

The values refresh when you open the overview and periodically in the background. An icon only appears with an account sign-in; if you use a provider with your own API key there are no subscription limits and no display.

Token usage of a chat

Type /cost in the chat to see the tokens the current chat has used so far, as your providers report them. A dialog opens right away, without asking the model:

  • The table lists each model the chat used, with the number of answers that used it and the tokens: input, read from the provider's cache and output. The input includes what was read from the cache; an empty cache cell means that the provider reported no cache figures.
  • What counts is the usage your providers report with the answers of the chat, the work of sub-agents and workflows included. This includes models you use through a subscription sign-in, a local server or GitHub Copilot. Work outside an answer, such as a summary made between your messages, is not counted.

Studio shows no amount in US dollars. To see what the tokens cost, open the billing or usage page of your provider. The figures are read from the answers of the chat each time you ask, so they are also there after a restart. Before the first answer, the chat tells you that nothing has been counted yet.

Connecting local AI servers

Besides the sign-in providers, the chat can also draw models from a local or self-hosted AI server, no sign-in required. Ollama, LM Studio, vLLM, and SGLang are supported; the Custom entry additionally connects any OpenAI-compatible endpoint. Local servers are available from the Basic plan.

Setting up: open the Agent Customizations editor and go to the Providers section, where the providers are listed in groups with a search box at the top. Each server has its own row under Local Servers; click it to open its address field. The usual local address is pre-filled (for example http://localhost:11434 for Ollama or http://localhost:1234/v1 for LM Studio). Adjust it only if your server runs elsewhere. The Custom row starts with an empty address field. If your server requires a key, enter it in the optional API-key field; local servers usually need none.

Address rules: web addresses must start with https://; plain http:// is accepted for localhost addresses only. A rejected address shows an error message right under the field.

Priority on a vLLM server: the vLLM row carries a Priority field. The value travels with every request so your server can order its queue; 0 sends none.

Using models: once the server is running, its models appear automatically in the chat model picker. Select one and chat as usual; tools and agent mode work too.

From LM Studio and Ollama, only the chat models are offered. Embedding models that these two servers also list do not show up in the chat model picker or in any other model picker.

Ollama models that understand images, such as vision models, are offered with image input: they see the screenshots you attach and the scanned pages of PDFs in your project.

Turning a server off: the Ollama, LM Studio, vLLM and SGLang rows each have a switch at the right, which is on by default. Turn it off when you have such a server installed for other work and do not want it in Studio: the row then shows Turned off, its models disappear from the chat model picker and from every other model picker, and Studio no longer contacts the server. If a chat still uses one of its models, the chat tells you that the server is turned off and where to turn it back on. Turn the switch on again to bring the models back. The Custom row has no switch, it is only used once you enter an address. The codebase index keeps working with its own embedding server either way.

Thinking on a llama.cpp server: if your Custom endpoint is served by a llama.cpp server, models whose server reports it show an On / Off thinking choice next to the model name in the chat input.

The Manage AI Provider Sign-In list (see above) is grouped in three sections: Subscription & Accounts for the sign-in providers and GitHub Copilot, Cloud Providers for the cloud providers with an API key (see below), and Local & Self-Hosted for the local servers. Each entry in the latter two groups shows Ready or Not configured; selecting one opens the Providers settings page.

If no models appear in the picker, check that the server is running and the address you entered is correct.

Connecting cloud providers with an API key

The chat can also draw models directly from cloud AI providers, using an API key instead of a sign-in. Google Gemini, OpenRouter, Mistral, Groq, Cerebras, DeepSeek, Perplexity, Together AI, Hugging Face, Fireworks AI, Vercel AI Gateway, Arcee AI, Alibaba Model Studio (pay-as-you-go and Token Plan), Z.AI, MiniMax, Moonshot AI, Baidu Qianfan, Volcano Engine, BytePlus, and Kimi Coding are supported. For Google Gemini, create the key in Google AI Studio and paste it in the Google Gemini row. Cloud providers are available from the Basic plan.

Setting up: open the Agent Customizations editor and go to the Providers section. Each cloud provider has its own row there under API Key: click it and paste your API key (required; you get it from the provider's console). If needed, you can override the server address; it must start with https://. Z.AI, MiniMax, and Moonshot AI additionally offer a Region choice (for example a global or a China variant); Default is the standard region.

Every provider, including the local servers, offers two more optional fields: Additional model IDs adds comma-separated models the provider does not list itself, and Context window overrides caps per model (model-ID=tokens, comma-separated) how much text Studio sends to that model.

In the Manage AI Provider Sign-In list (see above), the cloud providers appear in their own Cloud Providers group, each with a Ready or Not configured status. Once a key is saved, the provider's models appear automatically in the chat model picker. Chat as usual; tools and agent mode work too.

If your key is rejected, check it in the provider's console and paste it again.

If a service answers with a web page instead of a reply, for example a sign-in or a maintenance page, the error message says so.

Cloudflare AI Gateway

If you route your AI traffic through your own Cloudflare gateway, the chat can use it directly. The Cloudflare AI Gateway row in the Providers section asks for four things: your Cloudflare account ID, your gateway ID, the provider your gateway routes to (a dropdown: OpenAI, Groq, Mistral, Workers AI, or a generic OpenAI-compatible option), and your API key.

Once account ID and gateway ID are filled in, a line below the fields shows the resolved address, confirming which gateway your chats will go through. With the key saved, the gateway's models appear in the chat model picker like any other cloud provider. In the Manage AI Provider Sign-In list, Cloudflare AI Gateway appears in the Cloud Providers group; like the other cloud providers, it is available from the Basic plan.

Connecting enterprise cloud providers

Three more providers connect to your own enterprise cloud account rather than a simple API key: Azure OpenAI, Google Vertex AI, and AWS Bedrock. Each is set up in its own row in the Agent Customizations editor → Providers section, and each is available from the Basic plan. In the Manage AI Provider Sign-In list they appear in the Cloud Providers group with a Ready or Not configured status. Once a provider is configured, its models appear in the chat model picker like any other provider.

Azure OpenAI

In the Azure OpenAI row, enter your Azure OpenAI resource endpoint (the https://…openai.azure.com address of your resource), your API key, and the deployment name you created in Azure. Optionally set the API version, and turn on Use Responses API for reasoning deployments. The deployment name(s) you enter become the selectable models; add more through the row's model-IDs field. If Azure pauses briefly for capacity, the chat waits and sends the request again on its own.

Google Vertex AI

In the Google Vertex AI row, enter your Google Cloud project ID and the location (region, for example us-central1). Optionally point credentials file at a Google service-account JSON key file; leave it empty to use your machine's Application Default Credentials (for example a gcloud login). There is no API key. Pick a Gemini model from the row's curated list, or add your own model IDs.

AWS Bedrock

In the AWS Bedrock row, enter your AWS region (for example us-east-1). Optionally enter an access key ID and secret access key (and a session token for temporary credentials); leave them empty to use your machine's ambient AWS credentials (environment variables, a shared profile, or an IAM role). Pick a Claude-on-Bedrock model from the row's list, or add your own model IDs.

Once configured, the provider's models appear in the chat model picker. Chat as usual; tools and agent mode work too.

Choosing a model

The model picker in the chat input selects which provider and model answer the next message. It opens as a list with one tab per provider; open it to switch models on the fly, and point at a model to open its details card, where a model that offers them lets you set its thinking level and context size. "Manage Models…" from the picker opens the native model catalog where BYOK vendors and per-model details are managed. Each message can use a different model. The title of the chat names the harness that runs the session next to the session name, for example AnyAutomation · New Chat.

If no AI provider is signed in yet, the picker shows an AI Providers tab with Sign In, which opens the sign-in for your AI providers.

The picker also lists GPT-6.1 Sol, GPT-6 Sol, GPT-6 Luna and GPT-6 Astra for OpenAI, offered with an API key as well as with the ChatGPT sign-in, Grok 4.7 for xAI, DeepSeek V4.1 Flash, and Qwen3.8 Flash for Alibaba Model Studio (Token Plan).

Thinking effort and context size

Right next to the model name in the chat input, supported models offer two extra per-model choices. Models without these capabilities simply don't show the buttons.

Thinking effort: supporting models show an additional section next to the model name (for example High). Clicking it opens a Thinking Effort picker with the levels the model offers, typically along the lines of Off / Low / Medium / High, with the model's default marked (default); the exact levels vary per model. Higher levels make the model reason more deeply before answering: better on hard problems, but slower and potentially costlier. Off is offered by the models that can drop the extra thinking altogether and gives you the quickest answers; on the few models that always think, Off holds the thinking at the model's own minimum and keeps it out of the answer. Off is never a model's default, so it applies only when you pick it. Your pick is remembered per model.

Where the picker appears: the GPT-6 models offer their full ladder from Low to Max, with an API key as well as with the ChatGPT sign-in; GPT-6 Sol and GPT-6 Luna add Off. Mistral models that can reason show the picker with exactly the levels each model supports, Off included where the model takes it. Claude models you reach through OpenRouter or the Vercel AI Gateway give you the same thinking control as Claude directly. Gemini models each offer the levels of that model, with Off where the model supports it.

Claude models: the level set when you send a message holds for that whole answer, including the tool calls along the way; a change in the picker applies from your next message. If the service sets earlier thinking aside while a long answer is running, a short note appears in the chat and the answer continues. If your Anthropic account does not allow the level you picked for a model, the chat answers at the highest level the account accepts and says once which level it used; that level stays in use for the model until you restart the window.

More thinking for one message: ultrathink. Write the word ultrathink anywhere in your message to ask for the deepest reasoning on just that message. On a model with a thinking effort picker, the answer runs on the highest level the model offers and the chat shows Thinking more deeply for this turn while it works. On other models, the assistant is asked to reason more thoroughly. Your next message runs on the level in the picker again, and the picker itself does not change.

Context size (Claude models): Claude models with a very large context window show a second section (for example 1M). It opens a Context Size picker with two choices: 1M and 200K. The newest of these models serve the very large window directly and start on 1M; the others start on 200K. Picking 1M where it is offered gives the model its largest window, so very long sessions fit, and the context-usage indicator shows the fill level against that window. Picking 200K caps the session at the smaller size to limit usage: the conversation is summarized earlier so it keeps fitting, which can lower cost on long sessions. Your pick is remembered per model, and the context-usage indicator follows it immediately. If your Anthropic account cannot use the 1M window for a model, the chat sends the message again with the standard window, and that model offers only the standard window until you restart the window.

Prompt caching

To keep long conversations affordable, chat providers reuse the unchanging parts of a session from a short-lived cache on their side, so follow-up messages in the same conversation are faster and use less of your quota. Two things make this visible and adjustable.

Seeing how much was reused. Hover the context-usage indicator to open its breakdown. After a reply that reused cached context, a line shows what share of your prompt was served from the prompt cache. A higher share means that turn spent less of your quota. The line appears only when part of your prompt came from the cache.

How long Claude keeps your conversation cached. For Claude models, how long the tools, the instructions and the conversation of a chat stay cached between your messages depends on how you signed in: one hour when you use a Claude subscription, about five minutes with an API key. A longer lifetime means a pause does not make the next message send everything again, but each cache write costs more: with an API key, writing to the one-hour cache costs a bit more than one and a half times as much as writing to the five-minute cache, so one hour pays off when you often pause for more than five minutes. To choose yourself, open the Settings (Ctrl+,), search for cache lifetime, and pick five minutes or one hour; agents the chat hands work to, summaries and background requests always use five minutes. If you had turned on the earlier one-hour option, it keeps working until you pick a cache lifetime.

How long OpenAI keeps your conversation cached. For the OpenAI models that offer a choice, you can decide how long the start of your conversation stays cached between your messages. Open the Settings (Ctrl+,), search for cache retention, and pick one of three values. default is the preset and leaves the choice to OpenAI. in_memory usually keeps the cache for five to ten minutes after your last message, at most one hour. 24h usually keeps it for about thirty minutes and up to 24 hours, so a longer pause between messages costs less. The setting applies when you connect OpenAI with an API key and on Azure OpenAI, where the deployment has to carry the name of the model. Other models and the ChatGPT sign-in keep OpenAI's own setting.

Keeping Gemini instructions and tools in a Google cache. Gemini caches the start of a conversation on its own, but without a guaranteed discount. For Gemini 2.5 and Gemini 3 models with a fixed version, with an API key or on Vertex AI, you can have the instructions and tools of a chat kept in a Google cache that every message reads at the cached price. Open the Settings (Ctrl+,) and turn on AnyAutomation AI Providers > Google: Explicit Context Cache (search for explicit context cache). While the cache is in use, Google does not discount the rest of the conversation, so once the conversation is larger than the instructions and tools, the chat stops using the cache and deletes it. Google bills the storage per hour while the cache is kept, up to about ten minutes after your last message, so it pays off with large instructions and tools in short conversations; it is off by default. For Qwen models of Alibaba Model Studio and for Qwen models through OpenRouter, the chat marks the start and the latest message of a conversation for the cache automatically, for the models and regions Alibaba lists for its cache. Gemini models through OpenRouter keep Google's own caching.

Keeping the cache warm while the assistant works. During long runs with many tool calls, the cached context of a Claude conversation is kept warm so the next step starts without delay. A Cache warming setting (Ctrl+,) decides this: off, or warm while the assistant is working, which is the preset.

Long conversations

So that very long conversations keep going without hitting the model's context limit, the chat summarizes older parts of the history on its own. When a conversation fills most of the model's context window, the summary is prepared while the assistant keeps working; only when the window is almost full does the assistant wait for the summary before it goes on. Your most recent messages are kept unchanged, and the summary is written by the model of the chat.

You can also trigger the summary yourself: type /compact in the chat input. To steer what the summary focuses on, add an instruction, for example /compact focus on the code changes. Whenever there is anything to condense, /compact does it; if there is nothing to summarize yet, the chat tells you so.

Going back in a chat and continuing later

When you restore a checkpoint, edit an earlier message or ask for a reply again, the assistant forgets the part of the conversation you dropped and continues from the point you chose.

A chat you continue after a restart or a window reload goes on with its whole conversation, including what the assistant read and ran before. Studio keeps the chat on your computer.

Chats of the earlier Local chat. Every new chat is an AnyAutomation chat; the earlier Local chat is removed. Chats you had with the earlier Local chat stay in the chat history in this release and open read-only: a note above the chat input says This chat was made with the earlier Local chat and is read-only, and Continue in New AnyAutomation Chat in the note (or in the context menu of the chat in the session list) carries the conversation into a new AnyAutomation chat with the same model. Nothing is sent until you write, and the earlier chat stays in the history as it is. Checkpoints of the earlier turns cannot be restored in the new chat. An earlier chat without messages offers New AnyAutomation Chat instead. When Studio starts with such a chat in the chat view, the view opens a new AnyAutomation chat, and the earlier chat stays in the history.

An earlier chat as context. To give the assistant what was said in another chat, choose Add Context... > Sessions... in the chat input and pick the chat, also one made with the earlier Local chat. The assistant reads the conversation of that chat as reference material for your message.

When the chat stops. In rare cases the chat stops in the background and does not start again on its own. New Chat then shows A new chat could not start: the AnyAutomation chat stopped and did not restart on its own., and when you send a message it shows The message was not sent and keeps your message in the input. Click Retry in the notice: Studio starts the chat again, and once it is back the new chat opens, or you press Enter to send the message you kept.

Sending a message while the assistant works

You do not have to wait for a long reply to finish before you add something. Type your message and press Enter while the assistant is still working: the assistant takes your message into the running work at its next step and carries on with it in mind, without starting over. A tool that is already running and a reply that is being written finish first. The reply so far stays above your message and the work continues in a new reply below it; a sub-agent or workflow card that was still open shows Continues in the next response. and goes on in the new reply. If you would rather have the message wait until the whole reply is finished, press Alt+Enter, or open the arrow next to the send button and choose Add to Queue; Steer with Message in the same list is the behaviour described here. A command such as /compact sent while the assistant works waits until the running work is finished and then runs; a side question with /aside is answered right away (see the next section). If you stop the work before the assistant has answered your message, the message stays in the conversation and the assistant sees it with your next message.

After Stop or an error. When you stop an answer, or an answer ends with an error, the assistant knows that this request did not finish. It does not carry it out together with your next message and does not continue it on its own, also after a window reload; if it still matters, ask for it again.

Asking a side question while the assistant works

Type /aside followed by a short question to ask something on the side, for example /aside which file did we change first? or /aside what does this error code mean?. A side chat opens beside the chat, with the conversation so far as its context, and the assistant answers your question there. Neither the question nor the answer becomes part of the conversation, so the assistant's work and its later answers are not affected. The side chat is a chat of its own: you can ask follow-up questions in it, and the assistant can use its tools there.

You can open a side chat while the assistant is working; the running work goes on in the chat. A side chat needs at least one message in the conversation first.

Each message in the side chat is a request to your chosen model.

Session titles

When the first answer of a new chat is finished, the assistant gives the session a short title of a few words, in the language of your first message. The title appears in the chat header and in the list of your sessions, so you can find the conversation again later. A title you set yourself by renaming the session is never replaced. The title is written by the model you chose for Ambient Hints (see Choosing the model for each AI feature below), or by your last chat model if you chose none and it is a model of the AI providers of Studio. A chat model of another extension, such as a subscription that counts each request, is never sent an extra request for a title; choose an Ambient Hints model to get titles there too. If no model is available, the session keeps its usual title. When you send your next message before the title is ready, the title is skipped so your answer does not wait for it.

Suggestions for your next prompt

After each finished answer, up to three suggestions for your next message appear below the answer, for example to compile the changed blocks or to write a test for them. They follow what the assistant just did and are written in the language of your request. Click a suggestion to send it as your next message, or ignore it and type your own. No suggestions appear after an answer you stopped, after an error or after a command such as /compact. The suggestions are written by the Ambient Hints model, or, if you chose none, by the model of the answer when it is a model of the AI providers of Studio, and they never delay the answer. For a chat model of another extension, suggestions appear only once you choose an Ambient Hints model, so that model is never sent an extra request after each answer. To pick the model from the Command Palette, run Select Ambient Hints Model.

The suggestions predict what you are likely to type next, such as the step the answer offered. They never propose a download or a write to a PLC, a delete, an overwrite or work you did not ask for.

To switch the suggestions off, open Settings > Extensions > AnyAutomation AI Providers > Prompt Suggestions: Enabled and clear the check box.

Visible reasoning

While a model thinks, its reasoning streams live into a collapsible "thinking" section within the answer. Expand it to follow along, collapse it to keep the chat tidy. How the section presents itself is adjustable in the Settings (Ctrl+,) via the chat Thinking Style setting: collapsed, collapsed with a preview of the latest thought, or a fixed scrolling view.

Proactive TIA project context

While a TIA Portal project is connected, the assistant automatically receives a short summary of it on every turn (the project name, the TIA Portal version, and the available PLC names), without you having to attach anything. This lets the assistant answer project questions in context; for anything deeper it calls the TIA tools to read blocks, walk the tree, or search the catalog. When no project is connected, nothing is injected.

Working on the exported program as files

With a TIA Portal project connected, the assistant normally changes a program block by block through TIA Portal. That suits a question or a change to a few blocks. For a change across many blocks, a refactoring across the whole program, many new blocks or an analysis and search for uses across the whole program, there is a second way of working: export the PLC into the export folder, open that folder as the workspace, and let the assistant and its specialists edit the exported files side by side. TIA Portal is needed only for the export at the start and for the import and compile at the end. This way of working is also much faster: in the export folder the assistant finds every use of a block, a tag or a data type with a single search and reads many blocks at once, instead of requesting them one by one from TIA Portal.

When a task touches many blocks, the assistant proposes this way of working once and tells you the steps: export the PLC in the Project Explorer, open the export folder of the PLC with File > Open Folder (in a new window if the current workspace should stay open), connect the TIA Portal project there and start a new chat. You decide; if you decline, the assistant does the task block by block.

In the export folder the assistant edits one file per block and imports exactly that file: the .scl of an SCL block, the .awl of an STL block, the .db of an instance data block, the .udt of a data type when you export data types as source, and the .s7dcl of a LAD or FBD block when the S7DCL export is switched on in the export settings (TIA Portal V20 or later). A new block is written as a new .scl file in the folder of its group. The edits appear as proposals in the editor that you Keep or Undo; before the import the assistant asks you to keep them, because the import reads the files on disk. It then imports the changed files, compiles the PLC and fixes compile errors in the files before importing again. A block that exists only as an XML file, such as a GRAPH sequence, a global data block or a LAD or FBD block exported without S7DCL, is edited in that XML file and imported like any other file; a know-how protected block is left untouched. Before it imports a fail-safe block, it asks for your explicit confirmation, because the F-signature changes and the import needs the safety program login in TIA Portal.

Helper scripts, intermediate exports and comparison files the assistant makes while it works go into a scratchpad folder of the chat, not into your export folder. Nothing temporary shows up in Source Control or gets imported into the TIA project, and the files you ask for still land in your project. The assistant reads and writes in that folder without asking, and the folder of a chat that was not used for 14 days is cleared.

A replacement of the whole program with Import All is only started when you ask for it; the assistant tells you beforehand that the program of the PLC is deleted first and that LAD and FBD blocks come back from their XML files, not from edited S7DCL text.

The open file as context

The file you currently have open in the editor is offered to the assistant as context. In Ask mode it is included automatically. When you are working with an agent, it appears as a dimmed suggestion in the chat input instead. Click the suggestion (or its plus button) to add it to your message, or remove it with its close button once added. Text you have selected in the editor is always included either way. For example, an open block-type template (.scriban, opened in a text editor via Open Template in Text Editor) can be added with one click and discussed directly. You can also ask the assistant to change the open template: the edit appears as a proposal in the editor that you review and Keep or Undo before saving.

Images and screenshots as context

You can show the assistant pictures: paste a screenshot straight into the chat input (Ctrl+V) or drag an image file onto it. The image appears as an attachment above your message, the assistant sees it when it answers, and follow-up questions in the same conversation keep referring to it. This works with any model that understands images. An image may be up to about 4.5 MB, and one message carries up to eight images and about 16 MB of images in total; an image beyond those limits, or in an unsupported format, is left out and the assistant says so openly instead of silently ignoring it, while the rest of the message is still sent. Pasted text is treated the same way: text you paste into the chat input is attached as a snippet above your message, even when it is a single line.

Long chats with many screenshots, page renders or captured elements keep going: when a request gets too full of pictures, the oldest ones make room for newer ones, and the assistant knows which pictures it has already seen. An image or PDF that the AI provider cannot process is left out with a short notice, and a PDF goes on as its text, instead of breaking every later message.

Excel workbooks and other files as context

Drag an Excel workbook (.xlsx) onto the chat input or pick it through Add Context..., and the assistant reads its contents: every sheet reaches it as a table, with dates, numbers and the last computed result of formulas. You can ask straight away which invoices are open, have amounts summed up, or compare two sheets. Hidden sheets are sent along and marked as hidden. For a very large workbook the assistant receives the beginning and tells you that it cannot see the rest; name the sheet or the range you mean and it works from there.

A password-protected workbook cannot be opened by the assistant; it tells you so, and you remove the protection in Excel or save a copy without the password.

Other files that are not text, such as archives, a Word file in the old .doc format or an .xls file in the old Excel format, cannot be read by the assistant; PDF and Word documents are described in the next section. It does know that you attached them, knows their name and size, and tells you openly what it can and cannot do with them. Save an .xls file as .xlsx in Excel and it arrives as a table. Text files such as .csv, .txt or source code are sent in full, as before. When you attach a folder, the assistant knows it is a folder and reads the files inside it as needed.

PDF and Word documents as context

Attach a PDF or a Word document (.docx) to your message, by dragging it onto the chat input or through Add Context..., and the assistant reads it: a datasheet, a manual, a specification or a circuit diagram saved as PDF. Ask about a value in a table, have a chapter summarized or compare the document with your program. With Claude, with Gemini and with OpenAI models on an API key, a PDF of up to 100 pages is handed to the model as a document, so it also takes in the tables and drawings on its pages; with other models, and for larger documents, the assistant works with the text of the document. A file may be up to 32 MB.

A document that is already in your project or export folder does not have to be attached: name it in your message and the assistant reads it on its own, a long PDF page by page, for example "read pages 12 to 15 of the drive manual in the docs folder". Before it reads a document outside the folders open in Studio, it asks you.

When the model of the chat understands images, a scanned page of a PDF in your project reaches it as a picture of the page, so scanned datasheets and older manuals become readable too.

Some content cannot be read as text: scanned pages without a text layer, pages whose font cannot be decoded, and password-protected files. The assistant tells you which pages it could not read instead of guessing what is on them; for a protected file, save a copy without the password. A very long document arrives in parts, and the assistant reads the further pages when it needs them. A Word file in the old .doc format cannot be read; save it as .docx in Word.

GitHub issues and pull requests as context

When you are signed in to GitHub (Accounts menu), the Add Context... menu of every chat input offers Issue... and Pull Request.... Pick one, choose the repository if several are open, and search for the item; it is attached to your message so the assistant can read its description, comments or changes without you copying anything. Pasting the link of an issue or pull request into the input attaches it the same way. Without a GitHub sign-in the two entries are not shown.

Dictating instead of typing

The chat input carries a microphone icon. Click it (or press Ctrl+I in the input) and simply speak your message. The spoken text appears in the input and can still be edited before you send it. Clicking again ends the dictation. On the very first dictation AnyAutomation Studio downloads a speech-recognition model once; after that, recognition runs entirely locally on your machine and nothing is sent to a cloud. Several languages are recognized, including English and German. Dictation also works in the editor and in the terminal. If you prefer not to use it, hide it via a right-click on the microphone.

When you end a dictation, the text recognized up to that point stays in the input, so nothing you have already said is lost. A recording you forget to stop ends on its own after 20 minutes. On a machine without internet access you can bring the speech model in by hand: run Install Dictation Model from Local Package... from the Command Palette, pick the model package (a .zip file) or the folder it was unpacked into, and confirm with Install.

Searching your own documentation

You can point the assistant at external documentation websites (a vendor manual, an API reference, a standards portal) and have it search them when it answers. Open the command palette, run Documentation: Add Site, paste the site's address and give it a name. AnyAutomation Studio downloads the pages and prepares them for search, then tells you how many pages it added.

From then on, just ask the assistant about that documentation in chat and it pulls the most relevant passages into its reply. You can also add and search sites by asking it directly ("add the docs at …", "search the docs for …").

Manage your sites from the command palette or the documentation entry in the status bar (it shows how many you have): Documentation: Resync Site refreshes a site after it changes, Documentation: Remove Site deletes it, and Documentation: Show Sites opens a quick menu with all of these actions. Under Settings → Documentation Sites you can limit how many pages to download and how deep to follow links.

Documentation search uses the same connection as the codebase index, so set the embedding address and model under Settings → Codebase Index first.

With web search switched on, the assistant can look things up on the internet and read the pages it finds or an address you give it. Ask it to search only certain sites, for example "search the Siemens support pages for OB86", and it limits the search to those sites; it can also leave out sites you name. For a long page it reads just the part it needs, or lets the model you chose for Ambient Hints pull out the answer to its question, so the conversation does not fill up with whole pages; you can always ask it to read the page itself. Before it opens a page on a site that is not on your list of trusted sites, Studio asks you, unless you wrote the address in the chat yourself.

Selection action bar

Select code in the editor and a small floating bar appears just below the selection, with AI actions for that selection:

  • Ask for Edits: opens inline editing (also via Ctrl+I): describe the change you want, and the proposal appears as a diff in the editor that you keep or undo.
  • Quick Question: ask a short question about the selection and get the answer right there, without opening chat. Type your question in the input and press Enter; the answer is shown only; nothing in your code is changed. Press Esc to close it. The question runs on your signed-in model. If none is signed in, a Sign in link appears instead.
  • Add Selection to Chat: attaches the selected code to chat as context, to discuss it at length.
  • Fix: appears when the selected line carries a reported diagnostic, and lets the AI propose a fix.

The bar appears automatically on every selection. You can hide it from the settings (Ctrl+,) if you prefer.

Inline completion (Tab)

Beyond the chat, the assistant can suggest code right where you are typing: a grey "ghost text" continuation that you accept with Tab. Run Select Inline Completion Model from the Command Palette (Ctrl+Shift+P) and pick a coder model from one of your providers. A fast local coder model is recommended for the snappiest typing.

Only providers that support fill-in-the-middle (FIM) code completion appear in this list, for example Mistral Codestral, DeepSeek, or a local Ollama / coder server. Chat-only subscriptions such as ChatGPT, Claude, or Gemini do not appear here, because they have no dedicated code-completion mode; use those for chat and for the other AI features instead. If the list is empty, configure a coder/FIM provider first (see Connecting local AI servers and Connecting cloud providers with an API key above).

Once a model is selected, suggestions appear as you type; press Tab to accept the one shown, or keep typing to ignore it. Run the command again to switch models, or clear the selection to turn inline completion off. You can also see and change this model in the Feature Models section of the Agent Customizations editor (see below) without the Command Palette.

Suggesting your next edit

Beyond inline completion, the assistant can predict what you are about to change next, as a concrete edit to an existing spot, which may be elsewhere in the file than your cursor. After you make a change (for example, renaming something), the suggested follow-up edit appears as a diff in the editor, with a marker in the left margin. Press Tab to jump to the suggestion and accept it; press Tab again to move on to the next suggested spot. This lets you click through repetitive changes, such as a rename across every usage, one step at a time.

Run Select Next-Edit (NES) Model from the Command Palette (Ctrl+Shift+P) and pick a model from one of your providers; a capable model gives the best predictions. This model is independent of the chat model and the inline-completion model. Suggestions appear only after you have recently made a change; keep typing to ignore one. Run the command again to switch models, or clear the selection to turn the feature off. This model is also shown in the Feature Models section of the Agent Customizations editor (see below), where you can pick or clear it.

How the assistant changes your files

Changes the assistant makes to a TIA block, a CODESYS object or a Forge template appear in the editor as a proposal with Keep and Undo: nothing reaches the project before you keep the change, and a TIA block is written back into the project when you save it. The file changes of the agents of a workflow wait for your Keep or Undo in the same way, and a new file such an agent creates exists on disk only once you keep it.

Fixing new problems after an edit

After the assistant has changed files, the chat checks them for new problems before the answer ends and shows Checking the changed files for new problems while it does. When a change brought in a new error, the chat shows The changed files have new problems. The agent fixes them, round 1 of 3. and the assistant fixes them in the same answer. Problems that were in a file before the change do not count. When problems remain after the last round, the chat says so, and you can ask for a fix or allow more rounds. Stopping the answer ends the check as well. With a goal set (see Working towards a goal below), the check of the changed files runs before the goal check.

You set the check under Settings > Extensions > AnyAutomation AI Providers: Iterate On Errors: Enabled (on by default), Iterate On Errors: Severity (only errors, the default, or errors and warnings) and Iterate On Errors: Max Iterations (3 rounds by default).

Applying a reply to a file

When the assistant shows a code block in its reply, you can apply it straight into a file. The code block carries an Apply in Editor (or Apply to <file>) button. Clicking it merges the change into the target file and shows it as a diff preview in the editor first. Accept it or reject it; nothing is written without your confirmation.

The merge runs on your own model. By default it uses the model you last used in chat; run Select Fast Apply Model from the Command Palette (Ctrl+Shift+P) to pick a dedicated model for it. A fast model keeps applies snappy. If no model is available, run that command. You can also set this model from the Feature Models section of the Agent Customizations editor (see below). In an untrusted workspace, applying is disabled.

Choosing the model for each AI feature

Several AI features run on a model you choose, separately from the chat model: Inline Completion (Tab), Next Edit Suggestions, Apply, Ambient Hints (session titles, prompt suggestions, blame explanations, terminal risk notes and answers read from web pages), and Specialists and Workflow Agents (the default model for the agents the chat hands work to). Each can be set from its own Command Palette command, but the Feature Models section of the Agent Customizations editor gathers all five in one place so you can see and change them without the palette.

Open the Agent Customizations editor (chat gear → Open Customizations) and pick Feature Models in the sidebar. Each feature shows a short description, its current model (as provider: model, or Not set), and buttons to Select Model / Change Model or Clear it. Select opens the same model picker as the matching command, listing the models from the providers you have configured. The models you can pick come from your configured providers (see Signing in to a provider and the connect-provider sections above).

The model lists differ by feature: Inline Completion lists only FIM/coder-capable providers (such as Codestral, DeepSeek, or a local coder server, see Inline completion (Tab) above), because it needs fill-in-the-middle completion. The other four, Next Edit Suggestions, Apply, Ambient Hints and Specialists and Workflow Agents, list every model you are signed in to, including chat subscriptions such as ChatGPT, Claude, or Gemini.

Running a session in isolation

When you start a new chat session that can edit your files, you can keep its edits out of your open project until you are ready for them. A small isolation mode control appears when you start a new session, with two choices:

  • Worktree (the default): the session works on a separate, isolated copy of your project. Your open files are left untouched while the assistant works; you review what it changed and apply it to your project when you are ready.
  • Folder: the session edits your open project directly.

The control appears only when your project is a git repository; without one, the session simply runs in your folder. Your choice is remembered for the next session.

While a session runs in Worktree mode:

  • Files it opens or edits live in the isolated copy, and any editor tab showing one of those files is marked with a coloured left edge, so you can tell it apart from your open project.
  • You review the session's changes and apply them to your project when you are ready. Nothing reaches your open files until you do.
  • When you mark the session as done, its changes are saved on the session's own branch and the isolated copy is removed; restoring the session brings the copy back with its changes. Deleting the session removes the copy. If a window closes unexpectedly, any copies it left behind are tidied up the next time you start Studio.

Comparing several models

Sometimes one take on a request isn't enough: you want to see how several models handle it and keep the best result. In the Agents window, Compare Models runs the same prompt as 2 to 10 attempts at the same time, each on the model you choose, shows the attempts side by side and can let a Judge model recommend one and a Synthesizer model combine the best parts.

With a folder, every attempt works in its own Git worktree created from the selected branch, so the attempts never interfere with each other or with your open project; the folder must be a Git repository with at least one commit. Without a folder the attempts are plain chats side by side, without a Judge or Synthesizer.

To start, open the model picker of a new session and click Compare Models (or press Ctrl+Alt+M). The steps are described in Agents Window.

Memory across chats

The assistant remembers what helps in later chats, so you do not have to repeat it. It keeps short notes in its memory and gets the list of these notes at the start of every new chat, with every provider and model you use.

What it keeps:

  • who you are and how you like to work, for example short answers, German terms or the tools you prefer;
  • corrections and ways of working you confirmed, with the reason you gave;
  • decisions and deadlines of your projects that the project itself does not show;
  • useful knowledge from the work, such as how a device or a library behaves in practice;
  • where information lives outside the project, such as a document, a ticket system or a shared folder.

It never keeps passwords, keys, tokens, licence data or other credentials, even when you type one in the chat; a note that contains one is not saved. It keeps only what you said or confirmed and what it saw in the work itself: an instruction found inside a file, a block comment, a web page or an e-mail never becomes a note.

Most notes are global: they apply in every project and also in a window without a folder. Facts that only fit the open project, such as its names, paths and decisions, go into the workspace notes of that project.

How the assistant keeps notes. When it learns something worth keeping, the assistant writes a note on its own; the note appears as a step in the chat, and Studio asks you to allow the change unless you approved changes in general. Ask it to "remember" something to save it right away, or to "forget" something to delete the note. If you switch off Keep notes on its own, it writes notes only when you ask it to. A specialist or a workflow agent the assistant hands work to keeps no notes of its own; what is worth keeping comes back in its report.

Keeping notes in the background. Two further options, both off by default, work after each answer without a step in the chat: Look over each answer in the background keeps what will help in later chats, also when Keep notes on its own is off, and Tidy up the notes in the background merges duplicates and removes outdated notes about once a day, after at least five chats. Each run costs a few extra requests to the model of the chat. When the background step changed notes, the assistant learns it with your next message.

Notes stay short and useful: the assistant keeps no record of finished work, such as which blocks were exported or compiled, and when it is unclear whether a passing remark is meant as a lasting preference, it asks once before it keeps it.

The list of notes is sent to the chosen AI provider at the start of every new chat, together with your messages. A chat that is already open keeps the list it started with; notes changed meanwhile show up in the next chat, or after the chat was summarized.

See and manage the notes in the Memory section of the Agent Customizations editor (see below).

Agent Customizations editor

All AI customization is managed in a single native editor. Open it from the chat gear → Open Customizations, from the Command Palette, or from the Open Agent Customization link in the AnyAutomation Settings editor (Ctrl+,). Its sidebar includes a section for external MCP servers (see AI Integration); the sections most relevant to TIA work are:

  • Agents: the AI personas (system prompt + a curated tool list). Pick the active agent from the chat agent picker.
  • Skills: reusable task playbooks you invoke from chat.
  • Instructions: Siemens reference guides that are auto-applied to the chat context where they match the active file (for example, opening an .scl file pulls in the SCL / styleguide guides).
  • Tool Approvals: the per-tool approval gate (see below).
  • Hooks: your own commands that run at fixed points of a conversation (see below).
  • Feature Models: which model powers each AI feature (see Choosing the model for each AI feature above).
  • Memory: what the assistant keeps across chats, and how it keeps notes (see below).

Personal customizations from earlier versions

Your own skills, instructions, agents and hooks for all projects live in Studio's personal folders (for example .anyautomation-studio\agent\skills in your user folder). Files you created with an earlier version in the folders .copilot, .claude or .agents of your user folder are no longer used by the chat. Studio finds them and offers to copy them:

  • Shortly after Studio starts, a notification says how many it found. Click Review and Copy, or choose Don't Show Again if you do not want the offer.
  • Customizations > Migrations lists them in the groups Personal Skills, Personal Instructions, Personal Agents and Personal Hooks, each with the folder they are copied to. Click Copy... and confirm.
  • Studio only copies and never moves: the originals stay where they are, so other tools that use those folders keep working. A file that already exists with the same name in Studio's folder is not replaced; Studio skips it and tells you which one. A file that was copied or skipped once leaves the list, even when you change its copy later. Hooks from the Claude settings file and Claude rules that apply only to certain paths are not offered.

The notification comes back only when Studio opens a window (at start, in a new window or after a reload) and finds a file in one of the earlier folders that it has not offered before and that is not yet in Studio's personal folders. After Don't Show Again it does not come back; the files stay listed under Customizations > Migrations.

Agents and instructions that an earlier version kept in your Studio profile appear on the same page in the group User Data. Migrate... copies them into Studio's personal folders; the originals are deleted only when you check Delete the original files from user data after migration in the confirmation. A copied file leaves the list; it appears again only when you change the original, and its copy in Studio's folder is never replaced.

Prompt files appear in the group Convert Prompt to Skills, and customizations from folders you added in the settings in the group Custom location settings. Both keep the originals in the same way: Convert to Skills... turns prompt files into skills and Migrate... copies the customizations into folders the assistant reads, and the originals are deleted only when you check Delete original prompt files after migration or Delete the original files after migration in the confirmation. A converted or copied file leaves the list and appears again only when you change the original. When nothing of one kind (agents, instructions or skills) is left to migrate from the folders of a location setting, Studio resets that setting, and all folders listed in it are removed from it.

Tools switched off

If every tool is switched off in Configure Tools, the chat says so above the reply and offers a Configure Tools button. The assistant still answers, but it cannot read your project or run anything until you switch tools back on. Should a request fail, the message names the reason (for example a rate limit at the provider, or a conversation that has grown too large for the model) together with the provider's own details.

If you switch a tool off, or a connected tool server goes away, while a chat is open, the assistant learns about it with your next message and stops using that tool; it also learns when the tool is back. When the AI provider is busy for a while, asks to slow down or the connection drops in the middle of an answer, the chat waits and goes on by itself. When the connection to the AI provider fails before an answer starts, for example because of the network, a VPN or a proxy, the chat keeps trying for about three minutes before it reports the connection as lost; a certificate problem is reported right away. While it waits, a line in the answer shows the reason, when the next try starts and how many tries are left. When a Claude answer stops arriving, or your computer goes to sleep while it comes in, the chat keeps the finished part and notes that the answer may be incomplete; if no part of the answer was finished yet, it fetches the whole answer again by itself. When a Claude answer stays silent for a while, a line in the answer counts down to the next try and suggests checking your network. If the provider blocks a message by its content policy, that message is left out of the rest of the chat: edit it and send it again, or start a new chat.

Agents

The following expert agents ship with Studio. Each is selectable as the active agent and carries its own system prompt and tool list:

Agent Purpose
SCL Expert Writing and reviewing SCL code
Plan Researching your project and planning a change step by step, without changing anything
TIA Modifier Project-modifying agent (export, import, edit)
AWL Converter Drives the AWL → SCL conversion workflow
Unit Test Author Generates Unit-Testing suites for the selected block
EPLAN Engineer Navigates and edits the connected EPLAN project: create/change pages and devices, produce exports and reports
PLC / OPC UA / MQTT Operator Works on the running controller over OPC UA and S7: connects with your sign-in, reads and writes values, reads the CPU diagnostics, operates the watch table, the panels and the workspace of PLC / OPC UA / MQTT, calls methods, records signal traces and exports them as CSV. On an MQTT broker it reads topics and messages, subscribes, publishes, deletes retained messages and works with Sparkplug B edge nodes (see MQTT)
Forge Engineer Works on Forge project graphs: inspect, edit, generate code, and import it into the TIA project
HMI Engineer Works on a WinCC Unified device with you: reads and changes screens, tags, alarms, alarm classes, connections, text and graphic lists, logs, the runtime settings and the plant model of the project, and asks before every change
SCADA Builder Works on the open SCADA project: reads its signals, pages and targets, proposes screens as page files you save, moves and binds widgets on a page, loads the signals of a CPU connected in PLC / OPC UA / MQTT, draws a page as the preview shows it so it can check its own work, checks what a send would do, sends to a development or test target or drives the Docker deployment once you approve, and checks the running dashboard in a browser tab inside Studio, where it asks before it clicks, types, drags or hovers
CODESYS ST Expert Reads, reviews and writes Structured Text for CODESYS, including object-oriented code, and works on the open project (see CODESYS)
Sysmac ST Expert Writes Structured Text and ladder logic for OMRON NJ, NX and NY as a checked IEC 61131-10 XML file for the Sysmac Studio import (see OMRON Sysmac)
RAPID Expert Writes, explains and changes RAPID for ABB robots with IRC5 and OmniCore controllers, checks it on a virtual controller and works with the connected robot controller (see ABB Robotics)
Studio Guide Answers questions about Studio itself and shows you where a feature lives

The PLC / OPC UA / MQTT Operator, the SCADA Builder, the Sysmac ST Expert and the RAPID Expert need the Pro+ plan, the CODESYS ST Expert the Pro plan; the free trial unlocks all of them.

Three further agents work behind the scenes and do not appear in the picker: the TIA Analyzer (read-only analysis and documentation), the Canvas Builder (dashboards and live data screens on the in-chat Canvas) and the Commissioning Engineer (commissioning reports). The assistant hands them a task when it fits.

Only the agents your plan includes are offered. An agent for a feature your plan does not cover is not listed at all, and it appears by itself as soon as your plan covers it, with no restart and no setup.

Skills

Skills are task playbooks you invoke from chat. The shipped skills cover the common TIA workflows: explore / describe / document the project, explain / describe / document a block, generate / review / optimize SCL, convert AWL to SCL, write unit tests, run a safety check, compare blocks, and export blocks. For EPLAN: explore the project and export it as PXF/PDF, and edit pages, devices, properties, and reports. For commissioning: work through the acceptance report, propose test steps, and record what you tested.

Skills follow your plan the same way the agents do: a skill for a feature your plan does not cover is not offered, and it appears by itself as soon as your plan covers it.

A skill or agent you add or delete while a chat is open can be used, or is gone, in that chat right away, without starting a new chat.

Instructions

The Instructions section lists the reference guides the assistant can draw on (the Siemens Programming Styleguide, the SCL and AWL→SCL references, the OPC UA reference, the Unit-Testing reference, the Canvas reference, and the Forge templating reference for writing your own block-type templates). Where a guide declares a file pattern, it is applied to the chat context automatically when a matching file is active.

The Siemens guides are part of your plan: the assistant uses them while your account holds a plan with AI chat (Basic, Pro, Pro+, Enterprise, or an active trial). There is nothing to set up. After you sign out, or on a plan without AI chat, they are no longer available.

Hooks

Hooks run your own commands at fixed points of a conversation, for example to add project context, to log what the assistant does or to enforce a team rule. Set them up in the Hooks section; a hook file in your project applies to everyone who works on it. Hooks run at these points:

  • Session Start: when a new chat starts, to give the assistant context for the whole chat.
  • User Prompt Submit: when you send a message, to add context or to hold the message back. A held-back message is not sent to the model, and the chat shows the reason the hook gives.
  • Pre-Tool Use and Post-Tool Use: before and after the assistant uses a tool, to allow, ask about or refuse the call, or to add a note.
  • Pre-Compact: before a long conversation is summarized.
  • Stop: when the assistant is about to finish, to keep it working, for example until the program compiles without errors. The assistant goes on with the reason the hook gives; after several stops in a row held back by a hook, it finishes anyway.
  • Subagent Start and Subagent Stop: when a sub-agent starts and finishes, to give it context, to keep it working or to change the answer it reports.
  • Session End: when a chat ends.
  • Error Occurred: when an error interrupts the assistant's work.

A Post-Tool Use hook can also reject the result of a step and tell the assistant why, for example after a lint run on an edited block, or replace the result the assistant gets. Your Pre-Tool Use hooks also guard the tool calls of the agents a workflow starts, so a team rule holds there too, for example one that asks before every write to a PLC.

Memory

The Memory section shows what the assistant keeps across chats (see Memory across chats):

  • How the Assistant Uses Memory: four switches, Use memory in new chats, Keep notes on its own, Look over each answer in the background and Tidy up the notes in the background. They are the same options as in the AnyAutomation Settings (Ctrl+,), so a change in one place shows in the other. With the first two switched off, the assistant neither reads nor keeps notes.
  • Global Notes and Workspace Notes: every note with its one-line summary. Open shows the note in an editor, where you can also change it. Delete removes the note after you confirm, together with its line in the list of notes. Delete All removes every note of that group after you confirm; the other group stays. In a window without a folder there are no workspace notes.

Refresh reads the notes again. Changes apply to new chats; a chat that is already open keeps the list it started with.

Planning before changing anything

For a larger change, pick Plan in the agent picker. The assistant then only looks through your files and your TIA Portal project, asks what is unclear and writes a plan with the steps, the affected blocks and objects, how to check the result and the risks. It changes nothing while planning. Ask for changes to the plan in the chat until it fits. Start Implementation below the plan switches to Agent, which carries the plan out step by step and checks the result at the end.

Delegating to sub-agents

The assistant can hand a focused sub-task to one of your agents: it picks the agent by name, the agent works on its own with its own tool set, and it returns a result that the assistant folds into its answer.

Each hand-off appears as a collapsible block, titled with the agent name and the model it used. While the agent works, you can watch its progress live: the block's title shows its latest activity, and expanding the block reveals its reasoning and draft answer growing as it goes, alongside the tools it uses. When the agent finishes, the block shows its final result and stays in the conversation for later review.

When the assistant hands off to several agents in one step, they run at the same time: their blocks grow concurrently rather than one finishing before the next starts (up to five per step).

An agent that reads a lot on a long task, or runs on a model with a smaller context window, summarizes its own earlier steps and finishes its task instead of stopping with a partial result.

An agent can declare its own model; the hand-off then runs on that model. If it is not signed in, the hand-off continues on your current model and notes that in the block.

A default model for all agents. Agents that declare no model of their own run on your current chat model. To run them on another model, for example a faster or cheaper one, open Feature Models in the Agent Customizations editor and choose a model under Specialists and Workflow Agents, or run Select Default Model for Specialists from the Command Palette. The default applies to every hand-off and to the agents of a workflow; a model named by the agent itself still comes first. If the default model is not available, the agents run on your chat model and the block says so. Clear returns to the chat model.

During a task the assistant automatically follows your project's rule files and can load a skill on demand.

Follow-up questions to an agent. When the assistant needs more from an agent that just worked on your task, for example a change to what it wrote, it can send that agent a follow-up instead of starting a new hand-off. The agent continues where it stopped, with everything it read and found, so it does not read your project again; the follow-up shows as a new block with the same agent name. An agent remembers its work only in the open window, for its last five hand-offs in the chat; after a restart or a window reload the assistant starts a new hand-off. If you switched off a tool the agent used since then, the assistant starts a new hand-off too.

Running a multi-step workflow

For a big job that needs many agents working together (reviewing every block in a project, running a proposal-then-independent-check pass, fanning a task out over a long list and merging the results), you can ask the assistant to run a workflow. Just describe what you want in your own words ("run agents over every block and summarize each", "review this, then have a second agent verify it", "fan these out in parallel and combine them"). The assistant then prepares a short plan and orchestrates several specialist agents to carry it out. A normal question or a single edit is not a workflow; the assistant only sets one up when you have clearly asked for this kind of multi-agent work.

You approve before it starts. Before any workflow runs, a dialog titled Run AI workflow? appears. It shows the workflow's name and a one-line description, the phases it will go through (when it has them), how many agents it may use and how many run at once, and the token budget if one was set. Nothing runs until you click Run Workflow. Clicking Cancel calls it off and the assistant simply tells you it did not run. This confirmation cannot be skipped.

Watching it run. Once you approve, the workflow appears as a single progress block in the chat. It updates live: the phase it is in, how many agents are running, finished, reused, or failed, how many tokens it has spent (against the budget when you set one), and the latest progress notes. Below it, each agent the workflow starts gets its own card, named after the agent and its model, with a spinner while it works; when it is done, the speech bubble icon of the card takes the place of the spinner; several agents work at the same time. Open a card to follow what the agent thinks and writes as it goes, and to read its report once it finishes; the tools the agent used sit inside its card. The cards stay in the conversation, also after you reload the window or open the chat again from the history (the tools an agent used are then listed in short form, and a very long report shows its beginning). An agent that is still at work when the workflow ends stops there, and its card says that its run was stopped. If a step of the workflow script itself fails before an agent starts, the block counts it under Script errors, and the assistant tells you that part of the result is missing instead of treating it as empty. When the workflow finishes it shows a final status and its result; you can leave it collapsed in the conversation for later.

Setting a budget. You can cap how much a workflow may spend by asking for it ("keep it under 200000 tokens"). When the cap is reached, no new agents start (the ones already running finish), and the workflow stops there. Without a cap it runs until the work is done or it hits its built-in limits (up to 50 agents in total).

Stopping and resuming. Press the stop button to cancel a running workflow. Because every agent that already finished is remembered, the result tells you the run can be resumed. Ask the assistant to continue that run (in the same chat) and it picks up where it stopped: the agents that already completed are replayed instantly from memory instead of running, and being paid for, again, and only the remaining work runs.

Usage limits. When the agents of a workflow run into the usage limit of your AI subscription, the workflow waits for a reset that is only minutes away and then goes on. Otherwise it starts no further agents and tells you how to resume the run once the limit is reset.

Workflows require the Pro plan or higher. On a lower plan, the assistant tells you the feature is not included instead of running one.

Workflows stored as files. A workflow you run again and again can be kept as a file and started by name. Put the workflow file (.mjs or .js) in the folder .claude/workflows of your project, or in the same folder in your user folder to use it in every project; the file name without its extension is the workflow name, and a project workflow wins over one of the same name in your user folder. Then ask the assistant to run it, for example "run the workflow check-blocks". You can also ask the assistant to save a workflow it ran in the chat into that folder.

Before a stored workflow runs for the first time, a dialog titled Run a workflow from a file? shows the file and asks you to confirm, also when Ultracode is on. Studio asks again whenever the file changed. In a folder you have not trusted, workflows of the project do not run at all. A stored workflow runs with the same limits as every other workflow.

Changing a workflow and running it again. When a workflow needs a correction, the assistant changes the saved copy of the run and starts it again, instead of writing the whole workflow anew.

Ultracode

Ultracode is a switch that lets the assistant take on the biggest jobs on its own. When it is on, the assistant starts a multi-agent workflow by itself as soon as a job is large and multi-step, and those workflow runs start without asking you to confirm each one. You turn Ultracode on next to your chosen thinking level, not instead of it, so you keep full control over how hard the model thinks.

How to turn Ultracode on. Open the model settings next to the model name in the chat input (the same menu as Thinking effort and context size above). Below those sections is a Workflow section with an Ultracode switch. Turn it on. The switch is shared across all your models and takes effect from your next message. It is shown on every model, so you can use Ultracode whichever model you are working with. Its violet row glows while you hover over it and rests as a steady violet marker once it is on; if your operating system hides animations, the glow stays off.

What you need. Ultracode needs the Pro plan or higher. On a lower plan, turning it on has no effect: workflows only run when you ask, and each run still shows its confirmation.

Keeping cost in check. Because Ultracode starts workflows on its own, you decide how many specialist agents run at the same time. Open the Agent Customizations editor (chat gear → Open Customizations), pick Tool Approvals in the sidebar, and in the General group enter your limit next to Max Parallel Agents (at least 1, default 4, no upper limit); confirm with Enter or click outside the field. The fewer agents run at once, the lower the cost.

Run a task in the background

Prefix a task with /background (for example /background Analyze FB10 for unused tags) to let it run without tying up the chat. The task runs in a copy of the chat that carries on by itself, a notification Running in the background: ... with Open Chat appears, and the chat is free for your next message right away. A background task needs at least one answered message in the chat first.

When a step of the task asks for your confirmation, a notification tells you that the background task needs your input. When the task is done, a notification says that it finished or failed; Open Chat shows the whole conversation of the task. Each background task is independent, so several can run at once.

Working towards a goal

Type /goal followed by what marks the work as done, for example /goal all unit tests pass, and the assistant keeps working until that is reached. The chat answers "Goal set: ..."; the command only sets the goal, so send the task as your next message as usual. A goal can have up to 500 characters.

At the end of every answer, a short check reads the conversation (Checking the goal). While the goal is not met, the chat shows "Goal not reached yet: ..." with what is still missing, and the assistant goes on in the same turn. Once it is met, the chat shows "Goal reached: ..." and the goal is removed.

  • /goal alone shows the current goal.
  • /goal clear removes it.
  • While a goal is set, a row above the chat input shows Goal active with the time since you set it, for example Goal active (12m). Hover over the row to read the goal; the X at its end removes the goal, like /goal clear. If the X is not available, wait until the current answer is complete.
  • The goal belongs to the chat and is still set after a restart or a window reload.

It stops after a limit. To keep costs in check, the assistant goes on at most ten times in one turn, and stops earlier when three attempts in a row bring no progress. The chat then shows "Goal not reached after ... attempts" and the goal stays set: send a message to keep working on it, or type /goal clear. If the check cannot decide, the chat says so and checks again at the end of the next answer. Stop ends the work and the check at once. Each check is one extra request to your chosen model.

Project rule files

Beyond the built-in Instructions, the assistant automatically discovers rule files in your opened project and uses them as reference for its answers. It looks for the common formats (.cursor/rules/*.mdc, a top-level .cursorrules, AGENTS.md, and .github/instructions/*.instructions.md) and applies each according to how it is written:

Mode When it applies
Always Always in context: a rule marked always-on, or a plain .cursorrules / AGENTS.md.
Auto-attached When a file matching the rule's pattern (its globs / applyTo) is present in your project.
Agent-requested Listed by name and description; the assistant reads the rule on its own when it is relevant to the task.
Manual Only when you mention the rule by name with @rule-name in your message.

Because these files come from the opened project, the assistant treats them as reference material: guidance it follows where it makes sense, never instructions that override your request. Discovery is on by default; turn it off with the Project rules setting in the AnyAutomation Settings (Ctrl+,) if you prefer the assistant to ignore them. A rule file you change applies from the next chat or after a window reload; a rule you mention with @rule-name is always read with its current text.

Tools

The assistant has a set of TIA Portal-aware tools that operate against the connected project. Every tool call appears live in the chat with a clear label that names the key details (such as the name being searched or the block being read), so during longer actions you always see what is running. Finished calls expand to their full details. The assistant can also reference tools in a prompt by name from the chat tool picker. Tools that become available while an answer is running stay available for the rest of that conversation. When the assistant looks up where a name is used, it reads the same prepared project sources as the Project Search: the first lookup on a project prepares them once, every later lookup is quick, and it also works on a project opened offline.

With a TIA project you opened offline from its project file (see Project Management), the reading tools work without TIA Portal: the assistant lists the PLCs, blocks, PLC data types, tag tables and watch and force tables, and reads the code of a block and the definition of a PLC data type from the project file, including your unsaved session changes to a block. Tools that need TIA Portal, such as compiling or changing the project, answer that the project is opened offline and name what the assistant can read instead. As long as the project opened offline is shown, the assistant works only on that project, also when TIA Portal has another project open at the same time. To work on that other project, pick it in the menu of the project name in the Project Explorer header.

In the tool picker the tools are grouped into categories, each with a short description and its own switch. The TIA Portal tools come in thirteen groups, tia-project (projects, project tree, import and export), tia-blocks (program blocks, data types and tag tables), tia-hardware (devices, modules, subnets, SINAMICS drives and motion connections), hmi-unified (WinCC Unified screens and objects), hmi-classic (WinCC Comfort and Advanced screens), tia-security (project protection, users and roles), tia-online (online connection, download and upload), tia-safety (the safety program), tia-multiuser (Multi-User sessions and servers), tia-library (the project library), tia-global-library (global libraries: open, create, save, archive and close them, check for updates, update the project or a library, harmonize and compare), tia-version-control (version control workspaces: list, status, file formats, create, change, delete, connect, export, disconnect, synchronize) and tia-compare (the Compare Editor: comparisons with an export folder or a second project, their results and differences, and taking differences over), all switched on to begin with; alongside them sit agents, files, docs, eplan, opcua, s7, mqtt, forge, scada, trace, canvas-tools, unit-tests, visual-context and commissioning. The switch on a category turns the whole group on or off; expand a category to switch single tools inside it. Every tool sits in exactly one category, so switching one off keeps it off.

Only the categories your plan includes are offered. A category your plan does not cover is not listed at all, and it appears by itself as soon as your plan covers it, with no restart and no setup.

Switch off the categories and tools you do not use: every tool that is on travels with each message, so a shorter tool list makes every request smaller and saves tokens. From time to time a short tip above the chat input reminds you of this, with a link that opens Configure Tools.

When the assistant asks to open or show a block, it opens the block's source in an editor, SCL and STL with syntax highlighting, and graphical languages (LAD, FBD) as their text source, and reports a short confirmation in the chat.

Ask where a block, a PLC data type, a tag table, a tag or a constant is used, and the assistant lists every location with its kind of access, including monitoring, forcing, alarms and declarations, and the device it is on. It can open a block at a network or a line, a data block or data type at a member, and a tag table at a tag, so you land on the place it talks about.

Ask which objects of a PLC nothing uses, and the assistant lists the blocks, data blocks, PLC data types, tags and constants that nothing refers to, from TIA Portal V18. It answers in seconds, usually within a minute for a whole PLC, without compiling or exporting the project. An object counts as unused when nothing uses it or any of its members. Organization blocks are not listed, because they are the entry points of the program. A very large data block that shows no use in its first two thousand members is reported separately as not settled, because a later member may still use it; search the project for its name to check. This quick answer differs from the Find Unused page and from asking the assistant what no organization block reaches: that scan compiles and exports the project and finds everything no organization block reaches, for example a function block whose instance data block nobody calls, while the quick answer only lists what nothing refers to at all. Both need the Pro plan.

Ask which interface members of one block are used, and the assistant lists, for an organization block, a function block, a function or a data block, every member of its interface with its section and data type, split into used and unused, from TIA Portal V18. The block must be compiled. For an organization block, a function block or a function it counts what the block's own code reads, writes or calls; the start information of an organization block is supplied by the system, so an input the code never reads appears as unused. For an instance data block it counts both the code of its function block and the uses from other blocks or an HMI; for a global data block it counts the uses from every block. Array elements count as one member, which is unused only when no element is used. A know-how protected block cannot be checked. A very large interface is cut after two thousand members; the members beyond that count as used, and the answer says so. This needs the Pro plan.

Reading and editing graphical blocks

A graphical block (LAD or FBD) can be shown two ways: as its graphical networks, or as the same logic in text source. A control in the block editor switches between the graphical view and the source view, so you read a block whichever way suits you.

Because a graphical block has a text source form, the assistant works with graphical blocks the same way it does with SCL text blocks: it reads their logic, and it can change them. Ask it to adjust a network or add a new one and the change appears as a proposal you review; once you save and confirm the upload, the edited block is written back into TIA Portal, with the same confirmation as any other project change. That is what lets the assistant write and edit graphical blocks, not only text ones. You can keep chatting while the upload runs: a message you send meanwhile goes out right away. Editing a graphical block needs TIA V20 or later and a compiled block; otherwise the assistant tells you so.

Organizing project folders

Ask the assistant to tidy up the structure of a PLC and it creates, renames, moves and deletes folders under Program blocks, PLC data types and PLC tags, and moves blocks, data types and tag tables into a folder you name. It asks before every change and names the folder and the PLC it touches. Moving a folder or moving blocks, data types or tag tables into another folder, and renaming a folder under Program blocks or PLC data types before TIA Portal V21 (from V21 it is renamed in place), exports the contents and imports them again in the new place; the program is compiled as part of the change, and the assistant tells you the result. Review it before you save the project.

Projects, archives and Multi-User sessions

Ask the assistant to open a project file or to unpack a project archive into a folder and it opens the project in a new TIA Portal and connects Studio to it; a protected project asks you for its credentials in Studio, the assistant never sees them. To read from a project that is already connected it uses that connection and does not attach to another TIA Portal instance. It saves the project only when you ask for it; after a change it tells you that a save keeps it. Its confirmation names the project it saves, and when another project was attached in the meantime, nothing is saved. It archives the open project to a file you name, and it closes the project, with or without saving, after you confirm. When Studio only attached to a TIA Portal you had already running, closing detaches Studio and your project stays open in TIA Portal. Ask for a new project with its devices, blocks and tag tables, and it creates it in a new TIA Portal of the version you name; the project you have open stays as it is in its own TIA Portal. Ask which TIA Portal instances are running, and it lists each one with its version, its open project, whether it shows a window and whether your window or another Studio window uses it; it only reads the list and never attaches to an instance or opens a project on its own. Ask it to check your setup, and it reports the TIA Portal versions installed on your computer, whether your Windows account is in the Siemens TIA Openness group (see Installation) and, when Studio is attached to a TIA Portal, the products installed there; it never changes your computer or the group.

The assistant reads the properties of the open project, the same fields the project's Properties tab shows, including its history, the project languages and the products installed in TIA Portal. It reads every attribute of the project, a block, a PLC data type, a tag table, a device, a rack or a module, tells you which of them you can change, and lists the actions TIA Portal offers on the object; for devices, racks and modules this needs the Pro plan. It also reads the TIA Portal settings. Of all this it changes only the project comment in an active project language, and only after you confirm; attributes and TIA Portal settings stay with you, in the Attributes tab and in TIA Portal Settings. For an attribute you can change, it points you to the Attributes tab of Studio, not to TIA Portal.

The assistant also changes the project languages: it activates and deactivates languages and sets the editing and the reference language after you confirm the list of changes, and tells you when TIA Portal gave a role to another language. It exports the project texts to an Excel workbook for translation and imports the translated workbook, each after you confirm; before the import it warns that empty target cells clear existing translations, and it replaces an existing workbook only when you want it to. It cannot narrow the export to text categories, because TIA Portal always exports every category; it tells you that TIA Portal V21 narrows the export to an object such as a PLC or a device instead, and asks you which one rather than starting an export you did not ask for. While it exports the project texts, the status bar shows the entry Export Project Texts with its progress and offers Cancel; cancel there and the export stops, and the assistant names the workbooks written so far and repeats the export only when you ask for it again. If you stop the chat turn instead, a notification tells you how the export ended, because the chat itself only reports that the turn was stopped. While the status bar already shows another TIA Portal operation, the export from the chat runs without an entry of its own. If a workbook is open in another program, it names it, writes nothing more and names the workbooks written before it. If the workbook to import is open in another program, it names that workbook and asks you to close it there first. After you confirm, it saves the open project into a new or empty folder whose name becomes the project name, and the original stays at its last saved state; Studio follows the project to its new place as with Save Project As.... It archives the project after you confirm, as a compressed file or as a project copy in a folder, each with or without the data TIA Portal can restore. If the archive file or folder already exists, it asks you for another name and does not offer to delete or overwrite the existing one. And it imports an AML file after you confirm, with your choice for devices that already exist in the project: overwrite, keep, or move to the parking lot; afterwards it tells you what TIA Portal reported. AML import and export need the Pro plan; on TIA Portal V18 they are not available, and the assistant says so.

With Multi-User Engineering it lists the servers registered on your computer, their server projects and the local sessions of a project, checks a local session out into a folder, opens a local session file, also as a session it can save before you check in, saves such a session, tells you whether the session is up to date, lists the objects with their check-in marks, marks and unmarks objects and checks the marked changes in with your comment. It also adds a project to a server, changes or removes a registered server connection and removes a local session from the server. Every change asks for your confirmation first, and the assistant names the server, the project and the session it touches. Multi-User needs TIA Portal V17 or later and the Pro plan.

Ask about the project library and it copies a block, a PLC data type, a tag table or a technology object into the master copies, also from a software unit, creates a block from a master copy, creates, renames and deletes library folders, master copies and types, writes a committed version of a type to an XML file and cleans unused versions or unused types out of the library. It creates an instance of a type version in a PLC, together with the dependencies it needs, and from a master copy also a PLC data type or a whole software unit; it tells you which dependencies were created with it or the new name TIA Portal gave the copy. Deleting and cleaning up cannot be undone, so it asks first. The project library needs the Pro plan.

Global libraries work the same way. The assistant lists, opens, creates, saves, archives, retrieves and closes them, checks the project for out-of-date library instances, updates the project or another library from a library, harmonizes the project and compares two libraries; it reads and changes the master copies and types of an open global library when you name the library. Opening with write access or with an upgrade and every change ask for your approval first, and the card of an update says what TIA Portal will change. Global libraries in the chat need the Pro plan; the details are in Library Management.

In the project library and in every open global library the assistant also finds a library type or a type version by its GUID, compares two types, two type versions or two master copies (from TIA Portal V18; TIA Portal compares their properties, not the content of a block), sets or clears the marks Do Not Use and Set for Update of a type, and reads what a master copy holds, with its author and creation date. Changing a mark asks for your approval first; in a global library the card says that the library is saved right after the change, in the project library that the change stays in the open project until you save it.

The Manage TIA Version Control Workspaces tool keeps objects of the project as files in a version control workspace. The assistant lists the workspace groups and workspaces, reads the status of a workspace and the file formats TIA Portal offers for an object, creates, changes and deletes workspaces and groups, connects blocks, PLC data types, tag tables, technology objects and library types to existing files, exports them into a workspace, disconnects them and synchronizes in the direction you ask for. Listing and reading the status run without asking; every other action shows a card first. An import says that TIA Portal replaces the objects in the project, an export that the previous content of each file is lost unless your version control system keeps it, and an object changed on both sides is touched only when you name it and say which side wins. Version control workspaces need TIA Portal V20 or newer for everything beyond managing them, and the Pro plan; the details are in Version Control with Workspaces.

To replace the whole program of a PLC with the files of an export folder, ask for an Import All: the assistant deletes the program of that PLC and imports the folder in its place, keeping know-how protected blocks and the items you marked as protected in the Project Explorer, and it tells you when the import was rolled back and the PLC is unchanged. The file limit of your plan applies as it does in the Export Folder view. It compiles afterwards and asks you to review before you save.

Ask the assistant to import a PLC tag table you exported and it imports the whole table after your confirmation: a table of the same name is replaced, together with all its tags and constants, and a new table is added. A file that holds a single tag goes into the tag table you name instead. Afterwards, let the assistant compile the PLC.

Blocks, tags and data block interfaces

The assistant creates new functions, function blocks, global data blocks and organization blocks. For an organization block name its number and, if it is not the main cycle, its event class, for example startup, cyclic interrupt, time-of-day interrupt, time-delay interrupt, hardware interrupt or one of the error and diagnostic events; the number has to fit the event class, and TIA Portal gives the new block its default settings, such as the cycle time of a cyclic interrupt, which you then change in TIA Portal. The assistant renames a block or a PLC data type, also one in a software unit (a know-how protected or fail-safe data type stays with you, and renaming needs TIA Portal V15.1 or later), creates an instance data block for a function block, creates a PLC data type with one placeholder member, reads, creates and changes a single PLC tag, reads the tags or the user constants of one tag table or of every tag table of a PLC or a software unit in one go, with their comments in every project language when you ask for them, deletes several tags in one step or a whole tag table, and lists the software units of a PLC and the blocks of a unit. It reads the complete interface of an organization block, a function block, a function, a data block or a PLC data type, member by member with section and data type, including the members of every PLC data type used in it, and the retain setting of the members of a data block or a PLC data type. For a very large interface it first lists the upper levels and then reads the members below one member on request. It changes the members of a global data block: it renames a member, changes its type or its HMI access flags, adds a member and removes one. The interface of a function block, a function or an organization block is changed through its source, which the assistant edits and imports. It exports and imports the watch and force tables of a PLC and exports blocks, data types, tag tables, tags and technology objects. Every export the assistant runs uses exactly your export settings and writes the files the way Export Selected does; these settings cannot be changed from the chat. It reads the properties of a block or a PLC data type, the same fields the Properties tab shows, and lists the system data types of a PLC. It also tells you whether a block is write-protected. It exports the snapshot of a data block with its values as an XML file; because that writes a file, it asks first and names the block, the PLC and the folder. The files and folders the assistant writes, such as exports, archives, a project saved under a new name or a new project, go into your Documents or Desktop folder (also on OneDrive), your temporary folder, the export folder of your settings or the open workspace folder; any other place, for example a network drive or a system folder, is refused, and the assistant tells you so. It deletes a software unit with everything in it after you confirm, changes the namespace preset, the author and the comment of a unit, and creates a unit from a master copy. It reads the source of a block or a PLC data type together with everything it depends on, writes that source as one file into a folder, and exports the ProDiag information: the alarm texts of a ProDiag function block as CSV files, the supervisions of a ProDiag function block or of a whole PLC as an Excel file and the supervision settings. It sets the three HMI/OPC UA/Web API access flags of a PLC tag and its comment in each project language; TIA Portal keeps the three flags consistent, and the assistant tells you when one changed along with the others. It lists the system constants of a PLC and exports and imports single tags and user constants; because an import replaces objects of the same name, it asks first. It creates, renames and deletes watch tables and their folders reads the entries of a watch or force table, and lists every watch and force table of a PLC with its folder, whether it is consistent and how many entries it holds (from TIA Portal V15.1; for a table that is not consistent TIA Portal does not report the number of entries); a delete asks first. It also imports a watch table file into a folder of the watch and force tables. It compiles a block, data type, folder or technology object together with the whole PLC that holds it, and a device or module on its own; a device without its own PLC or HMI software, for example a coupler, cannot be compiled on its own. Each of these changes and every file it writes is shown to you first and runs only after you approve it.

It also gives a block a new number, an instance data block included, after its confirmation card names the block and the number. A number another block or a technology object already uses is refused before anything changes, and when TIA Portal refuses the number, the block keeps its old number. Blocks of a software unit are always numbered by TIA Portal, and blocks of the safety program are renumbered in TIA Portal after the safety login.

It creates software units, renames them and edits their relations, and lists the relations of every unit; each change shows a card first, and the safety unit stays read-only. When software units hold blocks of the same name, name the namespace of the block you mean, and the assistant reads, renames, renumbers or deletes exactly that block; its card shows the namespace. It lists, reads and replaces the named value types of a software unit (from TIA Portal V20) and then compiles the PLC. It lists the system blocks of a PLC and changes the header texts, the version, the memory layout, the namespace and the automatic numbering of a block after its card (from TIA Portal V17); compile the PLC afterwards. It compares the software of a PLC with another PLC, the project library, a global library or the master copy of a controller, updates the program of a PLC to the latest instruction versions after its card (from TIA Portal V18) and generates a loadable file (from TIA Portal V18, with the Pro+ plan). It shows a block in the block editor of TIA Portal when TIA Portal runs with its window. For the write protection of a block it asks you for the password in Studio's own dialog, and for the know-how protection it uses only the entries of your Password Vault (see Password Vault); it never sees a password.

External source files

The assistant lists the external source files of the connected PLC and of its software units, with their folders. It registers an SCL, STL, DB or UDT source file from an open workspace folder or from your export folder as an external source, deletes a source, and creates and deletes source folders; a folder that still holds sources is deleted only when you say so, and the file on disk is never touched. Registering, deleting a source and deleting a folder need the PLC to be offline. From TIA Portal V21 it also renames a source folder.

It also generates the blocks and PLC data types defined in a source, including a source you registered yourself in TIA Portal, and from TIA Portal V17 into a folder you name. Generating overwrites blocks and data types of the same name, except the ones you marked as protected in the Project Explorer: when a source would change one of them, nothing is generated and the assistant names the objects that stopped it. Generating does not compile the PLC, so the assistant compiles it afterwards to show you any errors. Every change shows a confirmation card first.

In a connected project the assistant cannot read the text of a stored source. In a project you opened offline it can, the same text the External source files branch shows (see Project Explorer); that needs the Pro plan.

Hardware, online connection and download

The assistant imports the devices of an AutomationML file into the hardware configuration, with your choice for devices that already exist in the project (see above), reads the device items of a station and the whole hardware tree, sets a single attribute of a device or module, the IP address or PROFINET name of a network interface and the start address of a module, each after your confirmation. It also cables ports, sets several attributes in one step, creates hardware from master copies, configures I-devices, redundancy domains, communication connections, GSD parameter data and telecontrol, compares hardware and writes the hardware exports; see Hardware.

It reads whether a PLC is online, which connection paths TIA Portal offers for it and which devices a network adapter can reach, compares the project with the online CPU, goes online and offline, previews what a download would do and downloads the project to the controller at the IP address you name, with the choice of loading only the changed blocks so the CPU stays in RUN where possible. It uploads a station from a controller into a folder without touching your project, or uploads named blocks, data types and tag tables from the controller into the open project, overwriting the objects of the same name. Going online, a download preview, a download and an upload each ask for your confirmation and name the PLC and the address; the cards of the preview and the download also name the connection and say that Studio signs in to the CPU. A preview stops at the first question TIA Portal asks before loading, so nothing is loaded; when TIA Portal asks no question at all, the preview loads the project completely, which is why it asks first. When a CPU asks for a memory reset before a download, the assistant explains that a reset deletes the program and all data on the CPU, retentive values included, and resets the memory only when you want it and confirm a separate card Reset the Memory of the PLC and Download?. This card appears for every memory reset, also when you allowed the assistant's downloads for the session. When the download gave the CPU the address of the project, the assistant tells you and uses that address from then on. The assistant never takes a user name or a password for a PLC. When it previews or runs a download to a CPU that asks for a sign-in, Studio asks you to sign in in its own dialog, and the assistant never sees what you enter. Once the CPU accepted your sign-in, Studio uses it again while you keep working with that CPU, so a preview followed by the download asks only once. If you enter a wrong user name or password, Studio opens its dialog once more and tells you why; if you close the dialog, nothing is sent to the CPU and the assistant does not try again. For the other online steps, when a CPU asks for credentials, the assistant stops and names the Studio command to run: Go Online in TIA Portal... to go online and before comparing again, where TIA Portal asks for the sign-in in its own dialog; Upload from Device for an upload, where you sign in in Studio's dialog. When the CPU refused the connection right after a sign-in, for example because of a wrong user name or password, the assistant says so, quotes the reason TIA Portal gave and asks you to check the user name and the password in Studio's dialog of that command; it does not retry on its own. If the separate TIA Portal instance of an upload ended after the CPU asked for a sign-in, the assistant says that the connection to the CPU is lost and that the project open in Studio stays connected; it does not retry either. When the CPU takes the sign-in only in TIA Portal's own dialog, the assistant says so, names the kinds of sign-in the CPU offers and tells you what to do: connect Studio to the TIA Portal open on your screen with Attach to Running Instance, then run Go Online in TIA Portal... and sign in in TIA Portal's dialog. Asked whether a CPU requires a sign-in, it answers from the project and a read-only check without going online, and tells you when that cannot be determined. Setting or resetting the master secret of a CPU, changing the write protection of a block, and loading snapshot or start values into a CPU stay commands you run yourself in the Project Explorer; the assistant points you to them. The parameters of a drive the assistant uploads through Studio's own dialog, see SINAMICS drives and motion. These online tools need the Pro+ plan; the free trial unlocks them too.

When TIA Portal asks a question before loading, for example because the CPU holds a newer data format than the project, the assistant explains what each question means and asks you. Only when you agree does it download again with exactly those questions confirmed; its confirmation card Confirm the Questions of TIA Portal and Download? lists them and appears even when you allowed its downloads for the session. It never confirms a question on its own.

When the assistant searches the hardware catalog for modules that fit a station, it searches by a module of that station, such as its CPU or head module; a search by a whole device or a subnet is refused before it reaches TIA Portal V20 or V21, so the session keeps running.

Safety program

Ask about the safety program of a fail-safe PLC and the assistant reads whether a safety login is needed, the safety runtime groups, the F-signature of every safety block and the safety blocks of a device. It writes the F-signatures to a text file, writes the safety printout as PDF or XPS and logs TIA Portal out of the safety program, each after your confirmation. There is no login through the assistant: when a change needs the login to the safety program, for example compiling a fail-safe object or changing a fail-safe tag, the assistant asks you to log in yourself with Safety Login in the title bar of the Project Explorer and tries again once you confirm the login. These tools need the Pro plan.

From TIA Portal V21 the assistant also works with the activation tests of the Safety Validation Assistant. Ask for them and it lists the activation tests with their groups, safety functions and conditions, the evaluation devices of the project and the test state of every function, and it checks whether a test is complete enough to be executed, naming what TIA Portal still finds missing. After your confirmation it creates, renames, copies and deletes activation tests and groups, adds safety functions and their conditions, exports a test to a file and imports one back, writes the acceptance report as an Excel workbook and resets a recorded test result. The activation test itself is always executed in TIA Portal; the assistant prepares, checks and reports it. When the Safety Validation Assistant has no licence yet, TIA Portal asks for it in its own window on the first change, and the assistant tells you so. Ask for the safety settings of a fail-safe PLC and it reads the number ranges of the F-blocks and the safety system version with the versions that could be set; it changes them after your confirmation, which needs the safety login. To set or remove the password of the safety program, ask the assistant: Studio asks you for the password in a masked field, twice when setting it, and the assistant never sees or passes the password.

SINAMICS drives and motion

Ask about the SINAMICS drives of the project and the assistant lists the drives with their drive objects, reads their parameters page by page, their telegrams, motor and encoder data, drive functions, technology extensions, security settings and acceptance test functions, and the hardware connections and interpreter mappings of the technology objects. After your confirmation it changes parameters in one step, telegrams after TIA Portal accepted the change, the motor and encoder configuration, the drive functions, the technology extensions and the user management, updates the safety checksums, switches acceptance test functions, writes the acceptance report as an Excel workbook, connects technology objects to drives, addresses or tags and saves interpreter mappings (from TIA Portal V21).

For what goes online to the drive, a download, online parameters, copy RAM to ROM, restoring the factory settings, the online motor and encoder functions and the parameter upload, and for installing a technology extension, the assistant hands over to Studio after your confirmation: Studio shows the connection list and the dialog of the menu entry, with the interface and the address the assistant proposed preselected, and only you confirm it. The assistant never asks for the password of the drive data encryption; Studio asks you for it in a masked field. Reading and changing drives needs the Pro plan, the safety actions the safety features of Pro, and the online actions Pro+. See SINAMICS Drives and Motion.

Classic HMI devices

For a WinCC Comfort or Advanced device the assistant reads a screen as an overview of its objects with the captions resolved and changes the objects on it after your confirmation, also when the screen is not open in an editor; a change that names an object, a property or a caption the screen does not have is refused as a whole, and nothing changes. It reads the screen overview, a faceplate type from the project library, the text and graphic lists with their entries and the graphics of the project. It imports a screen from its exchange document and exports the items of a device, screens, tag tables, scripts, connections and lists, as files into a folder or imports such files back, replacing items of the same name. Imports ask for your confirmation; a WinCC Unified device is handled by the Unified tools instead. It also exports and imports the cycles and slide-in screens of a device: an unchanged standard cycle is skipped, a changed one is refused, and a slide-in screen replaces the one at the position named in its file. It finds the cycle and slide-in files of a device through the export folder it reads from Studio, in the Cycles and Slide-in Screens folders of that device, and does not search your disk for them. It refuses to export a device the project does not have, or a WinCC Unified device, before any folder is written. After your confirmation it deletes items of a classic HMI device, your own cycles among them, and lists what it deleted; it never deletes a standard cycle or a slide-in screen, and a request that names one of them, or a name found in several categories, is refused as a whole with nothing deleted. From the project library it creates a screen, a screen template, a pop-up screen, a tag table, a tag or a VB script on a classic HMI device after you confirm, from a Master Copy or a type version; it names the object, also when TIA Portal gave it another name, and the folders it created, and since what the object refers to is not checked, it reminds you to compile the device in TIA Portal. For larger work on a classic panel the assistant hands off to its HMI Engineer specialist, which covers classic panels and WinCC Unified devices alike.

It deletes a folder you made under Screens, Screen Templates, Pop-up Screens, HMI Tags or VB Scripts of a classic HMI device, after a confirmation card that counts what the folder holds; a folder that is not empty is deleted only when you say so, and the assistant names the screens that use a template in it first. When it reads a classic screen, it reports the colours of the device style for the objects that follow the design, with the screen open in the editor or not.

PLCSIM Advanced instances

From the Pro+ plan the assistant manages your PLCSIM Advanced simulation instances: it creates, loads, starts, stops and resets them, changes their address and simulation speed, maps them to a TIA PLC, and lists, reads and writes their tags. Every change asks first, and while a unit test is running it only reads. See PLCSIM Advanced. It also points a unit-test suite at an instance and checks the connection before a run; a password is always entered by you on the Connection Settings page, never in the chat. With the Pro plan you operate PLCSIM Advanced yourself in the dashboard, and the chat does not offer the PLCSIM tools.

Hardware Simulation

From the Pro+ plan the assistant operates the Hardware Simulation: it connects it to a simulated PLC or an OPC UA server, starts and stops the engine, reads and writes values and manages forces, simulation functions, linker rules and the watch list, including the fail-safe I/O acknowledgment. Every change asks first, the open pane shows it right away, and a server password is asked by Studio, never in the chat. See Hardware Simulation with the AI Assistant.

Reading a block's live values

When you have a block open with Live Values turned on (its operand values shown inline while you are online), you can ask the assistant about those values directly in chat ("what is the current value of …", "are any of these stale?"). It reads the values currently shown in that block and reports them back, quoting each operand and its value; ask again for a fresh reading. Live block values are included from the Pro plan (also during the free trial). On a lower plan the assistant tells you the feature is not included instead.

WinCC Unified devices

Ask the assistant about a WinCC Unified device and it reads what the device holds: its screens and the objects on them, its tags and tag tables, alarms and alarm classes, connections, text and graphic lists, logs and runtime settings, and the full properties of any one of them by name. A tag's GMP settings, its confirmation type, mandatory commenting and function rights, are part of that only while GMP is switched on for the device and the tag is GMP relevant. About a screen it answers from a short overview of that screen, the tags it uses, the values a faceplate container hands to its type, and the properties the installed TIA Portal version cannot read; the texts of a screen are read in the editing language of the project. On a device with thousands of tags its list can be narrowed by name or by tag table, and it says how many entries it left out; ask about a tag table and it says how many tags the table holds. For a text or graphic list it reads the entries, each with the value or the range it covers and the text in every project language, or the graphic it shows.

Ask about the plant model of the project and it reads the plant view with its nodes, the plant object type of a node and the plant object tags of a device with their members and logging tags. It creates the plant view and its nodes, a node also with a plant object type, renames and deletes them, assigns the view its HMI device and changes the acquisition cycle, the acquisition mode, the connection and the PLC tag of a plant object tag. What TIA Portal does not offer, it says: a plant object tag is neither created nor deleted, a project holds one plant view, and the view and its nodes have no check.

Ask about the project library and it reads its types with their kind, their versions, their state and the fields of a type, exports a type as documents into its staging folder and imports a type or a new version from there, finds where a type is used, in the PLCs, the classic HMI devices and on the screens of the WinCC Unified devices, and creates, releases, discards, sets as default and deletes versions, each of these changes after your consent. It does not edit the screen content of a faceplate type, because TIA Portal does not offer that.

It changes them as well. On a screen it moves single objects, resizes them, renames them, changes their text and adds or removes them, and every object it does not name stays as it was. It binds a property to a tag, a script, a flashing or a text or graphic list and removes a binding again, and it sets or removes the script an event runs, on an object and on the parts of a control alike, the columns of an alarm control, the curves and axes of a trend control, the elements of a tool bar; for a script binding it names when the script runs and which tags trigger it, and a binding TIA Portal does not keep is named in its answer. A new object it adds gets the settings TIA Portal gives a new object of that kind and a name of its own, a faceplate container the faceplate type it shows; it duplicates objects, aligns and distributes them, changes their drawing order, and resizes a screen to the display of its device. While that screen is open in front of you in the editor, the change lands there unsaved, so you see it before it goes into the project; a screen you do not have open is changed in the project itself once you confirm, and a screen sitting in a tab you cannot see is left alone until you bring that tab to the front or close it. When it changes only events, only those events are written and the rest of the screen stays as it is. That is how it also sets the events of a screen that holds custom web controls or custom widgets, and the events of those controls themselves (TIA Portal V18 and later); any other change to such a screen is refused, because TIA Portal cannot create these controls again, and nothing on the screen changes. It creates and renames screens, and creates, renames and deletes screen folders. It adds, changes and removes tags, tag tables, alarms, alarm classes, connections, data logs and alarm logs, and renames tags, tag tables, alarms, alarm classes, connections, logs and audit classes; it adds, changes and removes the entries of a text or graphic list and creates a list that is missing; and it removes whole text and graphic lists, the entries going with them, while a screen object that shows the list is left as it is. It also reads and changes the runtime settings, and it can have TIA Portal check the device and report what it objects to, without changing anything.

It sees every HMI editor you have open, not only the screens: an open tag table, alarm tab, object detail view or script appears in its picture of your editors with the device and the object, and an open tag table, alarm tab or object detail view can be attached to a chat turn from the attachment menu. A change it makes to an open tag table or alarm tab lands there as an unsaved edit, exactly where a typed change lands: the editor switches to edit mode, the changed cells show the new value, and nothing reaches TIA Portal until you click Save to TIA. It also creates discrete alarms from a table of rows you give it, duplicates and deletes screens, finds the tag table a tag belongs to and names the spelling the project stores the tag under, tells which WinCC Unified devices the project holds and which languages it carries, exports the files of a device as exchange documents or as a workbook, naming the columns and rows of every workbook file, and imports them back, re-words the entries of a system text list, sets the comment and the value range of a text or graphic list, and changes the value and value type of a tag's thresholds. It reads the script modules of a device, in pieces when a module is long, changes a line by naming the text to replace or replaces the whole source, and creates a module. Where TIA Portal offers no way, it says so: a threshold cannot be added, deleted or renamed, a system text list keeps the entries it has, and a script module is neither deleted nor renamed.

It writes the driver settings of a connection after your confirmation, reads each value back and reports per setting whether it was applied, already set or not applied; when it changes the driver, it tells you that the driver settings and the credentials of the connection went back to the defaults of the new driver. It never asks for, confirms, records or writes a user name or a password: if you give it one, it refuses before any confirmation appears and points you to Set... in the detail view of the connection, where you set it yourself (see Project Explorer). When it reads a connection it only says whether a credential is set, never its value.

After your confirmation it imports an OPC UA alarm file, a NodeSet2 file exported from the OPC UA server, into an OPC UA connection of a WinCC Unified device and lists the alarms at the top level of the file with their node IDs; the file stays stored on the connection in place of an earlier import. It also describes a screen item type with its attributes, their access and default values, and its compositions, read from TIA Portal; nothing remains in the project, and on TIA Portal V20, which marks the project as modified anyway, it tells you so.

The assistant asks before each change and names the device and the objects it touches. Creating, changing, renaming or deleting anything on a WinCC Unified device needs the Pro plan and is unlocked during the free trial; reading stays available on every plan, and so does the check the assistant asks TIA Portal to run over one kind of object, which can be narrowed to one tag table. For larger HMI work the assistant hands off to its HMI Engineer specialist. You can also pick HMI Engineer yourself in the chat agent picker, so a whole session stays on the Unified device; it is offered on every plan, and a change it makes needs the Pro plan like any other.

Tool approvals

Tools that change the project are gated before they run. In the Tool Approvals section of the Agent Customizations editor, every managed tool your plan includes (TIA, EPLAN, Visual Context, Commissioning Report, SCADA, Unit Testing and the S7, OPC UA and MQTT tools of PLC / OPC UA / MQTT) offers the same four levels:

Level Behavior
Ask Every Time The chat asks for confirmation before each call (default)
Allow in This Session Approved until the window is reloaded
Always Allow Approved without asking, across reloads
Always Deny Refused without asking, across reloads

A choice takes effect immediately for that tool's in-chat confirmation prompt. Always Allow and Always Deny persist across window reloads; Allow in This Session resets to Ask Every Time after a reload. Reset All, at the right of the Tool Sets heading, clears every override.

A tool call that ran because of your choice says so in the chat: Always allowed in Tool Approvals or Allowed for this session in Tool Approvals. Click Tool Approvals in that note to open the section and change the level of the tool.

The confirmation shows what the call will really change, with the devices, files and values the assistant will use. A request the assistant cannot carry out, for example for a PLC or device the project does not have or a file that does not exist, is turned down without a confirmation, and the assistant tells you why.

The tools are grouped the way the Configure Tools picker groups them: one row per group under Tool Sets, with the group's name and description. Click a group to open it and see its tools; Studio remembers which groups you opened. Each group row carries a dropdown that sets the level for every tool of the group at once; it reads Mixed while the tools of the group have different levels. Next to it you see how many tools the group has and, once you changed one, how many of them are no longer at Ask Every Time. Tools that belong to no group are listed under Other Tools. To find a tool, type its name in the search box at the top: only the groups with a match stay, opened and showing the matching tools.

There are no exceptions among the tools you are offered: every one of them follows the level you picked for it, including the tools that create or export a commissioning report, record results, remove a test step, or change an EPLAN project. Tools your plan does not cover carry no row here, and their rows come back with the levels you had set as soon as your plan covers them. At Ask Every Time the confirmation appears in the chat, and the card itself also lets you allow that tool for the session or for good instead of only for that one call. At Allow in This Session or Always Allow, or while the chat is approving tool calls for you, the tool runs without asking. Always Deny comes before everything else: a tool set to it is refused without asking, whatever else you have allowed. Two things stand outside these levels. A change the assistant wants to make to the files that configure your tools or your package sources is always confirmed with you, whatever you allowed in advance. And some steps that change a connected real device or a production system are confirmed on every call, also with Allow all or Autopilot (Preview): in the chat, in a confirmation of Studio itself, or both. The page of the feature names these steps.

Mutating tools confirm before applying a change unless you allowed them in advance, and destructive tools (deleting a block or device) state in the confirmation that the action cannot be undone. After a confirmed change succeeds, the TIA Portal Project Explorer refreshes automatically.

Permissions under the chat input

Below the chat input sits a permissions button (Set Permissions) that decides, on top of the per-tool levels above, how freely the assistant may act in the running conversation. Click it and choose Default permissions (it asks whenever your approval settings do not already cover an action), Assisted permissions (the AI model of the chat reviews each tool call that would ask you, see below), Allow all (tool calls run without asking) or Autopilot (Preview) (the assistant keeps working on its own until the task is done). The last three ask you to confirm once before they take effect, and your organization's policy can switch them off. The button is offered while the assistant may act on your project, not in Ask mode.

With Assisted permissions, a tool call that would otherwise wait for your approval is first reviewed by the model you chose for the chat. A call the model judges safe runs right away. A call it does not approve, or cannot judge, shows the usual confirmation, so you still decide on everything that is not clearly routine. The review uses the model of the chat, so it works with every AI provider you have set up, also with your own API key.

With Autopilot (Preview), the assistant does not stop after a reply that leaves the next step to you: it goes on until the whole task is done and ends with a short summary of what it did. When a step fails, it reads the error and tries another way instead of handing the problem back to you; a tool call you declined is not run again. A message you send in between is taken into the running task, and you can stop it at any time. If three replies in a row bring the task no further, the assistant stops and hands back to you. Sub-agents and workflow steps work as before and hand their result back to the assistant.

Default permissions carries a Sandboxing for terminal switch on macOS and Linux; on Windows the terminal commands of a local session run without a sandbox and the switch is not offered. Turn it on and the terminal commands the assistant proposes run inside a sandbox that limits what they may reach in the file system and on the network, and a command that runs there is no longer confirmed one by one. The button then reads Default permissions (sandboxed). A command that has to step outside the sandbox, or that needs unrestricted network access, still asks you first. Creating and running a task always asks you first, whatever level is set, and so does a git diff that writes its output to a file.

Other extensions accessing your models and tools

Other installed extensions may also want to use the AI models you have set up in Studio. The first time an extension tries, Studio asks once: a dialog names the extension and you decide with Allow or Cancel. Without your consent the extension gets no access, so your connected accounts and API keys stay under your control. Studio remembers a granted permission; you can revoke it at any time from the accounts menu in the activity bar. The built-in AI chat and the Studio features that ship with it need no approval.

The same applies to the Studio tools. The first time an extension you installed tries to run one of them, Studio asks once: the dialog names the extension and the tool it wants to run, and you decide with Allow or Cancel. If you cancel, the tool does not run. If you allow it, that extension may use the Studio tools until you withdraw the permission, again from the accounts menu in the activity bar. The AI chat and the features that ship with Studio need no approval here either. Shortcuts, menu entries, links or status bar items that an extension adds on its own, and the task and debug configurations of a project, cannot trigger the Studio automation either: such an entry stays without effect, and a task or debug configuration that names one says so when you run it.

External MCP servers

Beyond the built-in TIA tools, the AI chat can connect to external MCP servers and surface their tools in the same tool picker. See AI Integration for how to add and enable them. In the Agent Customizations editor, each server shows the file that defines it; a click on it opens that file.

Right-click a link in an answer for Copy Link; for a link to a file, Open With... opens it in an editor of your choice. Terminal output in an answer wraps to the width of the chat by default; in the chat settings it can keep the width of the terminal and scroll sideways.