Exa Monitor Skill
Polls the Exa search engine every 4 hours for topics configured in EXA_MONITOR_TOPICS. Deduplicates results against previously seen URLs, stores new summaries in named memory, and integrates with the morning briefing loop.
Setup
Set EXA_MONITOR_TOPICS in .env:
EXA_MONITOR_TOPICS=["Claude AI updates","agent frameworks","LLM tooling","AI safety"]
Start the monitor loop:
/loop 4h Skill({ skill: 'exa-monitor' })
Or via CronCreate:
CronCreate({
schedule: '0 */4 * * *',
task: "Invoke Skill({ skill: 'exa-monitor' }) to fetch new Exa search results",
});
Core Logic
Step 1: Load Topics and Seen URLs
let topics;
try {
topics = JSON.parse(process.env.EXA_MONITOR_TOPICS || '["Claude AI updates","agent frameworks"]');
} catch (_e) {
topics = ['Claude AI updates', 'agent frameworks'];
}
// Load previously seen URLs from memory
const seenRaw = await readMemory('exa-seen-urls');
const seenUrls = new Set(seenRaw ? JSON.parse(seenRaw) : []);
Step 2: Search Each Topic via Exa MCP
// Use Exa MCP tool (preferred — returns structured results)
// Skill({ skill: 'exa-monitor' }) invokes mcp__Exa__web_search_exa internally:
// mcp__Exa__web_search_exa({ query: topic, numResults: 5, useAutoprompt: true })
// Falls back to mcp__Exa__get_code_context_exa for technical topics
Step 3: Filter and Deduplicate
const newResults = [];
for (const result of exaResults) {
if (seenUrls.has(result.url)) continue;
seenUrls.add(result.url);
newResults.push({
title: result.title,
url: result.url,
summary: result.text?.slice(0, 400) || result.highlights?.join(' ') || '',
topic,
publishedDate: result.publishedDate,
});
}
// Persist seen URLs via named memory (cap at 2000)
const seenArr = [...seenUrls].slice(-2000);
await writeMemory('exa-seen-urls', JSON.stringify(seenArr));
Step 4: Append to Digest
if (newResults.length > 0) {
const digest = newResults
.map(
r =>
`## ${r.title}\n**Topic:** ${r.topic}\n**Published:** ${r.publishedDate || 'unknown'}\n${r.summary}...\n[Read →](${r.url})\n`
)
.join('\n---\n');
// Append to exa-digest.md
const existing = fs.existsSync('.claude/context/memory/named/exa-digest.md')
? fs.readFileSync('.claude/context/memory/named/exa-digest.md', 'utf8')
: '';
fs.writeFileSync(
'.claude/context/memory/named/exa-digest.md',
`${existing}\n\n## Exa Update — ${new Date().toISOString().slice(0, 10)}\n\n${digest}`
);
}
Integration with Morning Briefing
/loop at 8:00am Read .claude/context/memory/named/exa-digest.md and arxiv-digest.md. Summarize the most relevant news and papers for agent-studio development. Highlight any urgent developments.
Configuration Reference
| Variable |
Default |
Description |
EXA_MONITOR_TOPICS |
["Claude AI updates"] |
JSON array of search topics |
EXA_MAX_RESULTS |
5 |
Max results per topic per run |
EXA_AUTOPROMPT |
true |
Let Exa optimize the query automatically |
Deduplication
- Seen URLs stored via
writeMemory('exa-seen-urls', ...) (named memory API)
- Capped at 2000 most recent URLs
- Reset with:
await writeMemory('exa-seen-urls', '[]')
Related Skills
scheduled-tasks — CronCreate API
arxiv-monitor — ArXiv companion monitor for academic papers
heartbeat — Full heartbeat ecosystem including this loop
memory-search — Search the exa-digest for specific topics
1---2name: exa-monitor3version: 1.0.04description: Scheduled Exa web search monitor. Uses CronCreate to search configured topics every 4 hours via mcp__Exa__web_search_exa, deduplicates URLs via MemoryRecord, and stores summaries for morning briefing integration.5category: research6trigger: when user wants to monitor web topics, schedule web research updates, or integrate news discovery into the heartbeat ecosystem7tools: [Bash, Read, Write, Skill, MemoryRecord, CronCreate, CronList, CronDelete]8dependencies: [scheduled-tasks]9tags: [exa, web-search, research, monitor, scheduled, heartbeat, loop, news]10model: sonnet11invoked_by: both12user_invocable: true13verified: true14created_by: direct (retroactive attribution)15compliance_status: legacy-direct-creation16source: builtin17trust_score: 10018provenance_sha: 9d0e86c94fbf38e519metadata:20 source: https://skillmd.com/skills/oimiragieo/exa-monitor21---2223<!-- Agent: nodejs-pro | Task: #12 | Session: 2026-03-08 -->2425# Exa Monitor Skill2627Polls the Exa search engine every 4 hours for topics configured in `EXA_MONITOR_TOPICS`. Deduplicates results against previously seen URLs, stores new summaries in named memory, and integrates with the morning briefing loop.2829---3031## Setup32331. Set `EXA_MONITOR_TOPICS` in `.env`:3435 ```36 EXA_MONITOR_TOPICS=["Claude AI updates","agent frameworks","LLM tooling","AI safety"]37 ```38392. Start the monitor loop:4041 ```42 /loop 4h Skill({ skill: 'exa-monitor' })43 ```4445 Or via CronCreate:4647 ```javascript48 CronCreate({49 schedule: '0 */4 * * *',50 task: "Invoke Skill({ skill: 'exa-monitor' }) to fetch new Exa search results",51 });52 ```5354---5556## Core Logic5758### Step 1: Load Topics and Seen URLs5960```javascript61let topics;62try {63 topics = JSON.parse(process.env.EXA_MONITOR_TOPICS || '["Claude AI updates","agent frameworks"]');64} catch (_e) {65 topics = ['Claude AI updates', 'agent frameworks'];66}6768// Load previously seen URLs from memory69const seenRaw = await readMemory('exa-seen-urls');70const seenUrls = new Set(seenRaw ? JSON.parse(seenRaw) : []);71```7273### Step 2: Search Each Topic via Exa MCP7475```javascript76// Use Exa MCP tool (preferred — returns structured results)77// Skill({ skill: 'exa-monitor' }) invokes mcp__Exa__web_search_exa internally:78// mcp__Exa__web_search_exa({ query: topic, numResults: 5, useAutoprompt: true })7980// Falls back to mcp__Exa__get_code_context_exa for technical topics81```8283### Step 3: Filter and Deduplicate8485```javascript86const newResults = [];87for (const result of exaResults) {88 if (seenUrls.has(result.url)) continue;89 seenUrls.add(result.url);90 newResults.push({91 title: result.title,92 url: result.url,93 summary: result.text?.slice(0, 400) || result.highlights?.join(' ') || '',94 topic,95 publishedDate: result.publishedDate,96 });97}9899// Persist seen URLs via named memory (cap at 2000)100const seenArr = [...seenUrls].slice(-2000);101await writeMemory('exa-seen-urls', JSON.stringify(seenArr));102```103104### Step 4: Append to Digest105106```javascript107if (newResults.length > 0) {108 const digest = newResults109 .map(110 r =>111 `## ${r.title}\n**Topic:** ${r.topic}\n**Published:** ${r.publishedDate || 'unknown'}\n${r.summary}...\n[Read →](${r.url})\n`112 )113 .join('\n---\n');114115 // Append to exa-digest.md116 const existing = fs.existsSync('.claude/context/memory/named/exa-digest.md')117 ? fs.readFileSync('.claude/context/memory/named/exa-digest.md', 'utf8')118 : '';119 fs.writeFileSync(120 '.claude/context/memory/named/exa-digest.md',121 `${existing}\n\n## Exa Update — ${new Date().toISOString().slice(0, 10)}\n\n${digest}`122 );123}124```125126---127128## Integration with Morning Briefing129130```131/loop at 8:00am Read .claude/context/memory/named/exa-digest.md and arxiv-digest.md. Summarize the most relevant news and papers for agent-studio development. Highlight any urgent developments.132```133134---135136## Configuration Reference137138| Variable | Default | Description |139| -------------------- | ----------------------- | ---------------------------------------- |140| `EXA_MONITOR_TOPICS` | `["Claude AI updates"]` | JSON array of search topics |141| `EXA_MAX_RESULTS` | `5` | Max results per topic per run |142| `EXA_AUTOPROMPT` | `true` | Let Exa optimize the query automatically |143144---145146## Deduplication147148- Seen URLs stored via `writeMemory('exa-seen-urls', ...)` (named memory API)149- Capped at 2000 most recent URLs150- Reset with: `await writeMemory('exa-seen-urls', '[]')`151152---153154## Related Skills155156- `scheduled-tasks` — CronCreate API157- `arxiv-monitor` — ArXiv companion monitor for academic papers158- `heartbeat` — Full heartbeat ecosystem including this loop159- `memory-search` — Search the exa-digest for specific topics