Skip to main content

Prosaic

Current published release: 0.5.0. See release notes and compatible SDK versions.

Author canonical Markdown-with-YAML prose once; distribute it to 40 AI coding targets. Prosaic also inspects neutral artifacts for Prosaic Runtime and Harness.

Core's enforcement tags are inert metadata. Harness 0.9.12 now binds them to trusted Guards in workflow steps using Runtime 0.9.16, with declared accepted earlier outputs and finite budgets. See the workflow contract and Lab blueprint. Core 0.5.0 parsing, digests and published bytes are unchanged.

Runtime0.9.18 reports the reasoning-effort controls and format actually sent, separately from artifact requests and profile defaults. Sent does not prove provider compliance; native inner calls remain unobserved. The Lab0.9.11 sent-effort blueprint qualifies the complete Core0.5.0/Runtime0.9.18/Harness0.9.12 train. Core has no new version or identity fields; earlier release bytes and profiles remain intact.

Runtime0.9.17 adds trusted accounting run/variant labels visible to recorder prepare(intent) before dispatch, with no Core API or digest change. Lab0.9.10 provides a separate accounting blueprint on the complete Core0.5.0/Runtime0.9.17/Harness0.9.12 train. See compatibility and identity.

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. Use catalogue ontology to validate optional concept and relation metadata for a host-owned agent and tool catalogue. 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.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for b3-prosaic 0.5.1
File Size Uploaded Provenance Actions
b3_prosaic-0.5.1.tar.gz 242.1 kB With provenance Details for b3_prosaic-0.5.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for b3-prosaic 0.5.1
File Interpreter ABI Platform Actions
b3_prosaic-0.5.1-py3-none-any.whl Python 3 none any Details for b3_prosaic-0.5.1-py3-none-any.whl

Total release size: 328.2 kB

Release files / b3_prosaic-0.5.1.tar.gz

Download URL b3_prosaic-0.5.1.tar.gz
Size 242.1 kB
Tags Source
SHA-256 checksum
How to use checksums
281adf07fe1c40daa32ed1f7baa2e733fc203bd74c4f499a502716b9f8c3bf07
BLAKE2b-256 checksum
How to use checksums
0e96baa31e639d096787c735a5016d9eb7f8c6a651d9e8e9e53ebd952bc3539c
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 13, 2026.

Transparency log

Release files / b3_prosaic-0.5.1-py3-none-any.whl

Download URL b3_prosaic-0.5.1-py3-none-any.whl
Size 86.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c7f7a3292952d70513da485bd87360e0bf94a3cc50d49b3deadb85a0e7d29a76
BLAKE2b-256 checksum
How to use checksums
cd69da8e80b94f8c841166069ba95d86f4afe3bafeb68a6612c14a26579e43cf
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 13, 2026.

Transparency log

Security for b3-prosaic 0.5.1

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.

Select from 2 files

Attestation for b3_prosaic-0.5.1.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 13, 2026.

Transparency log

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page