Skip to main content

Specification and architecture driven code generation toolkit.

Project description

Ossature

CI codecov PyPI Downloads

License: MIT Docs Discord

[!WARNING] Ossature is currently in its 0.x series and should be considered unstable. APIs, spec formats, CLI flags, and internal behavior may change significantly between releases without prior deprecation. Pin your version and check the changelog before upgrading.

An open-source harness for spec-driven code generation.

You write a specification, optionally lay out the architecture, and Ossature breaks it down into a build plan that gets executed step by step with an LLM doing the code generation under tight constraints. The specs are your source of truth, you review the plan before anything gets built, and when something breaks you fix that step and keep going instead of starting over.

Works with Anthropic, OpenAI, Mistral, Google, and most other hosted providers, as well as local models through Ollama.

Ossature (pronounced OSS-uh-cher) means the underlying framework or skeleton of a structure.

Quick start

Requires Python 3.14+.

pip install ossature

Or run it directly with uvx:

uvx ossature --version

Set your LLM provider API key:

export ANTHROPIC_API_KEY="sk-ant-..."
# or OPENAI_API_KEY, MISTRAL_API_KEY, etc.

Create and build a project:

ossature init myproject && cd myproject
ossature new my-feature
# edit specs/my-feature.smd
ossature validate
ossature audit
ossature build

The default model is anthropic:claude-sonnet-4-6. To use a different model, set the model field in ossature.toml:

[llm]
model = "openai:gpt-5.2"  # or mistral:devstral-latest, etc.

The API key you export must match the provider in your model string (e.g., OPENAI_API_KEY for openai:…). See the configuration docs for per-role overrides and all available options.

Examples

See ossature-examples for complete projects with specs, build plans, and generated code.

Documentation

Full docs at docs.ossature.dev. The workflow guide walks through a complete project from init to generated code.

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ossature-0.0.3.tar.gz (68.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ossature-0.0.3-py3-none-any.whl (88.9 kB view details)

Uploaded Python 3

File details

Details for the file ossature-0.0.3.tar.gz.

File metadata

  • Download URL: ossature-0.0.3.tar.gz
  • Upload date:
  • Size: 68.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for ossature-0.0.3.tar.gz
Algorithm Hash digest
SHA256 1a8a4e1ae8d9942c12e0a74ccc816d9180bdc43c38265227b5e6b1807ac71f33
MD5 48b2b5e4816131a8e1d7af2b2ecc93b3
BLAKE2b-256 ec6db43558bb0f2fc6b60f77c543b0bc3e6e6bb51f3f900ccfb69787f53d2406

See more details on using hashes here.

Provenance

The following attestation bundles were made for ossature-0.0.3.tar.gz:

Publisher: release.yml on ossature/ossature

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file ossature-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: ossature-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 88.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for ossature-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 df5d5d7b16abafa5088508929a0484819556f94acf3629268ff32291efc9fcc0
MD5 56e80033fbf11e31302c2ead5c9acbc1
BLAKE2b-256 4cf8040f9357b9a7cd7749935814ed17366e4c3bc5a71edfdf953f10b509f0b2

See more details on using hashes here.

Provenance

The following attestation bundles were made for ossature-0.0.3-py3-none-any.whl:

Publisher: release.yml on ossature/ossature

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page