# Setup guide — Competitive Intelligence Digest Agent

## 1. Install and connect public sources

Install the agent and connect public monitoring sources.

```
pipx install compintel-agent
compintel-agent connect --sources news-api,changelogs,rss
compintel-agent doctor
```

## 2. Configure ethics & confidence guardrails

Public-only sourcing and confidence labeling are enforced here.

```
cp .env.example .env
ANTHROPIC_API_KEY=sk-ant-...
PUBLIC_SOURCES_ONLY=true
LABEL_CONFIDENCE=true
FLAG_STALE_AFTER_DAYS=30
```

## 3. Define competitors & sources

List who to track and which public sources to watch.

```
# compintel.yml
competitors: [Acme, Globex, Initech]
sources: { Acme: [acme.com/blog, acme.com/pricing], news: [techcrunch, theverge] }
categories: [product, pricing, positioning, news, hiring]
```

## 4. Generate a digest

Run a digest and review citations and confidence labels.

```
compintel-agent run --period 7d --explain
# prints items with status/source/date + notable changes + rumors
```

## 5. Wire into your cadence

Schedule a recurring digest to your strategy channel.

```
# weekly job -> cited digest to #competitive-intel (public sources only)
```
