Skip to content

v0.51.0

Choose a tag to compare

@ThorstenBrach ThorstenBrach released this 02 Nov 22:17
· 218 commits to main since this release

[0.51.0] - 2026-11-02

Added

  • Modules (src/Modules.cs, docs/PLUGINS.md): the tools in 13 modules (core, plc-code, test,
    runtime, io, motion, hmi, scope, safety, docs, knowledge, packages, system) that can be switched on and off in a
    modules.json on the company, team, user and project level – company and team can lock a module, core stays on, a
    module needing a switched-off one is off too. A switched-off module is not in the tool list of the AI client and its
    tools are refused with the module's name; the command line keeps every tool. TcAgent.exe modules [enable|disable].
    The server tells the client when the tool list changes with the solution (tools.listChanged).
  • Plugins (src/Plugins.cs): own tools as programs in any language speaking MCP over stdin/stdout, in
    <level>\plugins\<id>\plugin.json, offered as x_<id>_<tool>. Every call goes through the policy, the confirmation
    and the audit log with the class the plugin declares (undeclared = changing, confirmed every time); a plugin uses
    TwinCAT through tcagent/call, i.e. through the built-in tools with all their checks. Plugins of the team and project
    levels run only after TcAgent.exe plugins approve for exactly their content (SHA-256); the company level can allow
    all, none or listed plugins. Example plugin docs/plugins/todo-finder (PowerShell).
  • Tab Modules in the Knowledge window (vsbridge/KnowledgeModules.cs): a check box per module for me (default) or
    this project, grey with the reason when it cannot be changed here; the plugins of every level with their state;
    Approve plugin … shows the program, folder, level, tools and hash - only a mouse click on Approve approves (no
    Enter, no keyboard, no UI automation); details with the tools, dependency, window and the modules.json of every
    level; the status line counts the modules, plugins and tools the agent sees. TcAgent.exe modules --json lists the
    tool names and every level's settings, TcAgent.exe plugins --json the plugins.
  • The TcUnit Tests window stays open when the module Tests is switched off and says so, with "Switch on (for me)".

Changed

  • Documentation: the TcUnit window follows runs started elsewhere (user guide, README), tc_test_results reports only
    the last run, tc_plc_create explains reserved names, the warning about TFS/VSS source control bindings (tc_attach,
    troubleshooting); the XAE Shell installation shows how to unblock the ZIP in PowerShell (Unblock-File) before
    extracting it; modules and plugins in the README, TOOLS.md, KNOWLEDGE_LAYERS.md, PIPELINE.md and the agent skill;
    the live times of the TcUnit window in TCUNIT_TESTS.md.

Fixed

  • XAE Shell: no TcAgent window after installing from a ZIP that was not unblocked. Every extracted file kept the mark
    "downloaded from the internet" (Zone.Identifier), install-xaeshell.ps1 copied it along, and the shell (.NET Framework,
    no loadFromRemoteSources) refused to load the marked TcAgentBridge.dll (0x80131515) - no window, no setup on the
    first start, %LOCALAPPDATA%\TcAgent\app empty, while the script reported success. The script now stops before
    installing (also with -BuildOnly) and says what to do: Unblock the ZIP, extract it again, run it again. It never removes
    the mark itself - that stays the user's decision.
  • TcUnit Tests window: the time of a suite and the total stood still while a test ran - they only counted finished tests.
    Now they count the running test too and go on every half second, like the line of the test itself; the progress line
    shows the time of the run as well ("Running · 120 of 3751 · · 2:13 min"), so a long test does not look like a hang.
  • TcUnit run: up to a minute (and more) between the end of TcUnit and the result in the window. After every run TcAgent
    read the IDE error list (up to 20,000 entries, up to 15 times) for the failure texts - slow with thousands of tests, and
    even without a failed test. Now only when a test failed, within 15 s; the window shows the numbers at once ("reading the
    failure messages …") and the texts follow.
  • The MCP server ignores a byte order mark at the start of the input (clients on .NET Framework write one).
  • The Knowledge and TcUnit windows close the input of the TcAgent.exe they start: an older TcAgent.exe that does not know
    a command (and starts the MCP server instead) ends at once instead of waiting.

Assets

  • TcAgent-0.51.0.vsix - Visual Studio 2022: double-click (close Visual Studio first)
  • TcAgent-XaeShell-0.51.0.zip - TwinCAT XAE Shell (preview): unblock the ZIP first (Properties > Unblock, or Unblock-File), extract it, run install-xaeshell.ps1 (see docs/INSTALLATION.md)
  • SHA256SUMS.txt - checksums of both packages

Full changes: v0.50.0...v0.51.0