agentleFS
GoogleKnown publishergoogle/mantis/reference/skills/mantis-configure/SKILL.md

mantis-configure

Skill2.3k starsChanged 3 months agoApache-2.0View on GitHub

Configures and validates Mantis pipeline environments, sandbox mechanisms, and AI models. Use to set up workflow.json, auto-detect host capabilities, switch between sandboxes (static-only, gvisor, microsandbox, gce), select AI models, and run fast 1-2s preflight tests. Don't use for scanning source code or running attack campaigns.

Trending

More talk lately.about the whole repository

Dec 2025: 0 mentionsJan 2026: 0 mentionsFeb 2026: 0 mentionsMar 2026: 0 mentionsApr 2026: 0 mentionsMay 2026: 0 mentionsJun 2026: 0 mentionsJul 2026: 3 mentionsAug 2026: 0 mentionsSep 2026: 7 mentionsOct 2026: 14 mentionsNov 2026: 0 mentions
Dec 2025Jun 2026Nov 2026
Mentions a month of the google/mantis repository that our weekly crawl found. There is no adoption data for this file yet.

Who's talking about google/mantis

The biggest 5 of 24 mentions linking to the repository that our crawl found. Each line is their own headline.

See all 24

Talked about on GitHub and Bluesky (24 times).

On GitHub · 19

14 more on GitHub

On Bluesky · 5

The file

We split this skill into the rules it gives an agent

3 rules. About 0 are common, 2 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    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
  1. Very specific:

    NEVER execute python3 reference/scripts/configure.py using a relative path inside audited target repositories.

    line 32
  2. Distinctive:

    Check if LLM configuration and sandbox requirements are operational:

    line 97
  3. Distinctive:

    When invoked programmatically from Python:

    line 152

≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill 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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Pipeline Configurator (/mantis-configure)

System Goal

Environment and Model Configurator. Configures workflow.json with appropriate sandbox execution mechanisms, AI model providers, API endpoints, and credential bindings. Provides instantaneous preflight verification to guarantee that LLM credentials and sandbox isolation requirements are fully operational before launching security review campaigns.

Command Definition

  • Command: /mantis-configure
  • Description: Configures Mantis pipeline settings (sandboxes, models, credentials, preflight validation) in workflow.json.
  • Execution Command:
    python3 "${MANTIS_HOME:-/path/to/mantis}/reference/scripts/configure.py" [flags...]

Path Anchoring Requirement (CRITICAL): The configuration script resides within the Mantis installation directory at reference/scripts/configure.py. You MUST invoke this script via an absolute path or via $MANTIS_HOME. NEVER execute python3 reference/scripts/configure.py using a relative path inside audited target repositories.

  • CLI Options:
    • --sandbox / -s: Sandbox mechanism (static-only, gvisor, microsandbox, gce).
    • --model / -m: Default LLM model (e.g. gemini-3.7-flash, vertex_ai/claude-opus-5, vertex_ai/zai_org/glm-5.2-maas, openai/{MODEL_ID}).
    • --api-base: Custom endpoint URL for OpenAI-compatible LLM servers (e.g. http://localhost:8000/v1).
    • --reasoning-effort: Reasoning effort level (low, medium, high).
    • --timeout: LLM request timeout in seconds.
    • --project / -p: GCP Project ID (for GCE sandbox or Vertex AI routing).
    • --zone / -z: GCP Zone (e.g. us-central1-b).
    • --image / -i: Sandbox image name (e.g. mantis-sandbox-image or mantis-sandbox:latest).
    • --subnet: GCE Subnet name (e.g. mantis-isolated-subnet).
    • --workdir: Sandbox guest workdir (default: /workspace).
    • --workflow / -w: Path to workflow.json (defaults to auto-discovery).
    • --db / -d: Path to SQLite knowledge database (default: knowledge.db).
    • --auto: Auto-detects host capabilities and configures optimal settings automatically.
    • --save: Explicitly saves configuration changes to workflow.local.json.
    • --save-tracked / --global: Saves configuration changes directly to base workflow.json.
    • --interactive: Interactive step-by-step terminal wizard.
    • --test / --preflight: Executes fast (1-2s) static validation tests verifying LLM configuration format and sandbox readiness.
    • --probe / --probe-llm: Actively probes LLM reachability, provider credentials, and client dependencies with a minimal test prompt (test, max 256 tokens).
    • --show: Displays current configuration and diagnostic status.
    • --dry-run: Simulates configuration changes without modifying files.
    • --update-nodes: Updates all agent nodes in workflow.json to use the specified default model.
    • --json: Outputs configuration status and preflight diagnostics in JSON.

Supported Sandbox Mechanisms

SandboxDescriptionIsolation LevelRequirements
static-onlyStatic analysis only; reproducer and dynamic patching disabled.Zero Host RiskNone (Always available)
gvisorNetworkless OCI container executed under Google gVisor (runsc).Process & Kernel sandboxdocker or podman with runsc registered
microsandboxEphemeral Linux microVM with hardware virtualization.Virtual Machine/dev/kvm read/write access
gceHardened ephemeral Google Compute Engine VM via IAP SSH tunnel.Cloud Hypervisorgcloud CLI, active GCP auth & project

Supported Model Providers

  1. Gemini Models (Google / Vertex AI):
    • gemini-3.7-flash, gemini-3.5-flash-lite
    • vertex_ai/gemini-3.7-flash, vertex_ai/gemini-3.5-flash-lite
  2. Claude Models (Vertex AI Model Garden):
    • vertex_ai/claude-opus-5
  3. MaaS & Open Source Models (Vertex Model Garden):
    • vertex_ai/zai_org/glm-5.2-maas
  4. Custom OpenAI-Compatible Endpoints:
    • openai/{MODEL_ID} or vertex_ai/openai/{MODEL_ID}
    • Supports custom --api-base (e.g. vLLM, Ollama, LiteLLM proxy), --reasoning-effort, and --timeout.

Common CLI Workflows

1. Fast Preflight Verification (~1s) & Active Reachability Probe

Check if LLM configuration and sandbox requirements are operational:

# Fast static validation (~1s):
python3 "$MANTIS_HOME/reference/scripts/configure.py" --test

# Active live reachability probe against LLM provider:
python3 "$MANTIS_HOME/reference/scripts/configure.py" --test --probe

2. Auto-Detect and Configure

Automatically inspect host capabilities (/dev/kvm, docker/runsc, gcloud) and select the best available sandbox:

python3 "$MANTIS_HOME/reference/scripts/configure.py" --auto

3. Switch to Static Analysis (Zero Dependencies)

python3 "$MANTIS_HOME/reference/scripts/configure.py" --sandbox static-only

4. Configure gVisor Container Sandbox

python3 "$MANTIS_HOME/reference/scripts/configure.py" --sandbox gvisor --image mantis-sandbox:latest

5. Configure GCE Ephemeral Cloud Sandbox

python3 "$MANTIS_HOME/reference/scripts/configure.py" --sandbox gce --project my-gcp-project --zone us-central1-b

6. Switch AI Model to Claude or Custom Endpoint

# Vertex AI Claude
python3 "$MANTIS_HOME/reference/scripts/configure.py" --model vertex_ai/claude-opus-5

# Custom Local vLLM / OpenAI server
python3 "$MANTIS_HOME/reference/scripts/configure.py" --model openai/my-model --api-base http://localhost:8000/v1

7. Interactive Configuration Wizard

python3 "$MANTIS_HOME/reference/scripts/configure.py" --interactive

Python API Reference

When invoked programmatically from Python:

from scripts.configure import (
    detect_capabilities,
    ensure_configured,
    ensure_configured_async,
    is_default_or_unconfigured,
    run_preflight_checks,
    run_preflight_checks_async,
    update_workflow_config,
)

# 1. Check if configuration contains default placeholders
is_unconf, issues = is_default_or_unconfigured(config)

# 2. Run fast preflight checks (sync or async)
ok, messages = run_preflight_checks(config, test_llm=True, test_sandbox=True)
# or: ok, messages = await run_preflight_checks_async(config)

# 3. Ensure configured (auto-resolves defaults if unconfigured)
valid_config = ensure_configured(auto=True)
# or: valid_config = await ensure_configured_async(auto=True)

Input/Output Contract

  • Reads:
    • workflow.json and optional workflow.local.json overlay
    • Host environment (virtualization devices, container engines, cloud CLI credentials)
  • Writes:
    • workflow.local.json (or workflow.json when --save-tracked is set)

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.