Agentclash challenge pack tools sandbox

From agentclash/agentclash · View interactive version

Agentclash challenge pack tools sandbox is an AI agent skill from the GitHub repository agentclash/agentclash. Use when defining AgentClash challenge pack tool access, sandbox runtime needs, filesystem expectations, network policy, command execution, and secret references.

How to use this skill

Skill file

AgentClash Challenge Pack Tools And Sandbox

Purpose

Define the native execution surface a challenge pack needs: pack-defined custom tools, broad tool policy, sandbox network/package/env settings, and safe secret references.

Use this skill only when a pack truly needs native files, tools, network, packages, or sandbox behavior. Keep the runtime surface narrow enough that failures are attributable to the agent, not to an over-broad environment.

Use When

Do Not Use When

Environment

Use hosted production for CLI examples unless the user intentionally targets a local or self-hosted backend.

export AGENTCLASH_API_URL="https://api.agentclash.dev"

Validation Commands

Validate after adding or changing tools, tool policy, or sandbox settings.

agentclash challenge-pack validate path/to/pack.yaml
agentclash challenge-pack validate path/to/pack.yaml --json

Human output prints Challenge pack is valid or Challenge pack has errors. Use --json for structured valid and errors fields.

Execution Mode Rules

prompt_eval packs cannot use challenge-pack tools or sandbox settings.

Do not include these in prompt_eval:

Use native when the task needs files, tool calls, network policy, extra packages, sandbox templates, file validators, directory checks, or code execution.

version:
  number: 1
  execution_mode: native

Tool Policy

version.tool_policy.allowed_tool_kinds accepts only these broad kinds:

version:
  tool_policy:
    allowed_tool_kinds:
      - browser
      - build
      - data
      - file
      - network

Supported values are exactly browser, build, data, file, and network. Do not use shell; the current validator rejects it.

Use the narrowest set possible:

Pack-Defined Custom Tools

Challenge-pack custom tools live at top-level tools.custom, not under version.

tools:
  custom:
    - name: check_inventory
      description: Check inventory for a SKU.
      parameters:
        type: object
        properties:
          sku:
            type: string
        required:
          - sku
      implementation:
        primitive: http_request
        args:
          method: GET
          url: "https://api.example.com/inventory/${sku}"
          headers:
            Authorization: "Bearer ${secrets.INVENTORY_API_KEY}"

Source-backed fields:

Mock tools are the only exception to primitive/args validation:

tools:
  custom:
    - name: fake_lookup
      parameters:
        type: object
      implementation:
        type: mock

Template Placeholders And Secrets

Template placeholders are validated inside implementation.args.

Allowed placeholder forms:

Rejected placeholder forms:

Never paste raw secret values into YAML, chat, commits, or examples. Use secret names only. If a secret value is not already configured, ask the user to set it through the workspace secret flow without revealing the value in chat.

Sandbox Settings

version.sandbox is valid only for native packs.

version:
  execution_mode: native
  sandbox:
    network_access: true
    network_allowlist:
      - 203.0.113.0/24
    env_vars:
      DATASET_MODE: fixture
      API_BASE_URL: https://api.example.com
    additional_packages:
      - jq
      - python3-venv
    sandbox_template_id: codex

Source-backed sandbox fields:

Keep network_access: false or omit sandbox network settings unless the case truly needs outbound network. If network is needed, use the smallest CIDR allowlist available.

Filesystem Expectations

version.filesystem exists as a raw map on the bundle model, but the current challenge-pack validator does not define a source-backed schema for it. Do not invent version.filesystem subfields in a skill-authored pack. Prefer explicit assets, case inputs, sandbox package/env settings, and scoring file evidence until the user or product docs provide an exact filesystem contract.

Use file-related behavior through:

Compatibility Checklist

Before validating:

Common Validation Failures

Authoring Procedure

  1. Confirm whether prompt_eval is enough. If yes, omit tools and sandbox.
  2. If native behavior is required, set version.execution_mode: native.
  3. Add only the needed allowed_tool_kinds.
  4. Define tools.custom only for pack-defined tools; use workspace infra skills for reusable workspace tools.
  5. Write explicit JSON Schema parameters for each custom tool.
  6. Use ${parameter} and ${secrets.KEY} placeholders in implementation.args; never raw secrets.
  7. Add version.sandbox only for real network/env/package/template requirements.
  8. Add a smoke case that proves the tool or sandbox dependency is reachable.
  9. Run agentclash challenge-pack validate ... --json and fix every returned field error.
  10. Hand off to artifacts, scoring, or validation/publish skills.

Report Back Format

Execution mode:
Tool policy:
Custom tools:
- name:
  primitive:
  parameters:
  secret references:
Sandbox:
Network:
Packages:
Filesystem/artifact dependencies:
Smoke case:
Validation command:
Validation result:
Ready for scoring/publish: <yes/no>
Open issues:

Related Skills

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.