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.2.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.2.0
File Size Uploaded Provenance
omnicoach-0.2.0.tar.gz 368.3 kB With provenance Details

Built distributions (wheels)

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

Total release size: 15.6 MB

Release files / omnicoach-0.2.0.tar.gz

Download URL omnicoach-0.2.0.tar.gz
Size 368.3 kB
Tags Source
SHA-256 checksum
How to use checksums
8d84df65cf59fa759ba8ceea813abf443a87ae492825244e064f8c042d631d2c
BLAKE2b-256 checksum
How to use checksums
6247caa08a0d1d6402cafab602170de2a7872b153d8bd2e134db982bb4aa8c1e
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 16, 2026.

Transparency log

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

Download URL omnicoach-0.2.0-py3-none-win_amd64.whl
Size 3.2 MB
Tags Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
1088ff9c0f4f8ba82d4fd1475240fb29ddde27831003b16bc143b653acc25e69
BLAKE2b-256 checksum
How to use checksums
9e6902948a2a6ada7ffbe5939d20bac7193e54c2f53877ae326052de9eac64c6
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 16, 2026.

Transparency log

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

Download URL omnicoach-0.2.0-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 3.1 MB
Tags Linux glibc 2.17+ x86-64 Python 3
SHA-256 checksum
How to use checksums
066977c057fb06a08e541e39132529f4fbcbd60e62ac72a45ef2da60884cc9ca
BLAKE2b-256 checksum
How to use checksums
4e965fecf186a134817790e21d81c76294ad1a290e0a6d3a99c6264061e49569
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 16, 2026.

Transparency log

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

Download URL omnicoach-0.2.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Size 3.0 MB
Tags Linux glibc 2.17+ ARM64 Python 3
SHA-256 checksum
How to use checksums
1300088c35141f79f6fe5e6318b228b7f2e49bb5b4f09bdb7e797391f9639a1f
BLAKE2b-256 checksum
How to use checksums
4ca5f7cf4dd4f68d25c18845ede14467c7d9f2f95d873ac818a38401b4c51a4a
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 16, 2026.

Transparency log

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

Download URL omnicoach-0.2.0-py3-none-macosx_11_0_arm64.whl
Size 2.9 MB
Tags Python 3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
c82d00745c81303a99950f1cb9c9ba0ed588bfa427468e27240cd32c99f4df58
BLAKE2b-256 checksum
How to use checksums
643b117aa23ba58ba156fc7237428e97cc6b15317a1851ccff1ed78906ed57d2
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 16, 2026.

Transparency log

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

Download URL omnicoach-0.2.0-py3-none-macosx_10_12_x86_64.whl
Size 3.0 MB
Tags Python 3 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
7b29455c384d64ddd16b291b1c44ed575117f479929faa7a06530629d75ac8eb
BLAKE2b-256 checksum
How to use checksums
8cbf5900aba697ebcc542f0c1974aedf32f0b9764279842a6f2b67f6e1d9d390
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 16, 2026.

Transparency log

Security for omnicoach 0.2.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.2.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 16, 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