Skip to main content Switch to mobile version scitex-agent-container 0.42.2 Declarative YAML-based framework for defining, managing, and orchestrating AI coding agent instances
pip install scitex-agent-container==0.42.2 Copy PIP instructions
Declarative, on-prem-first lifecycle manager for autonomous agent processes.
One YAML spec → one reproducible, sandboxed, fleet-addressable agent. Runs anywhere Apptainer runs — laptop, HPC node, air-gapped server.
Full Documentation · uv pip install scitex-agent-container[all]
uv pip install "scitex-agent-container[all]" Or via the SciTeX umbrella: uv pip install "scitex[agent-container]" → use as scitex agent-container ... (CLI) or import scitex.agent_container (Python).
Step 1 — Build the base image (one-time, ~5 min)
sac image build base Step 2 — Create agent directories
# Each agent lives in its own directory; the directory name is the agent name. mkdir -p ~/.scitex/agent-container/agents/hello-agent-{1,2} Step 3 — Write spec.yaml (copy into each agent directory, adjust startup_prompts)
# ~/.scitex/agent-container/agents/hello-agent-1/spec.yaml apiVersion: scitex-agent-container/v3 kind: Agent spec: runtime: apptainer apptainer: image: sac-base claude: model: haiku flags: - --dangerously-skip-permissions startup_prompts: - "Reply with the string 'Hello! I am hello-agent-1' and nothing else." health: enabled: true interval: 60 method: sdk-alive restart: policy: never Or copy the bundled example: cp -r examples/agents/hello-agent ~/.scitex/agent-container/agents/hello-agent-1
# Start in foreground (waits for completion) sac agents start hello-agent-1 hello-agent-2 --foreground # Check status (fleet view) sac agents status # Start in background, send a follow-up turn, tail, stop, delete sac agents start hello-agent-1 hello-agent-2 sac agents send --yes hello-agent-1 "What is 2+2? Reply with just the number." sac agents tail hello-agent-1 hello-agent-2 --json sac agents stop hello-agent-1 hello-agent-2 sac agents delete hello-agent-1 hello-agent-2 -y Tutorial
examples/ walks through the runtime in 15 lessons (image build, sandbox/update/freeze, versioning, run/send/tail, logs/exec, stop/remove, binds, env+user, writing your first spec.yaml, to_home/, A2A endpoint, health+restart, multi-host, debugging). Run them read-only with bash examples/00_run_all.sh, or --apply to execute the mutating ones. Pre-baked agent specs live in examples/agents/ (hello-agent, minimal-agent, full-agent, codex-agent, deepseek-agent, proxy-agent).
Which harnesses actually start
The harness registry has four entries, and spec.harness accepts three values. Only the anthropic ones can be started today — a registry entry is a declaration, not a working launch path, and this table says which is which rather than letting the count imply support that is not there:
A non-anthropic harness loads, validates and resolves to its registry entry, but every lifecycle launch path refuses it loudly rather than silently starting a Claude runner under a spec that asked for something else. The one working alternative today is spec.a2a.handler: openai_session for the OpenAI SDK; there is no equivalent A2A executor for codex yet.
spec.runtime only discriminates within the anthropic family — the openai and codex families have a single entry each, so the runtime axis selects nothing for them.
spec.claude.model is the per-agent model knob. Be aware that sac resolves it to sonnet when a spec leaves it empty — for every agent, whichever harness the spec selects. That Anthropic-shaped default is real and not yet unwound by the harness/runtime/inference layering work.
Aliases auto-track the latest version of each family; append [1m] for the 1M-token context window (opus[1m], sonnet[1m]). Pin an exact build with a full ID like claude-opus-4-7 or claude-haiku-4-5-20251001.
A non-Anthropic inference endpoint? spec.claude.provider swaps the ENDPOINT, not the harness — the Claude-family harness keeps running, pointed somewhere else. Set spec.claude.provider: codex with a GPT model to use the local scitex-genai ChatGPT-subscription gateway. Other bundled entries are deepseek, mimo, and xiaomi; a dict { base_url: "...", auth_token_env: "..." } accepts any Anthropic-compatible endpoint. Under an override the model id is the endpoint's own (e.g. deepseek-chat), so the claude-* alias check relaxes and the table above no longer applies. Codex setup and multi-account configuration are documented in docs/credentials.md. See examples/agents/deepseek-agent/ for the generic provider shape. Full harness + model + provider reference →
sac materializes a spec.yaml into a long-lived, externally addressable agent process — whichever harness drives its turns:
spec.yaml ─┐ to_home/ ─┴─→ sac agents start ──→ apptainer instance │ ▼ long-lived harness session (TUI or SDK) │ ├──
Worktree policy. Before a new write-capable Claude, Codex, or Hermes task starts, the host resolves or provisions a deterministic agent-owned linked worktree, then authorizes it against the bundled in-process policy engine and fails closed unless its context and generated projections are current and allowed. Existing agent work is resumed; dirty authority or conflicting ownership is preserved and refused. Dry-run/explain show the planned resolution without creating it. SAC records the returned policy/projection hashes on the incarnation and does not copy policy rules into hooks, skills, prompts, or docs. See docs/worktree-policy-gate.md.
Full architecture → — launch flow, to_home merge rules, A2A inbound, control plane, restart/health.
YAML Spec Reference (v3) → — annotated full example + field table (apiVersion, spec.harness, spec.runtime, spec.apptainer., spec.claude., a2a, health, restart, provider).
Talking to a Running Agent → — three transports (A2A POST /v1/turn, sac agents send, host-level sac listen), when to use which, copy-pasteable curl examples.
In the fleet dashboard, Enter or Ctrl/Command+Enter sends in place from either composer; Shift+Enter inserts a newline. Messages travel through the authenticated host listener, so a Docker dashboard can reach host-loopback bridges. An accepted receipt means completion is pending. Refusals retain the draft; an uncertain outcome blocks another submission of that same draft until the operator checks the agent. Dispatch IDs correlate requests; they are not durable cross-worker delivery deduplication.
The shared SDK filter shows its icon first, Filter agents with keywords, and Ctrl+K while idle or Esc while focused. Escape clears and leaves the filter. The pane row uses the remaining shell height with a bottom margin; messages and details scroll inside it, including the SDK's phone tab layout.
Container Isolation → — 10 Apptainer-default leak paths + sac's hardened-by-default countermeasures (--containall auto-prepended, opt-out via spec.apptainer.relaxed: true). The reference for reproducibility claims.
Configuration and Runtime Directories
Full directory reference → — complete tree, configuration cascade (CLI flag → env var → project config → user config).
Hermes profile resolution → — active host/container profiles, project skills, and goal judge troubleshooting; maintained in the shipped SAC skill.
~/.scitex/agent-container/ ├── agents/
Host listen as a persistent service
sac listen is the host's HTTP/JSON control plane (push hub, spawn broker, lead inbox). For long-running deployments install the bundled systemd-user unit so it auto-starts on boot and auto-restarts on crash:
install -m 0644 scripts/systemd/sac-listen.service ~/.config/systemd/user/ systemctl --user daemon-reload systemctl --user enable --now sac-listen.service journalctl --user -u sac-listen.service -n 50 # logs curl -s http://127.0.0.1:7878/v1/health # healthcheck See scripts/systemd/README.md for the full recipe + the federated-jobs vs hand-maintained-services split.
Authenticated GET /agents/
SAC provides a CLI, Python API, MCP tools, an authenticated host Web API, and packaged agent skills. The CLI is the primary operator interface; the Web API is served by sac listen, and skills are covered below.
# Agent lifecycle sac agents start
Agent skills (sac dev skills)
sac dev skills list # bundled skill files sac dev skills get 01_installation # print one skill sac dev skills install # canonical store + Hermes exposure sac dev skills install --dry-run # preview without linking sac dev skills install --no-hermes-symlink # store only, skip Hermes exposure sac dev skills install --claude-symlink # (legacy) also expose to Claude Code Canonical store: ~/.scitex/dev/skills/scitex-agent-container/ — $SCITEX_DIR-resolved, the same store scitex-dev dev skills install manages (single source of truth, do not fork it). ~/.local/state/scitex/dev/skills/ is a legacy XDG location: the pre-existing ~/.claude/skills/scitex symlink still points there, but current scitex-dev installs land under ~/.scitex/dev/skills/.
Hermes first: install exposes the package at ~/.hermes/skills/scitex-agent-container/ by default (Hermes is the first-option harness; Claude Code is legacy). Opt out with --no-hermes-symlink.
# Direct import import scitex_agent_container as sac cfg = sac.load_config("~/.scitex/agent-container/agents/hello-agent-1/spec.yaml") sac.validate_config(cfg) sac.agent.start("hello-agent-1") # daemon sac.agent.status("hello-agent-1") # dict matching `sac agents status --json` sac.peer.post_turn("hello-agent-1", "What is 2+2?") # Or via the umbrella import scitex scitex.agent_container.agent.start("hello-agent-1") See docs/spec-reference.md for AgentConfig fields.
sac itself does not ship an MCP server. Each agent declares its own MCP servers in spec.mcp_servers (which is mirrored into $HOME/.mcp.json at start via to_home/), so per-agent MCP surface is part of the YAML spec rather than a sac-global service.
spec: mcp_servers: filesystem: command: npx args: ["-y", "@modelcontextprotocol/server-filesystem", "/work"] Part of SciTeX
scitex-agent-container is part of SciTeX. Install via the umbrella with pip install scitex[agent-container] to use as scitex.agent_container (Python) or scitex agent-container ... (CLI).
An external fleet hub can add cross-host message routing, a chatops UI, and a peer registry on top of sac. The dependency is one-way — the hub reads sac's on-disk state and published HTTP endpoints; sac never imports it. See docs/adr/0008-sac-node-transport-boundary.md for the transport boundary sac guarantees.
Four Freedoms for Research
The freedom to run your research anywhere — your machine, your terms.
The freedom to study how every step works — from raw data to final manuscript.
The freedom to redistribute your workflows, not just your papers.
The freedom to modify any module and share improvements with the community.
AGPL-3.0 — because we believe research infrastructure deserves the same freedoms as the software it runs on.
Released: Nov 29, 2026
Author: Yusuke Watanabe
AGPL-3.0-only View SPDX License List
all codex codex-sdk dev docs gui mcp notify openai slurm telegram
agent claude-code container orchestration scitex yaml
Development Status 3 - Alpha
Intended Audience Developers
Operating System OS Independent
Programming Language Python :: 3
Topic Software Development :: Libraries
Release files for scitex-agent-container 0.42.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
Built distribution (wheel)
Total release size: 29.4 MB
Release files / scitex_agent_container-0.42.2.tar.gz
Security for scitex-agent-container 0.42.2
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.
Release history Release notifications | RSS feed
Nov 29, 2026 2 release files No provenance
Nov 20, 2026 2 release files No provenance
Nov 19, 2026 2 release files No provenance
Nov 18, 2026 2 release files No provenance
Nov 17, 2026 2 release files No provenance
Nov 1, 2026 2 release files No provenance
Oct 31, 2026 2 release files No provenance
Oct 27, 2026 2 release files No provenance
Oct 25, 2026 2 release files No provenance
Oct 24, 2026 2 release files No provenance
Oct 22, 2026 2 release files No provenance
Oct 20, 2026 2 release files No provenance
Oct 4, 2026 2 release files No provenance
Sep 28, 2026 2 release files No provenance
Sep 26, 2026 2 release files No provenance
Sep 2, 2026 2 release files No provenance
Aug 26, 2026 2 release files No provenance
Aug 24, 2026 2 release files No provenance
Aug 18, 2026 2 release files No provenance
Aug 17, 2026 2 release files No provenance
Aug 16, 2026 2 release files No provenance
Aug 5, 2026 2 release files No provenance
Aug 2, 2026 2 release files No provenance
Jul 30, 2026 2 release files No provenance
Jul 29, 2026 2 release files No provenance
Jul 22, 2026 2 release files No provenance
Jul 21, 2026 2 release files No provenance
Jul 20, 2026 2 release files No provenance
Jul 19, 2026 2 release files No provenance
Jul 18, 2026 2 release files No provenance
Jul 17, 2026 2 release files No provenance
Jul 14, 2026 2 release files No provenance
Jul 13, 2026 2 release files No provenance
Jul 11, 2026 2 release files No provenance
Jun 9, 2026 2 release files Full provenance
Jun 1, 2026 2 release files Full provenance
May 31, 2026 2 release files Full provenance
May 28, 2026 2 release files Full provenance
May 26, 2026 2 release files Full provenance
May 25, 2026 2 release files Full provenance
May 24, 2026 2 release files Full provenance
May 21, 2026 2 release files Full provenance
May 20, 2026 2 release files Full provenance
May 17, 2026 2 release files Full provenance
May 15, 2026 2 release files Change of provenance
May 13, 2026 2 release files Full provenance
May 9, 2026 2 release files Loss of provenance
May 3, 2026 2 release files Full provenance
May 2, 2026 2 release files Full provenance
Apr 28, 2026 2 release files Full provenance
Apr 27, 2026 2 release files Full provenance
Apr 11, 2026 2 release files No provenance
Apr 8, 2026 2 release files No provenance
Apr 7, 2026 2 release files No provenance
"PyPI", "Python Package Index", and the blocks logos are registered trademarks of the Python Software Foundation.
© 2026 Python Software Foundation
Deployed from fc0d8e6











