Local fork of continuedev/continue for auto-approve and full-access mode experiments
* fix: correct cache_hit_rate calculation and remove duplicate emission Two bugs in prompt_cache_metrics telemetry: 1. Duplicate emission: prompt_cache_metrics was emitted twice per API request — once using `actualInputTokens` and again using `fullUsage.prompt_tokens`. This doubled all event counts in PostHog and produced conflicting values. 2. Wrong denominator: cache_hit_rate was calculated as `cacheReadTokens / prompt_tokens`, but the Anthropic adapter maps `prompt_tokens` to only non-cached input tokens (`input_tokens`), excluding cache reads and writes. When caching works well, this produces ratios >> 1 (observed max: 89,892). The correct total is `prompt_tokens + cache_read_tokens + cache_write_tokens`. Fix: remove the first duplicate emission and compute total_prompt_tokens as the sum of all three token types. cache_hit_rate is now a proper 0-1 ratio. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * fix: emit tool call id/name from tool-input-start in Vercel stream converter The Vercel AI SDK streams tool calls as tool-input-start → tool-input-delta → tool-input-end → tool-call. Previously, tool-input-start was ignored (returned null) and tool-call emitted the full tool call at the end, which meant streaming consumers never saw the tool call id on intermediate chunks. Now tool-input-start emits the initial chunk with id and function name (matching OpenAI's streaming format), and tool-call returns null to avoid duplicating args already streamed via tool-input-delta. Generated with [Continue](https://continue.dev) Co-Authored-By: Continue <noreply@continue.dev> --------- Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com> Co-authored-by: Continue <noreply@continue.dev> |
||
|---|---|---|
| .claude/skills/docs-style | ||
| .continue | ||
| .github | ||
| .husky | ||
| .idea | ||
| .vscode | ||
| actions | ||
| binary | ||
| core | ||
| docs | ||
| eval | ||
| extensions | ||
| gui | ||
| manual-testing-sandbox | ||
| media | ||
| packages | ||
| scripts | ||
| skills | ||
| sync | ||
| .continueignore | ||
| .eslintrc.shared.json | ||
| .gitignore | ||
| .node-version | ||
| .nvmrc | ||
| .prettierignore | ||
| .prettierrc | ||
| CLA.md | ||
| CODE_OF_CONDUCT.md | ||
| CONTRIBUTING.md | ||
| LICENSE | ||
| package-lock.json | ||
| package.json | ||
| README.md | ||
| SECURITY.md | ||
| tsconfig.json | ||
| worktree-config.yaml | ||
Continue
Getting started
Paste this into your coding agent of choice:
Help me write checks for this codebase: https://continue.dev/walkthrough
How it works
Continue runs agents on every pull request as GitHub status checks. Each agent is a markdown file in your repo at .continue/checks/. Green if the code looks good, red with a suggested diff if not. Here is an example that performs a security review:
---
name: Security Review
description: Review PR for basic security vulnerabilities
---
Review this PR and check that:
- No secrets or API keys are hardcoded
- All new API endpoints have input validation
- Error responses use the standard error format
Install CLI
AI checks are powered by the open-source Continue CLI (cn).
macOS / Linux:
curl -fsSL https://raw.githubusercontent.com/continuedev/continue/main/extensions/cli/scripts/install.sh | bash
Windows (PowerShell):
irm https://raw.githubusercontent.com/continuedev/continue/main/extensions/cli/scripts/install.ps1 | iex
Or with npm (requires Node.js 20+):
npm i -g @continuedev/cli
Then run:
cn
Looking for the VS Code extension? See here.
Contributing
Read the contributing guide, and join the GitHub Discussions.
