iRule Developer Tools

Hi All,

I’ve made a set of developer tools for Tcl including iRules,

This includes

  • LSP server
  • Editor integrations for VSCode, Sublime Text, Zed, Jetbrains, Helix, neovim, emacs and more (though I’ve only really hammered on vscode there)
  • MCP server
  • Claude skills
  • cli tool
  • Semantic token highlighting
  • Hover docs
  • Format string interpreters
  • AI tools for creating, explaing, validating, documenting, diagramming iRules and Tcl
  • full optimising compiler chain with 26 optimiser passes
  • 27 iRule specific diagnostics and optimisations
  • Security warnings through taint tracking (use of user input tracked through the code)
  • Shimmer detection with inline type hints (know when a variable type is being reinterpreted)
  • Code formatting
  • Code minification
  • Compiler explorer to look at how your code is interpreted
  • A full iRule testing framework

and more.

This is only based on publicly available information and my memory, though I have deployed enough iRules. This is the tool I always wanted.

I could do with help expanding and improving the profile → event / command maps, and the iRule event graph, and with generally finding bugs, so please, open issues.

I will be away on holiday for a couple of weeks so please bear in mind I may take a little time to get back to you.

cheers,

Jim :united_kingdom::australia:

I’m using your vscode iRule extension. Love it!
Thanks for your awesome work!

Great! Please do raise issues with a repro and expectation if you hit problems

This is now published on Tcl/Tk, iRules, EDA-Tools, Expect LSP/MCP - Visual Studio Marketplace

I’ll look into publishing the other editors (Sublime, Zed, Jetbrains etc) when I can.

I’m thankful to those who’ve reported issues to me already, please, if you find any issues, like editor bugs, diagnostics or optimisations misfiring, create issues on GitHub - bitwisecook/tcl-lsp: An LSP for Tcl 8.4-9.1, F5 iRules, F5 iApps and other Tcl dialects · GitHub