README.md
# Content Research (AgentRove native agent)
`agentrove.content-research` 0.1.2 · MIT · Node.js >= 20 · no npm dependencies · offline
Published by AgentRove (provisional, configurable name). Package identifiers keep the agentrove prefix for compatibility.
Turns a list of sources into a research brief you can check: the key points are **sentences copied
verbatim from your sources**, each linked to every source that says the same thing, and the brief
lists open questions where sources disagree or the evidence is thin. It is deterministic: the same
input always gives the same brief. No AI model is involved, so it cannot invent facts.
## Tool
| Tool | Side effects | What it does |
| --- | --- | --- |
| `build_brief` | none | Input: `topic` plus a `source_list` (`url`, `title`, optional `published_at`, `excerpt` or full `text`). Output: a `research_brief` (`topic`, `generated_at`, `key_points[{claim, sources, support_count, score}]`, `open_questions`). |
How it works:
1. Cleans each source (strips HTML), splits it into sentences (decimals, initials and common
abbreviations do not split), and drops questions, boilerplate ("subscribe", "cookie"...) and
sentences outside 6-60 words.
2. Scores sentences by overlap with the topic (and optional `focus_terms`, for example terms from a
`trend_report`), by how many sources share their words, and slightly by position.
3. Picks the best sentences, merging near-duplicates (word-set Jaccard >= `similarity_threshold`,
default 0.5). A near-duplicate from another source **corroborates** a point only if it states
the same figures, the same polarity and the same direction of change; otherwise it is recorded
as a disagreement. Common rise/fall verbs are compared as a direction rather than as words, so
"grew 30%" corroborates "rose 30%" and "fell 30%" disagrees with it. A sentence that adds a
figure the other does not mention (for example a comparison value) is not a disagreement.
4. Open questions are raised for: conflicting figures or dates between related sentences
(for example 30% vs 45%), one source negating another, opposite directions of change, points supported by one source only,
fewer than two usable sources, topic words no source mentions, and undated sources.
## Usage (Node CLI)
```sh
node bin/cli.js --help
node bin/cli.js build_brief --input brief-input.json
```
`brief-input.json`:
```json
{
"topic": "heat pump adoption in Europe",
"sources": [
{ "url": "https://energy.example.org/a", "title": "A", "published_at": "2026-01-10", "text": "Heat pump sales in Europe grew 30% in 2025, according to the industry association." },
{ "url": "https://news.example.com/b", "title": "B", "excerpt": "Heat pump sales in Europe grew 30% in 2025, the industry association said." }
],
"max_points": 8
}
```
The `items` output of the trend-research agent (`fetch_feeds`, `parse_feeds`, `fetch_hn`) is a
`source_list` and can be passed as `sources` directly. Only supply text you are permitted to use.
## Use as an MCP server
```sh
claude mcp add content-research -- node /absolute/path/to/content-research/bin/mcp.js
```
```json
{ "mcpServers": { "content-research": { "command": "node", "args": ["/absolute/path/to/content-research/bin/mcp.js"] } } }
```
`claude-code/SKILL.md` is a Claude Code skill that drives the CLI.
## Testing status
Tested with Node.js (Vitest, `tests/content-research.test.ts`, fixture sources only). It has **not
yet been verified inside Claude Code** or any other MCP client by AgentRove.
## Limitations
- Extractive only: it never rewrites or summarises across sentences, so a point may need context
from its source. Pronouns such as "it" are left as written.
- English-oriented stopwords, abbreviations and light stemming. Similarity is lexical (shared
words; only common rise/fall verbs are treated as synonyms), so paraphrases with different wording
are not merged and real disagreements phrased very
differently may be missed.
- Figure comparison understands percentages, currency amounts with symbols, plain numbers with
thousand/million/billion, years and common date formats. Number words ("three") are not parsed.
- It does not fetch URLs; pass the text yourself (or use trend-research to read feeds).
- A disagreement question means the sources differ, not that either is wrong. Check the sources.