CLI Reference¶
yt-issue-reviewer [GLOBAL OPTIONS] COMMAND [ARGS]. This mirrors the command contract in
specs/001-related-issue-finder/contracts/cli.md.
Global options¶
Option |
Env var |
Default |
Description |
|---|---|---|---|
|
|
|
SQLite cache + results file (the durable export) |
|
— |
|
Config file (flag only) |
|
|
|
Ollama base URL (Tailscale ok) |
|
— |
off |
Verbose output to stderr |
Commands¶
doctor¶
Check connectivity (read-only): yt present + authenticated, Ollama reachable + model
present. Exits non-zero if a check fails.
ingest¶
Fetch issues from YouTrack and cache them locally; prints a table of fetched issues.
Options: -p/--project (repeatable, required), --state [open|all] (default open),
--since DATE, --until DATE.
embed¶
Ensure issues are cached and embedded; reports how many were embedded vs cache hits.
Options: the ingest options plus --embedding-model TEXT.
analyze¶
Run the full pipeline (fetch → embed → score → group → report) and print ranked groups with evidence. Options:
Option |
Default |
Description |
|---|---|---|
|
required |
Project(s) to include |
|
|
Issue-state filter |
|
— |
Created/updated date range |
|
|
Minimum relatedness threshold |
|
|
Ollama embedding model |
|
|
Weight of the semantic score |
|
|
Weight of the structural signals |
|
|
Generate group labels (flag-gated) |
|
|
Chat model used when
|
|
|
Ignore cache and re-fetch |
If Ollama is unreachable, analyze prints a warning and degrades to structural-only
scoring (exit 0) — it never contacts a hosted service.
show¶
Re-display a stored run from the database with no network access. Options: --run-id TEXT
(default: latest), --min-score FLOAT (re-filter for display).
runs¶
List stored runs with their settings (projects, filters, models, weights), issue counts, and whether the run was degraded — surfacing data staleness.
Exit codes¶
Code |
Meaning |
|---|---|
0 |
Success (including a successful structural-only degraded run) |
1 |
Usage error (bad flags, no project) |
2 |
YouTrack access failed (missing/unauthenticated |
3 |
Fatal internal error |
There are no write commands — the tool never modifies YouTrack.