-
Notifications
You must be signed in to change notification settings - Fork 1.7k
[NA] [DOCS] docs: address Cost Intelligence docs review feedback #7920
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -22,7 +22,7 @@ Cost Intelligence closes that gap. It captures every coding-agent API call on th | |
|
|
||
| ## How it works | ||
|
|
||
| Each developer machine runs its own local `opik-cipx` daemon. The coding agent talks to it over the loopback interface, and the daemon forwards every call to the provider unchanged — there is no shared collector, and none of your traffic routes through Comet. What ships to your Opik workspace is a separate, asynchronous stream of metadata-only spans: token counts, costs, and structure, [never content](/cost-intelligence/data-privacy-security). | ||
| Each developer machine runs its own local `opik-cipx` daemon. The coding agent talks to it over the loopback interface, and the daemon forwards every call to the provider unchanged — there is no shared collector, and none of your traffic routes through Comet. What ships to your Opik workspace is a separate, asynchronous stream of metadata-only spans: token counts, costs, and structure, [never content](/cost-intelligence/data-privacy-security). The diagram shows Claude Code on the plugin path, the most common setup; see [Installation](/cost-intelligence/install/overview) for the other agents and rollout paths. | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Supported agents lack valid setup pathsThe supported-agent pointer sends Codex and Cursor users to Want Baz to fix this for you? Activate Fixer Other fix methodsPrompt for AI Agents |
||
|
|
||
| <Frame> | ||
| <img src="/img/v2/cost-intelligence/architecture.svg" alt="Cost Intelligence architecture: a local opik-cipx daemon on each developer machine forwards Claude Code traffic unchanged to Anthropic and ships metadata-only spans to Opik" /> | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -22,7 +22,7 @@ Cost Intelligence closes that loop. It shows you where the money went, prices wh | |
| The loop below works at any scale, but you don't have to run it fleet-wide on day one. The lowest-risk way in is staged: | ||
|
|
||
| 1. **Observe first.** Roll out to a pilot group and collect data only — no policies yet. You learn where the money goes before anything changes. | ||
| 2. **Apply to the pilot.** Review the recommendations priced from the pilot's own traffic and apply the ones you approve, to that group only. | ||
| 2. **Apply to the pilot.** Review the recommendations priced from the pilot's own traffic and apply the ones you approve. Policies only reach machines where Cost Intelligence is installed, so while only the pilot is rolled out, the changes land on the pilot's machines alone. | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Pilot policy reaches non-pilot usersThe pilot is described as applying only to pilot machines, but shared-device MDM settings reach every signed-in user, so users outside the pilot are included and pilot-priced recommendations are not pilot-specific — should we state the device scope and shared-machine impact explicitly, or define it as device-targeted? Want Baz to fix this for you? Activate Fixer Other fix methodsPrompt for AI Agents |
||
| 3. **Widen.** Expand observability and the approved policies to the whole organization. | ||
| 4. **Tune per user.** Use [user policies](/cost-intelligence/roll-out-cost-policies) to handle the heaviest spenders and the teams that genuinely need different settings. | ||
|
|
||
|
|
@@ -88,7 +88,7 @@ A recommendation that cuts spend by making the agent worse is not a saving, so e | |
|
|
||
| **Against benchmarks.** We evaluate agent performance on open and private benchmarks — TerminalBench among them — before and after each change, so a method that degrades what the agent can do never becomes a recommendation. | ||
|
|
||
| **Against real sessions.** We maintain a body of tens of thousands of real, labeled coding-agent sessions that are replayable inside Opik. Every method is tuned against it offline, in large experiments, and monitored online with LLM-as-a-judge evaluation of real outcomes. As agents and usage patterns evolve, the same loop keeps the recommendations current. | ||
| **Against real sessions.** We maintain a body of tens of thousands of real, labeled coding-agent sessions — drawn from our own internal usage and from customers who explicitly opt in — that are replayable inside Opik. Every method is tuned against it offline, in large experiments, and monitored online with LLM-as-a-judge evaluation of real outcomes. As agents and usage patterns evolve, the same loop keeps the recommendations current. | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Customer session privacy boundaries undocumentedThe new claim promises opted-in, replayable, outcome-judged customer sessions, but the docs cover only Want Baz to fix this for you? Activate Fixer Other fix methodsPrompt for AI Agents |
||
|
|
||
| ## Next steps | ||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -29,11 +29,13 @@ Delivery is automatic once you are set up. Bootstrap configuration (workspace, A | |
|
|
||
| <Note> | ||
| **Disabling a skill doesn't take it away.** The most common recommendation — | ||
| turning off unused skills and MCP servers — only keeps them out of the | ||
| turning off unused skills and MCP servers — removes their weight from the | ||
| context that ships with every request. Nothing is uninstalled, and a disabled | ||
| skill stays callable: when a developer asks for it by name, Claude Code | ||
| re-enables it and uses it. The saving comes from the thousands of requests | ||
| that never needed it, not from taking capability away. | ||
| re-enables it and uses it. A denied MCP server does stay off until the policy | ||
|
Comment on lines
31
to
+35
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Disabled skills remain unusableThe note claims that Want Baz to fix this for you? Activate Fixer Other fix methodsPrompt for AI Agents |
||
| changes, which is why the recommendation only targets servers nobody has been | ||
| using. The saving comes from the thousands of requests that never needed | ||
| them. | ||
| </Note> | ||
|
|
||
| ## Grant exceptions per user | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
MDM capture coverage is overstated
The card promises “every user,” but capture is limited to users on targeted Macs with
~/.opik-cipx/config.toml, so non-targeted or non-Mac users and unprovisioned shared-device accounts remain uncaptured — should we qualify it as “every user on each targeted Mac” or document a supported system-wide credential path?Want Baz to fix this for you? Activate Fixer
Other fix methods
Prompt for AI Agents