From 20877bd362c0e0f4ccea66122420b12bcdd2ba11 Mon Sep 17 00:00:00 2001 From: Patrick Wozniak Date: Wed, 2 Sep 2026 00:29:44 +0200 Subject: [PATCH] docs(readme): fold the extension compat note into Usage The standalone section read like a commit message and sat between Install and Authentication as if it were a core topic. Keep the part users need (sibling extensions share the connection and credentials, so their requests count against Command Code usage) as one sentence under Usage; the registry mechanics stay in index.ts and the changelog. --- README.md | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index ef5db91..c064dad 100644 --- a/README.md +++ b/README.md @@ -31,10 +31,6 @@ omp plugin install pi-commandcode-provider Restart OMP or run `/reload`, then use `/login` and select **Use a subscription** followed by **Command Code**. -## Other extensions - -Command Code models are registered under the custom `commandcode-custom` API. The provider also registers that API in the `@earendil-works/pi-ai/compat` registry, so sibling extensions that stream through `streamSimple` from that entrypoint with the active session model (background agents, memory workers, and similar) reach the same Command Code transport instead of failing with `No API provider registered for api: commandcode-custom`. When such a call passes no API key, the provider uses the configured Command Code credentials. - ## Authentication ### Login dialog @@ -86,6 +82,8 @@ Supported examples: Open `/model` and select one of the models provided by Command Code. Model availability changes over time and is refreshed from the Provider API when the extension loads. +Other extensions that stream with the active Command Code model, such as background agents or memory workers, use the same connection and the same credentials as the chat, so their requests count against your Command Code usage. + ### Reasoning support Reasoning capability and selectable effort levels follow the official CLI catalog independently. Models can therefore be marked as reasoning-capable even when Command Code chooses their depth automatically. Models with explicit effort support register a model-specific `thinkingLevelMap`, so pi and OMP expose only valid levels. For a few reasoning models the CLI catalog ships no effort levels although the endpoint accepts `reasoning_effort`; `src/commandcode-catalog-overrides.ts` adds a manual level set for those (currently `meta/muse-spark-1.1`, `meta/muse-spark-1.2`, and `meta/muse-spark-1.2-contributor`) on top of the generated catalog, and the tests fail once upstream publishes its own levels so the override gets removed. Pi's native OpenAI- and Anthropic-compatible providers translate the selected level for Provider API accounts; the existing Command Code generate transport sends the matching `reasoning_effort` for Go accounts.