cd /news/ai-agents/show-hn-port-of-context-token-effici… · home › topics › ai-agents › article
[ARTICLE · art-169163] src=portofcontext.com ↗ pub= topic=ai-agents verified=true sentiment=↑ positive

Show HN: Port of Context – Token efficient MCP context layer

Patrick launched Port of Context, an open-source context layer that routes agent searches over company knowledge and MCP tool calls through a single gateway using a "code mode" runtime, with the stated goal of reducing "cost to resolution" for agent tasks. The system builds a context map of people, teams and systems on the OKF open standard, layers hybrid keyword and semantic search over unstructured text, and is distributed via the GitHub repo portofcontext/pctx; the author cites a Goose code-mode case study and a tau-bench benchmark as evidence it works. Setup is handled by pasting pctx.ai/onboard.md into a coding agent, which creates an account, scans active MCP connections and configures the gateway.

read1 min views4 publishedNov 13, 2026

Hi HN, I'm working on a context layer built on OSS and open standards that lets agents search your company knowledge and use MCP tools all through a single gateway with code mode. Building this because we believe context can and should be portable across harnesses.

The metric we are solving for here is "cost to resolution". Given any question or a task, how quickly and cheaply can we put an agent on the correct path. Tech behind that:

  1. Context map: software to create and maintain a context map of people, teams, systems, relationships, etc. It's built on OKF, import/export from this open standard.

  2. Code mode: agents explore the map with a token efficient context eng. method (open source runtime, find portofcontext/pctx on GitHub)

  3. Indexing: Hybrid keyword and semantic search on any unstructured text, with code mode on top (we will open source this part soon, although it's nothing special, the interesting part is placing content in the map and putting code mode on it)

Some proof that it works:

1. Goose + code mode: [https://aaif.io/blog/how-port-of-context-eliminated-producti...](https://aaif.io/blog/how-port-of-context-eliminated-production-agent-failures)

2. tau-bench: [https://portofcontext.com/blog/context-layer-platform-benchm...](https://portofcontext.com/blog/context-layer-platform-benchmark) With Port of Context

To try it, paste this into your coding agent: Set up pctx.ai/onboard.md

It will help you create an account, scan your active MCP connections, and help configure the gateway.

Hope you find this useful and feel free to reach out: patrick@portofcontext.com

Comments URL: [https://news.ycombinator.com/item?id=50487905](https://news.ycombinator.com/item?id=50487905)

Points: 1

── more in #ai-agents 4 stories · sorted by recency
── more on @port of context 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
→ Live at https://your-agent.zahid.host ✓
Get free account → Pricing
from €0/mo · no card required
LIVE [news/show-hn-port-of-cont…] indexed:0 read:1min 2026-11-13 · —