Needlepath · Context selection for AI agents

Your model charges to read everything sent to them. Needlepath hands it only what matters.

Needlepath provides the model with the most relevant context for your prompt. Fewer tokens in, better answers out, blazing speed, lower overall cost, measured on public tests.

Pay as you go. No commitment to get started.

RECORDED CALL · REAL RESPONSE 1 / 5
QuestionCan invoice INV-4471 for account acct-2213 still be refunded, and for how much?
get_invoice(INV-4471)Damaged on arrival policy v3Refund policy v4get_invoice(INV-4468)Shipping and delivery policy v2Warranty terms v2Data retention policy v7get_shipment(SHP-77120)get_shipment(SHP-77081)Gift card terms v1get_account(acct-2213)Changing a delivery addressCustomer, message 1Agent, message 1Customer, message 2Tax exemption certificatesgateway timeout on refund previewBulk order discountsrefund_preview(INV-4471), attempt 2issue_refundDownloading an invoice PDFget_account(acct-1180)Loyalty pointsWarehouse notice, July 15get_catalog_item(HV-CHAIR-04)Price match policy v1get_carrier_alerts(Corvane Freight)Cancelling an order before it shipsget_open_tickets(acct-2213)Returns for unwanted items v5Business workspace plansSSO and SCIM provisioning guide, revision 12
3of 32 records sent in
2,928 to 160tokens
5.9 msto decide
Kept the 3 records that answer the question. Left 29 out.
Records are from the request; selections, tokens and timing from the response. Titles shortened to fit. Open the full replay
Backed & built with NVIDIA Inception Google for Startups AWS Activate Babson Butler Launchpad ND Labs
The Scoreboard

Better answers. Lower bill. Blazing fast.

Scored on the NVIDIA RULER benchmark. 2,600 questions, one run, the test's official scorer. What Needlepath sends, at the r4 operating point, against sending everything.

44.31%
lower bill, all in
for the same 2,600 answers, our fee included
+12.9 pp
better answers
than sending full-context
25.0 ms
avg. decision latency, no GPU
504 ms faster at p95, end to end, on the same 2,600 answers
52.9%
fewer input tokens sent
than sending full context overall

The bill: $38.44 with Needlepath vs $69.02 sending everything, our fee included. The token figure counts the 24.0% of calls that received the complete document. Other preparation methods, measured on the same items: 1.13 to 32.4 s per item, some needing a GPU.

On your bill
Off the model bill each month$19,044before Needlepath's fee

Estimate your savings here, or request a workload review and we measure the real share on your traffic. Starting point: the cost calculator's example month and the public test's 52.9%.

The Difference

Three ways context goes wrong.

Every model call gets a briefing. Most teams prepare it one of two ways, and both cost more than they look.

SEND EVERYTHING

Attention gets diluted

Every extra page costs input tokens and competes for the model's attention, whether or not it helps answer the question.

REWRITE IT SHORTER

Details go missing

A summary fits nicely, and can leave out the exact name, amount or order detail the next question needs, without saying so.

THEN IT SPREADS

Mistakes compound

When a missing detail feeds the next call, and the next, the error compounds and gets harder to trace.

Needlepath sends your own records, unrewritten, and only the ones that answer the question.

When the whole file is what the moment needs, it hands over the whole file. It decides in milliseconds, with no second model deployment in the loop.

How It Works

One call before every model call.

01

Send what you hold

Documents, tool results, chat history, memory, workflow state. Send the records as they are, with the question the model is about to answer.

02

Needlepath picks

Needlepath returns the records most relevant to the question, in milliseconds.

03

The model gets what matters

Your originals, unrewritten. When the whole set is what the question needs, the whole set goes through unchanged.

Needlepath decides what enters the model call, across documents, tool results, memory and workflow state, without rewriting, summarizing or reranking your records. Read the API docs.
Start In Three Steps

Copy, paste, run.

One key, one call before your model call, and a dashboard to watch it. The code below is the same as the docs; swap in your records and your prompt.

  1. 1
    Sign up and get an API key

    Sign up for public beta today. The key is minted in the console and lives in your environment as NEEDLEPATH_API_KEY.

  2. 2
    Send your records and your prompt, get the context back, call your model
    pip install needlepath
    import os
    from needlepath import NeedlepathClient, ContextRecord, TaskSpec
    
    client = NeedlepathClient(
        api_key=os.environ["NEEDLEPATH_API_KEY"],
        operating_point="np-2026-08-r4",
    )
    
    # What the agent holds for this question, one record each. For example:
    #   every purchase order from the last two years
    #   the supplier's contract and delivery terms
    #   the conversation so far
    records = [
        ContextRecord(text=po.text, kind="external_data", id=po.id, title=po.title)
        for po in purchase_orders
    ]
    prompt = "Which Corvane Freight purchase orders are still open past their delivery date?"
    
    result = client.select(records=records, task=TaskSpec(prompt=prompt), max_context_tokens=4000)
    context = result.rendered_context if result.applied else "\n\n".join(r.text for r in records)
    
    # Call your model as you already do, with the context ahead of the prompt.
    from openai import OpenAI
    answer = OpenAI().chat.completions.create(
        model="your-model",
        messages=[{"role": "user", "content": f"{context}\n\n{prompt}"}],
    )
  3. 3
    Watch it work

    Requests, tokens metered and tokens saved, per key, in the console. When Needlepath stands aside, the whole set goes through unchanged.

Full clients, the LlamaIndex adapter and the rules every adapter follows: docs.nextmoca.com/integrations.

Two Ways To Deploy

In our cloud, or inside yours.

Start hosted in an afternoon, or keep everything inside your network. Same engine, same results, your call.

HOSTED

Drop in. One API key.

Install the client, point it at your workload, and Needlepath prepares the context before every model call.

  • TypeScript and Python clients
  • Context selection in milliseconds
  • Shadow mode first: zero-risk evaluation
Sign up for public beta today

Or review your workload first.

IN YOUR NETWORK

Runs where your data lives.

Deployed into your VPC or data center, next to your models, and tuned for your workloads.

  • Everything in hosted, plus
  • Your records never leave your network, so data residency, retention and regulatory requirements are met where they already are
  • Higher throughput with lower latency
  • Dedicated support
Talk to us

Prefer to talk first? Book a 30-minute call

By Task

The same public exam, task by task.

Each measured against sending everything.

WINFinding one buried fact+17 points at 8K, +21 at 16KStatistically significant at both sizes.
WINMany needles, one answer+16 points at 8K, +20 at 16KA consistent gain.
WINCounting and extraction+15 points at 8K, +23 at 16KTask-level gains at both context lengths.
WINHard multi-key lookups+13 points at 8K, +12 at 16KStatistically significant.
EVENLong-document QApooled -2.0 points, interval includes zeroStatistically even with sending everything. Needlepath keeps more, or steps aside, where coverage matters.
Team

Hyperscale operators and engineers who built and shipped agentic infrastructure at billion-dollar revenue scale. We are building Next Moca because we know what the next ten years of enterprise AI actually need.

Kiran Kashalkar
Kiran Kashalkar
Co-CEO & Co-Founder

Repeat builder. Co-founded and served as CTO of Green Piñata Toys (acquired). Director of Engineering at Oracle (OCI) and Brightcove, with prior leadership roles at Juniper, Cisco, and others. Built and scaled world-scale services for customers like ByteDance and HBO. Architect behind Next Moca's agentic orchestration and infrastructure layers. MBA (Babson), M.S. Computer Science (Penn State), B.E. Computer Engineering (University of Mumbai).

ex-CTO Green Piñataex-Director Oracle · BrightcoveCisco · JuniperBabson MBA · Penn State MS
Swanand Rao
Swanand Rao
Co-CEO & Co-Founder

Product-driven inventor with a track record of bootstrapping new products, blending deep engineering with go-to-market focus. Director of Product at Adobe, with prior leadership roles at Microsoft, Oracle, and others. Holds multiple patents in distributed systems. Architect behind Next Moca's agentic foundations and core AI services. Executive MBA (Michigan Ross), M.S. Computer Science (USC), B.E. Computer Engineering (University of Mumbai).

ex-Director AdobeMicrosoft · OracleDistributed-systems patentsRoss EMBA · USC MS
Paru Somashekar
Paru Somashekar
Founding Member of Technical Staff · Agent Experiences

Engineering and UX leader with 25+ years at Sun Microsystems and Oracle. Founding Member of Technical Staff at Next Moca, leading Agent Experiences. Expertise in UI/UX architecture, data security, and full-stack engineering.

Founding MTSSun · OracleUI/UX architectureFull-stack engineering
Backed by

Operators who built and shipped enterprise platforms at billion-dollar scale. They're betting on Next Moca because they've lived the problem we're solving.

Namita Dhallan
Namita Dhallan
Lead investor · Managing Partner, ND Labs

Ran product and strategy at Brightcove (CPO) and Ellucian (CPO) over two decades of enterprise SaaS leadership. Now Managing Partner at ND Labs and lead investor in Next Moca.

ND Labsex-CPO Brightcoveex-CPO EllucianEnterprise SaaS
Rohit Puri
Rohit Puri, Ph.D.
Advisor · VP of Engineering ML Platform, Capital One

Head of ML Platform at Capital One, operating production AI infrastructure for one of the largest regulated U.S. banks. Ph.D. in EECS from UC Berkeley, M.S. from UIUC, and B.Tech. from IIT Bombay.

Capital One ML HeadUC Berkeley Ph.D.Regulated enterprises
Make It Real

See your own number.

Tell us what you are building. We reply within one business day to set up API access, or to scope a review of your workload: answer quality, token use and cost. No commitment.

We handle your information as described in our Privacy Policy.

Prefer to talk first? Book a 30-minute call. Already decided? Sign up for public beta today.

kiran@nextmoca.com · swanand@nextmoca.com · Boston, MA · Palo Alto, CA

Every figure on this page is from one run of Needlepath at operating point np-2026-08-r4 on RULER, 2,600 questions, official scorer. Full results.