@lannguyensi/readme-first-resolver
v0.1.0
Published
Forces agents to read primary docs before any analysis
Readme
readme-first-resolver
Forces agents to read primary documentation before any analysis, and builds a system mental model from it. Part of the lan-tools agent grounding stack.
Problem
Agents often start with logs, processes, or guesses instead of:
- README
- Architecture docs
- Setup instructions
.env.example
Install
npm install -g @lannguyensi/readme-first-resolverUsage
# Resolve docs for a repo
readme-first resolve -p /projects/clawd-monitor
# Custom file list
readme-first resolve -p /projects/clawd-monitor -f README.md docs/architecture.md
# JSON output
readme-first resolve -p /projects/clawd-monitor --jsonExample Output
📖 README First Resolver
Status: ✅ Ready
System Summary:
Purpose: Monitors OpenClaw agents in real-time
Components: Frontend, Backend, Agent process
Runtime: Docker container deployment, systemd service
Config: GATEWAY_URL, TOKEN, PORT
Sources read: README.md, .env.example
Missing: docs/architecture.md
⚠ Unknowns:
- No architecture docs foundAPI
import { resolve } from '@lannguyensi/readme-first-resolver';
const result = resolve({
repo_path: '/projects/clawd-monitor',
must_read: ['README.md', '.env.example'],
});
// → { system_summary, unknowns, sources_read, sources_missing, ready_for_analysis }Rule
No root-cause claim is allowed without ready_for_analysis: true.
Part of the grounding stack
- domain-router
- readme-first-resolver ← you are here
- debug-playbook-engine
- evidence-ledger
- agent-entrypoint
