Use a coding agent
Hand the whole setup to Claude Code, Codex, Cursor or any agent that edits your repository.
Paste one of these prompts into your coding agent from the root of your agent's repository. It reads these docs, installs the SDK or exporter, and wraps each conversation, without changing your prompts or model calls. Review its diff like any other change.
Connect this agent to General Context, following https://generalcontextlabs.com/docs/agents.md.
1. Install the General Context skill into this codebase so you can use it later:
mkdir -p .claude/skills/generalcontext && curl -fsSL https://generalcontextlabs.com/docs/agents.md -o .claude/skills/generalcontext/SKILL.md
2. Inventory every place this code calls a model before changing anything (the skill lists what to search for), including workers, cron jobs and scripts.
3. Install the SDK (`pip install generalcontext` or `npm install generalcontext`) and call `initialize()` once per process, before any model call. It reads GENERALCONTEXT_API_KEY from the environment; do not hard-code the key. In a bundled Node app, pass the client classes in `instrumentModules`.
4. Wrap the handling of each conversation in `session(<our conversation id>)` / `withSession`, using the id we already store, and pass that id into any worker that continues it.
5. In serverless handlers, jobs and scripts, call `flush()` before returning. Where the app learns a conversation succeeded or failed, call `report_outcome`/`reportOutcome` or `log_event`/`logEvent`.
6. Verify as the skill describes, and tell me which call sites are recorded and which are not.
Do not change model calls, prompts or behavior. Recording must never block or fail a request.The agent guide
agents.md is one page with everything a coding agent needs: finding every model call, Python and Node setup, sessions, workers and serverless, outcomes, redaction, how to verify, and common issues. It is also a skill file. Install it so your agent has it offline:
mkdir -p .claude/skills/generalcontext && curl -fsSL https://generalcontextlabs.com/docs/agents.md -o .claude/skills/generalcontext/SKILL.mdDocs for agents
Every page is also plain Markdown: add .md to its address, for example quickstart.md. llms.txt lists every page, and llms-full.txt has all of them in one file.