Use this page to find the right entry point, then open that command’s live --help or its
dedicated guide. The source-checkout root CLI starts with python -m src.cli.
Run these PowerShell examples from the CodeGraph source repository root after installing the
CLI and dependencies using the CLI guide.
Read-only orientation
$env:CODEGRAPH_ALLOW_LOCAL_PYTHON_CLI = '1'
python -m src.cli --help
python -m src.cli doctor --help
python -m src.cli projects list --help
python -m src.cli languages --help
Common CLI jobs
| Job | Help command |
|---|---|
| Import source | python -m src.cli import --help |
| Inspect project | python -m src.cli projects info --help |
| Diagnose project scope | python -m src.cli projects resolve-scope --help |
| Audit quality | python -m src.cli audit --help |
| Review changes | python -m src.cli review --help |
| Analyze impact | python -m src.cli impact --help |
| Build an SBOM | python -m src.cli sbom --help |
| Assess GOST processes | python -m src.cli compliance --help |
| Inspect release gate | python -m src.cli release --help |
The table’s commands display syntax, required arguments and options for each job. Use that
help to compose the execution command; CPG analysis usually requires explicit --db.
Retain project and revision identity, input scope, output artifacts and warnings with the acceptance materials.
OpenCode commands
| Command | Purpose |
|---|---|
/onboard |
Understand the workspace and open or reuse a context session |
/status |
Inspect session and context state |
/audit |
Run the bounded audit workflow |
/review |
Review a bounded change |
/explain |
Explain code with project evidence |
/continue |
Continue the explicit session |
/next |
Select the next governed action |
/update |
Recheck context readiness and refresh only when the server authorizes it |
OpenCode loads these workspace commands and executes them through its CodeGraph connection. Configure command loading and the connection using OpenCode setup.
Choose the next command
For a new repository, start with /onboard, then inspect readiness with /status.
Choose /review to check prepared changes. For the CLI, open
python -m src.cli review --help: it shows the available change scopes and report
formats.
After running the selected task, check its result:
- Is the project and revision explicit?
- Is CPG/context freshness current?
- Does the result cite source locations?
- Are degraded, partial, blocked, or fallback states visible?
- Does a professional owner still need to approve the decision?