Skip to content
JosepavesePublic

About

Local-first runtime that compiles noisy web pages into verified high-signal context for AI agents

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Needle-X

dist installer-smoke release

Warning

Alpha software. Needle-X is still in active development and test. Install flow, local state layout, CLI details, and output shape may still change.

Turn messy web pages into compact, proof-carrying context for AI agents.

Smaller packets. Fewer hops. Real provenance.

Needle-X Hero

Why It Wins

  1. Smaller output Needle-X returns much less context than extraction-heavy tools.
  2. Source-backed It carries proof, not just extracted text.
  3. Less cleanup A downstream agent does less work before it can act.

Live Comparison

Metric Needle-X Tavily Jina Firecrawl
Avg packet bytes 4436 6975 30565 72166
Claim-to-source steps 1 2 2 2
Post-processing burden 0.25 1.92 1.86 2.50
Proof usability 1.0 0 0 0

Needle-X vs Jina:

  • about 85.5% smaller packets

This is the current sweet spot:

  1. compact context
  2. direct verification
  3. low-friction agent consumption

Needle-X Metrics

Agent Retrieval Workflow

Needle-X is the compact reading layer after search:

  1. the host agent uses its own search tool to obtain candidate URLs
  2. the agent decides which URLs to analyze and how many; Needle-X imposes no candidate limit
  3. the agent calls web_read for every selected URL, passing the research objective
  4. Needle-X returns compact, proof-carrying context for comparison and synthesis
  5. client-rendered pages are compiled too: the read renders when needed and captures textual application data from fetch/XHR, SSE, and WebSocket payloads within an adaptive budget, then reports where the content came from
  6. the agent escalates to browser, raw fetch, PDF, or domain-specific tooling only when exact layout, bytes, or content outside the capture window matter

This keeps responsibilities explicit: the agent controls discovery strategy and breadth; Needle-X optimizes the evidence read from each chosen source.

Current verified seeded result on seeded-corpus-v2:

  1. 100/100 selected-url correctness
  2. 100/100 proof usability
  3. 100/100 runtime success

What It Does

  1. read
  2. seeded query
  3. crawl
  4. proof
  5. replay
  6. diff
  7. memory stats/search/prune/export/import/rebuild-index
  8. analytics stats/recent/value-report/hosts/providers/failures/daily/export
  9. logs path/stats/tail
  10. support bundle
  11. doctor
  12. config path/show/init/set

Default output is AI-first:

  1. compact packet first
  2. proof inline when useful
  3. full diagnostics only on demand
  4. browser-like fetch by default for real-world targets
  5. local memory is populated automatically by successful read, query, and crawl runs
  6. MCP server accepts standard newline-delimited JSON and also supports Content-Length framing

MCP advertises 9 tools: 7 core web_* tools plus memory and analytics. The non-core memory and analytics surfaces use an explicit action parameter to avoid bloating agent tool lists with maintenance and observability operations.

Tiny Demo

needlex read https://example.com --objective "pricing and cancellation policy" --json
needlex query https://example.com --goal "pricing" --json
needlex proof proof_1 --json
needlex analytics stats
needlex analytics value-report
needlex logs stats
needlex support bundle --out /tmp/needlex-support
needlex doctor

analytics stats gives quick operational counters plus saved chars/tokens. analytics value-report is the fuller value view with estimated cost scenarios. logs stats shows the PAL runtime log state used for clean CLI/MCP diagnostics. support bundle exports a maintainer-friendly diagnostic directory with doctor, analytics, and runtime logs.

Install

Linux and macOS:

curl -fsSL https://raw.githubusercontent.com/Josepavese/needlex/main/install/install.sh | bash

Windows:

irm https://raw.githubusercontent.com/Josepavese/needlex/main/install/install.ps1 | iex

Installed command:

  1. needlex

This installer downloads the right release binary. Full details:

  1. Install

The installer also prepares semantic prerequisites:

  1. installs or verifies Ollama where the platform supports automated install
  2. pulls the default embedding model embeddinggemma:latest
  3. writes the PAL-home SSOT config
  4. wires the needlex wrapper to that config so users do not export env vars per command
  5. installs a PAL-local headless render browser
  6. enables render in the PAL config, with network-aware capture budgets and an adaptive wait bounded by the operation deadline

Change defaults with:

needlex config show
needlex config set semantic.provider_model nomic-embed-text:latest

Optional local Julia decision auditing is available in observation mode. It adds diagnostic evaluations without changing retrieval, embeddings or proofs; it is not a factual correctness guarantee. Configuration, measurements and current accuracy limits are documented in the System One assessment.

Agent Skill

Needle-X also ships an optional Codex skill that tells agents to obtain candidate URLs with their own search tool, compile every URL they choose with Needle-X, escalate when needed, and avoid treating compact context as full DOM coverage.

Skill path:

  1. skills/needlex-web-retrieval

Codex install helper:

python3 ~/.codex/skills/.system/skill-installer/scripts/install-skill-from-github.py --repo Josepavese/needlex --path skills/needlex-web-retrieval

After installing the skill, restart Codex so it can discover it.

What It Is Not

  1. browser agent
  2. search engine
  3. generic scraper
  4. LLM-first reader

Read More

  1. Wiki Home
  2. Install
  3. CLI
  4. MCP And Tool Calling
  5. Benchmarks

About

Local-first runtime that compiles noisy web pages into verified high-signal context for AI agents

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages