Scan your whole stack
From OX Research Newsroom
Are you using docir?
Find out what’s in your code.
Scan your apps free in minutes (opens in a new tab)Latest version: v0.30.5
docir was last scanned on 29 Nov 2026 at version 0.30.5. Risk score 0 of 100. No malicious behavior was detected.
| Version | Published | Status |
|---|---|---|
| 0.30.5 LATEST | 29 Nov 2026 | No rules fired |
| 0.30.4 | 21 Oct 2026 | No rules fired |
| 0.30.3 | 17 Oct 2026 | No rules fired |
| 0.30.2 | 17 Oct 2026 | Not shown |
| 0.30.1 | 16 Oct 2026 | Not shown |
Findings for v0.30.5. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.
The score describes 0.30.5; other versions have their own rules, not their own score.
The publisher’s own README, as collected from the registry.
documents as IR — a CLI that compiles git-backed markdowninto a verifiable, read-optimized index for AI coding agents.
The idea · Quickstart · Why not just… · The model · Editing by hand · Commands · Conventions Reaching docir · Schema · Upgrading · Going further · Architecture · Support · Contributing · License · Live site
Ask in your own words. Get ranked skeletons — no bodies, so scanning is cheap.Read the one section that matched.
"IR" is intermediate representation — the thing a compiler turns source code into. docir treats your markdown the same way: the files are the source, and the SQLite index (metadata + FTS5 full-text + a typed relation graph + semantic embeddings) is a derived artifact you can throw away and rebuild.
source of truth docir derived index
canonical the compiler rebuildable · gitignored
─────────────── ────────────────── ─────────────────────────
decisions/*.md parse · validate metadata · FTS5
issues/*.md ──▶ allocate ids ──▶ relation graph (typed)
tags.yaml embed (deferred) vector embeddings
Git is canonical.
docir reindexrebuilds the entire index from the files. When the database and the files disagree, the files win.
Requirements. Python 3.12+ and uv (or pipx). Linux, macOS or Windows — everything runs locally, and only the first-run model download needs network.
# 1. install (~240 MB of deps; a 64 MB embedding model downloads on first use, once,
# into ~/.docir/models — the only step that needs network, and the only
# thing docir keeps outside a store. DOCIR_EMBEDDER=deterministic opts out.)
uv tool install docir # or: pipx install docir
# 2. scope docs to this repo (creates ./.docir, like `git init`)
# skip it and docs go to the global ~/.docir — docir warns if you are in a repo
docir init
# 3. teach this repo's AI agent to drive docir (writes a Claude Code skill)
docir agent install # --agent claude-writing adds the doc-writing rules;
# --agent claude-feedback lets it report docir's own bugs
# upstream instead of working around them (recommended);
# --agent agents links the skills from AGENTS.md
# 4. capture a decision…
docir add --type decision --title "Auth strategy" \
--description "How the service authenticates API clients." --stdin < draft.md
# 5. …and retrieve it by intent, next session
docir context "implement a new auth endpoint"
In a terminal, docir context prints ranked, body-less skeletons — frontmatter and
typed edges, no body — so you scan wide, then fetch the bodies by id with one docir get. Built
for agents, though: when the output is captured (stdout isn't a TTY), the same command
emits compact, trimmed JSON — no borders, empty fields dropped, ~40% fewer tokens:
$ docir context "implement a new auth endpoint" | cat
[{"id":"adr-0001","title":"Auth strategy","description":"How the service authenticates API clients.","type":"decision","status":"proposed","tags":["auth"],"archived":false,"stale":false,"score":0.0328,"similarity":0.8951,"via_graph":false}, ...]
An absent field means its default (no owner, not stale). score orders the results and
means little on its own; similarity is the raw cosine against your query, and is what
--min-score filters on — which is what makes an empty result a real answer. Both numbers
are explained in how to read a ranked result.
plain .md files |
RAG over your docs | docir | |
|---|---|---|---|
| Consistent frontmatter / schema | ❌ | ❌ | ✅ enforced |
| Retrieval by meaning | ❌ | ✅ | ✅ lexical + semantic † |
| Typed relation graph | ❌ | ❌ | ✅ |
| Knows what's stale | ❌ | ❌ | ✅ |
| Works offline, nothing to run | ✅ | ⚠️ | ✅ after the model downloads once † |
| Token-cheap for agents | ❌ | ⚠️ | ✅ skeletons |
Orientation, not a shoot-out — the right tool depends on your setup.
† Semantic search runs a quantized, CPU-only model locally — nothing is sent anywhere,
but it is ~240 MB of dependencies and a 64 MB download. DOCIR_EMBEDDER=deterministic
opts out, at a measured cost to recall:
what the model costs and what the fallback loses.
query / search / context return frontmatter + typed
edges + staleness — no body. Fetch bodies by id with get, or a single section with
get --section. An agent scans wide cheaply, then reads deep only where it matters.owner / verified fields plus a per-type
review cadence make "is this doc still true?" a first-class, checkable fact — and a
worklist: docir query --owner platform-team --stale is one steward's review queue,
cleared a document at a time with docir update <id> --verified. Un-stamped documents age from
created, never from the last edit, so writing into one cannot quietly take it off the
queue. And a stamp does not outlive what it covered: edit a verified document's title,
description or body and the verification is withdrawn, the cadence restarting from that day —
pass --verified with the edit if you re-read it. --clear-verified takes back a stamp that
asserts a review nobody did, and grants no window at all: that document ages from created
again. A verification also fingerprints what it covered, so docir check flags one that
outlived a hand-edit.related edge carries a kind (supersedes, depends_on,
implements, …) — a real graph, not a bag of links. docir check warns about a document
with no edge at all (orphan), and only an edge closes it — naming an id in a paragraph
does not, or the triage of the orphan list would empty the list. A document that is meant
to stand alone says so instead:
docir update <id> --set-isolated "scope deferred; nothing depends on it yet", audited
later with docir query --expr "isolated".[[...]] written mid-sentence is navigation rather than a
typed edge, and docir reads it: the target may be a document id, a filename stem, a title
slug or the title, and inactive and archived documents resolve — a link to a resolved issue
is a working link. docir build renders it as the target's current title, so a retitle
cannot leave a link displaying a name that no longer exists, and docir check reports the
ones that point at nothing (unresolved-link, a warning). Showing the syntax costs nothing:
docir reads a code span or fence as code. It stays out of the graph — orphan reads
related: alone.code globs
(docir add --code "src/auth/**", which skips whatever your .gitignore excludes, so a
build does not read as a change) record which files a decision is about, and
docir query --code src/auth/login.py asks it in reverse: which decisions govern the
file I am editing. At review time,
docir query --code $(git diff --name-only origin/main...HEAD) lists what a branch
should be read against — a notice, not a gate. Point code at the test that fails
when the code contradicts the decision and CI already enforces it, in your language
with your fixtures: docir ships no rule engine, it records the link and warns when
that test disappears.docir check reports code-drifted as soon
as they stop being the ones the document was pointed at — no review step to reach first.
docir update <id> --verified raises the watch to code-changed: the same comparison,
the stronger claim, because a person has now held the two against each other. Both stay
warnings — code landing ahead of its prose is ordinary, not damage. A glob that names code
which does not exist yet has nothing to fingerprint, so it watches nothing: docir check
reports that as code-unwatched once the file arrives, and docir check --fix starts the
watch. An existing store starts watching after the same one command. The globs resolve
against the repository the store sits in; a store read anywhere else — a copy, the global
store — has no tree to read, and docir check says so with one code-unchecked warning
rather than an empty code section that looks like nothing moved.--wait-embeddings, docir embed --flush, or a full
docir reindex, which re-embeds every document whose text or chunking has moved
since its vectors were written, and reports how many.The files are git-backed markdown and docir reindex exists precisely to pick up an
outside change — so hand-editing is supported, but not on every field:
| by hand | instead | |
|---|---|---|
| document body | ✅ | — |
docs-schema.yaml, docs/tags.yaml |
✅ | no CLI write path for the schema |
tags, status, related |
❌ | docir update --set-tags / --status / --set-related |
type |
❌ | docir update <id> --type <new> — the id stays, the file moves |
code |
❌ | docir update <id> --set-code "src/auth/**" |
id |
❌ never | it is the primary key; changing it orphans every inbound link |
verified |
❌ never | docir update <id> --verified — it asserts somebody re-read the doc |
revoked |
❌ never | Set by editing a verified doc; the cadence runs from it |
verified_content |
❌ never | The digest docir check compares the reviewed text against |
isolated |
❌ never | docir update <id> --set-isolated "<why>" — it exempts the doc from orphan |
Then run docir reindex && docir check — or let the daemon do the reindex for you.
It watches .docir/docs/ and rebuilds what changed within a second of the edit, which
is safe precisely because the files are canonical: a reindex only makes the index agree
with them, and writes no markdown. DOCIR_WATCH=0 turns it off; --no-daemon runs
never watch, so CI still needs the explicit command.
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.
The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).
The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.