Skip to content

About

Global AI editor rules, skills, workflows

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

OMNeT++ agent plugins

An agent plugin for developing OMNeT++ simulation models and the INET Framework. It gives AI coding agents (Claude Code, Codex and others) OMNeT++ skills. It also connects the agents to the OMNeT++ command-line tools: a NED/MSG/INI linter that runs after every edit, a language server, and an MCP server that answers questions about the model.

The repository is one plugin marketplace, omnetpp, with one plugin, omnetpp:

Skills For Contents
omnetpp-model-*, omnetpp-tooling Everyone who writes OMNeT++ models Model development, coding conventions, debugging, documentation generation (opp_docgen) and the NED/MSG/INI tools.
omnetpp-model-*, dev-* Maintainers of a model library Working rules, fingerprint testing, behavior-preserving refactoring, git workflow, branch cleanup and rebase, review briefs, and the generic dev-* procedures they build on.
inet-*, generic-* INET contributors INET build environment, test suites, protocol conformance test planning, fingerprint and statistical tests, module development, release notes, showcases.

The plugin also brings the lint hook, the language server and the omnetpp MCP server.

Install

Claude Code

claude plugin marketplace add omnetpp/agent-plugins
claude plugin install omnetpp@omnetpp

Codex CLI

codex plugin marketplace add omnetpp/agent-plugins
codex plugin add omnetpp@omnetpp

Codex starts a plugin's MCP server in the plugin directory, not in your project, so the omnetpp MCP server is registered separately. With the tools on PATH (see below):

codex mcp add omnetpp -- opp_ide_mcp

Without them, or if opp_ide_mcp on PATH is a stale shim of the VS Code extension, run it through npx instead:

codex mcp add omnetpp -- npx --yes -p @omnetpp/opp-tools opp_ide_mcp

Codex runs a plugin's hooks only after you trust them, and asks again after every update of the plugin, because the trust is tied to the hook's content. Until then, the lint feedback after edits is missing.

Other agents

The plugin also has manifests for Copilot CLI, Cursor and Antigravity. These are untested. They carry the skills, plus the language server (Copilot CLI) and the MCP server (Cursor).

Development mode: the plugin from a checkout

To work on the plugin, install it from a clone of this repository instead of from GitHub. Claude Code and Copilot CLI then read the plugin straight from the checkout, so an edit takes effect in the next agent session; Codex copies it on install.

git clone https://github.com/omnetpp/agent-plugins.git ~/agent-plugins

The local marketplace has the same name, omnetpp, so first remove one that was added from GitHub. This also uninstalls its plugin.

claude plugin marketplace remove omnetpp
codex plugin marketplace remove omnetpp
copilot plugin marketplace remove omnetpp --force

Then add the checkout as the marketplace and install the plugin:

claude plugin marketplace add ~/agent-plugins
claude plugin install omnetpp@omnetpp
codex plugin marketplace add ~/agent-plugins
codex plugin add omnetpp@omnetpp
copilot plugin marketplace add ~/agent-plugins
copilot plugin install omnetpp@omnetpp
  • Claude Code and Copilot CLI pick up every change in the next session, also new skills and another git branch checked out.
  • Codex keeps a copy of the plugin. After a change, install it again (codex plugin add omnetpp@omnetpp). It then asks again to trust a changed hook.
  • After editing plugins.json, regenerate the manifests with node scripts/gen-manifests.mjs; CI fails on stale ones.
  • node tests/agent-install-smoke.mjs installs the checkout into each agent CLI it finds, in a throwaway home, and checks what the agent reports. Your own setup is not touched.

To go back to the released plugin, remove the marketplace again and add omnetpp/agent-plugins.

Requirements

  • Node.js 18 or newer, for the command-line tools from the @omnetpp/opp-tools npm package (opp_lint, opp_lsp, opp_ide_mcp, opp_docgen). The plugin uses them from PATH. If they are not there, it fetches a pinned version with npx. The first fetch is slow, so installing them once is better:

    npm install -g @omnetpp/opp-tools

    The OMNeT++ VS Code extension can also put them on PATH ("OMNeT++: Install Command-Line Tools").

  • Library NED folders (e.g. INET, for a model built on it) come from omnetpp.nedPath in the project's .vscode/settings.json, or from the OMNETPP_NED_PATH environment variable.

  • opp_repl (pip install opp_repl, github.com/omnetpp/opp_repl) for the opp_repl-driven skills: branch cleanup and rebase, and statistical-test maintenance. The plugin does not install it.

Project setup

A project repository (INET, OMNeT++) can carry a short entry-point skill and agent settings that point teammates' agents to the plugin. project-stubs/ holds the master copies.

License

The plugin contents (skills, manifests, scripts) are under the MIT License.

The @omnetpp/opp-tools command-line tools are not part of this repository and have their own license. They are free for noncommercial use (teaching, academic research, personal non-profit use) on the same terms as the OMNeT++ Academic Public License; commercial use requires an OMNEST license.

Contributing

See AGENTS.md for the skill layout, naming and layering rules.

CI checks the manifests and the skills, runs the lint hook, the language server and the MCP server through the launcher on Linux, macOS and Windows (tests/hook-smoke.mjs, tests/tools-smoke.mjs), and installs the plugin from the checkout into the latest Claude Code, Codex and Copilot CLI (tests/agent-install-smoke.mjs). It does not run an agent session.

About

Global AI editor rules, skills, workflows

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages