Search docs
Project reference
Architecture
Data flow
- The extension and the PWA send composer text to the local scan worker. The worker uses the shared scanner and returns findings to the composer for review before protected insertion or copy.
- The CLI and native agent hooks call the shared scanner directly.
- The dedicated Codex provider sends supported requests to the loopback relay. The relay uses the shared scanner and forwards approved requests to the Responses API.
Components
packages/contractsdefines finding and result types.packages/coreperforms context checks, overlap resolution, and placeholder generation without selecting a destination.packages/uiholds the shared composer and scan worker. On origins listed in the extension provider registry, the extension draws a button that opens a Chrome-owned side panel. Raw text stays in that panel and its worker. The scoped content script handles the launch, and the transfer script receives the protected draft only. The PWA uses the browser clipboard after a user action.apps/clihandles plain text, file I/O, and installer entry points.adapters/records each native hook's configuration and response contract.apps/gatewayaccepts authenticated requests on loopback and forwards only requests that pass its inspection. It validates the request type, distinguishes protocol fields from maskable content, and streams responses back to Codex.- The static website links to the PWA and its installation guide. The PWA's service worker caches its application assets.
See the decision log and the threat model. Chrome extension permissions · Claude Code hooks · Codex hooks · Codex gateway compatibility