2026-11-26 15:40 UTC

Port of Context pitches self-hosted MCP context layer with code-mode agents

state: seedheat: mediumuncertainty: mediumrelevance: mediumagent-context enterprise-search mcpPort of Context

What is this?

Port of Context (pctx), presented by its maker in a November 2026 Show HN post, is a context and tool-access layer for enterprise agents. The company describes it as open source, model-agnostic and deployable in a customer’s cloud, on-premises or air-gapped environment. Its code mode lets agents orchestrate MCP tools through code in a sandbox, keeping tool-result data outside the model context until a result is returned. The company says the platform also maps organizational context and combines keyword and semantic search; it says some components are open source already and others are planned for release. The company and its own site claim lower token use and costs, controlled data access and production deployments. The supplied evidence includes an AAIF case study linked by the company and secondary coverage, but does not independently establish general performance or customer adoption.

Why it matters

The approach targets two practical barriers to enterprise agents: tool-use overhead and control of sensitive data. If its code-mode design works reliably beyond the cited case, agents could use many tools while sending less intermediate data through model context, potentially lowering costs and making deployment more viable in regulated or infrastructure-sensitive settings. Self-hosting and MCP compatibility may also give customers more control over models and tool access. These are meaningful possibilities, but the supplied evidence is largely the vendor’s description and a limited case study, not proof of broad advantage.

Current assessment

New evidence: Port of Context’s November 14, 2026 Show HN post describes a broader context platform built around its open-source pctx code-mode runtime. The vendor says it aims to reduce “cost to resolution” by combining an organizational context map, hybrid search and MCP tools behind a gateway; its site presents deployment in customer-controlled cloud, on-prem or air-gapped environments, model choice, tool isolation and run tracing. The mechanism is supported in broad outline by the linked AAIF case-study description and search results: code executes MCP calls in a sandbox, with tool payloads retained there and only the final result returned to the conversation. Performance figures are claims, not general benchmarks: the site attributes to an AAIF case study a reduction from 93.6k to 31.8k input tokens and half the cost; search results for the case report 100% versus 56% reliability in that test. The evidence supplied does not expose the test methodology or show independent replication, so do not generalize those results. The launch post says indexing will be open-sourced “soon,” while the website describes the core as MIT-licensed; exact open-source scope and the status of individual components are unclear. The platform’s self-hosting and governance claims are vendor statements; hosted model calls can still send requests to model providers, according to the vendor FAQ. Track whether the broader platform and promised components become available, and whether independent users validate cost, reliability and security claims.

Measured heat

now 0 pts/hpeak 2 pts/hcomments 0/hpeers p10momentum: steady1 platformsage 309h
points/hour across evidence · reading as of 2026-11-27 02:23:58.509736+11:00 · deterministic, not a model opinion

How the heat travelled

11-13 18:43⭐ origin directly observedShow HN: Port of Context – Token efficient MCP context layer
pmkelly4444 on hacker news
—
11-13 18:43amplified on hacker news 👑hn.story.50487905
pmkelly4444
peak 1 · 0 comments · 103% of case engagement
11-13 19:20our radar first saw it · +0.6hdiscovery anchor: hn.story.50487905—
pace: p13 vs 2096 stories at the 168h mark (now 309h old) — behind adobe-max-ai-agents-creative-tools-mcp (0.5x)

Evidence (1) — ⭐ canonical anchor

sourceobjectauthorscorecomments
🟧 hn ⭐Show HN: Port of Context – Token efficient MCP context layer
Retrieved article excerpt

Open article · Retrieved 2026-11-13T19:21:57.322908+00:00

[Port of Contextpctxpctx · port of context](https://portofcontext.com/)

[Pricing](https://portofcontext.com/pricing)[Sign in](https://pctx.ai/login)

# Your context refinery built on MCP

The Context Layer Platform for regulated firms. Curate your firm’s context, deploy reliable agents, and do more with fewer tokens.

Paste into your favorite coding agent

- Claude Code
- Codex
- Cursor
- GitHub Copilot

`›Set up pctx.ai/onboard.md`

or book a demo

Your agent

emails14.2M

text messages8.6M

contacts482K

calendar events198K

meeting notes91,442

slack threads62,418

pdf attachments44,210

chat messages24,608

spreadsheets18,402

memos12,684

presentations9,408

handwritten notes8,420

contracts8,408

voicemails7,612

agreements5,712

recorded calls4,318

voice notes3,210

scanned signatures3,180

fax confirmations3,180

board minutes2,140

post-it photos2,108

model spreadsheets1,820

IC memos1,820

yellow legal pad scans1,612

whiteboard photos1,420

SEC filings1,408

expert call transcripts914

compliance attestations812

deal binders612

LP letters612

typewritten memos488

diligence files418

carbon-copy correspondence412

subscription agreements312

quarterly LP reports284

term sheets281

custodial backups210

pitchbooks196

side letters184

cap tables148

closing checklists142

paper deal binders96

microfiched press clippings92

predecessor-firm archives84

founder voicemails62

offsite tape recordings48

dictation cassettes30

napkin sketches18

emails14.2M

text messages8.6M

contacts482K

calendar events198K

meeting notes91,442

slack threads62,418

pdf attachments44,210

chat messages24,608

spreadsheets18,402

memos12,684

presentations9,408

handwritten notes8,420

contracts8,408

voicemails7,612

agreements5,712

recorded calls4,318

voice notes3,210

scanned signatures3,180

fax confirmations3,180

board minutes2,140

post-it photos2,108

model spreadsheets1,820

IC memos1,820

yellow legal pad scans1,612

whiteboard photos1,420

SEC filings1,408

expert call transcripts914

compliance attestations812

deal binders612

LP letters612

typewritten memos488

diligence files418

carbon-copy correspondence412

subscription agreements312

quarterly LP reports284

term sheets281

custodial backups210

pitchbooks196

side letters184

cap tables148

closing checklists142

paper deal binders96

microfiched press clippings92

predecessor-firm archives84

founder voicemails62

offsite tape recordings48

dictation cassettes30

napkin sketches18

Featured in

- [The New Stack](https://thenewstack.io/port-of-context-the-open-source-code-mode/)
- [The Drawdown](https://the-drawdown.com/article/port-of-context-launches-ai-context-platform)
- [The Linux Foundation](https://aaif.io/blog/how-port-of-context-eliminated-production-agent-failures/)

Live at

- Block
- goose
- Ontos
- Magic Hour
- Postalytics
- ScribePT
- Northern Nights Music Festival
- Block
- goose
- Ontos
- Magic Hour
- Postalytics
- ScribePT
- Northern Nights Music Festival

## Put stress-tested agents on top of the tools you already use.

The context layer connects the systems your firm already runs, and agents work inside them alongside your team.

ExcelOutlookSharePointTeamsSlack

BloombergSalesforceBoxDropbox

GmailDocuSignZoom

NotionSnowflake

Port of Context

Agents run on the model you choose

ClaudeChatGPTGeminiLlamaMistral

Code mode

## Agents on the context layer use a third of the tokens.

In the Agentic AI Foundation’s case study, each run went from 93.6k input tokens to 31.8k, at half the cost.

> “Code Mode doesn’t change what the agent does. It changes where the data lives during the run, and that single shift is what closes the cost and reliability gap.”

Agentic AI Foundation[Read the case study →](https://aaif.io/blog/how-port-of-context-eliminated-production-agent-failures/)

Observability

## Every run is traced, and agents speak up when something drifts.

The context layer records each tool call, retrieval, and reasoning step as it happens, with the reason behind it and what it cost. Replay any run, compare runs side by side, and trace every output back to the data it came from. It is all built on our open agent-observability spec, the [Agent Voyager Project (AVP)](https://agentvoyagerproject.com).

pctx

claude

1

gmail-mcp

arcade-gmail

filter

slack-mcp

done

pctx

pctx botvia avpre: gmail-mcplive

✦✦✦✦✦

observing·inbox triage·08:14:11 → live

observability powered by[avp |\ |\_\ |\_\_\ |\_\_\_\ |\_\_\_\_\ |\_\_\_\_\_\\\_\_\_\_\_\_\_\_\_\_\_\_\_\_/ \\_\_\_\_\_\_\_\_\_\_\_\_/](https://agentvoyagerproject.com)

Self-hosted

## The context layer deploys wherever your data already lives.

Run it in your own cloud account, in your data center, or on an air-gapped network.

- Bring your own models and keys
- You control what leaves your environment
- Open source and MIT-licensed

deploy target

Your cloudOn-premAir-gapped

$ pctx deploy --self-host

✓ running · your-vpc · us-east-1

your keys · your models · your data

Case study

How private equity firms made millions of CRM records and decades of data usable by agents.

Portfolio monitoring · Network intelligence

100+

portfolio evaluations with no hallucinated answers

<60 sec

to return a relationship brief for a target

$0.03

model input cost per complete portfolio update

[Read the case study](https://portofcontext.com/case-studies/private-equity-data-agents)[PCTX for Private Equity](https://portofcontext.com/private-equity)

Model-agnostic

## When a model fails, your agent keeps going.

The context layer holds your firm’s context independently of any model, so the same agent runs on Claude, GPT, Gemini, or open weights, switching between them automatically if one slows or goes down. You choose which models it runs on and can change them at any time.

pctx supervisor

rerouting…

openai

anthropic

gemini

live

uptime

## Map Port of Context to your environment.

We'll look at your infrastructure, models, and compliance constraints, then tell you honestly whether Port of Context fits. A real engineer follows up fast.

## FAQs

What is a context layer platform?

A context layer platform gives AI agents a working model of the firm they operate in. It connects the firm’s data and documents, the definitions and relationships that give them meaning, the tools an agent may call, and the rules for who can reach what, and it records what every agent run did and which sources it drew on. Port of Context is a context layer platform for regulated industries. It runs in your cloud, on-prem, or air-gapped, and works with any model.

How is a context layer different from a semantic layer?

A semantic layer defines business terms and metrics over a firm’s data so that every report computes them the same way. A context layer keeps those definitions and adds how the firm’s people, systems, documents, and decisions relate to one another, along with a running record of what each agent did and the sources it used. An AI agent needs that fuller picture before it can act on the firm’s data.

What is a self-hosted AI agent platform?

A self-hosted AI agent platform lets you deploy and run AI agents inside your own infrastructure instead of a vendor’s cloud. Port of Context runs in your cloud, on-prem, or air-gapped environment, so your data and your agents’ tool calls stay in your environment, and you control what leaves.

Is Port of Context model-agnostic?

Yes. The same agent runs on Claude, GPT, Gemini, or open-weight models, and you can switch between them without a rewrite. The model layer is abstracted, so a provider change, outage, or price move never forces you to rebuild your agents.

Can I run agents on-prem or air-gapped?

Yes. Port of Context is built to run entirely inside your own infrastructure, including on-prem and fully air-gapped networks. With local or open-weight models, an agent can run end to end with no external network calls. Nothing leaves the environment. This is why teams in finance, insurance, legal, healthcare, and government deploy it on their own hardware, where sensitive data stays in their environment and you control what leaves.

How is an agent’s tool access contained?

Every tool call runs in an isolated environment by default, rather than reaching directly into your systems. Nothing touches your data or services unless you allow it, which contains the agent and removes a common path for data leaks.

What does the platform observe about each run?

Every tool call, retrieval, and reasoning step is captured live. You can replay any session, compare runs side by side, and trace each output back to the source it came from, along with what the run did, why, and what it cost. Observability is built on AVP, our open agent-observability spec.

What is code mode?

Code mode is how Port of Context runs an agent’s tool calls: as code, with the heavy data handled outside the model’s context. The result is faster, cheaper runs that stay reliable even when an agent uses many tools.

How is this different from n8n, Lindy, or Zapier Agents?

Those tools run agents or workflows in a hosted environment you don’t control. Port of Context is self-hostable, model-agnostic, and isolated by default, with full observability of every run. It is built for teams that need agents in production on their own infrastructure, not for vendor-hosted automation.

Do I have to build my own infrastructure?

No. Operators describe an agent and deploy it without standing up a stack. Engineers can still open every layer when they want to: model choice, tool whitelists, isolation policy, and the eval harness. Same platform, progressive disclosure.

Is Port of Context open source?

Yes. The core is open source under the MIT license, so you can read it, run it, and self-host it without a commercial agreement. Engineers can inspect every layer, from model choice to isolation policy to the eval harness.

Does Port of Context work with MCP servers?

Yes. Any existing MCP server works unchanged. Port of Context aggregates your MCP servers behind one endpoint and exposes their tools to the agent as code, and your auth secrets never reach the model.

Does my data get sent to the model provider?

Only when you allow it. Port of Context runs inside your boundary and is not in your data path. An agent that calls a hosted model sends that request to the provider, and you control which calls are allowed, to which providers, and for which data. Run local or open-weight models air-gapped and nothing leaves your network.
pmkelly444410

Interpretation history

Decision trace