mcp-steroid / test-integration-agent-launch
CLAUDE.md82 starsChanged 3 months agoApache-2.0View on GitHub
Cross-OS behaviour tests (Windows and Linux) for the script-only, minimal-dependency way an agent plugin launches things — its stdio MCP server and its hooks — validating how Claude Code resolves each candidate script form per OS. Uses mock probe scripts (no real devrig). Live counterpart to jonnyzzz/mcp-steroid#253. The suite is structurally tied to a real Windows/Linux agent (it downloads + runs the OS Claude build). Per the root CLAUDE.md rule, it is gated at the task level: build.gradle.kts → tasks.test…
1 other project uses a version of this.
Adopted by
Most recently taken up by
- jonnyzzz/mcp-steroidword for word, first seen Aug 5, 2026
Other versions1 project uses a version of this.
Word for word · 1
- jonnyzzz/mcp-steroid★ 78100% same
Edited · 0
None found.
Wrote their own version · 0
None found.
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository10 other files it gives its agents.
- prompts/AGENTS.mdAGENTS.md
- test-integration/AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- docs/CLAUDE.mdCLAUDE.md
- ij-plugin/CLAUDE.mdCLAUDE.md
- installer-gen/CLAUDE.mdCLAUDE.md
- test-experiments/CLAUDE.mdCLAUDE.md
- website/CLAUDE.mdCLAUDE.md
- website-gen/CLAUDE.mdCLAUDE.md
- promptSkill
The file
We split this CLAUDE.md into the rules it gives an agent
1 rule. About 0 are common, 0 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 55
No API key needed — Claude spawns plugin MCP servers + hooks during session init, before the -p turn fails auth.
≈ “Common” is an estimate: at least 1 in 5 of the 26,980 CLAUDE.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
test-integration-agent-launch — Agent Guide
Cross-OS behaviour tests (Windows and Linux) for the script-only, minimal-dependency way an agent plugin launches things — its stdio MCP server and its hooks — validating how Claude Code resolves each candidate script form per OS. Uses mock probe scripts (no real devrig). Live counterpart to jonnyzzz/mcp-steroid#253.
| Test | Verifies |
ClaudeAgentLaunchTest | Downloads the host-OS Claude build, loads a mock probe plugin via --plugin-dir, and asserts the per-OS launch outcome of the MCP command + every candidate hook form (exec ×3 + shell ×3). |
InstallerScriptTest | The generated installer for the host OS is syntactically valid: install.ps1 parses under Windows PowerShell 5.1; install.sh parses under sh -n. (#254) |
OS gating (no runtime skips)
The suite is structurally tied to a real Windows/Linux agent (it downloads + runs the OS Claude build).
Per the root CLAUDE.md rule, it is gated at the task level: build.gradle.kts →
tasks.test { enabled = isWindows || isLinux }. On macOS the task is skipped; compileTestKotlin still
runs. Tests that DO run use OS-conditional assertions (assert the per-OS-correct outcome) — that is
not a skip.
Confirmed matrix (cross-validated on TeamCity + GitHub, Windows + Linux)
Probe log: LAUNCHED tag=<tag> via=<cmd|sh|shell|script>.
MCP stdio (script-only, zero deps): extensionless ${CLAUDE_PLUGIN_ROOT}/bin/<stem> resolves to
<stem>.cmd via cross-spawn/PATHEXT on Windows (via=cmd) and to the #!/bin/sh <stem> on
Unix (via=sh); a bare name resolves on neither (plugin bin/ isn't on the subprocess PATH).
Hooks:
| Hook form | Windows | Linux |
| exec-form, extensionless path | ❌ | ✅ (+x shebang script) |
exec-form, .cmd path | ❌ | ❌ |
exec-form, cmd /c <.cmd> | ✅ | ❌ (no cmd) |
| shell-form, default shell | ✅ (Git Bash) | ✅ (sh) |
shell-form, "shell":"powershell" | ✅ | pwsh-dependent (recorded) |
shell-form → #!/bin/sh script (devrig pattern) | ✅ (Git Bash) | ✅ |
Recommended (cross-platform, minimal deps): shell-form pointing at a #!/bin/sh script — runs
natively on Linux/macOS and via Git Bash on Windows; exactly how devrig ships its hooks. The single
dependency is Git Bash on Windows for sh hooks; MCP has none.
Running
# On Windows or Linux (real behaviour):
./gradlew :test-integration-agent-launch:test
./gradlew ciAgentLaunchTests # CI aggregator (TeamCity per-OS builds + GH win/ubuntu matrix)
# On macOS: skipped. Verify it still compiles anywhere:
./gradlew :test-integration-agent-launch:compileTestKotlinNo API key needed — Claude spawns plugin MCP servers + hooks during session init, before the -p turn
fails auth. TeamCity wiring: ~/Work/mcp-steroid-teamcity → builds/_18_agent_launch_tests.kt.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

