Skip to main content

Forge governed project scaffolds from the Agentic AI Development Workflow Specification.

Project description

specsmith

CI Docs PyPI Stable PyPI Dev Python 3.10+ License: MIT

Governed project scaffolds for AI-assisted development.

Intelligence proposes. Constraints decide. The ledger remembers.


The Problem

AI coding agents are powerful but unstructured. Without governance, they skip verification, lose context between sessions, and produce inconsistent results. specsmith generates the governance layer — the rules, verification tools, CI pipelines, and documentation — that makes AI-assisted development auditable and repeatable.

What specsmith Does

For new projects: specsmith init generates a complete project scaffold with governance files, CI/CD, verification tools, and agent integration files tailored to your project type.

For existing projects: specsmith import detects your project's language, build system, and test framework, then generates governance overlay files without modifying your source code. Existing files are preserved.

For ongoing governance: specsmith audit checks health, specsmith export generates compliance reports, specsmith doctor verifies your tools are installed.

Every governed project follows the closed-loop workflow: propose → check → execute → verify → record.

Install

pip install specsmith

Quick Start

# Install
pip install specsmith

# New project (interactive)
specsmith init

# Adopt an existing project
specsmith import --project-dir ./my-project

# Check governance health
specsmith audit --project-dir ./my-project

# Generate architecture docs interactively
specsmith architect --project-dir ./my-project

# Start an AI agent session (universal pattern)
# From any governed repo root:
/agent AGENTS.md

Starting an AI Agent Session

The universal pattern for any specsmith-governed project:

/agent AGENTS.md

This works in Warp, Claude Code, Cursor, and any agent that reads markdown context files. The agent loads AGENTS.md (the governance hub), reads LEDGER.md for session state, and picks up from the last recorded action.

30 Project Types

Software: Python, Rust, Go, C/C++, .NET, JS/TS, mobile, monorepo, microservices, DevOps/IaC, data/ML, browser extensions.

Hardware: FPGA/RTL, Yocto BSP, PCB design, embedded systems.

Documents: Technical specifications, user manuals, research papers, API specifications, requirements management.

Business/Legal: Business plans, patent applications, legal/compliance frameworks.

Each type gets: tool-aware CI (correct lint/test/security/build tools), domain-specific directory structure, governance rules in AGENTS.md, and pre-populated requirements and test stubs.

40+ CLI Commands

Command Purpose
init Scaffold a new governed project
import Adopt an existing project (merge mode)
audit Drift detection and health checks (--fix to auto-repair)
architect Interactive architecture generation
validate Governance consistency + H11 blocking-loop detection
compress Archive old ledger entries
upgrade Update governance to new spec version
status CI/PR/alert status from VCS platform
diff Compare governance against templates
export Compliance report with REQ↔TEST coverage
doctor Check if verification tools are installed
self-update Update specsmith (channel-aware)
credits AI credit tracking, analysis, budgets, and rate-limit pacing
exec / ps / abort Tracked process execution with PID tracking and timeout
commit / push / sync Governance-aware VCS operations
branch / pr Strategy-aware branching and PR creation
ledger Structured ledger add/list/stats
req Requirements list/add/trace/gaps/orphans
session-end End-of-session checklist

7 Agent Integrations

AGENTS.md (cross-platform standard), Warp/Oz, Claude Code, GitHub Copilot, Cursor, Gemini CLI, Windsurf, Aider.

3 VCS Platforms

GitHub Actions, GitLab CI, Bitbucket Pipelines — all with tool-aware CI generated from the verification tool registry. Dependabot/Renovate configured per language ecosystem.

Governance Rules (H1–H12)

specsmith-governed projects enforce 12 hard rules. Two were added in v0.2.3 for agentic workflows:

  • H11 — Every loop or blocking wait in agent-written scripts must have a deadline, a fallback exit, and a diagnostic message on timeout. specsmith validate enforces this automatically.
  • H12 — On Windows, multi-step automation goes into a .cmd file, not inline shell invocations or .ps1 files.

See Governance Model for the full rule set.

Proactive Rate Limit Pacing

specsmith ships a rolling-window scheduler that paces AI provider requests before dispatch:

  • Built-in RPM/TPM profiles for OpenAI, Anthropic, and Google models (including wildcard fallbacks)
  • Pre-dispatch budget check: sleeps until the 60-second window refills instead of overshooting
  • Parses OpenAI-style "Please try again in 10.793s" messages and obeys them
  • Adaptive concurrency: halved after a 429, gradually restored after consecutive successes
  • Local overrides always take precedence over built-in defaults
specsmith credits limits defaults          # list built-in profiles
specsmith credits limits defaults --install  # merge into project config
specsmith credits limits status --provider openai --model gpt-5.4

See Rate Limit Pacing for full details.

Documentation

specsmith.readthedocs.io — Full user manual with tutorials, command reference, project type details, tool registry, governance model, rate-limit pacing, troubleshooting.

Links

License

MIT — Copyright (c) 2026 BitConcepts, LLC.

Project details


Release history Release notifications | RSS feed

Download files

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

Source Distribution

specsmith-0.2.4.dev54.tar.gz (122.1 kB view details)

Uploaded Source

Built Distribution

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

specsmith-0.2.4.dev54-py3-none-any.whl (141.2 kB view details)

Uploaded Python 3

File details

Details for the file specsmith-0.2.4.dev54.tar.gz.

File metadata

  • Download URL: specsmith-0.2.4.dev54.tar.gz
  • Upload date:
  • Size: 122.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for specsmith-0.2.4.dev54.tar.gz
Algorithm Hash digest
SHA256 2c2c22046b12f6f97422b259050516e7391c079cc91d35bbd901e78e7ac90aa8
MD5 d8edd2652ba0c12b5d7c3babdf5588b7
BLAKE2b-256 c0434e2d390d5f5b345a7a24313ec5af21dba8850373fa08b2cbb3cde5778296

See more details on using hashes here.

Provenance

The following attestation bundles were made for specsmith-0.2.4.dev54.tar.gz:

Publisher: dev-release.yml on BitConcepts/specsmith

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

File details

Details for the file specsmith-0.2.4.dev54-py3-none-any.whl.

File metadata

File hashes

Hashes for specsmith-0.2.4.dev54-py3-none-any.whl
Algorithm Hash digest
SHA256 6956af65a73b8b12c113d50cd09ff9cac753111b6aa7c28c494114aab59fe86e
MD5 c2bb4f31776c9cde6a20943ec310ba6a
BLAKE2b-256 1d21eff65555a0535609ec031ef545db5efb90698e9e83f96ca1629511088bfe

See more details on using hashes here.

Provenance

The following attestation bundles were made for specsmith-0.2.4.dev54-py3-none-any.whl:

Publisher: dev-release.yml on BitConcepts/specsmith

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