Repository navigation
[Feature] Support custom_imports to register custom components. - #492
Merged
Merged
Conversation
Contributor
Preview approval requiredThis pull request comes from a fork, so Mintlify won't build a preview until someone with write access approves commit |
mzr1996
force-pushed
the
custom_imports
branch
from
December 4, 2026 11:30
6e20ce1 to
218ef2b
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds
custom_importsso users can register their own Benchmarks, Harnesses, Environments, Recipes, and Analyzers without editing AgentCompass source.__init__.py), otherwise a dotted module name viaimportlib.import_module(). Anything else fails fast.runtime.custom_importsin config and orchestration files; repeatable--custom-importonrun,launch,summary,analysis,list *,config show,config docs, andenv close; SDKload_custom_imports(),RuntimeOptions(custom_imports=...), andcustom_imports=on the request/run/summary/analysis helpers.run_info.jsonmetadata, butsummary/analysisnever replay them — they use the current registry and require the current config/CLI to declare what they need.analysisnow validates analyzer IDs and reports unknown analyzers explicitly.runtime.custom_imports, solist/config docscan discover custom components without validating unrelated parameters.How to use
Config file:
CLI:
SDK:
Packages are not scanned recursively — import the registering modules from
__init__.py:Custom imports execute arbitrary Python, including during inspection commands and
--dry-run; pass only trusted sources.