Context Tracker banner
conrad621 conrad621

Context Tracker

Productivity community

Description

Local request viewer for Claude Code, Codex and OpenCode. Inspect prompts, tools, messages and responses in real time.Claude Code、Codex 和 OpenCode 的本地请求查看器。

Installation

This entry records only its repository, not the path inside it, so there is no exact command to give. Open the source below and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

README

context-tracker

[![CI](https://github.com/conrad621/context-tracker/actions/workflows/ci.yml/badge.svg)](https://github.com/conrad621/context-tracker/actions/workflows/ci.yml) [![npm](https://img.shields.io/npm/v/context-tracker.svg)](https://www.npmjs.com/package/context-tracker) [![license](https://img.shields.io/badge/license-MIT-blue.svg)](./LICENSE)

**Language:** **English** · [简体中文](./README.zh.md)

Mirror the HTTP requests that AI coding CLIs (OpenCode / Claude Code / Codex) send to model providers into a local viewer, so you can inspect the full request context — headers, system prompt, tool definitions, messages — and (optionally) the model's response.

Architecture

Claude Code ──ANTHROPIC_BASE_URL──▶ ┐
Codex CLI  ──config.toml base_url─▶ ├─▶ proxy ──HTTPS──▶ AI API
OpenCode   ──opencode.json baseURL▶ ┘      │
                                            └──POST──▶ viewer (:39877)

The proxy forwards traffic untouched to the upstream API and mirrors a copy of each request to the viewer — a fire-and-forget side channel that never blocks or alters the main request/response path. One proxy port can route to multiple upstreams by path prefix; the viewer classifies entries by source and API protocol.

Install

Requires Node.js >= 18. Zero runtime dependencies.

Global install (recommended):

npm install -g context-tracker
# or from source: git clone https://github.com/conrad621/context-tracker.git && cd context-tracker && npm link

This provides a single `context-tracker` command:

context-tracker start           # start the viewer AND the proxy together (one process)
context-tracker help            # show usage

Without installing you can run the scripts directly: `node src/start.js`. The viewer and proxy still live at `src/viewer.js` / `src/proxy.js` for advanced use, but the CLI exposes only `start`.

Usage

**Quick start — viewer + proxy together in one process:**

context-tracker start           # globa