ashlr

ashlr__orient

Meta-orientation. Answers "how does X work here?" in one round-trip — tree scan + file discovery + synthesis.

Server: ashlr-orient — servers/orient-server.ts

Replaces 3–5 orientation calls (tree + grep + multiple reads + one synthesis) with a single round-trip. Performs a baseline tree scan, keyword-derived file discovery (genome retriever if present, else ripgrep), snipCompact'd file reads, and local-LLM synthesis. Read-only — never writes project files.

Input schema

FieldTypeRequiredDescription
querystringyesQuestion about the codebase: 'how does auth work', 'where is X defined', 'what's the deploy flow'
dirstringnoProject root (default: process.cwd())
depth"quick" | "thorough"no'quick' (1 tool call + 3 reads, ~2s) | 'thorough' (tree + grep + 6 reads, ~4s, default)

Output format

Returns a structured answer synthesized from discovered file snippets:

[ashlr__orient] "how does the genome loop work?"  ·  7 files read  ·  −84% vs manual

The genome loop runs in two phases...
  [from servers/genome-server.ts:34] ...
  [from scripts/genome-propose.ts:12] ...

Savings baseline

Replaces a typical 5-call orientation sequence (tree + 3 greps + 2 reads). Savings vary with the query and repository.

When to use

Use ashlr__orient at the start of any task touching unfamiliar code. It is the primary entry point for the ashlr:explore sub-agent delegation pattern.

On this page