ctx-optimize

module
v0.17.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 24, 2026 License: MIT

README

ctx-optimize

CI npm Go Reference license Discord

muthuishere.github.io/ctx-optimize — docs, demos, benchmarks, and the use-case tour. Releases & changelog — what shipped in every version, newest first.

Know what breaks before you change it.

One static Go binary gathers a repo — and, via native sources, its databases, buckets, queues and APIs — into a local knowledge graph your agent answers from in one call instead of a grep-and-read chain. On a graded benchmark it answered 79% of "what calls this / what breaks if I change this" questions correctly, against 29% for a grep-armed agent. It indexes the linux kernel — 84,300 files — in about a minute (61 s median on v0.15), and is the only one of the four tools we tested that produces a usable kernel graph at all. Deterministic: no LLM, no embeddings, no database, no MCP, no credentials at rest. The only intelligence in the system is the agent you already run.

Where it does not win: ripgrep is faster at finding a string and better at "where is X" (47% vs 42%), and CodeGraph answers free-text kernel queries about 4× faster than we do (0.86s vs ~3.6s, measured side by side on 2026-08-16) — though on five kernel questions its top hit was useful 0 times to our 4. Numbers for all of it in Proof.

Why

  1. Best at impact questions — 79% vs 29% (grep) and 42% (graphify) on 8 graded "who calls this / what breaks" questions, 3 runs, n=36 per arm. Zero false claims and zero empty answers, in 15 tool calls per run against grep's 42.7. Full method + failures.

  2. The agent finishes sooner even though each query is slower — ripgrep answers a single lookup faster than we do (2.06s for rg on one kernel symbol against 2.96s for our free-text query, same machine, 2026-09-10). But an agent does not make one call: on the graded run it made 42.7 tool calls per question with grep against our 15.0 — grep, read a file, grep again, chase a caller, re-read. End to end it finished in 40.1s with ctx-optimize against 65.5s with grep, 1.6x faster overall, and answered 67% correctly against 35%. Per-call latency is not the unit; the question is.

  3. Fastest to build, by a wide margin — linux v6.9 in 118.18s vs CodeGraph's 289.86s and graphify's 527.72s; GitNexus did not finish in 45 minutes. Those four were measured together, when our gather still generated the markdown wiki (off by default since v0.12); re-measured alone on v0.15 our kernel gather is 61.2s median. The competitors were not re-run, so no newer ratio is claimed. A 1,476-file repo in 0.648s vs 5.123s / 1.323s / 10.649s. And the graph is the most complete: 2,849,719 nodes in 2.0GB, against CodeGraph's 1,838,442 in 4.1GB.

  4. Instant symbol lookup — card on the kernel resolves an exact symbol in under 20ms (it was 1.8s), via a plain-text index that is 20% of the graph. Since v0.15.2 affected answers a blast radius from the same index: 3.5s → 7-95ms on ordinary kernel walks, byte-identical output. Fuzzy and ambiguous names still cost a full scan, deliberately: they rank against every node, and refusing to guess is the point.

  5. Complete answers, not pointer lists — card returns signature + doc + callers/callees with file:line, so the agent doesn't reopen the file. change-plan composes the whole "I'm about to edit X" answer — callers, blast radius, which tests to run — in a single call. What we measured and kept: impact-answer correctness, onboarding traces, wall time. What we measured and dropped: token savings — Claude Code −0.2%, Codex +3.0%, so we don't claim it (CRITIQUE.md).

  6. It maps the edges of the system, which no other tool we benchmarked does — boundaries answers "what does this call out to, and what does it expose" in one command: external hosts, env vars with credentials flagged by name, spawned binaries, exposed routes — each with file:line. graphify, CodeGraph and GitNexus model none of it.

    $ ctx-optimize boundaries
    boundaries: 76 ports
    
    CONSUMES (what this system calls out to)
      config.env     30 · 30 external · 1 SENSITIVE · 3 dynamic
          OPENROUTER_API_KEY     INFERRED   SECRET  proof/agent/agent.mjs:L28 (+1 sites)
      network.http   17 · 17 external
          api.github.com         INFERRED    internal/app/app.go:L3149
      process.exec   12 · 12 external · 7 dynamic
          git                    AMBIGUOUS   internal/app/githistory_cli_test.go:L28 (+13 sites)
    
    PROVIDES (what this system exposes)
      network.http   17
          /api/graph             INFERRED    internal/dashboard/dashboard.go:L119
    
    UNRESOLVED  10 port(s) carry a dynamic identifier — os.Getenv(varName) and
                friends. The SITE is certain, the value is not.
    

    Read the tiers: a port list is a floor, not a census. config.env is INFERRED and process.exec is AMBIGUOUS because os.Getenv(varName) and exec.Command(bin) hide the value behind a variable — we report the site and refuse to invent the name. Two more limits worth stating: scope says internal or says nothing — there is no external value, because the join that would prove one compares consumed HOSTS against provided ROUTE PATHS and so has no input on the default rules; absence means "not proven internal", never "third-party". And query cannot retrieve these — use boundaries or nodes --kind port. --json carries the otel.* keys under their OpenTelemetry semconv names, so a static boundary joins a runtime trace on the same key.

  7. Your infrastructure goes in the graph too — databases, buckets, queues and APIs enter by env-var name; the value is a URL and its scheme picks the connector. Nine of them: postgres · mysql · mongodb · redis · kafka · nats · s3 · mssql · openapi. The secret value is never read into config, stored, or printed. docs/sources.md

    export BILLING_DB_URL='postgres://reader:[email protected]:5432/billing'
    ctx-optimize add BILLING_DB_URL      # same door for s3, kafka, mongo, redis, nats, mssql, openapi
    
  8. Extensible without a fork — languages are drop-in tree-sitter grammar packs (12 embedded, languages add builds any other), external systems are dropped scripts through one validated JSON door, and the remote is your script. The store is plain sorted ndjson at ~/ctxoptimize/<repo>/ — diffable, portable, greppable.

Install

Already in Claude Code, Codex or Copilot? Paste this and it does the setup:

Install ctx-optimize for this repo and set yourself up to use it:
1. npm install -g @muthuishere/ctx-optimize
2. cd into the repo root and run: ctx-optimize up
3. run: ctx-optimize install --claude     (or --codex / --copilot, or plain
   `install` for every agent CLI you detect)
4. run: ctx-optimize init                 (writes the committed pointer block
   so my teammates' agents inherit it too)

From now on answer my code questions with its verbs — query, card,
change-plan, affected, boundaries — instead of grep-and-read, and cite the
file:line it returns.

Every line is a command you could have typed. No curl | sh, nothing behind a shortener: you can read what will run before an agent runs it.

The skill is always installed globally (~/.claude/skills/ or ~/.agents/skills/) with a session hook; the agent flag only picks which agent gets wired up. The one optional piece is the always-on rule added to your global ~/.claude/CLAUDE.md / ~/.codex/AGENTS.md — that is what makes an agent reach for the store unprompted. ctx-optimize uninstall removes all three. Only init touches the repo, and it writes files meant to be committed.

By hand:

npm install -g @muthuishere/ctx-optimize     # prebuilt binaries, macOS/Linux/Windows
go install github.com/muthuishere/ctx-optimize/cmd/ctx-optimize@latest   # or from source

ctx-optimize install     # skills + hooks for every agent CLI it detects
ctx-optimize update      # binary + skills + hooks; network only when YOU run it

Quick start

ctx-optimize up                        # the only onboarding verb: bootstraps config,
                                       # pulls the team store or gathers. Idempotent.
ctx-optimize query "refund flow"       # complete, citable hits under a token budget
ctx-optimize change-plan RefundService # callers + blast radius + which tests to run
ctx-optimize serve                     # → 127.0.0.1:4747, embedded dashboard, zero external requests

What you ask it

You want to… Verb
find something by intent query "<terms>"
inspect one symbol (signature, doc, callers, callees) card <symbol>
edit safely — callers, impact, tests, co-change change-plan <symbol>
blast radius of a change affected <symbol>
how are these two connected path <a> <b>
why does this node exist / where from explain <node>
the load-bearing symbols hubs
chain several of the above in one process, return only the filtered answer (import a shipped recipe: ctx:edit, ctx:find, ctx:impact, ctx:orient) code run - --input ... --json (docs/cli.md)
what this calls out to & exposes — hosts, env vars, secrets, spawned binaries, routes boundaries
list & filter without jq nodes --kind K · edges --relation R · deps --scope dev
add a database / bucket / queue / API add BILLING_DB_URL
feed anything else in <your-script> | add --json -
re-gather code only / run adapters only sync · adapters run [name]
is my store trustworthy right now fresh · status --json
share it with the team remote push / remote pull
combine or dump the graph merge a b --into all · export --format dot
a human-readable wiki of the codebase wiki
browse it serve

Full reference with when-and-why for each: docs/cli.md.

Proof

Apple M5 Pro (18 cores, 48 GB). ctx-optimize on the build that became v0.13.0, graphify 0.9.12, CodeGraph 1.5.0, GitNexus 1.6.9, ast-grep 0.45.0, ripgrep 15.2.0. Each tool on its own fastest deterministic path, no LLM anywhere. Cold gather best-of-3, query median-of-5.

corpus ctx-optimize CodeGraph graphify GitNexus
linux v6.9 · 84,300 files 118.18s / 4,039ms 289.86s / 880ms 527.72s / 22,799ms* did not finish (>45 min)
graphify-src · 1,476 files 0.648s / 27ms 1.323s / 101ms 5.123s / 373ms 10.649s / 779ms
ctx-optimize-src · 409 files 0.326s / 12ms 0.762s / — 1.352s / 120ms 12.85s / —
flask · 344 files 0.314s / 12ms 0.438s / 102ms 0.845s / 106ms 6.355s / 794ms
gin · 253 files 0.342s / 11ms 0.593s / — 0.777s / 110ms 7.56s / —

Kernel gather on v0.15, re-measured alone on 2026-09-09: 61.2s median (60.13 / 61.17 / 63.24, byte-identical output). The 118.18s row above was taken when our gather still built the markdown wiki; the other columns were not re-run alongside, so the row is kept as recorded rather than mixed with a newer number.

gather / free-text query. — = not measured. GitNexus burned 137 CPU-minutes with a 36 GB heap on the kernel and produced no index; that is recorded as a non-finish, not as a win for anyone.

On the kernel, ctx-optimize emits 2,849,719 nodes in a 2.0 GB store; CodeGraph 1,838,442 in 4.1 GB; graphify 910,778 in 3.1 GB.

Where we lose: free-text query LATENCY at scale. CodeGraph answers a kernel query about 4.2× faster than we do — 0.86s against 3.64s median on the five questions below, measured side by side — because 54% of their 4.1 GB is B-tree index. (An earlier draft said 536ms; that was CodeGraph answering a single word while every other tool answered the full phrase. Fixed in the harness.) They are faster and, on the five kernel questions below, less useful: Ours is 20%, and it currently accelerates exact symbol lookup only — card on the kernel went 1.8s → under 20ms — not the lexical ranking query runs. A postings index for query is not built and not claimed.

* graphify cannot query the kernel graph at default settings. It builds the 1.2 GB graph.json, then querying it fails with exceeds 536_870_912-byte cap. The 22,799ms is only reachable after raising GRAPHIFY_MAX_GRAPH_BYTES by hand.

Query: speed and relevance, on the same questions

Five real kernel questions, linux v6.9, median of 3. Grading rule, applied identically: does the top hit name a symbol actually related to the question, with file:line? The hit is shown so you can judge it yourself.

question ctx-optimize CodeGraph graphify
mq deadline dispatch request 3.20s ✅ dd_dispatch_prio_aged_requests block/mq-deadline.c:564 0.99s ❌ struct request 23.10s ❌ u64
ext4 write iter 3.28s ✅ ext4_buffered_write_iter fs/ext4/file.c:285 0.90s ❌ function iter 22.45s ❌ u32
spinlock irqsave 3.64s ✅ __raw_spin_lock_irqsave 0.66s ❌ type_alias SpinLock 23.07s ❌ u32
tcp congestion control 3.79s ✅ proc_tcp_available_congestion_control 0.86s ❌ struct tcp 23.69s ❌ u64
page allocation failure 4.31s ❌ enum … 0.85s ❌ constant page 22.77s ❌ kcalloc()
median / useful top hit 3.64s · 4 of 5 0.86s · 0 of 5 23.07s · 0 of 5

ripgrep returns matching lines for these, sooner than any graph — genuinely useful, a different artifact, so it isn't scored against a symbol rule.

CodeGraph is 4.2× faster and got none of them. FTS5 OR-matches each word and ranks by frequency, so a multi-word question returns the generic struct literally named request / tcp / spinlock. graphify returns u64/u32 from netfilter/x_tables.h for four different questions — a constant, not an answer.

We are the slowest graph tool that answers the question. Caveats: this is a 5-question judged sample against a stated rule, not a blind graded run like the one below — and we got one of five wrong too.

The CodeGraph column was re-measured on 2026-08-16 and these numbers replace the earlier ones. The first harness passed only the FIRST WORD of each question to CodeGraph while every other tool got the whole phrase, so its timings were taken on an easier question than ours — the bug is recorded at benchmarks/bench_multi.py's codegraph spec. Re-run against the same pinned index (sha 572d22bf, versions.json pinned:true) with the full phrase, its median moves 0.79s → 0.86s and the ratio 4.7× → 4.2×. Its ANSWERS are unchanged: still struct request, function iter, type_alias SpinLock, struct tcp — 0 of 5.

Our column was re-taken at the same time on a machine at load average 15.5, so if anything it is pessimistic. Neither column is a quiet-box number.

Answer quality — graded, not asserted

gorilla/mux, 12 hand-verified questions, 3 runs, n=36 answers per arm, gpt-4o-mini. Scored deterministically against expected facts; the grader never sees which arm produced the answer.

shell (ripgrep) ctx-optimize graphify
correctness 35% 67% 40%
· impact — "who calls this" (8q) 29% 79% 42%
· locate — "where is X" (4q) 47% 42% 36%
false claims 0 0 1
empty answers 4 0 0
tool calls / run 42.7 15.0 26.0
cost / run $0.0051 $0.0040 $0.0070

grep wins "where is X". We win "what breaks if I change it." Two caveats that ride with these numbers: part of the gap is cheap-model weakness rather than a tool ceiling — re-run on a frontier model before quoting it as a ceiling — and a known defect (ambiguous method names collapse the call graph) means the 79% was scored despite a live bug, not because the graph is complete. Method, every failure, and the defects: proof/agent/RESULTS-QUALITY.md.

ripgrep is faster than us, and that's fine

On raw latency, grep-class tools win: on flask, ripgrep 11ms and ast-grep 17ms vs our 12ms (plain grep: 253ms); on graphify-src, rg 23ms and ast-grep 56ms vs our 27ms. It's true and it isn't the point: ripgrep returns matching lines; ctx-optimize returns a resolved symbol — signature, callers, callees, blast radius, each with file:line. rg cannot answer "who calls this". Exhaustive literal-string sweeps stay grep's job, and we tell agents exactly that in the shipped instructions card.

Raw data and methodology: benchmarks/. Agent-level harness (same model, three ways, provider's own accounting) and the model ladder: proof/agent/ — reproducible from a clean runner via .github/workflows/benchmark.yml.

More

CLI reference · monorepos · native sources · sharing the store · custom adapters · grammar & route packs · agent integration · cookbook · troubleshooting · design & lineage · vision · standing critique

Community & license

Questions, bugs, or you built something with it? Join AgentNexus — a Discord for people building with AI agents, #ctx-optimize channel.

MIT © 2026 Muthukumaran Navaneethakrishnan · made by muthuishere.

Directories

Path Synopsis
cmd
ctx-optimize command
ctx-optimize — gather a codebase (and its world) into one local store an agent answers from.
ctx-optimize — gather a codebase (and its world) into one local store an agent answers from.
ctx-optimize-adapters command
ctx-optimize-adapters — the capture companion: every database/queue/API driver links HERE (via the connectors blank import), keeping the main ctx-optimize binary driver-free and its hot paths byte-identical.
ctx-optimize-adapters — the capture companion: every database/queue/API driver links HERE (via the connectors blank import), keeping the main ctx-optimize binary driver-free and its hot paths byte-identical.
internal
adapterscli
Package adapterscli is the entry for ctx-optimize-adapters — the capture companion (ADR 2026-07-17, "FINAL architecture: companion binary after all").
Package adapterscli is the entry for ctx-optimize-adapters — the capture companion (ADR 2026-07-17, "FINAL architecture: companion binary after all").
analyze
Package analyze is the deterministic graph-walking layer: shortest path, reverse impact (affected), node explanation, hubs (god nodes).
Package analyze is the deterministic graph-walking layer: shortest path, reverse impact (affected), node explanation, hubs (god nodes).
app
Package app is the CLI: a deliberately dumb front over the internal packages.
Package app is the CLI: a deliberately dumb front over the internal packages.
audit
Package audit is the append-only change log for every mutation door — dashboard endpoints and CLI verbs route through the same writer, so a human can always answer "who changed what, when" from one plain file:
Package audit is the append-only change log for every mutation door — dashboard endpoints and CLI verbs route through the same writer, so a human can always answer "who changed what, when" from one plain file:
boundaries
ast.go — the boundary lane's matcher, as DATA over the AST (ADR 2026-08-14-boundaries-on-the-ast).
ast.go — the boundary lane's matcher, as DATA over the AST (ADR 2026-08-14-boundaries-on-the-ast).
dashboard
Package dashboard serves the local store visually — an embedded React app (go:embed, built offline, no CDN, ZERO external requests) plus a JSON API over the same files queries use.
Package dashboard serves the local store visually — an embedded React app (go:embed, built offline, no CDN, ZERO external requests) plus a JSON API over the same files queries use.
export
Package export renders the graph for other tools: GraphML (yEd, Gephi, networkx), an Obsidian vault (wikilinked notes), and CSV pairs (spreadsheets, pandas, Neo4j LOAD CSV).
Package export renders the graph for other tools: GraphML (yEd, Gephi, networkx), an Obsidian vault (wikilinked notes), and CSV pairs (spreadsheets, pandas, Neo4j LOAD CSV).
extract/code
boundarysites.go — the boundary lane's matcher over the AST (ADR 2026-08-14-boundaries-on-the-ast).
boundarysites.go — the boundary lane's matcher over the AST (ADR 2026-08-14-boundaries-on-the-ast).
extract/deplink
Package deplink is the cross-lane linker (ADR 2026-07-23-code-dependency- edges): it bridges the code lane's module:// import targets to the manifest lane's dep: nodes with resolves_to edges, so the graph answers "which files use package X" and `affected dep:npm/react` crosses the dependency boundary.
Package deplink is the cross-lane linker (ADR 2026-07-23-code-dependency- edges): it bridges the code lane's module:// import targets to the manifest lane's dep: nodes with resolves_to edges, so the graph answers "which files use package X" and `affected dep:npm/react` crosses the dependency boundary.
extract/githistory
Package githistory is the tier-1 co-change producer: it derives "these files change together" edges purely from `git log` — no AST, no content read.
Package githistory is the tier-1 co-change producer: it derives "these files change together" edges purely from `git log` — no AST, no content read.
extract/ignore
Package ignore answers "is this path gitignored?" with git's OWN semantics — nested .gitignore files, negations, global excludes — by asking git once per gather instead of reimplementing the spec.
Package ignore answers "is this path gitignored?" with git's OWN semantics — nested .gitignore files, negations, global excludes — by asking git once per gather instead of reimplementing the spec.
extract/manifests
cargo.go — Cargo.toml recognizer (ADR 2026-07-25-structured-formats S7), table-anchored on the same walker as pyproject.go.
cargo.go — Cargo.toml recognizer (ADR 2026-07-25-structured-formats S7), table-anchored on the same walker as pyproject.go.
extract/markdown
Package markdown is the first tier-1 producer: deterministic extraction of markdown/plain-text documents into the one emit schema.
Package markdown is the first tier-1 producer: deterministic extraction of markdown/plain-text documents into the one emit schema.
extract/tomlwalk
Package tomlwalk is the shared TOML table walker used by the manifests producer's pyproject/Cargo lanes.
Package tomlwalk is the shared TOML table walker used by the manifests producer's pyproject/Cargo lanes.
extract/yamlwalk
Package yamlwalk is the shared indentation-based YAML line walker used by the markdown producer's route lane (openapi/drupal/ingress) and the manifests producer's k8s lane.
Package yamlwalk is the shared indentation-based YAML line walker used by the markdown producer's route lane (openapi/drupal/ingress) and the manifests producer's k8s lane.
feedback
Package feedback is the deterministic learning loop: the host agent saves how a store answer worked out (Result → memory/results.ndjson), and Reflect aggregates those results — exponential half-life decay, no LLM — into Lessons plus a byte-stable reflections/LESSONS.md.
Package feedback is the deterministic learning loop: the host agent saves how a store answer worked out (Result → memory/results.ndjson), and Reflect aggregates those results — exponential half-life decay, no LLM — into Lessons plus a byte-stable reflections/LESSONS.md.
freshness
Package freshness compares a store's recorded source provenance (the git HEAD captured at add time) against the source repo's current HEAD, so an agent can tell whether the store still reflects the code or has fallen behind.
Package freshness compares a store's recorded source provenance (the git HEAD captured at add time) against the source repo's current HEAD, so an agent can tell whether the store still reflects the code or has fallen behind.
gitinfo
Package gitinfo is the one place that shells out to git for read-only reflection.
Package gitinfo is the one place that shells out to git for read-only reflection.
golden
Package golden is the never-break acceptance net: it gathers known repos — two small committed fixtures (a multi-module config repo and a plain csproj/sln repo) plus env-gated real corpora (linux, Newtonsoft.Json) — and asserts the extraction contract as exact golden snapshots and named landmark facts.
Package golden is the never-break acceptance net: it gathers known repos — two small committed fixtures (a multi-module config repo and a plain csproj/sln repo) plus env-gated real corpora (linux, Newtonsoft.Json) — and asserts the extraction contract as exact golden snapshots and named landmark facts.
grammar
Package grammar is `ctx-optimize grammar build` — turn ANY tree-sitter grammar into a drop-in pack (<name>.wasm + <name>.json) with no shell script and nothing preinstalled: grammar source comes from a local dir or a GitHub tarball (no git), the compiler is zig (PATH or auto-downloaded, see zig.go), the tree-sitter runtime is fetched once and cached, and the JSON mapping skeleton is auto-suggested from the grammar's own node-types.json.
Package grammar is `ctx-optimize grammar build` — turn ANY tree-sitter grammar into a drop-in pack (<name>.wasm + <name>.json) with no shell script and nothing preinstalled: grammar source comes from a local dir or a GitHub tarball (no git), the compiler is zig (PATH or auto-downloaded, see zig.go), the tree-sitter runtime is fetched once and cached, and the JSON mapping skeleton is auto-suggested from the grammar's own node-types.json.
graphfilter
Package graphfilter is the ONE predicate + projection engine shared by every read verb (nodes/edges/deps, export, query pre-rank narrowing, hubs, affected) so consumers never pipe our output through jq/python (ADR 2026-07-24-portable-export-consumption).
Package graphfilter is the ONE predicate + projection engine shared by every read verb (nodes/edges/deps, export, query pre-rank narrowing, hubs, affected) so consumers never pipe our output through jq/python (ADR 2026-07-24-portable-export-consumption).
navigator
Package navigator writes the multi-module root's first-class artifact: a small module index instead of a giant merged graph.
Package navigator writes the multi-module root's first-class artifact: a small module index instead of a giant merged graph.
project
instructions.md — the committed, self-contained usage card (ADR 2026-07-17-bundled-adapter-templates, "Scaffold additions").
instructions.md — the committed, self-contained usage card (ADR 2026-07-17-bundled-adapter-templates, "Scaffold additions").
query
Package query answers questions from the local store — lexical scoring (IDF-weighted token overlap) over node labels/sources, then 1-hop neighborhood expansion under a token budget.
Package query answers questions from the local store — lexical scoring (IDF-weighted token overlap) over node labels/sources, then 1-hop neighborhood expansion under a token budget.
scan
Package scan discovers module roots inside a repository — the generator half of multi-module support.
Package scan discovers module roots inside a repository — the generator half of multi-module support.
scene
Package scene derives a DRAWABLE architecture scene from a store's graph.
Package scene derives a DRAWABLE architecture scene from a store's graph.
schema
Package schema is the emit contract — THE load-bearing boundary of ctx-optimize.
Package schema is the emit contract — THE load-bearing boundary of ctx-optimize.
search
Package search is the cross-OS literal sweep (ADR 2026-08-13 boundary-model-and-defaults, D4).
Package search is the cross-OS literal sweep (ADR 2026-08-13 boundary-model-and-defaults, D4).
selfupdate
Package selfupdate updates the ctx-optimize binary itself.
Package selfupdate updates the ctx-optimize binary itself.
skills
Package skills embeds the bundled agent skill and installs it — the binary ships via npm/brew with no repo alongside, so embed-and-write-out is the only reliable delivery.
Package skills embeds the bundled agent skill and installs it — the binary ships via npm/brew with no repo alongside, so embed-and-write-out is the only reliable delivery.
sources
Exec bridge (ADR 2026-07-17, "FINAL architecture: companion binary after all"): the MAIN binary carries zero driver imports — real connectors live in internal/sources/connectors, compiled ONLY into the sibling `ctx-optimize-adapters` binary.
Exec bridge (ADR 2026-07-17, "FINAL architecture: companion binary after all"): the MAIN binary carries zero driver imports — real connectors live in internal/sources/connectors, compiled ONLY into the sibling `ctx-optimize-adapters` binary.
sources/connectors
mssql.go — the mssql:// / sqlserver:// native-source connector (ADR 2026-07-17-bundled-adapter-templates, Stage 2).
mssql.go — the mssql:// / sqlserver:// native-source connector (ADR 2026-07-17-bundled-adapter-templates, Stage 2).
store
Package store is the central, file-based artifact store — the "gathered world".
Package store is the central, file-based artifact store — the "gathered world".
usage
Package usage is the served-counter: every read verb appends one ndjson line (what was asked, how many hits, bytes out, duration) to the store's metrics file.
Package usage is the served-counter: every read verb appends one ndjson line (what was asked, how many hits, bytes out, duration) to the store's metrics file.
version
Package version carries the build-time version stamp.
Package version carries the build-time version stamp.
wiki
Package wiki renders the store's graph into an agent-crawlable markdown wiki — pages derived from nodes+edges ONLY, no LLM, no interpretation (graphify's wiki.py proved the shape works zero-model).
Package wiki renders the store's graph into an agent-crawlable markdown wiki — pages derived from nodes+edges ONLY, no LLM, no interpretation (graphify's wiki.py proved the shape works zero-model).
scripts
spikes/queryphases command
SPIKE: where does query's O(N) second actually go, and what would postings buy?
SPIKE: where does query's O(N) second actually go, and what would postings buy?

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL