Xpersona
S

Sift

CLAWHUB · Unverified

Sift: web search, research synthesis, fact verification, entity extraction, and URL content extraction. The system's general research engine. Use for ANY task requiring web information: search, research, look up, investigate, find out, check if, fact check, compare, summarize, what is, how to, product recommendations, price checks, current events, or reading a specific URL. TRIGGER ON: any question requiring current web data, any "investigate/find out/check/look into" request, any product/price/recommendation query. Do NOT use browser for search (CAPTCHA'd on VPS). The `web_search` and `web_extract` MCP tools route to SearXNG automatically — for deep research, load this skill directly. Do not use for person-focused OSINT (use Scout) or image processing (use Look). Skill: Sift Owner: indigokarasu Summary: Sift: web search, research synthesis, fact verification, entity extraction, and URL content extraction. The system's general research engine. Use for ANY task requiring web information: search, research, look up, investigate, find out, check if, fact check, compare, summarize, what is, how to, product recommendations, price checks, current events, or reading a specific URL. TR

62
Rank
84
Safety
1.2k
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 1.2K downloads reported by the source. Last updated 10/10/2026.

Avoid when

  • Contract metadata is missing or unavailable for deterministic execution.

Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing

Install and run

Setup complexity: low.

clawhub skill install s17bp0q5q5x87yfrmb4876eywh83rcts:ocas-sift
  1. Setup complexity is LOW. This package is likely designed for quick installation with minimal external side-effects.
  2. Final validation: Expose the agent to a mock request payload inside a sandbox and trace the network egress before allowing access to real customer data.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-indigokarasu-ocas-sift/snapshot"

Run-check

$0.02 USD

1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.

Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.

Documentation

CLAWHUB

92,848 characters of source documentation, loaded on request.

Extracted files

5 files captured from the source.

SKILL.md

---
name: ocas-sift
source: https://github.com/indigokarasu/sift
description: >-
  Sift: web search, research synthesis, fact verification, entity extraction,
  and URL content extraction. The system's general research engine. Use for ANY
  task requiring web information: search, research, look up, investigate, find
  out, check if, fact check, compare, summarize, what is, how to, product
  recommendations, price checks, current events, or reading a specific URL.
  TRIGGER ON: any question requiring current web data, any "investigate/find
  out/check/look into" request, any product/price/recommendation query. Do NOT
  use browser for search (CAPTCHA'd on VPS). The `web_search` and `web_extract`
  MCP tools route to SearXNG automatically — for deep research, load this skill
  directly. Do not use for person-focused OSINT (use Scout) or image
  processing (use Look).
license: MIT
includes:
- references/**
- scripts/**
metadata:
  author: Indigo Karasu (indigokarasu)
  version: "2.10.0"
triggers:
- web search
- research synthesis
- fact verification
- extract URL content
- search the web
- investigate
- find out
- check if
- look into
- product research
- price check
- recommendation
- current events
- how to
- what is
- compare products
---

# Sift

Sift is the system's general research engine, retrieving and synthesizing information from the web across a tiered source hierarchy — internal knowledge first, then free web search, then rate-limited semantic research providers for deep work. It evaluates source reliability through cross-source agreement scoring, extracts structured entities from retrieved content, and emits enrichment candidates to Chronicle so researched knowledge accumulates over time.

## Load-First Rule for Web-Adjacent Queries

**When the user asks about products, prices, reviews, how-to advice, or any information that requires current web data, load Sift FIRST before answering from domain knowledge.** This applies even if you think you already know the answer from training data.

**Why this matters:** On VPS/cloud environments, browser-based search (Google, Bing, DuckDuckGo) is almost entirely blocked by CAPTCHA from datacenter IPs. The `web_search` and `web_extract` MCP tools handle basic searches automatically via SearXNG. Load this skill directly for deep research, fact-checking, comparisons, or when the MCP tools' results are insufficient.

If you answer from domain knowledge without checking current sources, you may miss: product availability changes, new products on the market, updated formulations, price changes, or critical caveats (e.g., fabric-specific limitations like synthetic vs. cotton).

**Pattern to follow:**
1. User asks about a product/recommendation/how-to → load Sift
2. Run SearXNG: `curl -s "http://localhost:8888/search?q=QUERY&format=json"`
3. Fetch top result URLs with `curl -sL` or `sift.fetch`
4. THEN synthesize answer with citations

**Exception:** Pure factual lookups ("what is the capital of France") t

README.md

# ⚙️ Sift

  <img src="./assets/readme/hero.jpg" width="100%" alt="Sift">

>-

**Skill name:** `ocas-sift`
**Version:** 2.9.3
**Type:** 
**Layer:** Execution
**Author:** Indigo Karasu

---

## 📖 Overview

>-

---

## 🔧 Capabilities

- `"user"` — the signal is relevant to the user's personal knowledge graph
- `"agent_only"` — the signal is agent-initiated research with no demonstrated user connection
- `sift.search` — execute a search query with automatic tier selection and query rewriting
- `sift.research` — run a multi-source research session producing a structured research journal
- `sift.verify` — fact-check a specific claim across multiple sources with consensus scoring
- `sift.summarize` — summarize a document or URL with structured entity extraction
- `sift.extract` — extract entities, claims, statistics, and relationships from content
- `sift.thread.list` — list active research threads with entity overlap detection
- `sift.status` — return current state: active threads, quota usage, source reputation summary
- `sift.journal` — write journal for the current run; called at end of every run
- `sift.update` — pull latest from GitHub source; preserves journals and data
- `sift.fetch [url]` — extract clean Markdown content from a URL. Runs Scrapling first (fast HTTP for static sites, headless browser mode for JS-heavy sites); falls back to Jina Reader (`r.jina.ai/<url>`) if Scrapling output is below content threshold. Returns Markdown with structure preserved. Use for summarizing a specific page or document the user provides.
- `sift.webwright` — execute an interactive web task using browser automation (Playwright driving the system Chrome). **Requires the `playwright` package** (`pip install playwright`); it uses the already-installed Chrome via `channel="chrome"`, so no browser download is needed. Write the plan, exploration screenshots, instrumented final_script.py, execution log, and self-verification into `{agent_root}/commons/data/ocas-sift/webwright/`. For form filling, multi-step flows, JS-heavy sites, interactive filtering, or any task where the browser is the workspace. Read `references/webwright-integration.md` before first use.

---

## 📊 Outputs

See `SKILL.md` for outputs, journals, and persistence rules.

---

## 📄 Files

| File | Purpose |
|---|---|
| `SKILL.md` | Skill definition |
| `references/` | Supporting documentation |
| `scripts/` | Helper scripts |


## Changelog

- [2.8.5] - 2026-04-12
- Fixed
- [2026-04-05] N2 MCP + URL content fetcher
- Added
- Changed
- Validation
- [2026-04-04] Spec Compliance Update
- Changes

---

## 📚 Documentation

Read `SKILL.md` for operational details, schemas, and validation rules.

Read `references/` for detailed specifications and examples.


---

## 📄 License

MIT License — see `LICENSE` for details.

_meta.json

{
  "ownerId": "kn7fvej534qyxcfd9388xh7c1d82942k",
  "slug": "ocas-sift",
  "version": "2.3.1",
  "publishedAt": 1790131786442
}

references/csapi-quota.md

# CSAPI Quota Integration — Multi-Account

## Purpose

Google Custom Search API (CSAPI) is a fallback search tier in Sift, used when free web search returns insufficient results.

## Prerequisites (ALL required)

1. **OAuth scope** `https://www.googleapis.com/auth/cse` on the workspace-mcp token for each account.
2. **`GOOGLE_PSE_API_KEY`** — GCP Console API key. **Must be set manually** (agent cannot write it — credential sanitizer).
3. **`GOOGLE_PSE_ENGINE_ID`** — Custom Search Engine ID (`cx` from Programmable Search Engine settings). **Must be set manually**.
4. Optional: `GOOGLE_PSE_API_KEY_INDIGO` — separate key for the the agent account (separate 1,000 queries/month quota).

⚠️ If `search_custom` fails with "GOOGLE_PSE_API_KEY environment variable not set" or "GOOGLE_PSE_ENGINE_ID environment variable not set", the owner must add these to config.yaml. The agent cannot write them through any tool.

## Multi-Account

Two accounts are configured. The `gsearch/search_tools.py` has been patched to auto-select the API key based on `user_google_email`:
- `<user-google-email>` → uses `GOOGLE_PSE_API_KEY`
- `<third-party-or-user-email>` → uses `GOOGLE_PSE_API_KEY_INDIGO` (falls back to `GOOGLE_PSE_API_KEY` if not set)

## Quota

- **Free tier**: 1,000 queries/month **per account**
- **Tracking script**: `scripts/csapi_quota.py`
- **State file**: `~/.hermes/commons/data/ocas-sift/csapi_quota.json`
- Auto-resets on calendar month boundary

## Commands

```bash
# Check if quota available (exit 0 = yes, 1 = exhausted)
python3 ~/.hermes/skills/ocas-sift/scripts/csapi_quota.py check

# After a successful CSAPI search call, record usage
python3 ~/.hermes/skills/ocas-sift/scripts/csapi_quota.py increment

# View full quota state as JSON
python3 ~/.hermes/skills/ocas-sift/scripts/csapi_quota.py status

# Print queries remaining this month
python3 ~/.hermes/skills/ocas-sift/scripts/csapi_quota.py remaining
```

## Integration Pattern in Sift

Before calling `mcp_google_workspace_search_custom`:

1. Run `python3 ~/.hermes/skills/ocas-sift/scripts/csapi_quota.py check`
2. If exit code 0 (quota available): execute the search, then run `increment`
3. If exit code 1 (exhausted): skip CSAPI, log `degraded: csapi_quota`, do not retry until next month

## Open Web Search

CSAPI does full open web search when `site_search` is omitted. This makes it a complete replacement for the disabled Playwright-based `google-search` MCP.

## Why CSAPI Instead of Browser Scraping

The Playwright-based `google-search` MCP has been disabled. Google permanently blocks datacenter/VPS IPs via CAPTCHA when using browser automation. CSAPI uses authenticated API calls instead, which work reliably from any IP.

## See Also

- `google-workspace-auth/references/csapi-setup.md` — How CSAPI works, prerequisites, and troubleshooting
- `search_tiers.md` — Full search tier chain and provider details
- `research-workflow.md` — Cloud environment fallback workflow

references/d3-graph-pitfalls.md

# D3 Force Graph: Interaction & Layout Pitfalls

## simulation.on('end') Locking Viewport

**Problem:** Calling `d3.zoomIdentity.translate(tx, ty).scale(scale)` inside `simulation.on('end')` overwrites the user's current zoom/pan transform, locking the viewport and preventing pan/zoom/drag.

**Fix:** Do an initial fit ONCE using a `setTimeout` flag (`initialFitDoneRef`), and use `alphaTarget(0)` (not `0.005`) on drag end to fully release the simulation.

```ts
// WRONG: locks viewport after animation
simulation.on('end', () => {
  d3.select(canvas).transition().call(zoom.transform,
    d3.zoomIdentity.translate(tx, ty).scale(scale));
});

// CORRECT: one-time gentle fit
if (!initialFitDoneRef.current) {
  initialFitDoneRef.current = true;
  setTimeout(() => {
    d3.select(canvas).call(zoom.transform,
      d3.zoomIdentity.translate(tx, ty).scale(scale));
  }, 100);
}

// CORRECT: fully release simulation on drag end
.on('end', (event) => {
  if (!event.active) simulation.alphaTarget(0); // not 0.005
  if (event.subject) { event.subject.fx = null; event.subject.fy = null; }
})
```

## Resize Breaking Aspect Ratio

**Problem:** On window resize, the canvas drawing buffer gets stretched non-uniformly because the DPR-scaled buffer dimensions aren't updated, or the zoom transform is rescaled.

**Fix:** Only resize the drawing buffer and recenter the simulation force. NEVER touch the zoom transform on resize.

```ts
const handleResize = () => {
  const dpr = window.devicePixelRatio || 1;
  const rect = canvas.getBoundingClientRect();
  canvas.width = Math.round(rect.width * dpr);
  canvas.height = Math.round(rect.height * dpr);
  dimRef.current = { w: rect.width, h: rect.height, dpr };
  simulationRef.current?.force('center', d3.forceCenter(rect.width/2, rect.height/2));
  simulationRef.current?.alpha(0.05).restart();
};
```

## Arbitrary Node Positions (No Grouping)

**Problem:** Pure force simulation with `forceCenter` produces a circular blob with no meaningful organization.

**Fix:** Add a custom force that pulls nodes toward group centers based on a shared attribute (company, location, role). Arrange group centers in a grid layout.

```ts
const computeGroupCenters = (nodes, mode, w, h) => {
  const groups = new Map();
  nodes.forEach(n => {
    const key = getGroupKey(n, mode);
    if (!groups.has(key)) groups.set(key, []);
    groups.get(key).push(n);
  });
  const centers = new Map();
  const names = Array.from(groups.keys()).sort();
  const cols = Math.ceil(Math.sqrt(names.length));
  const rows = Math.ceil(names.length / cols);
  names.forEach((name, i) => {
    centers.set(name, {
      x: w / (cols + 1) * ((i % cols) + 1),
      y: h / (rows + 1) * (Math.floor(i / cols) + 1),
    });
  });
  return centers;
};
```

## Dynamic Color System (3-Cue Model)

When building design systems, derive ALL colors from 3 cue values via HSL luminance shifts. Change one hue variable → entire palette updates.

```css
:root {
  --hue-accent: 221;
  --sat-acc

Sponsored

Ads related to Sift and adjacent AI workflows.