CLI validator and tooling for the CorpAI open standard
Project description
corpai-cli
CLI toolkit for the CorpAI open standard — lint, visualize, and simulate AI agent organizations.
Install
pip install corpai
Commands
corpai lint — Validate role files
Checks every .md role file against the CorpAI spec: missing sections, invalid ranks, broken reporting chains, empty fields, missing escalation triggers.
corpai lint # validate entire org
corpai lint ./my-corpai-org # validate a directory
corpai lint --file roles/executive/ceo.md # single file
corpai lint --strict # warnings become errors
✓ ceo.md
✓ cto.md
⚠ engineer.md
WARN No optional personality template found
✗ custom-role.md
ERROR Missing required section: ## Escalation Triggers
ERROR "Reports to" field is empty
──────────────────────────────
42 roles checked — 1 error(s), 3 warning(s)
corpai graph — Generate org charts
corpai graph # ASCII tree (default)
corpai graph --format mermaid # Mermaid diagram
corpai graph --dept engineering # filter to one department
corpai graph --format mermaid --output org.mmd # save to file
└── [OWNER] OWNER (executive)
└── [L5] CEO (executive)
├── [L5] CFO (executive)
│ └── [L4] Finance Director (finance)
│ ├── [L2] Financial Analyst (finance)
│ └── [L2] Auditor (finance)
└── [L5] CTO (executive)
└── [L4] Engineering Director (engineering)
└── [L3] Engineering Team Lead (engineering)
corpai simulate — Trace message flows
Trace exactly how a TASK or ESCALATION travels through your hierarchy.
corpai simulate --from CEO --to Engineer --subject "Build auth module" --priority P2
corpai simulate --from "Support Agent" --to CEO --priority P1
╭─ CorpAI Message Simulation ───────────────────────╮
│ Subject: Build auth module │
│ Type: ↓ TASK │
│ Priority: P2 │
│ Hops: 4 │
╰────────────────────────────────────────────────────╯
Step 1 [L5] CEO ↓ TASK [L5] CTO
Step 2 [L5] CTO ↓ TASK [L4] Engineering Director
Step 3 [L4] Engineering Director ↓ TASK [L3] Engineering Team Lead
Step 4 [L3] Engineering Team Lead ↓ TASK [L1] Engineer
✓ Message delivered to [L1] Engineer
corpai info — Org summary
corpai info
Prints role counts, departments, and rank distribution across your org.
corpai scaffold — Bootstrap a new role
corpai scaffold --role "Data Engineer" --dept data-ai --rank L2 --reports-to "ML Lead"
Generates a spec-compliant .md role file with all required sections pre-filled.
corpai init — Bootstrap a full org
corpai init --name "MyAI Corp" --output ./my-org
Generates a complete department hierarchy from the CorpAI spec template.
Quick Start with the CorpAI spec
git clone https://github.com/Arigitshub/CorpAI
cd CorpAI
pip install corpai
corpai lint
corpai graph
corpai simulate --from CEO --to "QA Tester" --subject "Test the release"
Links
- CorpAI spec repo — the open standard
- corpai-runtime — execution engine
- corpai-portal — org chart dashboard
- PyPI — package page
Contributing
Issues and PRs welcome at Arigitshub/corpai-cli.
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
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 corpai-0.4.2.tar.gz.
File metadata
- Download URL: corpai-0.4.2.tar.gz
- Upload date:
- Size: 728.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8e07e048e8d2b61b1cc89828d7284afe865e0dba42890beb78c093630ff5940f
|
|
| MD5 |
a24af636929df79b8ebfe284973577f9
|
|
| BLAKE2b-256 |
b95f6f47a2b3c4bb18287f1ba4a5c2d75ca247aceeec44fb46082bf5d622a0fa
|
File details
Details for the file corpai-0.4.2-py3-none-any.whl.
File metadata
- Download URL: corpai-0.4.2-py3-none-any.whl
- Upload date:
- Size: 18.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6c1b82aa368dc287cdefcbf42a0ceaaf66615c772f0f15ee41cd5d4c26964001
|
|
| MD5 |
c4f922cc2b3bf3ab23445e40cfb532b2
|
|
| BLAKE2b-256 |
4b5efe899a32f319aeca9ce7c05115f126fbd0fcc4277b6055d42800345e6d4f
|