# Research while I sleep

> I tag a question for later. At night a worker researches it within hard budget caps. A second model checks the main claims. The answer waits for me in the morning.

- Site: Ideas In Reach (https://ideasinreach.com/)
- Page: https://ideasinreach.com/chapters/night-research/
- Voice: "I" is Paul, the owner. "Alfred" is the AI helper. Lines marked **Alfred:** are Alfred's own words.
- Kind: Chapter 4 of 9 (started 2026-10-14)
- Before this: [Chapter 3: Giving it a name](https://ideasinreach.com/chapters/a-name/index.md)
- After this: [Chapter 5: The toolbox](https://ideasinreach.com/chapters/toolbox/index.md)

## Does this fit you?

- Who it is for: Anyone with a list of 'I must look into that' items that never get done.
- What you need: A machine that is always on, a to-do list in a text file, and a helper that can run with no screen.
- Cost: About 25 to 90 cents for each question. Capped at 30 dollars a month.
- Time: Two hours to build. Then one tag for each question.

I have more questions than evenings. This was the first time the helper did real work when I was not there.

## What I wanted

1. To write a question down in one line and forget it.
2. An answer that fits my house, not a general one.
3. A hard limit on what a night can cost.

## What we did

1. I add a line to my to-do list and tag it `#researchlater`.
2. At night, a worker on the always-on box takes the oldest open item.
3. It starts a helper with no screen, gives it the question, and lets it write one report file. It may write nothing else.
4. A second, cheaper model checks the main claims and adds a "Fact check" section.
5. The worker ticks the item on the list and adds the report to a news file.
6. In the morning I ask "any news?" and read the short answer first.

### The limits

| Limit | Value |
|---|---|
| Items in one night | 5 |
| Cost cap for one item | 3 dollars |
| Cost cap for one month | 30 dollars |
| Turns for one item | 40 |
| Fact check cap | 40 cents |

A real item costs about 25 to 90 cents. The caps are there for the night when something goes wrong.

### The prompts

The research prompt, as the worker sends it:

```text
You are Alfred's overnight worker. Do this item from the owner's life to-do list (section: $cat):

  $text

Research it on the web and write the result to the file $out (create it; this is the ONLY file you may write).
Tailor it to the owner's setup: first read CLAUDE.md and memory/MEMORY.md, then the memory notes they point to
for the machines that matter here. Use the facts there (hardware, what runs where) and don't say something is
unknown without looking. Do real research: several rounds of searches, and read the projects' own pages
(READMEs, docs) for current versions, hardware needs and licences, not just search snippets.
Write in plain words for a non-expert: start with a short answer/recommendation, then the options compared
(a table is fine), then concrete next steps, then sources (links).
After the sources, end with a section headed '## Blocked sources': one line per page you tried to open and
could not, in the form '- <site> | <what you wanted from it> | mattered: yes or no'.
If nothing was blocked, write 'None.' under the heading. Report a block and move on; don't try to get around it.
Keep it under about 1,500 words. Don't edit any other file and don't try git or shell commands; the script
handles the to-do list and commits. If you can't do the item, write the file anyway explaining what blocked you.
```

The fact check prompt:

```text
You are a sceptical fact checker. Read the research report $out. Pick the 5-8 claims that matter most for the
owner's decision (prices, versions, hardware needs, compatibility, what a product can or can't do, quotes).
For each, open the cited source, or search if no source is cited, and check it. Be strict: secondhand
summaries don't count as confirmed. Then append to $out a section exactly like:

## Fact check
*Second pass by a separate checker ($VERIFY_MODEL), $today.*
- ✅ <claim, short> (confirmed: <source>)
- ⚠️ <claim> (not confirmed: <why: source doesn't say it / page unreachable / only secondhand>)
- ❌ <claim> (wrong: <what the source actually says>)
**Bottom line:** <one sentence: can the owner rely on the short answer?>

Plain words. Don't rewrite the report and don't edit any other file.
```

## What I learned

1. **A report can sound sure and be wrong.** Since 2026-11-06 a second model opens the sources and marks each main claim: confirmed, not confirmed, or wrong.
2. **Some sites block automated readers.** The worker must not go around a block. It lists what it could not open. Then I know what to open myself.
3. **The answer must fit this house.** A general answer is of little use. The prompt makes the worker read the notes about my machines first.
4. **Caps let me sleep.** With no cap, a stuck job spends until someone sees it.

## Try it

```text
Write a script for a nightly timer. It takes the oldest line tagged
#researchlater from my to-do file, starts you with no screen and a hard
budget cap, and lets you write one report file: short answer first, then
options, next steps and sources. Then a second, cheaper run checks the 5 to
8 claims that matter most. Tick the item when the report exists.
```


## Why this way (decisions)

- 2026-11-06: Who checks the overnight research? Options: Nobody: trust the report; A second, cheaper model checks the main claims; I check every source by hand. Picked: A second, cheaper model checks the main claims. Reason: A report can sound sure and still be wrong. The second pass opens the sources for the 5 to 8 claims that matter most. It is capped at 40 cents.


## What we passed on

- 2026-11-06: An agent loop with no budget cap Let an agent run the same prompt again and again until the work is done, with nobody watching. Why it looked good: People report large jobs finished overnight this way. Why I passed: With no cap, a stuck loop spends until someone sees it. Our overnight worker has hard caps for each item, each night and each month. What would change my mind: Nothing. A loop is fine. A loop with no cap is not. Idea from: the 'Ralph' loop by Geoffrey Huntley.
- 2026-11-09: Scrape a social network for the watch list Read posts from a social network that gives outsiders no feed. Why it looked good: Some people on my watch list post only there. Why I passed: It is against the site's rules, and scrapers break often. The watch list uses public feeds and video channels. What would change my mind: An official feed at a fair price.

