# research

Answer a factual question from primary sources before you plan. Junji writes one cited note per question and leaves the plan and the board alone.

## When to use it

Use it when a plan depends on a fact you are not sure of: how an API paginates, what a library version supports, what the current code actually does. Run it any time after `begin`, as often as you like. It never moves `nextAction`. `plan` and `grill` also call it on their own when they hit a factual gap.

## How it works

1. Junji takes your questions from the message. If you only point at a document, it proposes a short list of factual gaps and asks before researching.
2. It investigates primary sources only: official docs, source code, specs, first-party APIs. Not blog posts about them.
3. It writes one note per question to `.koi/run/researches/NN-<slug>.md`, with the claims and their sources.

Notes are context, not decisions. `plan` and `grill` read every note before reasoning.

## Example

```text
/junji research Does the orders API return a cursor or a page number, and what is the maximum page size?
```

Check the note's sources, then continue planning.

## What can go wrong

- You asked a question that is really a decision ("should we use cursors?"). Research answers facts. Take decisions to `plan` or `grill`.
- No `.koi/run/` yet. Run `begin` first; `research` will not create the working folder.

## Cards to read next

- [![](/art/verbs/plan-card.webp) plan · Write the plan](/en/docs/junji/plan)
- [![](/art/verbs/design-card.webp) design · Define an interaction](/en/docs/junji/design)
