@@ -58,20 +58,20 @@ it again (`scripts/semantic-release-prepare.mjs` runs `pnpm --filter @jcode.labs
5858- UI package: ** Ragmir UI** , unpublished workspace package ` @jcode.labs/ragmir-ui ` .
5959- Landing package: unpublished workspace package ` @jcode.labs/ragmir-landing ` .
6060- App package: unpublished workspace package ` @jcode.labs/ragmir-app ` .
61- - CLI binary: ** ` ragmir ` ** (` packages/ragmir-core/bin.ragmir ` -> ` packages/ragmir-core/dist/cli.js ` ).
62- The ` kb ` binary remains only as a legacy compatibility alias. Commands: ` init ` , ` setup ` , ` ingest ` ,
63- ` sources add ` , ` sources list ` , ` models pull ` , ` search ` , ` ask ` , ` research ` , ` evaluate ` , ` audit ` ,
64- ` usage-report ` , ` status ` , ` security-audit ` , ` destroy-index ` , ` audio ` , ` doctor ` , ` serve-mcp ` ,
65- ` skill-path ` , ` install-skill ` , ` install-agent ` .
66- - TTS CLI binary: ** ` ragmir-tts ` ** (` packages/ragmir-tts/dist/cli.js ` ). Commands: ` doctor ` , ` render ` .
67- - Project config/state in the target repo: ** ` .ragmir/ ` ** (` config.json ` , ` sources.txt ` , ` raw/ ` ,
68- ` storage/ ` , ` access.log ` , ` skills/ ` , reports, audio, and model caches). ** ` .kb/ ` ** and
69- ** ` private/ ` ** are legacy compatibility paths only.
61+ - CLI binary: ** ` rgr ` ** (` packages/ragmir-core/bin.rgr ` -> ` packages/ragmir-core/dist/cli.js ` ).
62+ ` ragmir ` and ` kb ` remain deprecated compatibility bins that warn users to migrate to ` rgr ` .
63+ Commands: ` init ` , ` setup ` , ` ingest ` , ` sources add ` , ` sources list ` , ` models pull ` , ` search ` ,
64+ ` ask ` , ` research ` , ` route-prompt ` , ` evaluate ` , ` audit ` , ` usage-report ` , ` status ` ,
65+ ` security-audit ` , ` destroy-index ` , ` audio ` , ` doctor ` , ` serve-mcp ` , ` skill-path ` ,
66+ ` install-skill ` , ` install-agent ` .
67+ - TTS CLI binary: ** ` rgr-tts ` ** (` packages/ragmir-tts/bin.rgr-tts ` -> ` packages/ragmir-tts/dist/cli.js ` ).
68+ ` ragmir-tts ` remains a deprecated compatibility bin. Commands: ` doctor ` , ` render ` .
69+ - Project config/state in the target repo: ** ` .ragmir/ ` ** (` config.json ` , ` raw/ ` , ` storage/ ` ,
70+ ` access.log ` , ` skills/ ` , reports, audio, and model caches).
7071- Environment overrides: ** ` RAGMIR_* ` ** (e.g. ` RAGMIR_EMBEDDING_PROVIDER ` , ` RAGMIR_CHUNK_SIZE ` ).
71- ** ` KB_* ` ** aliases remain only for existing automation.
7272- MCP tools exposed to agents: ** ` ragmir_* ` ** (` ragmir_status ` , ` ragmir_search ` , ` ragmir_ask ` ,
73- ` ragmir_research ` , ` ragmir_audit ` , ` ragmir_evaluate ` , ` ragmir_usage_report ` ,
74- ` ragmir_security_audit ` ).
73+ ` ragmir_research ` , ` ragmir_route_prompt ` , ` ragmir_audit ` , ` ragmir_evaluate ` ,
74+ ` ragmir_usage_report ` , ` ragmir_security_audit ` ).
7575
7676## Architecture and data flow
7777
@@ -97,7 +97,7 @@ synthesis in core).
9797
9898` packages/ragmir-tts ` is a separate ESM package. It defaults to Transformers.js for offline WAV
9999rendering without Python or ffmpeg, and uses ` edge-tts ` for high-quality MP3 only when explicitly
100- requested. Core ` ragmir audio` imports it dynamically.
100+ requested. Core ` rgr audio` imports it dynamically.
101101
102102` packages/ragmir-ui ` is the shared Tailwind 4 + React UI layer adapted from the WorkoutGen UI/landing
103103foundation, but with Ragmir tokens and no WorkoutGen product copy, analytics, CDN paths, or secrets.
@@ -108,22 +108,20 @@ desktop/mobile builds are explicit `pnpm --filter @jcode.labs/ragmir-app tauri:*
108108Key behaviors to keep in mind before editing:
109109
110110- ** Config resolution is caller-relative.** ` loadConfig ` walks up from ` cwd ` looking for
111- ` .ragmir/config.json ` , with fallback to legacy ` .kb/config.json ` . The package must resolve project
112- data from the caller's working directory, never from its own install path. Zod validates config;
113- ` RAGMIR_* ` env vars override, with ` KB_* ` kept as legacy aliases.
111+ ` .ragmir/config.json ` . The package must resolve project data from the caller's working directory,
112+ never from its own install path. Zod validates config; ` RAGMIR_* ` env vars override config.
114113- ** Two embedding providers, not interchangeable at runtime.** ` local-hash ` (default) is a 384-dim
115114 sha256 lexical embedding — fully offline, no model, * not semantic* . ` transformers ` lazily
116- ` import() ` s ` @huggingface/transformers ` with ` allowRemoteModels ` off by default. ` ragmir models pull`
117- and ` ragmir setup --semantic` are the explicit one-time remote-download paths for preloading the
115+ ` import() ` s ` @huggingface/transformers ` with ` allowRemoteModels ` off by default. ` rgr models pull`
116+ and ` rgr setup --semantic` are the explicit one-time remote-download paths for preloading the
118117 configured embedding model. The two providers produce different vectors, so ** switching providers
119- requires ` ragmir ingest --rebuild` ** .
118+ requires ` rgr ingest --rebuild` ** .
120119- ** Ingest is incremental by default.** It reuses rows whose checksum, embedding provider, and model
121120 still match, then overwrites the LanceDB table with reused + rebuilt rows. Use ` --rebuild ` to force
122121 every supported file through parsing, redaction, chunking, and embedding again.
123122- ** Privacy is a feature, not a side effect.** Redaction runs before embedding, the access log stores
124123 query hashes/metadata only (` access-log.ts ` ), MCP top-K is clamped to ` mcpMaxTopK ` , and
125- ` gitignore.ts ` keeps ` .ragmir/ ` ignored in target repos. ` security-audit ` also preserves legacy
126- warnings when a project still uses ` .kb/ ` or ` private/** ` . Preserve these guarantees.
124+ ` gitignore.ts ` keeps ` .ragmir/ ` ignored in target repos. Preserve these guarantees.
127125
128126Coding conventions (KISS, DRY, YAGNI, SOLID as applied here) live in ` AGENTS.md ` .
129127
0 commit comments