Loading page...Загружаем страницу...正在加载页面...
AtlasRepo

How We Built an Authenticated Local Loopback Bridge for Browser AI Chats

说明与用途

本地回环桥安全地将仓库上下文传递给 AI 聊天,消除了上传 ZIP 文件的需求。

问题

Keeping AI models informed of repository state via web interfaces requires uploading messy zips or manual copy‑pasting of many files.

结果

The bridge pre‑warms repository context in 340 ms and serves it securely over 127.0.0.1:4545, enabling instant AI prompt injection without exposing local files.

工作流

  • Start the bridge in the project directory with tokencap serve --daemon
  • Read the output URL and pairing token
  • Open ChatGPT or Claude in Chrome
  • Open the TokenCap Companion popup
  • Type the task (e.g., "refactor billing controller")
  • Click "Inject Into Chat" to send context to the model

证据

Browser extensions cannot access local disk storage. To pass structured repository context without compromising security, we defined Bridge Contract v1:

来源

Start the bridge in your project directory: tokencap serve --daemon

来源

Bridge context pre-warmed in 340ms. Serving intelligence for: /Users/dev/projects/my-api

来源

  • 记录日期: 2026-10-01T20:10:49.081Z