# Setup guide — Literature Synthesis Agent

## 1. Install and connect sources

Install the agent and connect your source library.

```
pipx install lit-synth-agent
lit-synth-agent connect --library zotero --pdfs ./papers
lit-synth-agent doctor
```

## 2. Configure citation guardrails

No fabricated citations/findings is enforced here.

```
cp .env.example .env
ANTHROPIC_API_KEY=sk-ant-...
CITE_PROVIDED_ONLY=true
NO_FABRICATED_CITATIONS=true
WEIGH_EVIDENCE=true
```

## 3. Set the review format

Define the synthesis structure and strength criteria.

```
# synth.yml
sections: [findings, consensus, conflicts, gaps]
evidence_criteria: [study_type, sample_size, recency, peer_reviewed]
```

## 4. Run a synthesis

Synthesize a source set and review citations and conflicts.

```
lit-synth-agent run --sources ./papers --question 'effect of X on Y' --explain
# prints findings (cited) + consensus + conflicts + gaps
```

## 5. Wire into research

Synthesize curated source sets into cited reviews.

```
# curated sources -> cited synthesis -> researcher verifies against originals
```
