Research with an agent¶
Analects is built to be an agent's research memory. The agent reads the graph before it starts, researches what the graph says is missing or doubtful, and writes back through the same rules a person does — every value quoted from a page it read.
Give the agent the skill¶
skills/analects/SKILL.md is the agent's manual: the loop,
the evidence rules, and every command that exists (a test keeps it in step with
the CLI). In Claude Code, install it as a skill:
mkdir -p ~/.claude/skills && cp -r skills/analects ~/.claude/skills/
Other agents: give it the file as instructions, or point it at
llms.txt.
Set up a graph with the agent¶
Ask the agent to set up a graph. Its set-up guide,
skills/analects/SETUP.md, has it:
1. ask what you track and how two records are told apart;
2. choose the shipped packs that fit, or write a new one with analects schema new;
3. record the packs, title and about line with analects init (D68);
4. make the first scope and plan its first sweep.
Name the agent¶
Work an agent stages lands in its own changeset, so you can review, merge or reject it as one piece:
ANALECTS_AS=/scout analects ... # or: analects --as ada/scout ...
analects review --from /scout
analects merge --changeset <id> # never --all on someone else's work
The loop¶
brief → research with sources in hand → find each mention → diff against what is held
→ stage events and claims → update the compiled truth → defer what cannot be placed
- Deep (one entity):
analects brief <entity>, research what it flags, write. - Wide (a set):
analects query --type data_center --where "region=TX"oranalects brief --set <watchlist>, then work the ranked worklist. - "Have we got all of them?" is a scope and a sweep, below.
Sweep a population¶
analects scope add example-sites --type data_center --anchor "Kilbrae Compute" \
--anchor-edges developer,operator --criteria "campuses Kilbrae Compute develops or operates"
analects scope channel from-pack example-sites # the pack's standard places to look
analects sweep plan example-sites # where the sweep stands
analects sweep brief example-sites --due --claim --out briefs/
Each brief is a whole prompt for one researcher: who belongs, how that channel works, what is already decided, and the JSON to hand back. Give one to each researcher (in Claude Code, one subagent each, in parallel); they read and write nothing. Then:
analects check --report report.md --scope example-sites --out checked/ # every quote checked
analects sweep record example-sites --results checked/results.json
Every URL the report cites ends up somewhere — a document, a candidate, a lead — and every candidate is decided: matched, added, excluded by a rule, or unsourced.
Find what is missing, across a set¶
analects gaps --scope example-sites # what each member lacks, by rule
analects refresh brief --scope example-sites # research tasks, dealt to several agents
analects refresh record --results results.json
analects review --queue # every staged claim: old → new, quote, support
What an agent must never do¶
- Write a value it cannot quote. Defer it instead (
analects defer --reason unsourced). - Quote a search snippet or a summary as if it had read the page.
- Name a member of the public who wrote in, objected or spoke.
- Merge its own work; a person decides.