All workAndrew Cates.

Project 31 of 84

Dev RAG

A local, deterministic, LLM-free SQLite index of cross-repo infrastructure relationships (service, host, port, SSM path, secret, 1Password item), with the extractor, export and scrubber pieces that feed a planned hosted knowledge service.

Status
In progress
Area
In-Progress / Research
Last activity
2026
Live

No public deployment.

Stack
  • Node.js
  • node:sqlite / SQLite
  • yaml
  • node --test
  • JSON Schema
  • macOS launchd
  • GitHub App manifest flow
  • ripgrep

Highlights

  1. Built ./devrag, a deterministic, LLM-free cross-repo infrastructure index in Node.js and SQLite: 9 extractors over hostinger service definitions, secrets manifests, a fleet port registry, Zitadel sender config, ADR front matter and beads feed one provenance-tagged edges table, queried by 11 named recursive-CTE walks (host-of, depends-on, secret-consumers, chain, ...) that join service -> host -> port -> SSM path -> swarm secret -> 1Password item chains text search could not
  2. Ran blind, frozen held-out evaluations of the index against plain ripgrep (22 questions from 11 sessions, frozen before grading), then published a baseline correction when a worktree exclude glob was found to admit 10,438 of 14,902 files, and labelled every later score as tuning evidence rather than held-out
  3. Shipped a free-text lookup with a fixed JSON contract (devrag-lookup/1: max 12 items, under 12 KiB, 800 ms budget, degraded/stale flags) consumed by a Claude Code dossier-first plugin, plus a versioned devrag-lookup/2 contract with literal JSON Schemas and sha256 pins for an agent gateway that pins tool schemas
  4. Designed a fail-closed export path for a planned hosted knowledge service: git-object reads (git ls-tree/cat-file, no working tree), a single SOURCE_SPECS table with tested pathspecs, normal-sensitivity-only ingest/1 payloads with AWS account/ARN redaction and byte-identical output per commit set, covering 50 repos on the dev laptop
  5. Wrote a schema-aware secret scrubber (named token patterns, a Shannon-entropy rule with path/slug/hex exemptions, typed-field format checks, secret-named-key detection) that drops or redacts rows before facts leave the machine; hardened after review to catch AWS secret keys and URL passwords containing '/', with 0 rejects and 0 redactions on the 3,410-row real index
  6. Authored a RALPLAN-style deliberate-mode architecture plan (rev 4, Architect and Critic reviewed) for a hosted REST + MCP knowledge service on Supabase behind Cloudflare Access, with OIDC per-repo compare-and-swap ingest and a phased sensitivity model, broken into an epic of 31 tracked beads