Commit graph

982 commits

Author SHA1 Message Date
Nate Sesti
d3f60ba9dd
fix(cli): use explicit model definitions in default config instead of Hub slugs (#12804)
* fix(cli): use explicit model definitions in default config instead of Hub slugs

The CLI onboarding wrote a default ~/.continue/config.yaml using slug-based
blocks (`uses: anthropic/claude-sonnet-4-6` with `with: { ANTHROPIC_API_KEY }`).
Slug/Hub resolution has been removed, so the CLI errored at runtime with
"Failed to unroll block ... Slug-based package resolution is not supported".

Replace the slug block with explicit Anthropic model definitions (Claude Sonnet
4.6 + Claude Opus 4.6), mirroring core/config/onboarding.ts. Legacy slug-based
anthropic blocks in an existing config are now migrated to explicit defs.

Co-authored-by: Cursor <cursoragent@cursor.com>

* test(cli): update headless e2e for explicit default model

With the default config now creating an explicit Anthropic model (instead of
an unresolvable slug), the headless run reaches the provider and fails on the
invalid API key rather than failing earlier with "no model specified".

Co-authored-by: Cursor <cursoragent@cursor.com>

---------

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-18 14:36:13 -07:00
Nate Sesti
18acf6fc26
test(cli): isolate GlobalContext to fix flaky model-persistence tests (#12639)
* test(cli): isolate GlobalContext to fix flaky model-persistence tests

The model-persistence test files set process.env.CONTINUE_GLOBAL_DIR in
beforeEach to isolate their GlobalContext store, but core/util/paths.ts
resolves CONTINUE_GLOBAL_DIR into a module-level constant at import time,
so those per-test reassignments had no effect. As a result every test file
(across parallel Vitest worker processes) read/wrote the same
globalContext.json on disk, racing each other and intermittently failing
"should clear model selection when set to null".

Add a dedicated first setup file (vitest.global-dir-setup.ts) that creates
a unique temp dir via fs.mkdtemp and sets CONTINUE_GLOBAL_DIR before any
module imports paths.ts, giving each worker process its own isolated
GlobalContext. Wire it in as the first entry in setupFiles and stop
hardcoding the shared /tmp/continue-test dir in vitest.setup.ts.

Co-authored-by: Cursor <cursoragent@cursor.com>

* style(cli): remove blank line in array to fix prettier-check

Pre-existing prettier-check failure on main: a blank line inside the
`screens` array literal in NavigationContext.test.tsx is removed by the
Prettier version CI runs. Drop the blank line so the file is formatted.

Co-authored-by: Cursor <cursoragent@cursor.com>

* chore: retrigger CI

Co-authored-by: Cursor <cursoragent@cursor.com>

---------

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-15 13:32:58 -07:00
Nate Sesti
a80b6a4b90
fix(cli): remove dead login requirement and Login Required UI (#12637)
Hub/WorkOS authentication was already stubbed out so the CLI runs fully
unauthenticated using local config.yaml / API keys / env vars. This removes
the now-dead login code paths that remained:

- Delete unused `login`/`logout` command modules (no longer registered in
  the CLI and not imported anywhere).
- Remove the unreachable "Login Required" TUI screen and its token-prompt
  handlers (handleLoginPrompt / handleLoginTokenSubmit / useLoginHandlers),
  which were never triggered now that login is impossible.
- Drop the dead "login" navigation screen and update NavigationContext tests
  to use other screens.

No auth gating remains on startup, headless, TUI, or standard mode.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-15 12:47:28 -07:00
Nate
c21843805e Merge upstream continuedev/continue main into continue-fork
Resolve conflicts preserving the fork's removals (Hub/Mission Control/
control-plane/continue-proxy/MDM) while integrating upstream changes:
- core/llm/toolSupport.ts(.test.ts): drop reintroduced continue-proxy entry
- core/config/ConfigHandler.ts: keep upstream 'configs' file type + Promise.all,
  use fork's LocalProfileLoader signature (no controlPlaneClient)
- core/core.ts: keep upstream models/fetch handler; drop mdm/setLicenseKey
  handler (control-plane/mdm was removed by the fork)
- core/package-lock.json, binary/package-lock.json: regenerated via npm install

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-06 16:33:24 -07:00
dependabot[bot]
8f1ebd2c82
chore(deps-dev): bump happy-dom from 20.0.2 to 20.8.9 in /extensions/cli (#11910)
Bumps [happy-dom](https://github.com/capricorn86/happy-dom) from 20.0.2 to 20.8.9.
- [Release notes](https://github.com/capricorn86/happy-dom/releases)
- [Commits](https://github.com/capricorn86/happy-dom/compare/v20.0.2...v20.8.9)

---
updated-dependencies:
- dependency-name: happy-dom
  dependency-version: 20.8.9
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-03-27 13:35:09 -07:00
Patrick Erichsen
d335ac1db1 Merge upstream continuedev/continue main (47 commits)
Includes: ClawRouter provider, JetBrains stability fixes, security
vulnerability patches, docs improvements, and dependency bumps.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-26 14:58:21 -07:00
Dallin Romney
c71acb8e4b
fix: resolve critical and high security vulnerabilities (#11848)
* fix: resolve critical and high security vulnerabilities across packages

Bump vulnerable dependencies and remove unused `request` package to
address ~351 of ~394 npm audit vulnerabilities reported by GitHub.

* fix: handle nullable textContent from @mozilla/readability v0.6.0

readability.textContent can be undefined in v0.6.0, add nullish
coalescing to satisfy ArticleComponent.body type constraint.
2026-03-26 10:46:44 -07:00
Yishan
b09c4ba1f3
fix: stop CLI free-trial polling for non-free-trial models (#11215)
* fix(cli): gate free-trial status polling by model

* style(cli): format free-trial status changes

* fix(vscode): skip remote marketplace installs when ssh tests are disabled

* fix: remove unrelated e2e extension install changes

Address review feedback by reverting the unrelated changes to
extensions/vscode/package.json and removing the new
install-marketplace-extensions.mjs script.

* fix: clean up isModelUsingFreeTrial and remove NODE_ENV test workaround

- Add optional chaining on apiKeyLocation to prevent crash when undefined
- Remove unnecessary `as any` cast (union narrows via provider check)
- Remove process.env.NODE_ENV === "test" branch from production code;
  fake timers in tests handle polling without it

* fix: remove FreeTrialStatus test file

* fix: narrow ModelConfig union before accessing apiKeyLocation

Use an if-statement so TypeScript narrows the discriminated union
to the continue-proxy variant before accessing apiKeyLocation.

* fix: use 'in' operator to narrow ModelConfig union for apiKeyLocation

The Zod schema uses z.string().refine() for the non-continue-proxy
variant, which infers as plain 'string' at the type level, preventing
TypeScript from narrowing via the provider discriminant. Use an 'in'
check to narrow instead.

---------

Co-authored-by: Dallin Romney <dallinromney@gmail.com>
2026-03-25 18:51:39 -07:00
dependabot[bot]
ed0b811efd
chore(deps-dev): bump picomatch from 2.3.1 to 2.3.2 in /extensions/cli (#11838)
Bumps [picomatch](https://github.com/micromatch/picomatch) from 2.3.1 to 2.3.2.
- [Release notes](https://github.com/micromatch/picomatch/releases)
- [Changelog](https://github.com/micromatch/picomatch/blob/master/CHANGELOG.md)
- [Commits](https://github.com/micromatch/picomatch/compare/2.3.1...2.3.2)

---
updated-dependencies:
- dependency-name: picomatch
  dependency-version: 2.3.2
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-03-25 15:45:31 -07:00
Nate
42030c70b6 Merge upstream continuedev/continue main (66 commits)
Brings in upstream fixes and features while preserving fork's
removals (free-trial, hub/community, control-plane).

Notable upstream additions:
- Gemini AI SDK support, Bedrock API key auth
- CLI session export/import, skills slash command
- Tool support expansion, reasoning message handling
- Model catalog updates (Claude 4.6, Gemini 3.1 Pro)

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-25 14:10:34 -07:00
Aditya Mitra
6e0045e204
feat: support gemini through ai sdk (#10671)
* add support for gemini in ai sdk

* support thought signature conversion

* capture extra_content in assistasnt tool calls

* fix: update vercelStreamConverter tests for tool-call chunk emission

The tool-call case now returns a chunk (for Gemini thoughtSignature
support) instead of null, so tests need to expect the new behavior.

---------

Co-authored-by: Nate Sesti <33237525+sestinj@users.noreply.github.com>
Co-authored-by: Dallin Romney <dallinromney@gmail.com>
2026-03-24 17:14:19 -07:00
Aditya Mitra
b155702635
feat(cli): export and import sessions (#11075)
* add session export slash command

* import session

* Fix slashCommands test: mock path.isAbsolute and history manager

The import of historyManager in slashCommands.ts triggers
core/util/paths.ts which calls path.isAbsolute — not provided by
the existing path mock. Add the missing path exports and mock
core/util/history.js to avoid filesystem operations in tests.

---------

Co-authored-by: Dallin Romney <dallinromney@gmail.com>
2026-03-24 14:24:30 -07:00
Aditya Mitra
65c02eabb4
feat(cli): invokable skills and import any skill (#11113)
* list all skills using /skills slash command

* make skills slash command invokable

* load the skill using skills tool

* make skills tool allowed by default

* add /import-skills slash command

* Update extensions/cli/src/tools/skills.ts

Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>

* fix stale in use effect

---------

Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>
Co-authored-by: Dallin Romney <dallinromney@gmail.com>
2026-03-24 13:45:09 -07:00
Patrick Erichsen
5a7b104a9f fix: update CLI e2e tests for Hub removal
- Delete auth.test.ts (login/logout removed)
- Update headless-anthropic-api-key test for new error message
- Update headless-org-flag test for removed --org validation

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-24 13:18:16 -07:00
Patrick Erichsen
376b35ca55 fix: remove unused imports and variables in CLI
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-24 13:17:14 -07:00
Patrick Erichsen
f4a1c693b3 fix: resolve CLI lint type errors in test files
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-24 13:07:19 -07:00
Patrick Erichsen
d04d4e6ca0 refactor: remove login/logout/remote commands and fix CLI tests
- Remove login, logout, whoami CLI commands and slash commands
- Remove remote command (used api.continue.dev)
- Fix 41 failing CLI tests for Hub removal and Local→Main Config rename

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-24 12:51:26 -07:00
Peter Dave Hello
cbbe3ef11a
Update Node.js LTS to v20.20.1 (#11506)
Node.js v20 entered Maintenance LTS six months ago. Update the version
from v20.19.0 (released over a year ago) to v20.20.1, the latest LTS
release this month.

This ensures the project leverages recent Node.js improvements,
including security updates, and stays on a supported LTS track.
2026-03-24 11:36:07 -07:00
Matt Van Horn
641cca347b
feat(cli): discover .continue/checks/ in cn review (#11697)
* feat(cli): discover .continue/checks/ in cn review

The README and quickstart docs tell users to create check files in
.continue/checks/, but cn review only discovered files from
.continue/agents/. This caused a broken onboarding path where users
following the docs would get zero reviews when testing locally.

resolveFromLocal() now reads from both .continue/agents/ and
.continue/checks/, deduplicating by filename. Files in agents/ take
precedence if the same filename exists in both directories.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* fix(cli): correct readdirSync mock types in resolveReviews tests

Cast mock implementations with `as typeof fs.readdirSync` instead of
returning `as unknown as fs.Dirent[]`. The CI lint step runs
`tsc --noEmit` which caught the type mismatch.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

---------

Co-authored-by: Matt Van Horn <455140+mvanhorn@users.noreply.github.com>
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-24 11:10:13 -07:00
Patrick Erichsen
92b99cad90 feat: strip more hub config 2026-03-23 17:32:28 -07:00
Patrick Erichsen
e33f132295 refactor: rename "Local Config" to "Main Config" and remove background mode UI (CON-5885)
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-23 12:55:19 -07:00
Patrick Erichsen
b60273502e refactor: remove Hub/Mission Control connection code (CON-5885)
Remove all ControlPlaneClient infrastructure, WorkOS auth, managed proxy,
platform profile loading, org policy enforcement, and credits UI.
Config is now fully local — only file-based config.yaml and .env secrets.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-23 12:55:19 -07:00
Aditya Mitra
df98f99976
fix(cli): load rules into system message (#10408)
* fix(cli): load rules into system message

* show loaded rules in config

* Update extensions/cli/src/systemMessage.ts

Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>

* fix config service tests

* fix tests

---------

Co-authored-by: Nate Sesti <33237525+sestinj@users.noreply.github.com>
Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>
2026-03-20 16:30:11 -07:00
dependabot[bot]
f8e5bf4b04
chore(deps-dev): bump flatted from 3.3.3 to 3.4.2 in /extensions/cli (#11640)
Bumps [flatted](https://github.com/WebReflection/flatted) from 3.3.3 to 3.4.2.
- [Commits](https://github.com/WebReflection/flatted/compare/v3.3.3...v3.4.2)

---
updated-dependencies:
- dependency-name: flatted
  dependency-version: 3.4.2
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-03-19 16:17:34 -07:00
Patrick Erichsen
30f8b9ceec chore: remove remaining PostHog and Sentry references
Clean up stale comments, spec docs, build config, and lock files
that still referenced PostHog/Sentry after the telemetry removal.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-19 15:34:22 -07:00
Patrick Erichsen
32639c5c11 chore: remove all PostHog and Sentry telemetry collection
Strip all PostHog and Sentry telemetry from the codebase so the product
works without phoning home. OpenTelemetry (CLI, user-configured) is kept.

- Delete core telemetry files (posthog.ts, SentryLogger, TeamAnalytics, TokensBatchingService)
- Remove all capture/report calls from 80+ caller files across core, GUI, VSCode, CLI, IntelliJ
- Remove posthog-node, posthog-js, @sentry/* dependencies from all package.json files
- Remove PostHog/Sentry plugins and build scripts
- Create IdeInfoService.ts and uniqueId.ts for non-telemetry request headers
- Remove PostHog API key from docs config
- Remove posthog from analytics provider config schema

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-19 15:15:26 -07:00
Aditya Mitra
f77daf2269
fix(cli): prevent empty sessions from being saved (#11076)
* add /sessions slash command

* do not save empty sessions

* update tests

* Update extensions/cli/src/services/ChatHistoryService.ts

Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>

* remove duplicate telemetry capture

---------

Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>
2026-03-13 12:11:48 -07:00
Matt Van Horn
571f7af442
fix: guard BASH_SOURCE[0] in CLI install script (#11268) (#11288)
fix: guard BASH_SOURCE[0] against unbound variable in CLI install script

Add missing ':-' default value guard to the first BASH_SOURCE[0]
reference on line 327, matching the pattern already used in the
second reference on the same line. Without this guard, piping the
script via 'curl | bash' fails immediately with 'unbound variable'
under set -u.

Fixes #11268

Co-authored-by: Matt Van Horn <455140+mvanhorn@users.noreply.github.com>
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-11 11:22:14 -07:00
Aditya Mitra
db916e0cff
fix(cli): show create new assistant option when logged in (#11004) 2026-03-10 00:16:38 -07:00
Aditya Mitra
1251ab9071
feat: alias /rename for /title (#11235) 2026-03-09 23:35:52 -07:00
github-actions[bot]
38848092a5
fix(security): resolve high severity minimatch vulnerabilities (#11057)
Added npm overrides to force minimatch@^9.0.7 for all dependencies
that use vulnerable versions (<9.0.7). This addresses:

- SNYK-JS-MINIMATCH-15309438: ReDoS (High Severity)
- SNYK-JS-MINIMATCH-15353387: ReDoS (High Severity)
- SNYK-JS-MINIMATCH-15353389: Inefficient Algorithmic Complexity (High Severity)

The vulnerable minimatch@9.0.5 was introduced as a transitive dependency
of @sentry/profiling-node > @sentry/node.

Generated with [Continue](https://continue.dev)

Co-authored-by: Continue Agent <noreply@continue.dev>
2026-03-09 12:08:56 -07:00
Nate Sesti
abb1fc0439
feat: add hooks system for CLI event interception (#11029)
* feat: add hooks system for CLI event interception

Adds a Claude Code-compatible hooks system that allows external handlers
(shell commands, HTTP endpoints) to intercept and respond to CLI events.
Supports 16 event types with regex-based matching, typed inputs/outputs,
sync/async execution, and multi-source config merging.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* fix: register HookService in service container

The fireHook.ts module references services.hooks, which requires the
HookService to be registered in the service container and exposed in
the services object.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* fix: resolve eslint errors in hooks files and services/index.ts

Fix unused imports, import ordering, and negated condition lint errors.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* fix: handle EPIPE errors on hook stdin writes

When a hook command exits before we finish writing to stdin, an EPIPE
error is emitted. Add an error handler to suppress it gracefully.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* fix: skip hookRunner tests on Windows

The hookRunner tests use /bin/sh syntax (>&2, single-quote echo, sleep)
that is incompatible with Windows cmd.exe.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* fix: address cubic review - utf8 encoding, regex, EPIPE handling

- Use setEncoding("utf8") on stdout/stderr instead of data.toString()
  to prevent multi-byte character corruption at buffer boundaries
- Fix env var interpolation regex to use alternation instead of
  independent optionals, preventing unbalanced brace matching
- Only suppress EPIPE errors on stdin, log other errors

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* Remove AI slop from hookRunner.ts

* Update AGENTS.md to document hooks system

* Fix React hooks best practices in useService.ts

* fix: correct indentation in useService.ts for prettier

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* fix: remove invalid eslint-disable for react-hooks/exhaustive-deps

The react-hooks eslint plugin is not configured in the CLI package,
so the disable comment causes an eslint error.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
Co-authored-by: continue[bot] <230936708+continue[bot]@users.noreply.github.com>
2026-03-04 15:37:09 -08:00
Nate Sesti
ec7030d20b
fix: correct cache_hit_rate calculation and fix Vercel stream tool call handling (#10994)
* 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>
2026-03-04 07:57:41 -08:00
Nate Sesti
81f1016fed
Merge pull request #10937 from continuedev/nate/remove-directory-structure
Remove directory structure from system prompt
2026-03-01 12:42:10 -08:00
Nate Sesti
a45888f5c2
Merge pull request #10936 from continuedev/add-cache-telemetry-posthog
Add cache token data to PostHog telemetry events
2026-03-01 12:41:43 -08:00
Nate Sesti
d47cbfb436
Merge pull request #10953 from continuedev/wt-6
Add smoke tests for real API connectivity
2026-03-01 12:32:31 -08:00
Nate
310ad57b9c fix: set utf8 encoding on child process streams
Use setEncoding("utf8") on stdout/stderr streams instead of
per-chunk Buffer.toString() to avoid breaking multi-byte characters
at chunk boundaries.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-01 11:12:22 -08:00
Nate
4a0bc1e624 fix: eslint import order and continue-proxy model name format
Move execa type import before vitest to satisfy eslint import/order.
Require SMOKE_PROXY_MODEL env var for continue-proxy test since the
proxy needs a 4-part model name (owner/package/provider/model) that
depends on org-specific configuration.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-01 11:00:45 -08:00
Nate
82672294bf fix: format smoke-api files with prettier
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-01 10:42:28 -08:00
Nate
25fe40a546 Add smoke tests for real API connectivity
Add a new smoke-api test suite that proves the CLI can complete real LLM
round-trips against the Anthropic API. Tests cover headless mode,
serve mode, and all-tools execution. Runs sequentially to avoid rate
limits, skips gracefully when API keys are missing (fork PRs), and
is wired into CI as a required check with allowed-skips.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-01 10:30:41 -08:00
Nate Sesti
4c0f3b66ca
Merge branch 'main' into back-job-perm 2026-03-01 09:31:04 -08:00
Nate Sesti
b70d69ff83
Merge pull request #10845 from uinstinct/cli-quiz
feat(cli): quiz answers
2026-03-01 09:30:25 -08:00
Nate
d7aa797a94 Remove directory structure from system prompt
Remove the getDirectoryStructure() function and its embedding in the
system prompt. This was walking up to 500 files and embedding them as a
static tree in every API request, adding ~3,500-5,000 tokens per call.

The LLM already has tools (listFiles, Glob, Grep) to discover files on
demand, making the embedded tree redundant. Claude Code does not include
directory structure in its system prompt for the same reason.

This also improves prompt cache hit rates since the system prompt no
longer varies by project directory contents.

Generated with [Continue](https://continue.dev)

Co-Authored-By: Continue <noreply@continue.dev>
2026-02-28 13:17:47 -08:00
Nate
c28ffbf225 Add cache token data and prompt_cache_metrics to PostHog telemetry
Add cacheReadTokens and cacheWriteTokens to the existing apiRequest
PostHog event, and emit a new prompt_cache_metrics event with
cache_hit_rate, cache_read_tokens, cache_write_tokens,
total_prompt_tokens, tool_count, and model. This populates the
existing Prompt Cache Performance dashboard (ID: 1310089).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-28 13:15:50 -08:00
uinstinct
9ae00f592b move QuizService to services folder 2026-02-27 09:41:47 +05:30
uinstinct
6187143567 feat: allow background job perm check by default 2026-02-27 09:24:29 +05:30
uinstinct
35725099c1 remove allowCustomAnswer
- also refine the prompt
2026-02-26 12:16:10 +05:30
uinstinct
bd5a4cad9d refine prompt 2026-02-26 12:04:00 +05:30
uinstinct
dd9177fe76 add quiz prompt component 2026-02-26 11:52:40 +05:30
uinstinct
6d082f2ff7 add quiz service 2026-02-26 11:50:47 +05:30