Supagents
Maintain shared subagent instructions and generate native configurations for your coding tools. Supagents keeps role definitions in Git while preserving explicit model, tool, and permission settings for each harness.
Try it · Commands · Usage · Compatibility · Changelog
uv tool install supagents
supagents init reviewer --project --target claude --target codex
# Edit .agents/supagents/reviewer.md (see the example below).
supagents build --project --diff
supagents build --project --strict
supagents check --project --strict
The final check reports 0 would change, 2 unchanged, 0 obsolete, 0 warnings, 0 errors. Generation runs locally with zero model calls and only two pure-Python runtime dependencies (ruamel.yaml, tomli-w). Requires Python 3.12+.
| Target | Harness | Project output |
|---|---|---|
AGY |
Antigravity | .agents/agents/<name>.md |
CLAUDE |
Claude Code | .claude/agents/<name>.md |
CODEX |
Codex | .codex/agents/<name>.toml |
COPILOT |
GitHub Copilot | .github/agents/<name>.agent.md |
CURSOR |
Cursor | .cursor/agents/<name>.md |
GEMINI |
Gemini CLI | .gemini/agents/<name>.md |
GROK |
Grok Build | .grok/agents/<name>.md |
KILO |
Kilo Code | .kilo/agents/<name>.md |
OPENCODE |
OpenCode | .opencode/agents/<name>.md |
One source, native settings
---
name: reviewer
description: Review assigned changes and report demonstrated defects.
CLAUDE:
model: inherit
tools: Read, Glob, Grep
CODEX:
sandbox_mode: read-only
---
Read the assigned files and requirements. Return findings with file and line references, evidence, and unresolved gaps. Do not implement fixes or delegate further work.
Save this source as .agents/supagents/reviewer.md. The complete reviewer example includes all nine targets; retain only those you use. Shared _*.md partials reduce duplication across roles via extends and {{BODY}} (see partial inheritance).
Only declared target blocks produce outputs. Supagents preserves the Markdown body and merges shared metadata with each target's overrides; Codex receives the body as TOML developer_instructions. It does not translate tool names, permissions, or model IDs.
Commands
| Command | Purpose |
|---|---|
init NAME --target claude --target codex |
Scaffold only selected targets (supports -n/--dry-run) |
build --diff |
Preview content changes and source-to-output mappings |
build --strict |
Reject warnings before writing changed outputs |
check --strict |
Fail on missing, modified, obsolete outputs or warnings; write nothing |
list |
Show source-to-output mappings (plain table or --json) |
clean --dry-run |
Preview obsolete generated files before clean removes them |
Every command supports -h/--help, --project / --global, repeatable -t/--target, -c/--config, --source-dir, -q/--quiet, and --json. init without --target includes all bundled targets. build --check remains an alias for check.
By default, a local .agents/supagents/ selects project scope; otherwise the CLI uses ~/.agents/supagents/. Builds refuse to overwrite handwritten files, symlinks, sources, or colliding outputs. clean refuses invalid or ambiguous sources and requires --global, --yes, or interactive confirmation before deleting auto-detected global files.
See usage and configuration for precedence, safety guarantees, exit codes, and chezmoi integration, and compatibility evidence for tested host versions and discovery results.
Plugins and hooks
This repository ships the standalone /supagent skill, Claude Code, Gemini CLI, and Copilot plugin manifests, and a downstream pre-commit hook. See plugin installation.
Development
mise trust
mise run install
mise run all
Python 3.12+ is supported; mise pins the development toolchain and uv locks dependencies. CI qualifies Linux and macOS on the pinned toolchain (Python 3.14), plus Linux on Python 3.12 and 3.15, while scheduled security runs also check lowest direct runtime dependencies. The gate audits dependencies and smoke-tests the built wheel with hash-locked runtime dependencies. Lefthook invokes the same mise tasks locally.
Metadata
Release files for supagents 2.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| supagents-2.0.0.tar.gz | 24.1 kB | With provenance | Details for supagents-2.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| supagents-2.0.0-py3-none-any.whl | Python 3 | none | any | Details for supagents-2.0.0-py3-none-any.whl |
Total release size: 49.8 kB
Release files / supagents-2.0.0.tar.gz
| Download URL | supagents-2.0.0.tar.gz |
|---|---|
| Size | 24.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
10056db34748900b03bbdcc74a86a63e1d2b3662e91949f2fde2bf6bf5827c5c
|
|
BLAKE2b-256 checksum How to use checksums |
32b805a1c470a5530c0929ebef1c818ea34ec16bff0881dbce9ea50d0b44d9ce
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 22, 2026.
Transparency logRelease files / supagents-2.0.0-py3-none-any.whl
| Download URL | supagents-2.0.0-py3-none-any.whl |
|---|---|
| Size | 25.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5d73fad0bae75141caa398fa8867f8aeb4bd25e132ab48ae0805bddeb1f52beb
|
|
BLAKE2b-256 checksum How to use checksums |
db3b3036c7f07d9a3f871cf9cf23e0ea0c5c26e945dd08a364bd50bff35d24fb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 22, 2026.
Transparency logSecurity for supagents 2.0.0
Provenance
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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for supagents-2.0.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 22, 2026.
Transparency logA 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.