Prosaic
Author canonical Markdown-with-YAML prose once; distribute it to 40 AI coding targets. Prosaic also inspects neutral artifacts for Prosaic Runtime and Harness.
Fresh projects use native Claude skill bundles, .claude/rules/ and a managed
AGENTS.md. Existing configuration and ownership records retain their previous
layout. prosaic check verifies generated output for CI. See the
0.5.0 release notes and
native output contracts.
Install
Prosaic 0.5.0 requires Python 3.11+. Its public distribution is b3-prosaic; the
repository, Python import module and CLI remain prosaic. There is no Node.js
runtime dependency.
uv tool install 'b3-prosaic==0.5.0'
# Alternative:
pipx install 'b3-prosaic==0.5.0'
The GitHub release provides the same qualified wheel and source archive as the
package index. Use a fresh virtual environment or reinstall a pipx/uv tool when
migrating from the old prosaic distribution: old and new distributions share
import files and must not coexist. PyPI's unrelated prosaic project is not this
SDK. Historical release names and bytes remain unchanged. npm installation and
the JavaScript library API are retired; remove its old CLI and check
command -v prosaic when switching a global installation.
Quick start
Create .prosaic/commands/greet.md:
---
description: Greet the user
---
Say hello to $ARGUMENTS.
Then preview and distribute it:
prosaic apply --targets claude-code --dry-run
prosaic apply --targets claude-code
prosaic inspect commands/greet.md
prosaic resolve commands/greet.md --target claude-code
prosaic check --targets claude-code
prosaic revert --targets claude-code --dry-run
Canonical source directories are rules/, skills/, subagents/, and
commands/. Skill/subagent bundles retain their companion resources and
internal references.
Configuration and commands
Existing filenames and keys remain supported: prosaic.config.yaml,
prosaic.config.yml, .prosaic.yaml, source, targets, artifactTypes,
lossyPolicy, backupRetention, and packages. outputContracts selects native
or legacy output. Canonical Markdown, inspection JSON and the existing file
manifest format remain compatible. Shared-file ownership is recorded separately
in .prosaic-blocks.json.
source: .prosaic
outputContracts: native-v1
targets: [claude-code, agents-md]
artifactTypes: [rule, skill, subagent, command]
lossyPolicy: warn
backupRetention: 3
Pin outputContracts in committed configuration so development and clean CI
checkouts agree. Existing selector-free configs and legacy manifests keep legacy
layouts; a project with neither defaults to native. To migrate, preview with
prosaic apply --dry-run, resolve any local-edit conflicts, then apply. Use
outputContracts: legacy to select the previous layouts explicitly.
Native output uses .claude/skills/<name>/SKILL.md with resources inside each
skill, .claude/rules/<name>.md, and one deterministic managed block in
AGENTS.md. Local content outside the block survives apply and revert. Edited
managed content is preserved and reported as a conflict. Claude agents and
commands retain their existing paths. Runtime providers, including
OpenAI-compatible execution, continue to inspect canonical source directly.
prosaic apply --dry-run
prosaic apply
prosaic revert --dry-run
prosaic revert
prosaic import ./foreign --format claude-code --dry-run
prosaic resolve commands/deploy.md --target claude-code
prosaic inspect subagents/reviewer.md --json
prosaic validate --json --strict --targets claude-code
prosaic check --json
prosaic tools --source .prosaic
prosaic package deploy my-package --dry-run
prosaic package revert my-package --dry-run
inspect, resolve, and tools emit JSON. Import warnings go to stderr;
apply warnings remain on stdout. Explicit --color / --no-color,
NO_COLOR, and FORCE_COLOR retain the CLI presentation contract.
check is read-only and exits nonzero for invalid source, missing or changed
expected output, recorded stale output, or conflicts. It can compare committed
output without local provenance; detecting extra stale files requires the
ownership manifests. Existing validate and apply --dry-run exit behavior is
unchanged. See CI and migration details.
See read-only validation, package deployment, target contracts, adding a target, and examples.
Reasoning effort and native execution
Canonical agent Markdown can carry effort and natural-language instructions.
Core inspects this metadata; Runtime maps effort to the selected provider/model's
native control. Running prose through Claude/Codex native profiles does not
require prosaic apply or copying it into vendor folders. File distribution is
a separate operation. See the effort guide and the
Integration Lab blueprints.
Enforcement tags
A rule sentence can carry <!-- enforce: NAME(key=value, stage=final, on_violation=retry) -->
or <!-- prose-only: REASON -->. Core parses, validates and reports these as
rules in inspect, and strips them from every distributed target; it never
registers, looks up or runs a guard. A tag declares a check a host may enforce
and never widens what an agent may do. See enforcement tags.
Neutral CLI-tool catalogue
prosaic tools lists sorted YAML/YML manifests from <source>/tools;
--directory <path> selects an explicit directory. Discovery is bounded,
non-recursive and read-only. It never resolves executables, probes, installs,
executes, or grants access. Malformed/duplicate/oversized/symlinked manifests
fail closed. The Python API is discover_tools(directory).
Execution belongs in Prosaic Runtime with operator-configured grants. See the companion CLI-tool guide.
Declarations are not permission grants
When executing through the companion Runtime/Harness, an agent can declare
tools: [analyze_spec] in Markdown frontmatter. That requests a tool; it does
not install it, trust its manifest, grant filesystem/network access, or enable
an OS sandbox. Installing an executable or listing it with prosaic tools also
grants nothing.
The operator must independently configure Runtime allowed_tools and trust
the manifest directory via tool_directories. The host then grants the tool
and narrow read_roots in a Runtime invocation or Harness agent step. Missing
grants deny access. Markdown and model output cannot expand these permissions.
Runtime 0.5.2+ and Harness 0.4.2+ support cli_sandbox: {mode: required}
in Runtime YAML, not Markdown. This isolates custom CLI subprocesses/probes
with macOS Seatbelt or Linux Bubblewrap, not Python callbacks or native coding
providers. It defaults to off;
upgrading Prosaic alone does not activate it. See the
sandboxed Runtime example
or sandboxed Harness workflow
for installation, all permission layers and offline verification.
Python API
from pathlib import Path
from prosaic import (apply, inspect_artifact, resolve_execution_data, discover_tools,
validate_artifact_definition, validate_project)
root = Path('/path/to/project')
inspection = inspect_artifact(root, 'subagents/reviewer.md')
preview = apply(root, cli={'targets': ['claude-code']}, dry_run=True)
project_report = validate_project(root, {'targets': ['claude-code']}, strict=True)
resolved = resolve_execution_data(root, 'commands/deploy.md', 'claude-code')
catalogue = discover_tools(root / '.prosaic/tools')
validation = validate_artifact_definition('subagent', {
'name': 'reviewer', 'description': 'Review supplied prose',
})
validate_artifact_definition(kind, frontmatter) performs pure canonical validation
for explicit rule, skill, subagent, or command definitions. It returns
{'ok': True, 'frontmatter': ...} with a shallow metadata copy, or
{'ok': False, 'field': ..., 'reason': ...}. A supplied type must match kind;
an absent type stays absent. Validation retains extension metadata and never
reads files or executes tools. Runtime applies its execution constraints separately.
Python function names use snake_case; serialized contract keys retain camelCase. Registry injection, configuration precedence, target registration and pipeline operations remain available. This package distributes/inspects prose; it does not execute models or orchestrate application workflows.
Development and verification
python3 -m venv .venv
.venv/bin/python -m pip install -e '.[test]'
.venv/bin/python scripts/verify_migration.py
.venv/bin/python -m pytest
.venv/bin/python -m build
python3 -m venv .wheel-test
.wheel-test/bin/python -m pip install dist/b3_prosaic-0.5.0-py3-none-any.whl
.wheel-test/bin/python scripts/wheel_smoke.py
The verifier restores immutable TS v0.2.0 from this repository's Git history,
runs Python differential/golden tests and original CLI suites through Python,
and records parity-results/latest.json. Node/npm are required only for the
frozen oracle, never for installed usage. Python CI covers 3.11, 3.12 and 3.13.
Use --consumers ../prosaic-runtime ../prosaic-harness --freeze-consumers
for tests against immutable consumer snapshots.
Validation history and 0.3.0 migration notes distinguish completed trials from untested workflows. Runtime/Harness live staged/preloaded workflows passed. Echelon + Codex authored, reviewed, repaired, and validated a reverse-text CLI spec, stopping at its expected human approval checkpoint. Full design/planning/ publication, Claude, and delivery remain untested. The local endpoint's direct forced-read limitation reproduced with TS and Python inspectors; see diagnosis.
Safety and license
Ownership manifests, integrity checks, contained paths, bounded backups, and
read-only dry runs protect application files. Python additionally rejects
dangling symlink escapes and bounds cyclic package-directory traversal. No
production consumer pin or global CLI installation is changed by this release.
The previous TS implementation remains recoverable from v0.2.0.
Apache-2.0; original attribution is retained in LICENSE and NOTICE.
Metadata
Release files for b3-prosaic 0.5.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 |
|---|---|---|---|---|
| b3_prosaic-0.5.0.tar.gz | 232.8 kB | With provenance | Details for b3_prosaic-0.5.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| b3_prosaic-0.5.0-py3-none-any.whl | Python 3 | none | any | Details for b3_prosaic-0.5.0-py3-none-any.whl |
Total release size: 316.7 kB
Release files / b3_prosaic-0.5.0.tar.gz
| Download URL | b3_prosaic-0.5.0.tar.gz |
|---|---|
| Size | 232.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
163125209800b9fa4d4494587b77b98d8aa1f6030369c7a7cba8003e867368e4
|
|
BLAKE2b-256 checksum How to use checksums |
b16fe15a8ebc3a1ac124061d77037e08b79a8567199d6107acc53252ed7a95c8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 5, 2026.
Transparency logRelease files / b3_prosaic-0.5.0-py3-none-any.whl
| Download URL | b3_prosaic-0.5.0-py3-none-any.whl |
|---|---|
| Size | 83.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e858a853595746c6930fbe062e84bd8ece1a366aa3b126f2fe11bfb7cb2ceb81
|
|
BLAKE2b-256 checksum How to use checksums |
1528be27f03fa86b5936fc1810b75b09e57bb40727b48c72a1f46664dd8493ae
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 5, 2026.
Transparency logSecurity for b3-prosaic 0.5.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 b3_prosaic-0.5.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 5, 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.