Igarapé
Igarapé is a CLI that generates Python service repositories ready for coding agents.
Status: early development, not yet on PyPI. Install from Git (below). See the Roadmap.
Why Igarapé
Coding agents write code fast. Without a shared process they also ship unspecified behavior, untested requirements and unreviewed security, and every team configures its agent differently.
Igarapé is a golden path for Python services built with coding agents: one command creates a production-ready repository where the process, the quality bar and the delivery pipeline are already in place, whichever agent the team uses.
| What you get | How it is enforced |
|---|---|
One SDLC for every agent. Six phases (Discovery → Specify → Plan → Implement → Review → Ship), each a skill that produces a versioned artifact and ends at a gate: human approval of the PRD, spec, plan and merge; a green make check and no blocking review findings in between. AGENTS.md, seven skills (discovery, specify, plan, implement, integrate, review, ship) and four subagent roles (architect, test_engineer, reviewer, security_auditor). |
The same AGENTS.md and .agents/skills/ are read by Codex, Claude Code, GitHub Copilot and OpenCode; each agent gets only a thin adapter generated from the same source, and the subagents are read-only except test_engineer. |
| A real service, not a blank repo. FastAPI with hexagonal architecture, in memory by default. PostgreSQL (SQLAlchemy async + Alembic), Redis and Kafka or RabbitMQ (FastStream publisher + consumer worker) are opt-in; an outbound HTTP client with timeouts and retries is always included. | import-linter keeps the layers apart (domain and application import no framework); integrations are generated only when chosen, with no dead code. |
| Quality gates the agent cannot talk its way around. | make check runs Ruff (PEP 8/257 and Bandit rules), mypy --strict, import-linter, pip-audit on the locked tree and pytest with branch coverage ≥ 90%, identically on a laptop, in an agent session and in CI. Tests cover unit, API and integration (testcontainers) levels, plus a migration round-trip. |
Security by default. OWASP API Security Top 10 controls: versioned /v1 routes, generic JWT/OIDC authentication (JWKS, scopes, deny by default), object-level authorization (another owner's item returns 404), RFC 9457 problem details, security headers, a request-body size limit, /docs disabled in production and an SSRF guard for outbound HTTP. The mapping lives in the generated docs. |
Security, contract (Schemathesis) and property (Hypothesis) tests ship with the service. CI runs gitleaks, zizmor and Trivy, with actions pinned by commit SHA and least-privilege permissions. |
Delivery verified in production (optional). Opt-in CD (ENABLE_CD=true) pushes an image to GHCR with build-provenance attestation, deploys to staging, runs an OWASP ZAP baseline scan there, then deploys to production behind an environment approval. Opt-in release-please (ENABLE_RELEASES=true) keeps a release PR with the next semantic version and CHANGELOG; merging it tags vX.Y.Z, publishes the GitHub release and, with CD, ships that version. |
A deploy is done only when the smoke test confirms the deployed version (the release version, else the commit SHA) and readiness; otherwise it rolls back automatically. PR titles must follow Conventional Commits. |
| Projects keep improving. | Generated repositories stay linked to the template; copier update brings later improvements. |
Igarapé does not replace your coding agent or invent new tooling. It combines established tools (uv, Ruff, mypy, pytest, FastAPI, SQLAlchemy, FastStream, Copier, GitHub Actions) into one lean, agent-neutral path from idea to production.
Quick start
Requirements: uv, Git and make. Docker is needed only for the
optional integrations.
uvx --from 'git+https://github.com/spassos/igarape.git@main' igarape new orders-api
cd orders-api && make bootstrap && make run # in-memory API on http://127.0.0.1:8000
make check # the Definition of Done gate
Then open the directory with your coding agent. It reads AGENTS.md first.
How it works
igarape new validates the options, renders the Copier template, locks the dependencies with
uv lock, initializes a Git repository and commits the scaffold (skipped with a hint when Git
has no user identity). The agent guidance is written once in a shared core; each selected agent
gets only a thin adapter in the format it reads. Details:
docs/architecture.md.
flowchart LR
CLI["igarape new DIR<br/>--agent, --postgres, --redis,<br/>--broker, --mcp"] --> COP["Copier<br/>copier.yml + template/"]
ROLES["includes/roles.jinja<br/>4 subagent roles, written once"] --> COP
COP --> REPO
subgraph REPO["Generated repository"]
direction TB
CORE["Shared core<br/>AGENTS.md, .agents/skills/ (7 skills)"]
ADAPT["Per-agent adapters<br/>CLAUDE.md, .claude/, .codex/,<br/>.github/agents/, .opencode/"]
SVC["FastAPI service<br/>hexagonal, make check"]
CICD["GitHub Actions<br/>CI, CD, release"]
CORE --> ADAPT
end
REPO -. "copier update" .-> COP
The agentic SDLC
Every generated project ships the same six-phase process as skills in .agents/skills/. Each
phase produces a versioned artifact and ends at a gate. A well-scoped local fix may start at
implement with a regression test.
flowchart LR
D["1. Discovery<br/>$discovery<br/>PRD"] -- "problem and<br/>metrics approved" --> S["2. Specify<br/>$specify<br/>spec.md"]
S -- "acceptance criteria<br/>approved" --> P["3. Plan<br/>$plan + architect<br/>plan.md, ADRs"]
P -- "plan approved" --> I["4. Implement<br/>$implement, $integrate<br/>+ test_engineer"]
I -- "make check<br/>green" --> R["5. Review<br/>$review + reviewer,<br/>security_auditor"]
R -- "no blocking<br/>findings" --> SH["6. Ship<br/>$ship<br/>CI, merge, optional CD"]
SH -. "smoke test sees the new SHA;<br/>measure PRD metrics" .-> D
FIX(["Local fix"]) -- "regression test" --> I
Skills are written $skill (Codex syntax); in Claude Code they are /skill, and in Copilot and
OpenCode you ask for the skill by name. The seventh skill, $integrate, adds a new external
system as a port, adapter, in-memory fake and integration test.
Agent support
AGENTS.md, the skills and the four roles are written once; each selected agent only gets the
adapter its format requires.
| Agent | Instructions | Skills | Subagents | MCP | PR review |
|---|---|---|---|---|---|
| Codex | AGENTS.md |
.agents/skills |
.codex/agents/*.toml |
.codex/config.toml |
codex-review.yml (opt-in) |
| Claude Code | CLAUDE.md → @AGENTS.md |
.claude/skills (symlinks) |
.claude/agents/*.md |
.mcp.json |
claude-review.yml (opt-in) |
| GitHub Copilot | AGENTS.md (+ pointer in .github/copilot-instructions.md) |
.agents/skills |
.github/agents/*.agent.md |
.vscode/mcp.json, .github/mcp.json |
Native code review |
| OpenCode (V2) | AGENTS.md |
.agents/skills |
.opencode/agents/*.md |
opencode.json |
— |
The Copilot cloud agent gets copilot-setup-steps.yml so it can run make check; its MCP servers
are configured in the repository settings.
Why you can trust it
Template CI runs on every pull request and every push to
main:
| Check | What it proves |
|---|---|
ruff check + ruff format --check |
The CLI and tests are clean. |
uv run pytest |
All 6 scenarios render with the expected layout; every agent adapter renders the shared roles with the right permissions; the CLI rejects invalid input without touching the destination; the CD, release, deploy and rollback policy behaves as documented; release-please bumps pyproject.toml and uv.lock together, here and in generated services. |
uv run pytest -m smoke |
The built wheel generates the default service, which starts, becomes ready and creates and reads an item over HTTP. |
| zizmor | The workflows of a project generated with all four agents, and this repository's own, have no medium+ findings. |
| Property-based tests (Hypothesis) | The CLI's external input (--mcp NAME=URL) only accepts credential-free HTTPS endpoints, and nothing it accepts can break out of the generated TOML/JSON config. |
| Pinned base images | The generated Dockerfile pins both base images by digest for Python 3.12, 3.13 and 3.14. |
make check × 6 scenarios |
Each generated project passes its own gate: all-agents, full-kafka, minimal, postgres-rabbit, redis-only, with-mcp, with real PostgreSQL, Redis, Kafka and RabbitMQ in containers. |
| Generated images | The Dockerfile builds for the in-memory and full (Postgres + Redis + Kafka) profiles; the in-memory container starts and reports the build version; the full image packages its entrypoints and migrations; Trivy fails on fixable HIGH/CRITICAL CVEs. |
Repository controls: actions pinned by commit SHA, permissions: {} by default, checkout without
persisted credentials, Dependabot for actions and Python dependencies,
CodeQL static analysis of the Python code and workflows,
OpenSSF Scorecard, release-please releases (version, tag,
GitHub release and CHANGELOG from Conventional Commits) and PyPI publishing through trusted
publishing (OIDC) only after the release wheel generates and tests a service. See
SECURITY.md.
Usage
igarape new inventory --postgres --redis --broker rabbit
igarape new ai-service --agent claude --agent copilot --mcp docs=https://example.com/mcp
igarape --help
| Option | Default | Effect |
|---|---|---|
--agent (repeatable) |
codex |
claude, codex, copilot, opencode |
--name / --description / --author |
derived | Project metadata |
--python |
3.13 |
3.12, 3.13 or 3.14 |
--postgres, --redis |
off | Optional integrations, tested against real containers |
--broker |
none |
kafka or rabbit (publisher + consumer worker) |
--mcp NAME=URL (repeatable) |
none | Project MCP server (HTTPS, no credentials, query or fragment) |
--template / --ref |
upstream main |
Use a local checkout or a specific revision |
Install it for repeated use with uv tool install git+https://github.com/spassos/igarape.git.
Generated projects record their template revision in .copier-answers.yml; run
uvx copier update inside one to bring later template improvements.
Roadmap
- Portable core — CLI,
--agent, agent-neutral roles. ✅ - Adapters — Codex, Claude Code, GitHub Copilot and OpenCode. ✅
- Images — generated Dockerfiles built, smoke-tested and scanned in CI. ✅
- Drift check —
make agents-checkso edits to one agent's files cannot silently diverge. - Evidence — pilot comparing agents with and without the guidance, on the same tasks.
- Release — publish
igarapeon PyPI.
Contributing
Read CONTRIBUTING.md and AGENTS.md before changing the
template. In short: every scenario must pass uv run pytest -m slow, a new option needs a new
scenario, and workflows pin actions by SHA. Report vulnerabilities privately as described in
SECURITY.md.
License
Why the name
Igarapé comes from Tupi: igara (canoe) + pé (path), "the canoe's path", the narrow waterways that cross the Amazon forest. The process is the igarapé; every coding agent is an igara travelling the same path to production.
Metadata
Release files for igarape 0.2.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 |
|---|---|---|---|---|
| igarape-0.2.0.tar.gz | 9.8 kB | With provenance | Details for igarape-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| igarape-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for igarape-0.2.0-py3-none-any.whl |
Total release size: 20.5 kB
Release files / igarape-0.2.0.tar.gz
| Download URL | igarape-0.2.0.tar.gz |
|---|---|
| Size | 9.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
836c16b34f186b95fa992ce945093c2ad00dfcfa740f5029bceea0688a9a2ef7
|
|
BLAKE2b-256 checksum How to use checksums |
268770b59aeb3eb6d0e2addc250bb8182943c125cc773d3424afab10523a18d0
|
| 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 25, 2026.
Transparency logRelease files / igarape-0.2.0-py3-none-any.whl
| Download URL | igarape-0.2.0-py3-none-any.whl |
|---|---|
| Size | 10.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
651891fae66e8eee62fcfd2893cd540c6a0267622ad318c7b47045df00644ee0
|
|
BLAKE2b-256 checksum How to use checksums |
390b499d3c4956db06fa37ab25283f66f61a106c76e254764bc7f3c78d17dec1
|
| 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 25, 2026.
Transparency logSecurity for igarape 0.2.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 igarape-0.2.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 25, 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.