ai-dev-cli
What it is
ai-dev-cli is the executable contract between AI agents and the team's Python coding standards. One CLI (dev),
three-tier policy (in-package bedrock, profile-copied defaults, project extras), hook-enforced.
Install
Python 3.14+ is required.
pip install ai-dev-cli
Quick start
Write a profile to the project:
dev init
Show resolved config, lanes, and hooks:
dev info
Run unit tests:
dev test --lane=unit
Run the full quality pipeline:
dev check
Subcommand inventory
Always available
info: Shows resolved config, lanes, checks, hook entrypoint, hook config, and infrastructure status.status: Shows changed files, affected scopes, prior runs, and the suggested next validation command.format: Runs Ruff format and Ruff auto-fix, or checks formatting with--check.lint: Runs Ruff check plus Ruff format check;--fixdelegates toformat.typecheck: Runs basedpyright, pyright, or mypy through the resolved project runner.test: Runs scoped tests or a configured lane, with testmon, xdist, logs, and rerun-failed handling.check: Runs hard bedrock checks first, then the resolved project quality pipeline.
deadcode, semgrep, docstrings, and test-validator are check-pipeline step names, not subcommands.
Run them through dev check or dev check --steps <name>.
Config-gated
verify: Runs the configured validation sequence when[tool.dev-cli.verify].enabled = true.benchmark: Runs configured benchmark smoke, case, or tier targets when benchmark config is enabled.examples: Runs configured static, smoke, or live example checks when examples config is enabled.probe: Runs a named configured probe target and forwards trailing pytest arguments verbatim.
Scaffolding
init: Copies the selected profile into the project and wires quality surfaces todev.init --upgrade --plan/--apply/--recover: Plans, applies, or recovers profile migration work.
Profiles
minimal: Smallest useful[tool.dev-cli]shape, lanes, hook wiring, and delegation surfaces.strict-python: Strict Python defaults for Ruff, basedpyright, interrogate, Vulture, lanes, and starter Semgrep.agent: Strict Python profile plus explicit agent-oriented lane permissions.
Downstream projects bring their own framework-specific profile, such as an ai-pipeline-core profile; none ship in
ai-dev-cli.
Hook
python -m ai_dev_cli.hook is the canonical hook entry point. dev init wires it into both
.claude/settings.json and .codex/config.toml. The hook blocks raw pytest/ruff/pyright/mypy, dangerous
dev modes, and other bypass shapes.
Runtime trust onboarding (for agents)
Agents reading this should treat dev as the single canonical surface. Raw quality tools are blocked at the hook for
a reason; use dev <subcommand> exclusively, and consult dev info for the resolved config.
Standards (bedrock)
- Python 3.14+.
- Line length 120.
- Ruff strict set.
- basedpyright strict.
- Frozen Pydantic V2 for cross-boundary carriers.
- Async-only public I/O.
- No
__import__(). - No
warnings.warn(... DeprecationWarning). - Module-scoped replayable classes.
- Docstring coverage 100%.
- Vulture min-confidence 80.
Reporting bugs / contributing
Open a GitHub issue. PRs welcome. CI runs dev check + dev test --lane=unit +
dev test --lane=integration on every push.
License
See LICENSE.
Metadata
Release files for ai-dev-cli 0.2.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 | |
|---|---|---|---|
| ai_dev_cli-0.2.0.tar.gz | 77.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| ai_dev_cli-0.2.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 161.5 kB
Release files / ai_dev_cli-0.2.0.tar.gz
| Download URL | ai_dev_cli-0.2.0.tar.gz |
|---|---|
| Size | 77.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
24b7ec243df0b21b93b8115c5b301998d2126c891dcd49dd8992d889b3100e4c
|
|
BLAKE2b-256 checksum How to use checksums |
8c490a3ecc899ed0f4748722c92221193bf62c7673f15ae5bc12c2648d80c149
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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 May 22, 2026.
Transparency logRelease files / ai_dev_cli-0.2.0-py3-none-any.whl
| Download URL | ai_dev_cli-0.2.0-py3-none-any.whl |
|---|---|
| Size | 84.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9084940c6920ddd23979ad77c5966e2283760afe0e2a53e7278a117c5debd0b8
|
|
BLAKE2b-256 checksum How to use checksums |
3b27a2819eac937898919abcd000c39f3a07a38fedd6cb9389e57601d61d14d0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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 May 22, 2026.
Transparency log