iris-agentic-dev
CLAUDE.md41 starsChanged 3 months agoMITView on GitHub
MCP server that gives Claude Code tools for IRIS development — execute ObjectScript, query globals, inspect productions, run tests, search code, manage skills, and more. Written in Rust (2021 edition), two crates: iris-agentic-dev-core (tools + MCP server) and iris-agentic-dev-bin (CLI entry point). NoPWS note: Community 2026.2 has PWS on 52780. Enterprise 2026.2.0AI builds do NOT (DPP-1192) — atelier_rest=false, use docker_only=true for those. Verify running before any IRIS-dependent work: Always pass --features testing. Every aggregate test target declares required-features = ["testing"],…
In this repository40 other files it gives its agents.
- AGENTS.mdAGENTS.md
- skills/AGENTS.mdAGENTS.md
- .github/copilot-instructions.mdCopilot instructions
- iris-coverage-runSkill
- iris-coverage-setupSkill
- pyprodSkill
- aihub-eapSkill
- ensemble-productionSkill
- iris-agentic-devSkill
- iris-ai-hubSkill
- iris-connectivitySkill
- iris-container-graceful-shutdownSkill
- iris-cpf-mergeSkill
- iris-devtesterSkill
- iris-docsSkill
- iris-embedded-pythonSkill
- irishealth-containerSkill
- iris-linux-dockerSkill
- iris-objectscript-evalSkill
- iris-pgwireSkill
- iris-product-featuresSkill
- irispython-connectorSkill
- iris-sqlSkill
- iris-vector-aiSkill
- iris-vscode-objectscriptSkill
- iris-windows-iis-setupSkill
- objectscript-coverageSkill
- objectscript-debuggingSkill
- objectscript-fewshot-fixesSkill
- objectscript-guardrailsSkill
- objectscript-list-patternsSkill
- objectscript-loop-patternsSkill
- objectscript-mac-routinesSkill
- objectscript-navigationSkill
- objectscript-repairSkill
- objectscript-reviewSkill
- objectscript-sql-patternsSkill
- objectscript-tddSkill
- objectscript-unit-testSkill
- opencode-introspectSkill
The file
We split this CLAUDE.md into the rules it gives an agent
10 rules. About 0 are common, 4 are distinctive, and 6 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
This author's own choices. Worth a look.
6
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 18
Verify running before any IRIS-dependent work:
- Very specific: line 34
Always pass --features testing.
- Distinctive: line 87
Always use a live IRIS container for tests: Never mock IRIS, mock the Atelier HTTP client, or stub IRIS responses in unit tests.
- Distinctive: line 100
Every new feature, tool, CLI flag, config field, and skill must have tests at the right layer before the PR is considered done.
- Very specific: line 113
Use IAD_BINARY=./target/debug/iris-agentic-dev and #[ignore].
- Very specific: line 119
Version consistency: every file that must agree with the workspace version (Cargo.toml, package.json, .claude-plugin/plugin.json, etc.) …
- Very specific: line 124
When in doubt: ask "if I changed this flag/field/file silently, would any test fail?" If the answer is no, the test is missing.
- Distinctive: line 129
Before closing any release (tagging, publishing, merging release branch):
- Very specific: line 131
Run /no-ai-slop on all release notes and changelog entries.
- Very specific: line 189
Use Grep/Glob/Read freely for text, configs, and non-code files, and always Read a file before editing it.
≈ “Common” is an estimate: at least 1 in 5 of the 12,729 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
iris-agentic-dev
MCP server that gives Claude Code tools for IRIS development — execute ObjectScript, query globals, inspect productions, run tests, search code, manage skills, and more.
Written in Rust (2021 edition), two crates: iris-agentic-dev-core (tools + MCP server)
and iris-agentic-dev-bin (CLI entry point).
Local dev container
| Container | TCP port | Web port | Image | Atelier REST | WebGateway |
iris-dev-iris | 11975 | 52780 | iris-community:2026.2 | yes (52780) | none — PWS only |
NoPWS note: Community 2026.2 has PWS on 52780. Enterprise 2026.2.0AI builds do NOT
(DPP-1192) — atelier_rest=false, use docker_only=true for those.
Verify running before any IRIS-dependent work:
docker ps --filter name=iris-dev-irisCommands
cargo build # build
cargo clippy -- -D warnings # lint (CI enforces clean)
cargo fmt --all # format (CI enforces clean)
cargo test --features testing # unit tests (no IRIS required)
cargo test --features testing -- --include-ignored # full suite (requires live container)Always pass --features testing. Every aggregate test target declares
required-features = ["testing"], and cargo skips them silently without it — a bare cargo test
reports green while never compiling anything. CI passes the flag on every job.
For integration/e2e tests always use --test-threads=1:
cargo test --features testing --test '*' -- --test-threads=1 --include-ignoredTest target layout
Both crates declare a handful of [[test]] targets, not one per file. Each is an aggregator
(tests/<dir>/main.rs) whose only content is mod lines:
| Crate | Target | Files | What it holds |
core | unit | 100 | Pure logic — parsers, guards, gates, contracts |
core | integration | 54 | Live IRIS via iris-dev-iris; must stay serial |
core | binary | 14 | Spawn iris-agentic-dev, talk JSON-RPC over stdio |
core | misc | 15 | Older top-level tests/*.rs |
core | skills | 1 | Single file, so it stays its own target |
bin | bin_unit | 10 | CLI arg parsing, config resolution |
bin | bin_integration | 14 | Spawned-binary and live-IRIS CLI paths |
bin | bin_misc | 2 | Older top-level tests/*.rs |
Cargo runs test binaries strictly one after another and gives you no knob to change that, so a per-file target charges every run a process spawn. At 233 targets across the two crates that was ~85% of a warm run: 254 s, of which about 40 s was actually running tests. The eight aggregates bring the same suite in at ~65 s.
Almost all of that came from the core crate. Aggregating the bin crate's 26 targets cut its own CPU time from 26.8 s to 11.6 s but moved the workspace wall clock barely at all, because the core build dominates. It is here for the guard coverage and the consistency, not for the clock.
Two consequences:
- Add a file, add its
modline. An unlisted file compiles nowhere and its tests never run, andcargo teststill reports ok.test_test_target_layout.rsfails when that happens — do not delete it. - Do not add a per-file
[[test]]block.autotests = falseis set, so a file declared as its own target and listed in an aggregator compiles twice. The same guard test catches it.
unit touches no IRIS and no shared env, so it can run parallel — 5.7 s against 18.6 s serial:
RUST_TEST_THREADS=12 cargo test --features testing --test unitTesting Philosophy — NON-NEGOTIABLE
IRIS is the only valid test object.
- Always use a live IRIS container for tests. Never mock IRIS, mock the Atelier HTTP client, or stub IRIS responses in unit tests. Mocked IRIS tests lie — they pass when the real implementation is broken.
- Coverage goals require
--include-ignoredagainst a live container. Unit tests covering pure logic (parsers, guards, gates) are fine, but anything that touches IRIS behaviour must run against real IRIS. --test-threads=1is required for all IRIS integration/e2e test runs to prevent env-var race conditions. This matters more since the files were aggregated into one binary per group: tests in the same target share a process, so aset_varin one is visible to the next.
Test Coverage Policy — NON-NEGOTIABLE
Every new feature, tool, CLI flag, config field, and skill must have tests at the right layer before the PR is considered done. "It compiles" is not enough.
Three required layers:
- Unit / TOML round-trip — parse the config string (not a struct literal) and assert the resulting struct fields and env vars are correct. Catches serde silent-drop (the #110 pattern: field missing from struct, TOML key silently ignored).
- Binary invocation (for any CLI flag or
mcp.rswiring) — spawniris-agentic-devas a subprocess, sendinitialize+tools/listortools/callover stdio, assert on the JSON-RPC response. No live IRIS needed. Catches "flag exists but was never wired" (the #111 pattern:self.configignored). UseIAD_BINARY=./target/debug/iris-agentic-devand#[ignore]; CI builds the binary first and passes the env var. - Live IRIS integration (for any tool that calls IRIS) —
#[ignore]test againstiris-dev-iris(localhost:52780). Covers actual IRIS behavior, not just wiring.
Version consistency: every file that must agree with the workspace version
(Cargo.toml, package.json, .claude-plugin/plugin.json, etc.) must have an
explicit cross-file assertion test. Adding a new version-bearing file without adding
a test for it is a bug waiting to ship.
When in doubt: ask "if I changed this flag/field/file silently, would any test fail?" If the answer is no, the test is missing.
Release Notes & Changelog — NON-NEGOTIABLE
Before closing any release (tagging, publishing, merging release branch):
- Run
/no-ai-slopon all release notes and changelog entries. - Address every flagged item before publishing.
- Release notes must read like a human wrote them for other humans — no filler phrases, no hedging, no passive voice, no "This release includes…" boilerplate.
Issue Closure — NON-NEGOTIABLE
Comment on a fixed issue saying what changed. Never close it. Closing is the reporter's move — they filed it, so they are the one who can confirm the thing they hit stopped happening. If nobody answers within a week of the release carrying the fix, close it then. Constitution → Development Workflow → Issue Closure.
Docs
docs/connecting.md— connection config (toml file, env vars)docs/tools.md— tool referencedocs/skills.md— skill systemdocs/troubleshooting.md— common issuesdocs/agent-attribution.md— caller attribution, User-Agent marker, IRIS audit guide
Active Technologies
- Python 3.11 +
anthropic,pyyaml,pytest; results as JSON undertests/e2e/results/, no new dependency (118-skill-eval-harness-repair) - Rust 2021 +
rmcp3.1.3,schemars1 (#[schemars(extend(...))]for enums),serde— no new dependency (113-typed-tool-schemas) - Rust 2021 +
rmcp,tokio,serde/serde_json/toml; config in.iris-agentic-dev.toml, no database (085-write-gate-integrity) - Dockerfile (no specific version), Bash (GHA steps), Markdown +
gcr.io/distroless/static-debian12(base image),docker/build-push-action@v6,docker/metadata-action@v5(068-windows-docker) - GHCR (
ghcr.io/intersystems-community/iris-agentic-dev) (068-windows-docker) - TypeScript 5, Node.js (VS Code extension host runtime) + VS Code API (
vscode), Node built-ins (https,fs, (069-vscode-binary-install) - Two files in
context.globalStorageUri(VersionMarker + ManagedBinary) (069-vscode-binary-install)
Recent Changes
- 118-skill-eval-harness-repair: the skill-eval scorer returns an unscored verdict instead of
score: 0when it cannot reach the model, so a missing credential stops reading as total failure; pass rates count scored items only; a preflight makes one real scoring call before the first billable session; baseline file goes to schema 2 with provenance and merge-by-skill (the oldsave_baselineoverwrote all nine entries from one run); the nightly also ran with no iad tools at all —tests/e2e/isolated_env.pyhard-coded the Homebrew binary path, which does not exist on the runner; plan atspecs/118-skill-eval-harness-repair/plan.md - 114-tool-surface-discovery:
tool --list/tool <name> --schema/--jsonread the tool router with no IRIS connection (7,648 B for the whole surface against 106,658 B for MCPtools/list);tool_catalogue()+summarize_description()intools/mod.rsare the one source both arms read;prose-only-enumrepaired — it was at zero becauseTOOL_DESClackedre.S(soiris_admin's backslash-continued description was never parsed) andFIELD_DECLcould not readpub r#type:; twelve dispatcher value sets now declared, checked against the handler's own match arms rather than against prose; plan atspecs/114-tool-surface-discovery/plan.md - 113-typed-tool-schemas: per-tool params structs replace
AnyParamsso all 81 tools advertise their properties/types/enums;#[serde(deny_unknown_fields)]everywhere, so all 81 emitadditionalProperties: false; oneUNKNOWN_PARAMETERvalidation site incall_toolaftergate_check; plan atspecs/113-typed-tool-schemas/plan.md - 089-iris-perf-monitoring: new
iris_mirror_statustool (%SYSTEM.Mirrorclassmethods in %SYS);iris_database_listextended withsize_mb/free_space_mb/max_size_mb/free_pctfrom%SYS.DatabaseQuery:FreeSpace;my_access/capability_matrixroles decoded from$LBvia$LISTTOSTRING; Server Manager path prefix double-slash fixed; plan atspecs/089-iris-perf-monitoring/plan.md - 088-windows-vscdb-credential-fallback:
resolve_credentialon Windows now falls back tostate.vscdb(safeStorage / AES-256-GCM) when Windows Credential Manager has no entry;vscode_payload.rsmoved to core; DPAPI error message includes current Windows username;check-sm-credentialdelegates to core - 087-execute-gate-bypass:
iris_executenow enforces the destructive gate whenKill ^<global>appears literally in the code string;contains_global_killinwrite_gate.rs; 22 unit tests + 4 live IRIS tests; indirection gap documented in spec and error message - 086-agent-attribution-audit: caller marker in
User-Agenton every IRIS-bound request, opt-in%SYS.Auditemission via[policy.<server>].irisAudit,docs/agent-attribution.md; plan atspecs/086-agent-attribution-audit/plan.md - 085-write-gate-integrity: write/destructive gates resolved as data and enforced once in
call_tool; plan atspecs/085-write-gate-integrity/plan.md - 068-windows-docker: Added Dockerfile (no specific version), Bash (GHA steps), Markdown +
gcr.io/distroless/static-debian12(base image),docker/build-push-action@v6,docker/metadata-action@v5
<!-- codebase-memory-mcp: Code Discovery Protocol -->Code Discovery Protocol (codebase-memory-mcp)
ALWAYS use codebase-memory-mcp tools FIRST for any code exploration:
search_graph(name_pattern/label/qn_pattern)— find functions, classes, routestrace_path(function_name, mode=calls|data_flow|cross_service)— call chainsget_code_snippet(qualified_name)— exact symbol source with precise line rangesquery_graph(query)— complex Cypher patterns across the codebase graphget_architecture(aspects)— project structure overviewsearch_code(pattern)— graph-augmented text search
Use Grep/Glob/Read freely for text, configs, and non-code files, and always
Read a file before editing it. If the project is not indexed yet, run
index_repository first.
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.

