Skip to main content

Omnicoach: Custom Domain & Code Style Linter

Lightweight, high-signal static analysis engine and command coach designed to enforce domain-specific code style rules, architectural boundaries, and test hygiene across Python and Rust codebases.


📦 Installation

Prebuilt binaries are published to PyPI:

uv tool install omnicoach   # or: pipx install omnicoach

From crates.io:

cargo install omnicoach --locked

Both install the omnicoach binary.


🚀 Quickstart

Scan the entire repository:

omnicoach code .   # or simply: omnicoach

Scan only modified lines/files (VCS aware):

omnicoach code --diff

Validate an intercepted workflow command:

omnicoach command --cmd "jj edit @"

Try omnicoach in the browser or call its WebAssembly request/response module directly at kajiih.github.io/omnicoach:

import { loadOmnicoach } from "https://kajiih.github.io/omnicoach/omnicoach.js";

const omni = await loadOmnicoach("https://kajiih.github.io/omnicoach/omnicoach_playground.wasm");
const result = omni.lint({ path: "tests/test_app.py", code: "import time\ndef test_a(): time.sleep(1)\n", config: "" });

To pin a release, load wasm/<tag>/omnicoach_playground.wasm instead.


⚙️ Configuration (.omnicoach.toml)

Create a .omnicoach.toml file at the root of your project workspace.

Framework Rule Design: Enforcement Modes

Every rule in Omnicoach is built on a unified enforcement framework:

  • enforcement-mode = "ban" (default for most rules): Prohibits the pattern. Violations can only be bypassed using explicit # omni:ignore[rule] -- <reason> (or # omnicoach:ignore[rule] -- <reason>) directives.
  • enforcement-mode = "require-explanation": Permits the pattern as long as it is accompanied by an adjacent or inline substantive explanatory comment.

You can configure enforcement mode globally or per-language for any code rule (suppression audits and command rules reject it):

[rules.type-cast]
enforcement-mode = "ban" # default: strictly banned

[rules.sleep-in-tests]
enforcement-mode = "require-explanation" # permitted only when documented with an explanation comment

# Language-specific mode overrides
[rules.single-letter-name.python]
enforcement-mode = "require-explanation"

Global Selection & File Scoping

# Select tags (topics, facet values such as `heuristic`, or languages) and rule names.
# A topic includes its subtopics: `testing` covers `test-timing`, `test-doubles`, ...
select = ["testing", "type-cast"]

# The nearest selector wins along a topic path, so `testing` rules stay on except the
# `test-doubles` ones. A rule name beats any tag.
ignore = ["test-doubles"]

# Per-file rule ignores using glob patterns, applied after `select` / `ignore`
[per-file-ignores]
"tests/**" = ["single-letter-name", "heuristic"]

Unknown labels, facet names (precision) and a selector in both select and ignore fail at config load. Run omnicoach --list-tags for the topic tree; facet definitions and selection rules are in docs/dev/tag_guide.md.


📋 Rules

omnicoach documents every rule and topic, code and command alike:

omnicoach --list-rules              # every rule, with its languages and summary
omnicoach --list-rules --tag testing # the rules `select = ["testing"]` would select
omnicoach --list-tags               # the topic tree: parents, synonyms, descriptions, scope notes
omnicoach --explain sleep-in-tests  # one rule: what it does, why, configuration, tags, status

--explain also reports whether the rule is on under the .omnicoach.toml of the current directory, and which selector decided it.


🔕 Suppressions

Suppression directives accept either omni: or omnicoach: and require explicit bracketed rule targets and a -- <reason> explanation:

Inline Suppression (omni:ignore / omnicoach:ignore)

task = asyncio.create_task(loop())  # omni:ignore [unstructured-task] -- top-level daemon lifecycle
let x = 1; // omni:ignore [single-letter-name] -- 2D vector coordinate

Preceding-Line Suppression (omni:ignore / omnicoach:ignore)

# omni:ignore [nested-function] -- factory requires localized closure
@dataclass
def make_handler():
    def helper(): pass
    return helper

File-Level Suppression (omni:disable-file / omnicoach:disable-file)

# omni:disable-file [nested-function, single-letter-name] -- generated schema

🤝 Contributing

To add a rule, follow docs/dev/adding_a_rule.md.

Metadata

Release files for omnicoach 0.3.0

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

Source distribution (sdist)

Source distribution for omnicoach 0.3.0
File Size Uploaded Provenance
omnicoach-0.3.0.tar.gz 445.9 kB With provenance Details

Built distributions (wheels)

Table of built distributions (wheels) for omnicoach 0.3.0
File
omnicoach-0.3.0-py3-none-win_amd64.whl Python 3 none Windows x86-64 Details
omnicoach-0.3.0-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl Python 3 none Linux glibc 2.17+ x86-64 Details
omnicoach-0.3.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl Python 3 none Linux glibc 2.17+ ARM64 Details
omnicoach-0.3.0-py3-none-macosx_11_0_arm64.whl Python 3 none macOS 11.0+ ARM64 Details
omnicoach-0.3.0-py3-none-macosx_10_12_x86_64.whl Python 3 none macOS 10.12+ x86-64 Details

Total release size: 17.4 MB

Release files / omnicoach-0.3.0.tar.gz

Download URL omnicoach-0.3.0.tar.gz
Size 445.9 kB
Tags Source
SHA-256 checksum
How to use checksums
f2b460806229b030b3c6deb4f90c7c483e6013f0a8ec459d23c348e6fcac1450
BLAKE2b-256 checksum
How to use checksums
0d87b7438a95ef82a5df4e7be6b19931013d5b5596048647295249cdd6c8e37d
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 Oct 24, 2026.

Transparency log

Release files / omnicoach-0.3.0-py3-none-win_amd64.whl

Download URL omnicoach-0.3.0-py3-none-win_amd64.whl
Size 3.6 MB
Tags Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
fced99623a3b68734f468299cdad091f3ca2f12f85db003cd70802a33c24c695
BLAKE2b-256 checksum
How to use checksums
24e0fb2c766a1c7c6fe725da82a0d20b1ba7db10a429428cedcf60c0ab28a520
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 Oct 24, 2026.

Transparency log

Release files / omnicoach-0.3.0-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL omnicoach-0.3.0-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 3.5 MB
Tags Linux glibc 2.17+ x86-64 Python 3
SHA-256 checksum
How to use checksums
08d13d3a805f2f161771a5c7d8d918e402977db7f41641420137721960b3d722
BLAKE2b-256 checksum
How to use checksums
de05b6cb575c9b6c7a32b3b39dd67637c8585eadb9a2bdfc45691d7297ab2e05
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 Oct 24, 2026.

Transparency log

Release files / omnicoach-0.3.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl

Download URL omnicoach-0.3.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Size 3.3 MB
Tags Linux glibc 2.17+ ARM64 Python 3
SHA-256 checksum
How to use checksums
299f0b407c77c77ffd55863fe05433b461a0ef157d024c405dd1b30910921294
BLAKE2b-256 checksum
How to use checksums
24253a22d8ef0bcbc450752be34c6afa1494bc26291a3f3c4778fe3e1109c139
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 Oct 24, 2026.

Transparency log

Release files / omnicoach-0.3.0-py3-none-macosx_11_0_arm64.whl

Download URL omnicoach-0.3.0-py3-none-macosx_11_0_arm64.whl
Size 3.2 MB
Tags Python 3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
a42a62e772e191559de73bab9d6d91947d82a04f92945296a0e6013d19db0983
BLAKE2b-256 checksum
How to use checksums
e293b1aea79829b08541a96f5b40b02f2b33d30fe6a93781d7d34776a6beaf46
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 Oct 24, 2026.

Transparency log

Release files / omnicoach-0.3.0-py3-none-macosx_10_12_x86_64.whl

Download URL omnicoach-0.3.0-py3-none-macosx_10_12_x86_64.whl
Size 3.4 MB
Tags Python 3 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
47ab8f552395ca7cf42f2a5121a4012d2ef52658a434c6d2ce32e45164bc6982
BLAKE2b-256 checksum
How to use checksums
9ef8d46cb11f51cc5b0ba706b4455b2cd9a3c3eab874667d0efb06ddd8a4d8cc
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 Oct 24, 2026.

Transparency log

Security for omnicoach 0.3.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

All 6 files in this release have been uploaded with provenance metadata.

Select from 6 files

Attestation for omnicoach-0.3.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 Oct 24, 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