Roly
Deterministic role assembly for coding-agent workflows.
Roly helps build reusable role instructions that are composable, reviewable, and predictable. No hidden merges. No implicit magic. Just a clean CLI flow from role definition to generated output.
Quick Start
Run from source:
uv sync
uv run roly list --no-color
Assemble your first role output:
uv run roly assemble \
--role code-review \
--role project-audit \
--name reviewer-ad-hoc \
--no-color
Prefer config-based assembly:
uv run roly assemble --config examples/roly.config --user-role reviewer-default --no-color
Why Roly
- Deterministic every time: one top-level role plus ordered sub-roles, assembled in a fixed order.
- Scope-aware by default: project, user, and built-in roles with explicit precedence.
- Safe review workflow: proposed sub-role edits go through interactive accept/reject approval.
- Explicit promotion model: project-local edits only become user-level when you promote them.
What You Can Do
List available roles:
uv run roly list --no-color
Compare project-local vs user-level role definitions:
uv run roly diff --role code-review --no-color
Promote a project-local role to user-level:
uv run roly promote --role code-review --yes --no-color
Run interactive review + apply flow:
uv run roly review --target-sub-role code-review --target-sub-role project-audit --changes-file changes.toml --no-color
Create/setup review skill assets:
uv run roly setup --agent none --yes --no-color
How It Works
- Define roles as markdown files with TOML front matter.
- Select ordered role slugs; dependency top-level role is auto-inserted for each sub-role.
- Assemble deterministic output artifacts from role content + output definitions.
- Keep experimental edits project-local, then promote only when ready.
Example Use Cases
- Standardize engineering review prompts across repositories.
- Layer domain overlays (security, compliance, architecture) without copy-paste.
- Run repeatable role updates with human approval in the loop.
- Keep team prompts versioned, diffable, and shareable.
Docs For Contributors
Development setup, lint/test commands, and contributor workflows are in README_DEV.md.
Metadata
Release files for roly 0.1.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 | |
|---|---|---|---|
| roly-0.1.0.tar.gz | 19.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| roly-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 46.5 kB
Release files / roly-0.1.0.tar.gz
| Download URL | roly-0.1.0.tar.gz |
|---|---|
| Size | 19.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7754d3d05a3e10cc53c707f31de5a3408c275bc4eca55ac46d97da4a85285404
|
|
BLAKE2b-256 checksum How to use checksums |
bb5944f3c3938576e5d9ea0ca1d3112607ce28e462b8587418152757df6b5c36
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
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 Feb 12, 2026.
Transparency logRelease files / roly-0.1.0-py3-none-any.whl
| Download URL | roly-0.1.0-py3-none-any.whl |
|---|---|
| Size | 26.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
61479a53466fc20437beee1a576868aaaafb170395675c024009ea340231bc22
|
|
BLAKE2b-256 checksum How to use checksums |
f4ecb9c1925b6c7b4561d33c31367ec97f5daa5f3d992c609bf0bd74546e9650
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
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 Feb 12, 2026.
Transparency log