Offline CLI to make your project Cendor-ready and Cendor-fluent for your AI assistant (init) and catch wiring mistakes (doctor). Run with `uvx cendor-init`.
Project description
cendor-init
One command to make your project Cendor-ready and Cendor-fluent for your AI assistant — plus a
doctor that catches the wiring mistakes before they bite. Offline: no network, no API key.
uvx cendor-init # detect + write assistant rules files (idempotent)
uvx cendor-init doctor # validate the wiring; exit 1 on hard problems (CI-usable)
Optional developer tooling — dependency-free stdlib. It writes files and inspects your project; it makes no network call, and no Cendor library depends on it at runtime. (Node users:
npx @cendor/init.) This is the Python twin of@cendor/init; both share the same behavior.
What init does
-
Detects your project — Python (
pyproject.toml/requirements) or Node (package.json), which provider SDKs you have, and whichcendor-*/@cendor/*packages are installed. -
Writes the matching assistant rules file(s) so your assistant reads the correct Cendor call-shapes on every edit. Detected by default;
--allfor every one:.github/copilot-instructions.md(GitHub Copilot).cursor/rules/cendor.mdc(Cursor)AGENTS.md(the cross-tool default — always written)- a marked section in
CLAUDE.md(Claude Code) .windsurf/rules(Windsurf)
Idempotent and safe: re-running updates a marker-delimited block in place — never duplicates, never clobbers your surrounding content. A dedicated file it didn't create is left alone unless you pass
--force. -
Offers MCP setup (
--mcp) — drops the connect config for the Cendor MCP server (remotemcp.cendor.aior localuvx cendor-mcp/npx @cendor/mcp) where it's absent. -
Optional starter (
--scaffold) — a minimal, correct starter for your language: a governedAgentloop (budget + guardrails +guard+ audit) whencendor-sdk/@cendor/sdkis detected, otherwise aninstrument()+ budgeted-call example.
The rules content is a copy of section 3 of the docs source of truth,
for-ai-assistants.
What doctor checks
Static checks only — it never mutates your project, and exits non-zero on hard problems so it works in CI:
- Namespace — a stray
cendor/__init__.pyin your tree, or a bareimport cendor(the namespace has no module body — importfrom cendor.<tool>). - Provider deps — a provider SDK your code imports but hasn't installed/declared (Cendor never pulls one for you; they are optional extras). Uses the installed environment when available.
instrument()once — warns if Cendor is imported but the client is never wrapped.- Money — flags coercing a price/cost to
float(it should stayDecimal). - Versions — warns when an installed/pinned
cendor-*version trails the latest release.
uvx cendor-init --help
Options
| Flag | Effect |
|---|---|
--all |
write every assistant rules file, not just the detected ones |
--assistant <list> |
comma-separated subset: copilot,cursor,agents,claude,windsurf |
--mcp |
also drop MCP connect config where absent |
--scaffold |
also write a correct starter — a governed Agent when the SDK is present, else instrument()+budget |
--force |
overwrite an owned file (.cursor/rules/cendor.mdc) even if not ours |
--dry-run |
show what would change without writing |
Apache-2.0 · cendor.ai · For AI assistants · MCP
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file cendor_init-0.2.1.tar.gz.
File metadata
- Download URL: cendor_init-0.2.1.tar.gz
- Upload date:
- Size: 26.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0ebf05bd48d6549b0ee099e18b354050cf5e45aa406ea37a30bd88e18b85b59e
|
|
| MD5 |
d5b681885c71d6664952c657a594dfa1
|
|
| BLAKE2b-256 |
46d456cf5b6e3a8d354eb8749ae8ccfad99d28bf46ac23618e10b506e9c7dc48
|
Provenance
The following attestation bundles were made for cendor_init-0.2.1.tar.gz:
Publisher:
release-init.yml on cendorhq/cendor-sdk
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
cendor_init-0.2.1.tar.gz -
Subject digest:
0ebf05bd48d6549b0ee099e18b354050cf5e45aa406ea37a30bd88e18b85b59e - Sigstore transparency entry: 2145536213
- Sigstore integration time:
-
Permalink:
cendorhq/cendor-sdk@3154077f9a17eab556a193a62a4c1094ac29236d -
Branch / Tag:
refs/heads/main - Owner: https://github.com/cendorhq
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release-init.yml@3154077f9a17eab556a193a62a4c1094ac29236d -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file cendor_init-0.2.1-py3-none-any.whl.
File metadata
- Download URL: cendor_init-0.2.1-py3-none-any.whl
- Upload date:
- Size: 27.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3e153dc861f041bab8439354e31e9215922500604a06153cbae6e686c2e02c80
|
|
| MD5 |
3a3864011aab3e5fe4993c50e46d58be
|
|
| BLAKE2b-256 |
0ed9b49d6a2e7d8e3e7e8f08b4acfd59b4a76b4a4aec23fab38609e4eaec75d9
|
Provenance
The following attestation bundles were made for cendor_init-0.2.1-py3-none-any.whl:
Publisher:
release-init.yml on cendorhq/cendor-sdk
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
cendor_init-0.2.1-py3-none-any.whl -
Subject digest:
3e153dc861f041bab8439354e31e9215922500604a06153cbae6e686c2e02c80 - Sigstore transparency entry: 2145536249
- Sigstore integration time:
-
Permalink:
cendorhq/cendor-sdk@3154077f9a17eab556a193a62a4c1094ac29236d -
Branch / Tag:
refs/heads/main - Owner: https://github.com/cendorhq
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release-init.yml@3154077f9a17eab556a193a62a4c1094ac29236d -
Trigger Event:
workflow_dispatch
-
Statement type: