Daily-use commands
These nine commands are the read side of Safran from a terminal: find code by meaning or by exact text, print a file, read and search tickets, see which pull requests implemented a ticket, ask who owns something, and check the state of the local data. They are the same operations the MCP tools give an agent, so they are also the quickest way to see what an agent would see. None of them writes to a tracker or a code host. Global options, exit codes and the --json contract are on the CLI overview.
$ safran search "kısmi iade" --group backend --limit 2
glossary: İade → refund, chargeback
1 payments-api src/refund/policy.ts:1-16
other · MAX_REFUND_WINDOW_DAYS, RefundPolicy · typescript · score 0.592 (dense 0.600, lexical 0.519)
1 │ import type { Order } from "./service";
2 │
3 │ export const MAX_REFUND_WINDOW_DAYS = 14;
4 │
5 │ /** Decides whether an order may be refunded, and by how much. */
6 │ export class RefundPolicy {
7 │ assertRefundable(order: Order, amount: number): void {
8 │ if (amount <= 0) throw new Error("refund amount must be positive");
… 8 more lines (--full, or: safran read payments-api src/refund/policy.ts --lines 1-16 --profile safran.yaml)
2 payments-api src/webhook/retry.ts:1-15
other · MAX_WEBHOOK_ATTEMPTS, nextRetryDelayMs,… · typescript · score 0.488 (dense 0.542, lexical 0.000)
1 │ export const MAX_WEBHOOK_ATTEMPTS = 5;
2 │
3 │ /** Delay before the next delivery attempt of a refund webhook: exponential backoff, capped. */
4 │ export function nextRetryDelayMs(attempt: number): number {
5 │ return Math.min(60_000, 500 * 2 ** attempt);
6 │ }
7 │
8 │ const delivered = new Set<string>();
… 7 more lines (--full, or: safran read payments-api src/webhook/retry.ts --lines 1-15 --profile safran.yaml)
2 hits (limit 2; raise it with --limit)The examples on this page run against a small fixture of the acme story: two repositories (payments-api, ledger) indexed with bge-m3, three tickets and three merged pull requests.
| Command | Reads | Network |
|---|---|---|
safran search | the code index | the embedder, to embed the query |
safran grep | the code index | none |
safran read | an indexed repository's working tree | none |
safran ticket | the tracker | |
safran tickets | the trackers | |
safran links show | the link store | none |
safran owns | the profile, then the link store | none |
safran repos | the index status | the code hosts, to list repositories |
safran status | the profile, the index, the link store | none |
The CLI lists one more command under daily use, safran dashboard, which serves the same reads as a local web page; it is documented with the other server command on the maintain page.
The code commands need an index: build it with safran sync. links show needs the link store: fill it with safran links refresh.
safran search
safran search <query…> [options]Searches the indexed code by meaning and by words. The query can be written in the language tickets are written in: glossary terms found in it are expanded to the words the code uses, and the expansion is shown on the first line (glossary: İade → refund, chargeback). All words after the command form the query; quotes are optional.
Each hit shows the repository, the path and line range, then one line of facts (chunk kind, symbols, language, the fused score with the per-channel scores) and the first 8 lines of the snippet. Scores are comparable within one result list only. When the same code exists in several repositories, the hit says so (same code in: …).
| Flag | Value | Default | Meaning |
|---|---|---|---|
--repo <repo> … | repeatable, comma list | all indexed repos | Only these repos. |
--group <group> … | repeatable, comma list | all | Only repos in these profile groups. Several groups widen the scope; combined with --repo the two intersect. |
--lang <language> … | repeatable, comma list | all | Only these languages (typescript, csharp, …). |
--limit <n> | whole number, at least 1 | 8 | Hits to return. Values above 50 are clamped to 50. |
--mode <mode> | auto, hybrid, dense, lexical | auto | Which channels rank the hits. auto weighs them by the shape of the query. |
--no-glossary | none | off | Do not add the code-side words of glossary terms. |
--full | none | off | Show whole snippets instead of the first 8 lines. |
How the modes differ and when to pick one is explained in the SDK guide to code search.
JSON
effective_query is the query after glossary expansion, glossary the entries that matched. Each hit carries the whole snippet, whatever --full says.
{
"query": "webhook retry delay",
"effective_query": "webhook retry delay",
"glossary": [],
"hits": [
{
"repo": "payments-api",
"path": "src/webhook/retry.ts",
"start_line": 1,
"end_line": 15,
"language": "typescript",
"kind": "other",
"symbol": "MAX_WEBHOOK_ATTEMPTS, nextRetryDelayMs, delivered, isDuplicateDelivery",
"score": 0.7178,
"channels": {
"dense": 0.7067,
"lexical": 0.818
},
"snippet": "export const MAX_WEBHOOK_ATTEMPTS = 5;\n\n/** Delay before the next delivery attempt of a refund webhook: exponential backoff, capped. */\nexport function nextRetryDelayMs(attempt: number): number {\n return Math.min(60_000, 500 * 2 ** attempt);\n}\n\nconst delivered = new Set<string>();\n\n/** A retried webhook must not create a second refund record: deliveries are keyed by event id. */\nexport function isDuplicateDelivery(eventId: string): boolean {\n if (delivered.has(eventId)) return true;\n delivered.add(eventId);\n return false;\n}"
}
]
}That document came from safran search webhook retry delay --repo payments-api --limit 1 --json.
Exit codes and mistakes
0 also when nothing was found; 1 for a Safran error (embedder unreachable, unknown group, an index built with another embedder); 2 for a wrong command line.
$ safran search "kısmi iade" --lang python
glossary: İade → refund, chargeback
No hits.
→ 5 chunks are indexed. Drop filters, try other words, or use `safran grep` for an exact string.
$ safran search refund --group mobile
✘ Unknown repo group: mobile
→ Known groups: backend.- Comparing scores across queries. A score only orders the hits of one list.
- Searching for an exact identifier with
search. It works, butsafran grepis exact and needs no embedder. - Searching before syncing. With an empty index the answer is
No hits.and a pointer tosafran sync.
safran grep
safran grep <pattern> [options]Finds an exact string, or with --regex a regular expression, in the indexed repositories. It reads the local index only. Matching is case-insensitive unless the pattern contains a capital letter or you pass --case-sensitive.
| Flag | Value | Default | Meaning |
|---|---|---|---|
--regex | none | off | Treat the pattern as a regular expression. |
--case-sensitive | none | only when the pattern has a capital letter | Match case exactly. |
--word | none | off | Whole words only. |
--path <glob> | glob on the repo-relative path | all files | Only files whose path matches (*.ts, src/**/*.tsx). |
--context <n> | whole number, at least 0 | 0 | Lines of context around each match. Values above 5 are clamped to 5. |
--repo <repo> … | repeatable, comma list | all indexed repos | Only these repos. |
--group <group> … | repeatable, comma list | all | Only repos in these profile groups. |
--limit <n> | whole number, at least 1 | 50 | Matches to show. Values above 200 are clamped to 200. |
$ safran grep RefundPolicy --group backend
payments-api src/refund/policy.ts
6 ▸ export class RefundPolicy {
payments-api src/refund/service.ts
1 ▸ import { RefundPolicy } from "./policy";
18 ▸ constructor(private readonly policy: RefundPolicy) {}
3 matchesWith a regular expression, a path filter and one line of context (▸ marks the matching line, │ the context):
$ safran grep "MAX_[A-Z_]+" --regex --path "*.ts" --context 1 --limit 2
payments-api src/refund/policy.ts
2 │
3 ▸ export const MAX_REFUND_WINDOW_DAYS = 14;
4 │
payments-api src/webhook/retry.ts
1 ▸ export const MAX_WEBHOOK_ATTEMPTS = 5;
2 │
2 matchesQuote patterns and globs so the shell does not expand them. When more matches exist than the limit, the last line says so (… showing the first 50 (raise with --limit)). When a search could not be completed within its time budget, a warning on stderr names the repositories that were not searched completely.
JSON
{
"pattern": "roundRefund",
"matches": [
{
"repo": "payments-api",
"path": "src/refund/policy.ts",
"line": 13,
"text": " roundRefund(amount: number, chargeback = false): number {"
}
],
"total": 1,
"truncated": false
}With --context, a match also has before and after arrays of lines. incomplete lists repositories that were not searched completely, when there are any.
Exit codes and mistakes
0 also for no matches; 1 for a Safran error (a pattern shorter than 2 characters, an unknown group); 2 for a wrong command line.
- A pattern that starts with a dash. Put
--before it so it is not read as an option:safran grep -- "--force". - Regex characters without
--regex. Without the flag the pattern is literal text:TODO(.*)only matches those exact characters. - Expecting files that are not indexed.
grepsearches whatsafran syncindexed, not the whole working tree.
safran read
safran read <repo> <path> [options]Prints a file, or a line range of it, from an indexed repository. <repo> is a repository name from the index and <path> is relative to the repository root, exactly as search and grep print them.
| Flag | Value | Default | Meaning |
|---|---|---|---|
--lines <a-b> | 10-40, 10- (to the end), 40 (one line) | from line 1 | The line range. a:b and a..b are accepted too. |
One call returns at most 200 lines when no end line is given and at most 400 lines for an explicit range; files larger than 5 MB are refused. When the output was cut, a note says where to continue (Continue with --lines 201-).
$ safran read payments-api src/webhook/retry.ts --lines 3-6
payments-api src/webhook/retry.ts:3-6 (15 lines)
/** Delay before the next delivery attempt of a refund webhook: exponential backoff, capped. */
export function nextRetryDelayMs(attempt: number): number {
return Math.min(60_000, 500 * 2 ** attempt);
}The header line goes to stderr and the content to stdout. On a terminal the content is shown with a line-number gutter and with escape sequences removed. Through a pipe stdout is the file's own text, so safran read payments-api src/webhook/retry.ts > retry.ts gives the file back (within the line limits above).
JSON
{
"repo": "payments-api",
"path": "src/webhook/retry.ts",
"start_line": 3,
"end_line": 6,
"total_lines": 15,
"content": "/** Delay before the next delivery attempt of a refund webhook: exponential backoff, capped. */\nexport function nextRetryDelayMs(attempt: number): number {\n return Math.min(60_000, 500 * 2 ** attempt);\n}",
"truncated": false
}Exit codes and mistakes
0 when the file was printed; 1 for a Safran error; 2 when the repo or the path is missing, or the range is malformed.
$ safran read payments-api src/nope.ts
✘ File "src/nope.ts" does not exist in repository "payments-api"
→ Paths come from search and grep results; they are relative to the repository root.
$ safran read payment-api src/webhook/retry.ts
✘ Repository "payment-api" is not in the code index
→ Use a repository name from the index status (`safran status`). A repository that was never indexed has to be synced first with `safran sync`.- A path with spaces. Quote it;
readtakes exactly one repo and one path. - Expecting the whole of a long file. Without
--linesyou get the first 200 lines and a note on stderr; continue with the range it names.
safran ticket
safran ticket <ref> [options]Shows one ticket: title, status, type, priority, project and tracker, people, labels, parent, dates, the tracker's custom fields, the URL and the description. <ref> is whatever you would paste: a key (PAY-1423), a URL, or a tracker's short form (#412). It calls the tracker that owns the ticket; nothing is cached.
| Flag | Value | Default | Meaning |
|---|---|---|---|
--comments | none | off | Include comments (the first 50). |
--links | none | off | Include linked tickets and web links. |
--history | none | off | Include the change history (the first 100 entries). |
$ safran ticket PAY-1423 --comments --links --history
PAY-1423 Kısmi iade işlemi İstanbul şubesinde başarısız oluyor
status Done
type Bug
priority High
project PAY (jira)
assignee Ayşe Yılmaz
reporter Çağrı Öztürk
labels payments, iade
updated 2026-11-03
Story Points 5
Sprint Sprint 42
url https://tracker.test/browse/PAY-1423
Müşteri kısmi iade istediğinde ödeme sağlayıcısı hata döndürüyor.
Beklenen: iade tutarı sipariş tutarından küçükse işlem tamamlanmalı.
Links (2)
blocks PAY-1500 Refund webhook retries are not idempotent [In Progress]
mentioned in Refund runbook https://wiki.acme.test/refunds
Comments (2)
Ayşe Yılmaz 2026-11-01 11:26
Sağlayıcı yanıtını inceledim, yuvarlama hatası görünüyor.
Çağrı Öztürk 2026-11-03 11:26
Düzeltme canlıya alındı.
History (1)
when who field change
2026-11-02 11:26 Ayşe Yılmaz status In Progress → DoneTimes are shown in UTC. Each of the three extras is fetched separately and fails on its own terms: when a tracker has no change history, the ticket is still shown and a line on stderr says what is missing (! Not shown — history: …). When more comments or history entries exist than are shown, the heading has a + and a line says so.
JSON
ticket is always present. comments, links and history appear only when asked for, each list with its …_next_cursor (null when the list is complete). problems appears when an extra could not be fetched. The keys inside fields are the tracker's own field names and are not converted.
{
"ticket": {
"tracker": "jira",
"url": "https://tracker.test/browse/PAY-1423",
"project": "PAY",
"description": "Müşteri kısmi iade istediğinde ödeme sağlayıcısı hata döndürüyor.\n\nBeklenen: iade tutarı sipariş tutarından küçükse işlem tamamlanmalı.",
"labels": [
"payments",
"iade"
],
"fields": {
"Story Points": 5,
"Sprint": "Sprint 42"
},
"key": "PAY-1423",
"title": "Kısmi iade işlemi İstanbul şubesinde başarısız oluyor",
"type": "Bug",
"status": "Done",
"status_category": "done",
"priority": "High",
"assignee": {
"name": "Ayşe Yılmaz"
},
"reporter": {
"name": "Çağrı Öztürk"
},
"updated_at": "2026-11-03T11:26:51.692Z"
},
"comments": [
{
"id": "c1",
"author": {
"name": "Ayşe Yılmaz"
},
"body": "Sağlayıcı yanıtını inceledim, yuvarlama hatası görünüyor.",
"created_at": "2026-11-01T11:26:51.692Z"
},
{
"id": "c2",
"author": {
"name": "Çağrı Öztürk"
},
"body": "Düzeltme canlıya alındı.",
"created_at": "2026-11-03T11:26:51.692Z"
}
],
"comments_next_cursor": null,
"links": [
{
"kind": "ticket",
"relation": "blocks",
"ticket": {
"key": "PAY-1500",
"title": "Refund webhook retries are not idempotent",
"status": "In Progress"
}
},
{
"kind": "web",
"relation": "mentioned in",
"url": "https://wiki.acme.test/refunds",
"title": "Refund runbook"
}
],
"history": [
{
"at": "2026-11-02T11:26:51.692Z",
"author": {
"name": "Ayşe Yılmaz"
},
"field": "status",
"from": "In Progress",
"to": "Done"
}
],
"history_next_cursor": null
}The field-by-field meaning of a ticket is in the domain types.
Exit codes and mistakes
0 when the ticket was shown, even if an extra was not; 1 when the ticket cannot be fetched (NOT_FOUND, AUTH_MISSING, AUTH_FAILED, …); 2 without a reference or with more than one.
$ safran ticket PAY-9999
✘ Ticket PAY-9999 not found in jira- Searching with
ticket. It takes one reference. To search by text usesafran tickets. - A token that is not set. The connector fails when it is first called, with
AUTH_MISSINGnaming the variable; see secrets.
safran tickets
safran tickets <text…> [options]Searches tickets by text across the configured trackers, optionally narrowed by project and status category. At least one of text, --project or --status is required. It calls the trackers. A tracker that fails or cannot run the search is left out and reported as a warning on stderr while the others' results are shown; the command fails only when every tracker fails.
| Flag | Value | Default | Meaning |
|---|---|---|---|
--project <key> … | repeatable, comma list | all projects | Only these projects. |
--status <category> … | todo, in_progress, done; repeatable, comma list | all | Only these status categories. in-progress is accepted too. |
--tracker <id> | a tracker id from the profile | all trackers | Only this tracker entry. |
--limit <n> | whole number, at least 1 | 20 | Tickets to show. Values above 500 are clamped to 500. |
$ safran tickets iade --project PAY
key status type title
PAY-1423 Done Bug Kısmi iade işlemi İstanbul şubesinde başarısız oluyor
1 ticket
$ safran tickets --project PAY --status in-progress,done
key status type title
PAY-1423 Done Bug Kısmi iade işlemi İstanbul şubesinde başarısız oluyor
PAY-1500 In Progress Story Refund webhook retries are not idempotent
2 ticketsThe status column shows the tracker's own status name; --status filters by the three categories every tracker's statuses are mapped to. With more than one tracker in the profile, a tracker column is added.
JSON
{
"items": [
{
"key": "PAY-1500",
"title": "Refund webhook retries are not idempotent",
"url": "https://tracker.test/browse/PAY-1500",
"type": "Story",
"status": "In Progress",
"status_category": "in_progress",
"tracker": "jira"
}
],
"next_cursor": null,
"warnings": []
}next_cursor is not null when more tickets exist; the CLI has no flag to continue from it, so raise --limit or narrow the search. warnings holds { source, code, message } for trackers that were left out.
Exit codes and mistakes
0 also for no results; 1 for a Safran error; 2 for a wrong command line.
$ safran tickets --status open
✘ --status must be one of todo, in_progress, done; got "open"- Filtering by a status name.
--statustakes categories, not the tracker's names (Done,Closed,Resolvedare alldone). - Reading an empty list as "no such tickets" when a warning was printed: a tracker that failed was left out.
safran links show
safran links show [options]Shows which merged pull requests changed what, filtered by ticket, repository or file. This is the "how was similar work done before" question. It reads the local link store only; fill the store with safran links refresh. The filters combine: every one you give must match.
| Flag | Value | Default | Meaning |
|---|---|---|---|
--ticket <key> | a ticket key | Work done for this ticket. | |
--repo <repo> | a repository name | Work in this repo. | |
--path <path> | a repo-relative file path | Work that changed this file. A path ending in / matches every file under that directory. | |
--since <date> | ISO date, such as 2026-01-31 | Merged on or after this date. | |
--limit <n> | whole number, at least 1 | 20 | Records to show. |
$ safran links show --ticket PAY-1423
2026-11-03 payments-api #101 PAY-1423 fix partial refund rounding
PAY-1423 · Ayşe Yılmaz · 2 files
· src/refund/service.ts
· src/refund/policy.ts
1 record
$ safran links show --repo payments-api --since 2026-01-01 --limit 2
2026-11-20 payments-api #103 bump dependencies
no ticket · dependabot[bot] · 1 file
· package.json
2026-11-17 payments-api #102 PAY-1500 make webhook retries idempotent
PAY-1500 · Çağrı Öztürk · 1 file
· src/webhook/retry.ts
2 records of 3 (raise --limit, or narrow with --since)Records are listed newest first. Each shows the merge date, repository, pull request id and title, then the ticket keys, the author and the number of changed files, with the first three file names; --json lists all of them.
JSON
total is the number of records that match, which can be larger than the records returned under --limit.
{
"records": [
{
"id": "102",
"repo": "payments-api",
"title": "PAY-1500 make webhook retries idempotent",
"description": "",
"author": {
"name": "Çağrı Öztürk"
},
"source_branch": "feature/PAY-1500-webhook",
"merge_commit": "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb",
"linked_ticket_keys": [
"PAY-1500"
],
"changed_files": [
"src/webhook/retry.ts"
],
"host": "azure",
"merged_at": "2026-11-17T11:26:52.269Z",
"ticket_keys": [
"PAY-1500"
]
}
],
"total": 1
}That document came from safran links show --repo payments-api --path src/webhook/retry.ts --json.
Exit codes and mistakes
0 also when nothing matches; 1 for a Safran error; 2 for a wrong command line (a positional argument, a date that is not a date).
$ safran links show --ticket WEB-1
No records match.
→ The store holds 3 records; loosen the filters.- Passing the ticket as an argument.
links showtakes options only:--ticket PAY-1423. - An empty store. With
localhosts only there are no pull requests to store; the answer then points atsafran links refresh. - A path with the repository name in front.
--pathis relative to the repository root:src/refund/service.ts.
safran owns
safran owns [options]Answers which team owns a repository or a tracker project. It needs exactly one of the two options. The answer says on what basis it rests: declared in the profile (teams:), inferred from past pull requests in the link store, or unknown. It reads local data only.
| Flag | Value | Default | Meaning |
|---|---|---|---|
--repo <repo> | a repository name | Who owns this repository. | |
--project <key> | a tracker project key | Who owns this project. |
$ safran owns --repo payments-api
Payments owns repo payments-api — declared in the profile
Payments projects PAY · repos payments-api, ledger
$ safran owns --project MOB
Mobile owns project MOB — declared in the profile
Mobile projects MOB · repos acme-ios, acme-android · confidence low · 9 ticket-PR links
! Mobile is a low-confidence mapping; confirm it in the profile.A team entry with confidence: low was guessed by discovery and not yet confirmed by a person; the output says so every time.
JSON
basis is profile, history or none. teams holds the team entries as the profile has them.
{
"target": {
"project": "PAY"
},
"basis": "profile",
"teams": [
{
"name": "Payments",
"projects": [
"PAY"
],
"repos": [
"payments-api",
"ledger"
]
}
]
}Exit codes and mistakes
0 also when no owner is known; 2 when neither or both options are given.
$ safran owns --repo web-app
No team is known to own repo web-app.
→ Add it to a team under `teams:` in the profile, or let `safran discover --profile safran.yaml` propose one.- Reading "inferred from past pull requests" as a fact. It is a statistic over the link store. Declare the team in the profile once it is confirmed.
safran repos
safran repos [options]Lists the repositories the code hosts provide, after the hosts' include and exclude filters, with their groups, owning teams, whether a working tree is on disk and when each was last indexed. It calls every code host to list its repositories. When one host of several fails, its problem is printed as a warning on stderr and the other hosts' repositories are listed; when every host fails, the command fails with that error.
| Flag | Value | Default | Meaning |
|---|---|---|---|
--group <group> … | repeatable, comma list | all | Only repos in these profile groups. An unknown group is a usage error. |
$ safran repos
repo host groups teams cloned indexed
payments-api azure backend Payments yes just now
ledger azure backend Payments yes just now
2 repos, all indexedBefore the first sync the last column says not indexed and the summary line names the command to run:
$ safran repos
repo host groups teams cloned indexed
payments-api azure backend Payments yes not indexed
ledger azure backend Payments yes not indexed
2 repos, 2 not indexed → safran sync --profile safran.yamlJSON
Each entry is the repository as its host describes it plus Safran's own fields (host, groups, teams, dir, cloned, indexed_at). clone_url never carries credentials. The second repository is cut from this listing.
{
"repos": [
{
"full_name": "acme/payments-api",
"default_branch": "main",
"clone_url": "/work/acme/repos/payments-api",
"name": "payments-api",
"host": "azure",
"groups": [
"backend"
],
"teams": [
"Payments"
],
"dir": "/work/acme/repos/payments-api",
"cloned": true,
"indexed_at": "2026-11-23T11:26:38.468Z"
}
],
"warnings": []
}In this fixture the repositories are directories read in place, which is why clone_url and dir are the same local path; for a remote host clone_url is the remote URL and dir the clone under the data directory.
Exit codes and mistakes
0 when the list was printed, also when one host of several failed and was reported as a warning; 1 for a Safran error, including every host failing; 2 for an unknown group.
$ safran repos --group backnd
✘ The profile has no group "backnd"
→ Did you mean backend?- A repository that is missing. Check the host's
include/excludepatterns and the token's access; the connector pages say what each host lists.
safran status
safran statusOne screen about the local state: which profile is in use, its connectors, how much knowledge it holds, whether the environment variables it names are set, the size and age of the code index and of the link store, and where the data lives. It has no options of its own. It reads local state only and calls no tracker, code host or embedder; safran doctor is the command that does.
$ safran status
profile acme safran.yaml
trackers jira
code hosts azure (azure-repos)
doc sources none
knowledge 1 group, 2 teams, 2 glossary terms
environment 1 of 1 variables set
index 2 repos, 5 chunks, embedder ollama:bge-m3, oldest index just now
links 3 pull requests, 2 with a ticket, refreshed just now
data dataBefore the first sync, the two data lines point at the commands that fill them:
$ safran status
profile acme safran.yaml
trackers jira
code hosts azure (azure-repos)
doc sources none
knowledge 1 group, 2 teams, 2 glossary terms
environment 1 of 1 variables set
index ! not built yet → safran sync --profile safran.yaml
links empty → safran links refresh --profile safran.yaml
data dataThe index line reports, in this order of precedence: an error opening the index; not built yet; repositories built with a different embedder than the profile configures; chunks present but no sync finished; or the normal summary. With local hosts only, the links line says the store is not applicable.
JSON
{
"profile_file": "/work/acme/safran.yaml",
"company": "acme",
"data_dir": "/work/acme/data",
"trackers": [
{
"id": "jira",
"type": "jira"
}
],
"hosts": [
{
"id": "azure",
"type": "azure-repos"
}
],
"doc_sources": [],
"groups": 1,
"teams": 2,
"glossary_terms": 2,
"env_unset": [],
"index": {
"exists": true,
"embedder": "ollama:bge-m3",
"repos": 2,
"chunks": 5,
"stale_repos": [],
"oldest_indexed_at": "2026-11-23T11:26:38.468Z",
"newest_indexed_at": "2026-11-23T11:26:38.477Z",
"error": null
},
"links": {
"exists": true,
"records": 3,
"linked": 2,
"refreshed_at": "2026-11-23T11:27:02.826Z",
"error": null
}
}env_unset lists the names of variables the profile refers to that are not set. index.error and links.error are { code, message, hint } when a store exists but cannot be read.
Exit codes and mistakes
0 whenever the profile loads, including when the index or the link store is missing or unreadable (the line says so); 1 when the profile is missing or invalid.
- Using
statusto test connectivity. It never touches the network. Usesafran doctororsafran profile check --online. - Scripting on the exit code. A missing index is not a failure here. Read
index.existsandindex.errorfrom--json, or usesafran doctor, whose exit code reflects failed checks.