# Set up Toggle for the way you work.

Toggle can do a lot. This page walks you through each feature so you can turn on exactly what you want — from basic recall to full autopilot.

## Get started

### Get your API key

Sign up at [x.toggle.pro](https://x.toggle.pro/), install the Chrome extension, then generate your key from the [integration page](https://x.toggle.pro/new/clawbot-integration).

### Install the Toggle Skill

Make sure you have the ClawHub CLI installed. If not, run:

```bash
npm i clawhub
```

Then install the Toggle skill:

```bash
clawhub install aleksandar-jive/toggle
```

### Configure & launch

Paste this into your Claw. It sets your API key, enables auto-sync every 3 hours, and turns on all default features.

```
You: Set up Toggle with my API key: [paste key here]. Enable auto-sync every 3 hours. Turn on daily digest at 6 PM and stale project nudges. Persist all data to memory. If I haven't stated my timezone also ask me about it before proceeding.
```

That's it. Your agent now has full context of your browser activity. Everything below is optional tuning.

## Choose what to turn on.

Each feature builds on the last. Start with what feels right and add more as you get comfortable.

### Instant Recall

Ask your agent anything about your recent work and get a real answer.

**WORKS IMMEDIATELY**

**What it does**

- “What was I working on?” — gets an answer based on actual browser activity, not memory
- “Pick up where I left off” — finds your last deep work session and describes exactly where you stopped
- “What did I do yesterday?” — full breakdown by project, time, and focus score

**Example conversation**

```
You: Where did I leave off on the API project?
Claw: Tuesday afternoon (2:15–4:30 PM) you were deep in the Kalshi API docs — 1.5h across 3 sessions. Last session ended on the authentication endpoint. Focus: 87. Want me to pull up those docs?
```

No setup needed beyond the API key. Just start asking.

### Auto-Sync

Background hourly sync so your agent always has fresh context — even without you asking.

**RECOMMENDED**

**What it does**

- Fetches your activity every hour and saves it to agent memory
- Enables multi-day history — your agent remembers last week, not just today
- Required for stale nudges, pattern detection, and predictions to work

**Tell your Claw**

```
You: Set up hourly auto-sync for Toggle
```

### Daily Digest

Automated end-of-day summary dropped into your DMs at 6 PM. No prompt.

**RECOMMENDED**

**What you get every day**

- Total work time, session count, and deepest focus area
- Open items you didn't finish — so nothing falls through the cracks
- Day-over-day comparison — focus trends, context switches, time spent

**What it looks like**

```
Claw: Your day: 5.2h across 4 sessions. Deepest focus on auth migration (2.1h, 94 focus). Stripe webhooks still open — you were 80% through. Context switches down to 3 from 6 yesterday.
```

**Tell your Claw**

```
You: Set up a daily digest at 6 PM
```

You can change the time anytime. Just say “change my digest to 8 PM.”

### Smart Nudges

Stale project alerts and context-switch warnings. Your agent watches your back.

**OPTIONAL**

**Two types of nudges**

- **Stale project** — project has 2+ hours invested but no activity in 48h. Your agent pings you before it goes cold.
- **Focus alert** — 3+ project switches in 30 minutes with focus score below 30. Your agent offers to help you lock in.

**Stale nudge example**

```
Claw: You haven't touched “Landing Page Deploy” in 3 days. Last session: 1.5h on responsive layout. Want me to pull up where you left off?
```

Activated automatically once auto-sync is running and history builds up. Say “I dropped that” to dismiss a project permanently.

### Pattern Detection

After 7+ days of data, ask your agent what to automate. It scans your history for repeating workflows.

**NEEDS 7+ DAYS**

**How it works**

- Scans 7 days of history for workflows that repeat 3+ times
- Matches project sequences — same tools visited in the same order
- Proposes an automation pipeline — only if the required skills are installed

**Example**

```
You: What repetitive stuff could you automate for me?
Claw: I noticed you check GitHub PR comments, update Notion, then post in Slack — 4 times this week, ~12 min each. Want me to automate that pipeline?
```

Requires auto-sync to be running. The longer it runs, the better the pattern detection gets.

### Predictions

Your agent learns your routines and anticipates what you're about to do next.

**NEEDS 5+ DAYS**

**Three types of predictions**

- **Routine prediction** — “It's Tuesday 10 AM — you usually start with PR reviews. Want me to pull up open PRs?”
- **Next-task prediction** — “You just wrapped PR reviews. You usually hop into Notion next — want me to open your sprint page?”
- **Session endurance** — “You're 85 minutes into the API integration — around when you usually take a break. Want me to bookmark where you are?”

Predictions activate automatically once 5 days of data exist. They self-correct — predictions you ignore get retired silently. Say “stop predicting” to pause for 7 days.

## Not sure? Pick a preset.

Three ready-made configurations depending on how much you want your agent to do.

### Daily Driver

Auto-sync + daily digest. Fresh context and a summary every evening.

**Send this to your Claw**

```
Set up Toggle with hourly auto-sync and a daily digest at 6 PM. Persist all data to memory.
```

### Full Awareness

Everything proactive — nudges, focus alerts, pattern detection.

**Send this to your Claw**

```
Set up Toggle with hourly auto-sync, daily digest at 6 PM, stale project nudges after 48h, and focus alerts when my score drops below 30. Persist all data to memory.
```

### Full Autopilot

Everything on. Your agent learns your routines and anticipates what's next.

**Send this to your Claw**

```
Set up Toggle with everything enabled: hourly auto-sync, daily digest at 6 PM, stale project nudges after 48h, focus alerts below 30, pattern detection after 7 days, and predictive suggestions after 5 days. Persist all data to memory.
```

## Settings reference

All of these are adjustable. Tell your agent to change any setting, or edit state.yaml directly.

| Setting                          | Default            | What it controls                                      |
| -------------------------------- | ------------------ | ----------------------------------------------------- |
| digest_time                      | "18:00"          | When the daily digest fires. 24h format.              |
| nudge_stale_hours                | 48                 | Hours of inactivity before a project is flagged as stale. |
| focus_alert_threshold             | 30                 | Focus score below this triggers a context-switch alert. |
| focus_alert_window_min            | 20                 | Minutes of scattered behavior before alerting.         |
| pattern_detection_days            | 7                  | Days of history scanned for repeating workflows.       |
| pattern_min_occurrences           | 3                  | How many times a workflow must repeat before suggesting automation. |
| prediction_min_days               | 5                  | Minimum days of data before predictions activate.      |
| prediction_confidence_min         | 3                  | Minimum occurrences of a routine before it becomes a prediction. |
| timezone                         | null               | Your local timezone. Set once — used for all timestamps and scheduling.
