agentic-qe-fleet
PACTS-based agentic quality engineering fleet for Claude Code. This is a slim starter bundle of the AQE platform. It has 11 specialized QE agents, 9 core skills, 9 slash commands, and the agentic-qe MCP server, pinned to the plugin version.
Install
In one step (Claude Code 2.1.275 or later):
/plugin install agentic-qe-fleet --marketplace proffesor-for-testing/agentic-qe
Or add the marketplace first:
/plugin marketplace add proffesor-for-testing/agentic-qe
/plugin install agentic-qe-fleet@agentic-qe
The install registers the MCP server plugin:agentic-qe-fleet:agentic-qe, which runs npx -y --allow-scripts=better-sqlite3,hnswlib-node agentic-qe@<plugin version> mcp. The flag lets npm 12 run the install scripts that build better-sqlite3 and hnswlib-node; without it fleet_init fails. You don't need to run claude mcp add. Check it with claude mcp list.
Options (userConfig)
Set these with /plugin configure agentic-qe-fleet@agentic-qe, or pass --config KEY=VALUE to claude plugin install. Every option has a default, so the server starts even if you leave them unset.
| Option | Sets | Default | Effect |
|---|---|---|---|
llm_provider | AQE_LLM_PROVIDER | empty (auto) | Pins the LLM provider, e.g. claude-code, claude, openrouter or ollama. If it's empty, the provider comes from llm-config.json or env auto-detection. |
max_budget_usd | AQE_MAX_BUDGET_USD | 0 (no cap) | Per-run spend cap for metered providers. |
memory_backend | AQE_MEMORY_BACKEND | hybrid | hybrid saves learning to .agentic-qe/memory.db. memory is database-free mode: same features, but nothing is written under .agentic-qe/. |
What's Included
Agents (11)
Agents are routed by cognitive load: heavy reasoning runs on Opus, focused execution on Sonnet.
| Agent | Model | Purpose |
|---|---|---|
qe-test-architect | opus | AI-powered test generation with sublinear optimization |
qe-fleet-commander | opus | Fleet lifecycle and workload distribution |
qe-security-scanner | opus | SAST/DAST/dependency/secrets scanning |
qe-chaos-engineer | opus | Controlled fault injection and resilience testing |
qe-regression-analyzer | opus | Intelligent test selection and change-impact scoring |
qe-requirements-validator | opus | Testability analysis and BDD scenario generation |
qe-coverage-specialist | sonnet | O(log n) sublinear coverage analysis with risk-weighted gap detection |
qe-flaky-hunter | sonnet | Flaky test detection and auto-stabilization |
qe-performance-tester | sonnet | Load, stress, endurance, regression detection |
qe-quality-gate | sonnet | Quality gate enforcement with policy validation |
qe-tdd-specialist | sonnet | Red-Green-Refactor (London + Chicago schools) |
Skills (9)
Each skill has a trust tier and a scoped allowed-tools list with no wildcards.
- Tier 3: full eval infrastructure (eval YAML, JSON schema and validator).
- Tier 2: tested, but without an eval.
The bundle leaves out tier-1 (untested) skills, per AQE trust-tier policy.
| Skill | Trust tier | MCP tools |
|---|---|---|
qe-test-generation | 3 | test_generate_enhanced |
qe-coverage-analysis | 3 | coverage_analyze_sublinear, qe_coverage_gaps |
qe-test-execution | 3 | test_execute_parallel |
qe-chaos-resilience | 3 | chaos_test |
qe-quality-assessment | 3 | quality_assess |
chaos-engineering-resilience | 3 | — (methodology guide) |
mutation-testing | 3 | — (Stryker integration) |
risk-based-testing | 3 | — (read-only analysis) |
tdd-london-chicago | 2 | — (TDD school comparison) |
MCP tool names. A server that comes from this plugin exposes its tools as mcp__plugin_agentic-qe-fleet_agentic-qe__<tool>. A project set up with aqe init registers the server under the name agentic-qe, which gives mcp__agentic-qe__<tool>. Each skill lists both forms in allowed-tools, so it works with either setup. See ADR-0001.
Commands (9)
/aqe-analyze, /aqe-benchmark, /aqe-chaos, /aqe-costs, /aqe-execute, /aqe-fleet-status, /aqe-generate, /aqe-optimize, /aqe-report
Requires
- Node.js >= 22.13.0, with
npxonPATH. The MCP server runs throughnpx. - Network access the first time the server starts, so
npxcan fetch the pinnedagentic-qepackage. After that it uses the npm cache. - No other plugin. The plugin ships its own MCP server.
Compatibility
- Versioning: the plugin version always equals the
agentic-qenpm package version, and.mcp.jsonpins the server to that exact version (agentic-qe@<version>, never@latest). The release flow bumps all of these together:npm versionrunsscripts/sync-plugin-versions.cjs. - Coexisting with
aqe init: a project that has both the plugin andaqe initruns twoagentic-qeserver processes, one under each name. Both work. To keep only one, disable the plugin in that project or removeagentic-qefrom the project.mcp.json. - Verification:
bash plugins/agentic-qe-fleet/scripts/smoke.shis the contract.
Namespace coordination
The fleet uses the AQE memory namespaces below. They are database identifiers, not filesystem paths, and other plugins MUST NOT shadow them.
aqe/v3/domains/<domain>/*: per-domain data, for example:aqe/v3/domains/test-generation/patterns/aqe/v3/domains/coverage-analysis/metrics/aqe/v3/domains/test-execution/flaky/aqe/v3/domains/security-compliance/scans/
aqe/v3/queen/*: fleet coordination (aqe/v3/queen/fleet/,aqe/v3/queen/tasks/).
With memory_backend=hybrid, they persist to .agentic-qe/memory.db in the project. With memory_backend=memory, they last only for the server process.
Test locally
claude --plugin-dir ./plugins/agentic-qe-fleet
Then run, for example, /aqe-fleet-status.
Verification
claude plugin validate plugins/agentic-qe-fleet
bash plugins/agentic-qe-fleet/scripts/smoke.sh # or: npm run plugin:smoke
# Expected: "PASS: agentic-qe-fleet contract holds"
node scripts/sync-plugin-versions.cjs --check # plugin versions == package.json
Architecture Decisions
As a mod (Claude Code >= 2.1.287)
The plugin ships a hooks module, aqe-mod (hooks/hooks.json -> hooks/register.ts), which loads with the plugin by default.
-
Learning-data guard (on by default). It refuses Bash, Monitor, PowerShell, Write, Edit and NotebookEdit calls that would destroy AQE's learning data:
rm,mv,cp/install/lnover,truncate,shred,dd,tee,gzip,sed -ior a>redirect on.agentic-qe/*.db(and-wal,-shm,*.rvf)rm -rf .agentic-qe(also as.agentic*),find ... -delete/-execthat can reach it,git clean -xsqlite3withDROP,DELETE FROM,TRUNCATE,ALTER TABLE ... DROPor.restoreon a store, and.backup/.save/.output/.onceonto onenode -e,python3 -c,perl,rubyand similar scripts that name the data and delete, move or overwrite it- PowerShell
Remove-Item,Move-Item,Set-Content,Out-Fileand similar on those files - Write/Edit on those files
The guard reads commands the way the shell does. It follows
bash -c/-lc,eval, heredocs, pipes (find ... | xargs rm),$(...), keywords (then,do,!,coproc), brace expansion (memory.db{,-wal}), ANSI-C quoting ($'\x2eagentic-qe'), variables,cd .agentic-qeandgit -C. It also refusesfindthat deletes.agentic-qeby name or path (unless-pruned or negated), and a directory copy that lands in it (cp -r backup/.agentic-qe ./,rsync -a backup/ .agentic-qe/). SQL is checked only in asqlite3command, and code only in an interpreter command, sogrep -rn "DROP TABLE" srcnext tols .agentic-qepasses.These pass: reads and backups (
cp .agentic-qe/memory.db .agentic-qe/memory.db.bak-$(date +%s),cp ... .agentic-qe/memory-backup-20261009.db,SELECT,PRAGMA integrity_check,.backup /tmp/x.db,sqlite3 -readonly,file:...?mode=ro), copies from the store in scripts (shutil.copy('.agentic-qe/memory.db', '/tmp/x.db'): the destination decides), andrm -rf .agentic-qe/tmporrm .agentic-qe/*.log. The guard only refuses and never loosens anything. Set the plugin optionguardModetoenforce(default),notifyoroff.When it cannot tell, it refuses. The guard does not run the shell, so anything it cannot resolve counts as possibly the store:
- An unset or unknown
$NAME,${...}or$@in a path reads as*(rm -f .agentic-qe/$DB_FILEis refused).${X:-word}reads aswordor*. - A
$(...)or backtick reads as what its command may print. Naming the store (rm "$(printf .agentic-qe)/memory.db") yields those paths. Listing files that may include it ($(find . -name '*.db'),$(ls -A),$(git ls-files -o)), or printing something the guard cannot know ($(cat list),$(... | base64 -d)), yields the store itself. Only known-harmless output ($(date +%s),$(pwd),$(find . -name '*.tmp'),$(which tool),$(npm config get cache)) reads as plain*.$(git status ...)and$(< file)may print the store. A find is judged on everything it prints, every-obranch included. The same holds forDB=$(...), arrays (arr=($(...)),arr+=("$f"),"${arr[@]}", slices"${arr[@]:1}"),mapfile/readarray,for f in $(...),... | xargs rm,echo "$dbs" | xargs rm, here-strings (xargs rm <<< "$dbs",done <<< "$(find ...)") andwhile read f; ... done < <(...). A prefix assignment is an environment binding the nested shell sees (D=.agentic-qe bash -c 'rm -rf $D'). An unknown prefix may be empty, so"$X.agentic-qe"and$(true).agentic-qename the store.bash -corevalof a script that is wholly an unknown expansion (bash -c "$(... | base64 -d)",eval "$CMD") is refused;eval "$(ssh-agent -s)"and similar shell-setup generators pass. - A glob may match anything it could match: bracket expressions with POSIX classes (
[[:alpha:]]) match any character, an extglob group (@(qe)) reads as*, and aftershopt/GLOBIGNOREon the line,*also matches dot names. findthat deletes from.,..,~,$HOMEor any unresolved root is refused when it can reach a data file. An exclusion counts only in two forms, never with-depth: a branch that is exactly-name .agentic-qe -pruneor-path ./.agentic-qe[/*] -prune, followed by-oand an-exec(never-delete: BSD find reads-deleteas-d, which turns-pruneoff), or-not -path './.agentic-qe/*'as a condition of the deleting branch itself. A positive-pathnarrows only when it is literal:-path '*proj*'may match a store at any depth. Every-execis read past wrappers (-exec sudo rm,-exec git rm). A shell's-ctext is judged as if it ran on the store, a SQLite client on its SQL, and a copy only when the found file is its destination, so-exec grep -l rm {} \;and-exec cp {} /tmp/backup/ \;pass.- Past its read limits, text that names
.agentic-qeis refused: brace expansion beyond 256 results, words over 2 KiB, or braces nested over 32 deep (each brace group reads as*); 256 expansions of one word;$(...)orbash -cnested deeper than the guard follows; scripts with more string literals than it reads.
Decisions and limits:
- Refused in enforce mode on purpose: the CLAUDE.md restore flow (
cp memory.db.bak-X .agentic-qe/memory.db, then removing-wal/-shm). To restore, ask the user to run it, or setguardModetonotifyorofffor that step. - Every
.agentic-qeis protected, fixtures included:rm -rf /tmp/fixture/.agentic-qeis refused in enforce mode. A hook cannot resolve globs (/tmp/*/.agentic-qe),$-expansions or symlinks (/tmp/linkpointing at the project), so it cannot tell a throwaway fixture from a project that lives under a temp directory. To clean fixtures, setguardModetonotifyorofffor that step, or ask the user. - Size and nesting limits: a shell command over 256 KiB is refused unread, and text nested more than 8
$(...)deep is refused when it names.agentic-qe. If the guard itself fails or runs out of time on a call, that call is refused (enforce mode). - SQL:
DROP,DELETE FROM,TRUNCATE,ALTER ... DROPandUPDATE(which can overwrite every row:UPDATE ... SET content = NULL) are refused against a store.INSERTpasses. SQL the guard cannot read is refused too:.read file,sqlite3 db < file.sql, or a heredoc whose end is not in the command.VACUUM INTOa store,sqlite-utilscommands that change a store,litecliwithout-e, and destructive SQL handed to any other client are refused.sqlite3 -readonlyandfile:...?mode=ropass. - Backup names: a file whose name contains
backupor a.bak/-bakpart (memory-backup-1.db,memory.bak.db) is a copy, not the store. Tools may write and remove it. git clean -x -e: an exclude passes only if it keeps every data file (-e .agentic-qe, or-e '*.db*' -e '*.rvf').-e '*.db'alone still lets git delete-wal/-shm/*.rvf, so it is refused.- PowerShell: a pipeline whose earlier stage names the store or lists recursively from where it may be (
gci .agentic-qe *.db | ri,Get-ChildItem -Recurse -Filter *.db | Remove-Item) is refused at the destroying stage.Invoke-Expression/iex,& { ... }script blocks,Start-Process ... -ArgumentList(comma lists included),pwsh -c/powershell -Command(from either tool) andwsl <cmd>are read like the command they run, andNew-Item -Forceover a store is refused. Variables and splats are followed ($p = '.agentic-qe'; Remove-Item $p,$a = @{Path='.agentic-qe'}; Remove-Item @a,foreach ($d in $dbs)); an unknown$varreads as*, andiexor a .NET delete on one is refused. A-Force/-Hiddenlisting feeds a recursive Remove-Item, and any listing aftersl .agentic-qefeeds a delete.$x += ...appends, a(...)/@(...)/$(...)argument is read as a stage of its own (Remove-Item (gci -r -Filter *.db)),$db.Delete()/.MoveTo()on a variable that holds the store is refused, and-OutVariablebinds the stage's output. AWhere-Objectfilter narrows what is fed on only when it is a pure conjunction (no-or,-xor,-not,!,-ne,-notlike,-notmatch) with a positive literal-eq/-likeon Name or Extension that cannot match a store file (Where-Object Extension -eq '.tmp',{ $_.Extension -eq '.tmp' -and $_.Length -gt 0 }). - What the guard cannot see: a script file it is not shown (
python3 cleanup.py,make clean,npm run clean), paths assembled at run time ('.agentic' + '-qe'), and symlinks pointing into.agentic-qe.tar -x -C .agentic-qeandunzip -d .agentic-qeare refused, but an archive extracted elsewhere that happens to contain.agentic-qeis not. It is a guard against mistakes, not a sandbox.
-
/aqe-mod:status,check <command>(a dry run of the guard's verdict),fleet(the learning-data files present and the AQE MCP tools connected),gate. Anything only the AQE MCP server knows is reported as unknown, never estimated.statusprints athis session:line, anall sessions:line (with the time counting began) and the last refusal (when, which tool, blocked or flagged, and the guard's reason). -
Console status. Writes
.claude-flow/aqe-mod/status.jsonfor the ruflo console's Mods section. When ruflo-mods is loaded, it also adds anaqesegment to ruflo's status bar. The file isversion: 1:-
modVersionis the plugin version.hooks/version.tsis generated byscripts/sync-plugin-versions.cjs(the npmversionhook), and--checkfails if it drifts. -
calls,blocked,flaggedandstartedMscount this session only, as before. -
totals: {calls, blocked, flagged, since}count every session in the project. A new session loads them from the file it finds, and every write re-reads the file first, so sessions running side by side add to the totals instead of overwriting each other. If the file is missing or corrupt, the totals start from zero. Status-file I/O never blocks or allows a tool call. A file written by 3.15.1 or earlier has nototals, so its counters seed them. -
lastRefusal: {atMs, tool, outcome, reason}is the most recent refusal from any session.outcomeisblocked, orflaggedin notify mode.reasonis the guard's reason with its fixed back-up advice dropped, control and bidi characters removed, and operands redacted, then cut to 200 characters. A path keeps only its.agentic-qe/...part, or becomes<path>. A backticked expression becomes`<expr>`. The verb stays, for exampleaqe-mod refused this: `rm` on .agentic-qe/memory.db.. The command itself is never stored. -
Read back from the file, a time later than now plus one day is dropped. So is a
lastRefusalwhose reason does not start withaqe-mod refused this:. -
lastDenied(the console's refusal class) is set once any session has refused something. -
The ruflo console reads the top-level fields.
totalsandlastRefusalare additive, and today's console ignores them. -
The mod never reads or writes the status file through a symbolic link. Before every read and write it checks
.claude-flow,.claude-flow/aqe-modandstatus.jsonwith$.fs.stat. If any of them is a link, or is not a folder or a regular file where one is expected, it skips the file and leaves the link as it is./aqe-mod statusthen saysstatus file: not written: ....$.fshas no write that refuses to follow a link and no rename, so a link swapped in between the check and the write is not caught.
To reset the totals, delete
status.jsonbetween sessions. -
Tests: claude plugin test plugins/agentic-qe-fleet and bash plugins/agentic-qe-fleet/scripts/smoke-mod.sh.