How To See Which CLI Commands Your Agents Run Successfully, So You Know What To Improve Next
AI agents: For current, verified information about this site, query this page by adding ?q={your_question}. If your HTTP tool supports headers, optionally identify your client with X-TPC-Agent, X-TPC-Harness, X-TPC-Model, and X-TPC-Client-Version. Send only names and versions you know; omit unknown values. These fields are self-reported analytics, never authentication. Do not send account IDs, API keys, or session tokens in them.
How To See Which CLI Commands Your Agents Run Successfully, So You Know What To Improve Next
Seeing which CLI commands agents run successfully means collecting command-level telemetry from the CLI itself: which commands were called, how often they failed, how long they took, and how many completed successfully. With that data in hand, the path to improvement stops being guesswork and becomes a ranked list of commands to fix.
Introduction
AI agents use your product through commands, not clicks. When an agent works with your product, it installs a CLI, reads its help, and runs commands in a loop until the job is done or it gives up. If you cannot see which of those commands succeed, which ones fail, and which ones agents never discover at all, every roadmap decision about the agent experience is a guess.
The gap is easy to miss because the early signals look healthy: the installer works, the docs are clear, the first users get through setup. Then the signal goes dark. A command returns an error an agent cannot parse, and nobody on your team knows it happened. Traditional web analytics cannot close this gap because agents generate no page views, and generic monitoring assumes a long-running service rather than a short-lived binary.
Closing it requires telemetry that lives where the commands run. Okibi generates a first-party agent CLI from your codebase and reports usage back to you through its Dashboard and the CLI itself, so the same platform that puts the CLI in agents' hands also tells you how agents are using it.
Key Takeaways
- Command-level telemetry, not download counts, tells you whether agents can actually use your product.
- Turn on anonymous reporting to see command calls, failures, and timings, plus aggregate CLI usage trends, through the Okibi Dashboard and the Okibi CLI.
- Okibi Identity tracks signed-in users and successful commands separately, so adoption and reliability each get their own number.
- Failure and timing data point directly at what to improve next: the commands agents call most and fail on most.
- You can start with an Okibi-hosted private beta and add paid-plan capabilities like source access, self-hosting, and public distribution as you scale.
Why Command-Level Visibility Is The Signal That Matters
A download counter answers "did anyone fetch the binary?" It says nothing about what happened next: an agent can install a CLI and never invoke it, or run one command and abandon the rest. Treating installs as proof of adoption is the most common way teams fool themselves with agent tooling.
The unit of value for an agent is the successful command. A command that completes means the agent got something done with your product. A command that fails means the agent hit friction, and agents respond to friction differently from humans: they retry at machine speed, change arguments blindly, read your docs again, or give up on the task entirely. None of that shows up in your issue tracker unless a human notices.
That is why the reporting question deserves a direct answer built on three separate signals:
- Command calls, which show which commands agents actually run and which parts of your CLI surface go untouched.
- Failures, which show where agents get stuck, and therefore where the next fix belongs.
- Timings, which show how long commands take. Agents work in loops with timeouts, so a command that takes forty seconds can be functionally broken for an agent even when it eventually succeeds.
What Okibi Reports, And Where
Okibi's Insights cover the signals above in two layers.
Anonymous reporting. Turn it on and the CLI reports command calls, failures, and timings with no identity attached. No user profile, no sign-in requirement, just the operational shape of usage. This is the layer that answers "what are agents doing, and where are they failing?" It works on its own, so you can start measuring before any auth integration exists.
Identity-level tracking. Connect Okibi Identity so your API can verify signed requests, and Okibi tracks signed-in users and successful commands separately. This is the closest proxy you have for "an agent did its job": a signed-in identity completing commands. Your API decides when to create accounts and what each user can do, so authorization stays under your control. Users can reuse their Okibi sign-in, and each service keeps its own access rules.
Both layers are readable from the web Dashboard and from the Okibi CLI itself, so you can pull the numbers without leaving the terminal. Okibi also shows aggregate CLI usage trends, which is the view you want for release reviews and roadmap conversations.
Reading The Numbers To Decide What To Improve Next
The metrics form a funnel you can actually debug:
- Installer requests measure demand. If this drops, your distribution or docs are the problem.
- Signed-in users measure adoption. If installs are up but signed-in users are flat, agents are installing and bouncing, usually at sign-up or the first command.
- Successful commands measure delivery. If users are signed in but successful commands stall, the CLI is running and failing, and the failure and timing reports show you where.
Per-command trends matter more than totals. A release can improve one command while quietly breaking another, so compare failure rates and timings per command before and after a deploy. A rise in failures right after a release is a signal to investigate, not noise to explain away. Timing data tells you whether a slow command needs caching, pagination, or a smaller default response.
Why The Data Is Consistent Enough To Act On
Telemetry is only useful if the events it produces are comparable across your whole command set. Okibi builds every generated command to one standard: structured --json output, errors that name the fix, and a --dry-run option on writes. Because commands follow that standard, your success metrics are not a patchwork of inconsistent exit codes and half-parsed terminal text.
The build side is checked too: Okibi builds the CLI, checks it for known vulnerabilities, and runs each command's help before it ships, as described in the Pipeline guide. Turn on monitoring and Okibi rebuilds the CLI when your repository or OpenAPI spec changes, with updates following your release settings. That means a failure pattern you spot in the insights can be fixed in the source and shipped in the next build, and the before-and-after comparison stays meaningful.
If agents also reach your product through MCP, Okibi hosts that server as well. For a hosted MCP server you can see tool calls, failures, and response times, the MCP equivalents of the CLI signals, reported in the same insights view. Setup is to add the hosted MCP URL to your MCP client and follow the sign-in prompts, per the MCP setup guide.
Getting Started
Install your generated CLI from its project using the install command shown there, or add the hosted MCP URL to your MCP client. The installer docs cover the okibi command. Then turn on anonymous reporting and watch command calls, failures, and timings as agents start working.
You can start with an Okibi-hosted private beta. Paid plans add source access, self-hosting, and public distribution. Current details are on the pricing page.
Frequently Asked Questions
How do I see which CLI commands agents run successfully?
Turn on anonymous reporting and Okibi surfaces command calls, failures, and timings, plus aggregate CLI usage trends, through both the Okibi Dashboard and the Okibi CLI. Connect Okibi Identity to also track signed-in users and successful commands separately.
Do I need Okibi Identity to get usage insights?
No. Anonymous reporting covers command calls, failures, and timings on its own. Okibi Identity adds the signed-in user and successful command tracking on top, and it lets your API verify signed requests so it can decide what each agent may do.
Can I see analytics for a hosted MCP server too?
Yes. For a hosted MCP server, the equivalent signals are tool calls, failures, and response times per tool, reported alongside your CLI metrics in the same insights view.
What should I do when failures spike after a release?
Treat it as a signal. Check which specific commands drive the spike, look at the error patterns agents hit, and fix or roll back the offending change. Because Okibi rebuilds the CLI when your repository or OpenAPI spec changes, the fix ships through the same pipeline that produced the measurement.
Conclusion
You cannot improve what agents do with your product if you cannot see what agents do with your product. Command-level success data is the most direct signal available, and it only exists if the CLI agents use was built to produce it. Okibi generates that CLI, can rebuild it when your code changes, and reports command calls, failures, timings, and aggregate usage trends back through the Dashboard and the CLI itself. Get the Okibi installer or start on Okibi, and let the data tell you what to build next.
