CX Agent OS
# CX Agent OS
[](https://github.com/chethankumarscs/cxagent_chethankumars/actions/workflows/ci.yml)
[](https://glama.ai/mcp/servers/chethankumarscs/cxagent_chethankumars)
**One framework. Any supported AI model. Any B2B business. Every customer lifecycle stage.**
By [Chethan Kumar S](https://chethankumar.in/) · Customer Success leader, coach and founder ·
[chethankumar.in](https://chethankumar.in/) · [LinkedIn](https://www.linkedin.com/in/chethankumarscs/)
<table>
<tr>
<td width="50%">
**Command Center** — all five lifecycle stages, one engine
<img src="docs/media/command-center-demo.gif" alt="CX Agent OS Command Center walking through presales, onboarding, support, expansion and retention stages">
</td>
<td width="50%">
**Mission Control** — the 12-station operating workspace
<img src="docs/media/mission-control-demo.gif" alt="CX Agent OS Mission Control running an automatic walkthrough of its lifecycle stations">
</td>
</tr>
</table>
Both interfaces run standalone off embedded sample data — no backend, no install. Try them live: [Command Center](https://chethankumarscs.github.io/cxagent_chethankumars/web/command-center.html) · [Mission Control](https://chethankumarscs.github.io/cxagent_chethankumars/web/mission-control.html) · [Simulator](https://chethankumarscs.github.io/cxagent_chethankumars/web/simulator.html) — or open `web/*.html` directly after cloning.
An open framework for building intelligent B2B customer-facing agents across the **whole
lifecycle, pre-sales to retention**, in **any industry**: a preconfigured, domain equipped
digital colleague that understands your deals and customers, reasons about what matters,
recommends the next best action, and executes work you have authorised.
```bash
git clone <your-fork> && cd cx-agent-os
pip install -e .
cxagent sync # loads the sample tenant: 6 accounts, 6 open deals, 6 industries
cxagent brief # your first portfolio briefing
```
Then open the three interfaces in `web/`:
| | |
|---|---|
| **CK-CSOS Command Center** | `web/command-center.html` · 3D intelligence core, one account at a time |
| **CK-CSOS Mission Control** | `web/mission-control.html` · 12 stage lifecycle spine, pipeline and portfolio together |
| **Lifecycle Simulator** | `web/simulator.html` · eight real governed flows you can run in front of people |
All three work offline from an embedded snapshot and upgrade to live data when
`cxagent serve` is running. **Setting it up on your own data: `docs/ONBOARDING.md`.**
That runs with **no API key, no network and no cost.** Then connect a model and your own
data when you are ready.
## Why this exists
I have spent my career on the customer facing side of enterprise software, leading Customer
Success teams across India and the Gulf and carrying the accounts where a missed signal
costs real money. The pattern that kept repeating was never a shortage of data. It was that
the knowledge of what to do with it lived in a handful of experienced heads, and it did not
scale, did not transfer cleanly to new joiners, and walked out of the door when people
moved on.
Most AI tooling aimed at this problem answers questions. That is the easy half. The hard
half is judgement: knowing that a usage decline is usually a workflow change rather than a
training gap, that discounting a value churn buys one term and loses the next, that a
sponsor change is a reset and not an introduction, and that silence from a strategic
account is absence of information rather than evidence of health. None of that is in a
model's weights in a form you can rely on, and none of it should be invented fresh on every
request.
So this framework encodes that judgement explicitly, in files you can read, argue with and
change: sixteen domain modules, eleven lifecycle playbooks, a rules engine whose every
signal states its evidence and its recommended play, and governance that decides what an
agent may actually do rather than hoping a prompt holds. The model narrates. The judgement
is written down.
I built it because I wanted it myself, and I am releasing it openly because the teams that
most need this kind of leverage are rarely the ones with budget for a platform. If you fork
it and encode your own hard won patterns into the knowledge modules and risk rules, that is
exactly the point.
If it helps you, or if you disagree with something in it, I would like to hear about it.
Find me at [chethankumar.in](https://chethankumar.in/) or on
[LinkedIn](https://www.linkedin.com/in/chethankumarscs/).
## What this is, precisely
A Markdown file cannot pretrain a model. What this delivers instead is a preconfigured,
domain equipped agent: extensive operating knowledge, deterministic reasoning engines,
lifecycle playbooks, retrieval with citations, governed execution and enterprise controls,
on top of whichever model you choose. That is more useful than fine tuning, because it is
portable across providers and inspectable by the people who have to trust it.
## The design decision that shapes everything
**Models narrate. Code decides.** Health scores, risk detection, renewal probability, ROI
and entitlement checks are deterministic Python with pinned tests. The model explains the
result, recommends action and writes the communication. Anything that drives a money
decision must be reproducible in January and in July, and explainable to a sceptical
director. Consequently the framework still produces real analysis with **no model
configured at all**, which is a supported mode rather than a failure.
## What it covers
**Twelve lifecycle stages across three phases.** Deal: discovery, qualification,
solutioning, commercial, handover. Delivery: implementation, onboarding, support. Growth:
adoption, value, renewal, expansion. Plus advocacy and offboarding.
**Ten industry packs**, loaded as overlays rather than replacements: B2B SaaS, financial
services, healthcare, retail, manufacturing, telecom, logistics, education, public sector
and professional services. The lifecycle, engines and governance are identical across all
of them. What changes is what counts as evidence, who decides, what blocks a deal and what
a failure costs. Role coverage across CSM, CS Leader, AM, Support, TAM,
Onboarding, Implementation, Solutions Consultant, Solutions Architect, Forward Deployed
Engineer, Professional Services, CX Manager, CS Ops, Renewals, Enablement, Value Engineer
and Advocacy. See `docs/CAPABILITY_MATRIX.md`.
## Architecture
```
CLAUDE.md orchestration and rules AGENTS.md portable agent contract
adapters/ per provider notes config/ agent, models, autonomy, integrations, mcp
knowledge/ 17 domain modules + 10 industry packs playbooks/ 13 lifecycle playbooks
agents/ 10 specialist definitions skills/ 7 reusable skills
src/cxagent/
models/ provider abstraction, task router, budget control, 4 adapters
rag/ chunking, embeddings, hybrid retrieval, rerank, citations, conflicts, ingest
memory/ working, episodic, semantic, procedural
domain/ presales, health, risk, commercial, stakeholders, value (deterministic)
governance/ autonomy, approvals, RBAC, PII, injection, audit, secrets
tools/ registry with mandatory risk declaration, 23 built in tools
integrations/ connector base, MCP client (2026-07-28), REST, local files
mcp/ MCP server: the same tool registry over stdio JSON-RPC (`cxagent mcp-serve`)
execution/ governed runner, planner, scheduler, events
agents/ orchestrator api/ HTTP contract eval/ evaluation harness
web/ 3 reference interfaces db/ canonical schema tests/ 110 tests
```
## Model portability
Anthropic, OpenAI, Google Gemini, Mistral, DeepSeek, Groq, local models via Ollama, and
any OpenAI compatible endpoint including private enterprise gateways. Task based routing
sends deep reasoning to a frontier model and classification to a cheap one, with automatic
fallback, residency filtering and budget enforcement.
Consumer chat subscriptions are **not** API access and the framework says so explicitly
rather than assuming otherwise. For zero cost with full data residency, use Ollama.
## Governance
Four autonomy levels: advisor, copilot (default), operator, autopilot. Every action passes
through one chokepoint that fails closed on anything undeclared. Approvals are bound to an
exact payload fingerprint, so an approved draft cannot be swapped for a different one.
Requesters cannot approve their own actions. Commercial and destructive actions require two
distinct approvers. The audit log is hash chained and detects tampering. Retrieved content
is structurally delimited and never treated as instruction.
## Status
110 tests passing, 10 evaluation checks passing, offline, with no credentials. See
`docs/LIMITATIONS.md` for an honest account of what is production ready and what is not.
## Documentation
| Document | Covers |
|---|---|
| `docs/ONBOARDING.md` | **get working on your own data in 30 minutes: upload, connectors or MCP** |
| `docs/SETUP.md` | installation, first run, connecting a model |
| `docs/USER_GUIDE.md` | the command vocabulary and how to get good answers |
| `docs/ARCHITECTURE.md` | how the pieces fit and why |
| `docs/SECURITY.md` | threat model, controls and the attacks they stop |
| `docs/INTEGRATIONS.md` | adding a connector or an MCP server |
| `docs/CAPABILITY_MATRIX.md` | role and lifecycle coverage |
| `docs/PRODUCTION_READINESS.md` | the go live checklist |
| `docs/LIMITATIONS.md` | what this does not do |
## Author
**Chethan Kumar S** builds Customer Success organisations and coaches the leaders who run
them, with a focus on empathy led customer experience as a durable competitive advantage
rather than a service function. He has led CS teams across India and the GCC in enterprise
healthcare technology, and writes and speaks on the move from building to guiding.
[chethankumar.in](https://chethankumar.in/) · [LinkedIn](https://www.linkedin.com/in/chethankumarscs/)
## Contributing
Issues and pull requests are welcome, particularly concrete connectors, domain modules for
verticals not yet covered, and risk rules drawn from your own churn post mortems. See
`docs/CONTRIBUTING.md`. Domain knowledge contributions are reviewed personally, because
that content is what the project's credibility rests on.
## Licence
MIT, copyright Chethan Kumar S. Use it, fork it, ship it.
TDQS
Scored across 23 tools
Every tool has a clearly distinct purpose, and descriptions proactively cross-reference neighbours (compute_health_score vs detect_risk_signals vs forecast_renewal; list_accounts vs portfolio_triage; propose_fact vs update_crm_note; draft_email vs send_email). The read-only analysis tools, the drafting tools, and the irreversible write tools are cleanly separated, so an agent can select correctly even with 23 options.
Almost the entire surface follows a snake_case verb_noun pattern (get_account, list_opportunities, score_opportunity, request_commercial_concession, update_crm_note). The only real deviation is portfolio_triage, which is a noun phrase with no verb, but overall the convention is highly predictable.
At 23 tools the set sits at the heavy end of what an agent can comfortably hold in working memory, but each tool maps to a genuinely different step of the account/opportunity lifecycle and none are redundant. Consolidating a few of the narrower draft builders (build_qbr, prepare_handover, create_action_plan) would help, but nothing here is dead weight.
The surface covers the full analysis-to-action loop: portfolio triage, account and opportunity inspection, health/risk/renewal/value scoring, stakeholder mapping, discovery and solution planning, handover, drafting, and gated writes (email send, fact proposal, CRM note, concession request). The notable gap is on the record-management side — there is no create/update for accounts or opportunities (no stage advance, no close/outcome capture) and no task-assignment tool, so write-back into the CRM is limited to notes and gated drafting.