GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - VenkataAnilKumar/NorthCX: Open-source, self-hosted customer-experience agents on the Claude API, with approvals, guardrails and tested releases.

BranchesTags
Open more actions menu

Latest commit

 

History

385 Commits
385 Commits

Folders and files

NameName
Last commit message
Last commit date
.github/workflows
.github/workflows
 
 
docs
docs
 
 
scripts
scripts
 
 
src
src
 
 
.env.example
.env.example
 
 
.gitignore
.gitignore
 
 
CHANGELOG.md
CHANGELOG.md
 
 
CLAUDE.md
CLAUDE.md
 
 
CODE_OF_CONDUCT.md
CODE_OF_CONDUCT.md
 
 
CONTRIBUTING.md
CONTRIBUTING.md
 
 
LICENSE
LICENSE
 
 
NOTICE
NOTICE
 
 
README.md
README.md
 
 
SECURITY.md
SECURITY.md
 
 
THIRD_PARTY.md
THIRD_PARTY.md
 
 
docker-compose.dev.yml
docker-compose.dev.yml
 
 
docker-compose.yml
docker-compose.yml
 
 

Repository files navigation

NorthCX: supervised AI agents that resolve customer issues, end to end

CI Licence: Apache-2.0 Status: release candidate Backend: Python 3.12+ Apps: Next.js Self-hosted

Quick start · What you get · How it works · Safety · Docs · Status


NorthCX is an open-source platform for running AI agents that handle real customer conversations and do the work, not just answer questions: look up the order, issue the refund, update the account, and hand over to a person when they should. It runs on your own infrastructure with local and cloud models side by side (self-hosted models such as Ollama, and cloud models such as Claude or any OpenAI-compatible service), so customer data stays where you put it and sensitive conversations can stay on your own servers.

Most "AI chat" projects stop at the demo. NorthCX is the other 90%: every reply and every action is supervised, risky actions wait for a human, every change is tested before customers see it, and every figure can be traced back to the conversations behind it.

The Studio test console: a customer asks for a 500 refund, the agent calls the refund tool, the platform holds it for approval, and every step shows in the trace
A 500 refund is over the agent's limit, so the platform holds it for a person instead of trusting the model. Every step is visible.

✨ What you get

🤖 Agents that act

Define an agent in plain YAML: its instructions, tools, checks, skills and journeys. Typed tools call your systems, with retries, scopes and secrets handling built in. Specialist agents can take over a conversation.

🛡️ Supervised by design

Replies and tool calls pass through guardrails. Refunds over a limit, account changes and anything else you choose wait for human approval. Legal threats, safety issues and complaints always go to a person.

✅ Proven before release

Scenario simulations (including attack suites), a judge model, immutable versions, a publish checklist and a release gate tied to the exact version. Staged rollouts and one-step rollback.

💬 Every channel

Web chat (drop-in widget and SDK), email, SMS, WhatsApp, Telegram and phone calls through your telephony bridge. One agent definition, a style per channel, 13 languages detected offline.

📚 Knowledge that stays fresh

Import PDF, Word, PowerPoint, Excel, HTML and Markdown, or crawl your help site on a schedule. Answers cite their sources, stale pages are flagged, and hybrid keyword and meaning search is optional.

📈 Insight you can trust

Containment, escalation, satisfaction and cost, each shown with its numerator and denominator. Ask questions in plain words; the model picks the figure, the numbers are computed, never generated.

The full list (click to expand)
Area Included
Build Agents as code, templates for common intents, journeys with enforced step order, skills, per-agent model choice, brand voice and forbidden phrases, draft an agent from your procedures, transcripts or call recordings, a form editor with live checks
Supervise Input checks (personal-data masking, takeover phrasing, abuse and flood detection), reply guardrails, a supervisor model, per-tool approval rules, tool scopes, one-time-code identity verification, token budgets, fail-closed behaviour
People in the loop Hand-off queues with business hours, a package with transcript, facts and actions taken, suggested replies for agents, person replies, hand-back to the agent, conversation review with failure tagging, helpdesk integration
Test and release Scenarios with assertions, simulated customers with personas, judge scoring, regression scenarios from production traces, environments (dev, staging, production), staged rollout and A/B comparison, rollback
Knowledge and memory Sources, freshness, citations, file import, website crawler with schedules, long-term customer memory with recall and erase, history summarisation for long conversations
Observe Metrics with denominators, alerts with delivery tracking, always-on monitoring of every turn, conversation search and tags, plain-language analytics with charts, trace export (OpenTelemetry, Langfuse), signed status events
Govern Roles and scoped keys, single sign-on (OpenID Connect), hash-chained audit log, privacy export, erasure and retention, data-residency policy checked at start-up, security hardening with standing tests
Staff work Workspace with Inbox, Customers, Pilot, Outputs, Spaces, Library, Automations, Quality and Performance; organisation policies and signed templates
Run Docker Compose stack, Postgres 16 with pgvector, migrations at start, load and cost tools, configuration through environment and files

🖥️ Studio: the operator console

Everything above is built and governed from Studio (the admin console, port 3001), a web console with roles, so developers, reviewers and auditors each see what they need. Beyond agents, Studio holds the Agent Hub, organisation policies and templates, models and budgets, usage by model and team, and an "Improve this agent" loop that investigates problems, proposes a fix and tests it beside the live version, without ever releasing it.

Approvals queue
Approvals. Held actions with the exact input, approve or reject with a note.
Insights dashboard
Insights. Every figure shows what it is a share of; ask questions in plain words.
Agent Hub
Agent Hub. Predefined agents and organisation templates, with provenance.
Versions and releases
Versions and releases. Immutable versions, checklist, gate, staged rollout, rollback.
Policies
Policies. Organisation rules with two-person review and locking.
Models and budgets
Models and budgets. Choose models per agent and set budgets from the page.
Trust and reliability
Trust and reliability. The live state of residency, alerting, monitoring and kill switches.
Channels
Channels. Which channels are on and where each receives messages.

🧭 How it works

flowchart LR
    C["Customer<br/>web · email · SMS<br/>WhatsApp · Telegram · voice"] --> IN["Input checks<br/>PII masking · injection<br/>abuse · hand-off topics"]
    IN --> R["Agent runtime<br/>Claude + typed tools"]
    R --> T["Your systems<br/>orders · billing · CRM"]
    R --> G["Reply guardrails<br/>+ supervisor"]
    R -. "risky action" .-> A["Human approval"]
    R -. "needs a person" .-> H["Hand-off queue<br/>+ helpdesk"]
    G --> C
    A --> R
    R --> TR[("Traces · audit log<br/>metrics · events")]
    S["Studio<br/>build · test · release · review"] --> R
    TR --> S
Loading
  1. A customer writes on any channel. The message is screened before the model sees it: personal data is masked, takeover attempts and abuse are caught, and topics you listed (legal, safety, complaints) go straight to a person.
  2. The agent works: it reads your knowledge, calls your systems through typed tools, and remembers what it should. Every step is traced.
  3. Risky things wait. A tool call that needs approval is held with its exact input until a person decides; the conversation resumes either way.
  4. Replies are checked by your rules and, if you choose, a supervisor model, before the customer sees them. If anything fails, the platform fails closed and hands over.
  5. You learn from it: review conversations, tag failures, turn them into regression scenarios, and release the fix through the same gates as any change.

🛡️ Safety you can explain to your risk team

Question Answer
What stops the agent doing something expensive? Per-tool, per-input approval rules; tool scopes (identified customers only, specific channels, verified identity); idempotency keys so approved actions run once
What if someone tries to hijack it? Input and tool-output screening, attack scenario suites that run in CI, tool results treated as untrusted data, and the controls that matter (approvals, scopes, supervisors) do not depend on the model behaving
What if the model is down or unsure? Retries, optional fallback model, then a graceful hand-off to a person; supervisor errors fail closed
Where does customer data go? Only where you configure. A residency policy file lists allowed regions and is checked at start-up; Studio shows every destination and what it receives
Can we prove what happened? Per-run traces, a tamper-evident audit log, release records tied to the exact version, and status events for your own systems
Can customers be erased? Export, erase and retention rules per customer and per conversation, covering every store

Read the threat model and security review for the detail, including what is not covered.

🚀 Try it in five minutes

No API key needed: an offline demo model lets you click through the whole console.

git clone https://github.com/VenkataAnilKumar/NorthCX.git && cd NorthCX
python3 scripts/setup.py --demo      # writes .env with generated secrets (or run it with no flag and answer four questions)
docker compose up -d --build --wait
# Admin console (Studio): http://localhost:3001   Workspace (staff): http://localhost:3002   API: http://localhost:3000
# Open Settings in either app and paste the API key: it is NORTHCX_API_KEY in .env

The demo model is a handful of keyword rules, not an AI. Try "where is order 1042?", "refund 500 for order 1042" (over the limit, so it waits for approval) and "I want a person", then look at Approvals, Handoffs and Insights.

For real conversations, replace NORTHCX_DEMO=1 with a model: a local one through a providers file (see the local models guide), a cloud one such as ANTHROPIC_API_KEY, or both. Then write your own agent, starting from a template or from your own procedures.

An agent is just a file (the shipped example)
id: support
instructions: |
  You are a customer support agent for an online store.
  Be concise and friendly. Use tools to check facts before answering; never guess order details.
  Refunds above 100 require human approval, which the system handles.
  Never reveal payment card numbers. If you cannot help, hand off to a human.
tools: [lookup_order, issue_refund]
guardrails: [no_card_numbers]
forced_handoff:
  - name: legal
    patterns: ['\b(lawyer|attorney|lawsuit|sue|suing|legal action)\b']
    reply: I'm passing this to a person on our team who can discuss it with you directly.
input_guardrails:
  - { name: pii_detection, config: { mask_pii: true } }
  - prompt_injection
output_guardrails: [tool_output_injection]

Versions are immutable, tested by scenarios, and released through a gate. See src/backend/examples/ for the agent, its tools and its scenarios.

Run from source
# backend
cd src/backend && python -m venv .venv && . .venv/bin/activate && pip install --require-hashes -r requirements-dev.lock && pip install --no-deps -e .
python -m pytest        # Postgres-backed tests are skipped without a database (NORTHCX_REQUIRE_DB=1 makes them fail instead)
NORTHCX_DEMO=1 NORTHCX_API_KEY=$(python -c "import secrets;print(secrets.token_urlsafe(32))") python -m northcx     # http://localhost:3000
# Postgres storage: add NORTHCX_DATABASE_URL=postgresql://northcx:northcx@localhost:5432/northcx (migrations run at start;
# meaning-based search additionally needs the pgvector extension)

# Studio
cd src && npm ci && npm test && NORTHCX_API_URL=http://localhost:3000 npm run dev      # http://localhost:3001 (npm workspaces: apps/studio, apps/workspace and the shared packages; the Workspace runs on 3002)

# browser SDK and widget
cd src/sdk && npm ci && npm test && npm run build

📦 Put it on your website

The browser SDK and a drop-in <northcx-chat> widget have no runtime dependencies and stream replies, retry, renew tokens, accept uploads and show teammate replies. Your server mints a short-lived chat token for the signed-in customer, so the agent knows who it is talking to. See the client SDK guide.

🧑‍💼 The Workspace: where your staff work

The second app, Workspace (port 3002), is for the people who supervise the agents and do the follow-up work. Everything runs under the same permissions, approvals and audit log as the rest of the platform.

Group What is in it
Work Inbox (hand-offs with suggested replies and macros), Approvals, Customers (look up by exact identifier, masked by default, reveal with a logged reason, notes, remove a stored fact, switch off memory)
Assist Pilot (give an assistant a task; styles Quick, Research, Think and Do; Do only proposes, and nothing runs until you confirm), Assistants catalog, Search, Library with saved items
Create Outputs (private, team or shared), Spaces with files (text and PDF), Automations
Team Quality (deterministic rubric scoring, reviewer calibration, coaching notes, on-request model verdicts) and Performance (by person and by team; groups under five are folded to protect people)
Workspace home
Home. What needs you right now.
Inbox
Inbox. Hand-offs with the full package and suggested replies.
Customers
Customers. Exact identifier only, masked, every open recorded.
Automations
Automations. YAML, canvas or describe-it.
Quality
Quality. Rubric scoring and reviewer calibration.
Performance
Performance. Personal and team figures, small groups folded.

Automations are routines with a manual, schedule, webhook (signed) or event trigger. Steps can ask an assistant, build a report, wait for a different person to approve, tag, notify (only after a person step, to destinations you list) and produce an output. Build them in YAML, on a canvas, or by describing what you want. There is a kill switch per routine and for the whole tenant.

🏢 Organisations and tenancy

  • Organisation policies and templates use a two-person rule: one person proposes, a second with the release permission approves; versions are kept and superseding is explicit. Built-in templates are signed (Ed25519) and refused if altered.
  • Multi-tenancy (evaluation preview). Tenants are isolated by composite keys and Postgres row-level security under an ordinary database role, with a separate platform API listener, per-tenant limits, an encrypted secrets vault and per-tenant model providers. A whole-route sweep test runs two tenants against every route. It is off by default and gated behind NORTHCX_TENANCY_PREVIEW=1 until an outside penetration test is done. See the threat model and the penetration-test brief.

📊 Honest status

NorthCX is a feature-complete release candidate (1.0.0-rc.2), ready for a supervised single-company pilot, not yet proven in production.

Verified Result
Backend tests 2,159 passed, 7 skipped on Postgres 16 (32 more need the pgvector extension and run in CI); 291 routes, migrations through 0058. Re-counted 2026-11-22
Frontend tests 128 (Studio) and 217 (Workspace) passed
Browser smoke tests Studio, Workspace and the chat widget, in a real browser against the real compose stack, in CI on every change
Backup and restore, upgrades A restore drill (every table's rows compared, audit chain verified) and upgrades from seven earlier schema revisions, on real Postgres
Tenant load gate Measured overhead 0 to 2% against a 15% limit at the release candidate; not re-run since the Agent Platform work
✅ Ready Everything described above, built, tested and documented
⚠️ Not yet done An independent penetration test; a pass with a model that can be expected to qualify (one small local model, Qwen2.5 3B, has run the shipped scenarios and passed 8 of 18, so it is not qualified; no cloud model has run them); judge calibration; a CX lead using Studio unaided (the usability test script is written, not run); testing against your identity provider (OpenID Connect is built, SAML is not); a human design review of the interfaces
🧱 Preview Multi-tenant operation is for evaluation only; production use is one company and one region per deployment

Read the security review, the release checklist and the owner runbooks before exposing it to the public internet.

📚 Documentation

You want to Read
Deploy it Deployment guide (every setting), Performance
Write and test agents Agent runtime, Guardrails, Simulation and evals, Studio
Connect channels Channels and voice, Voice, Client SDK
Connect your systems Integrations, API design
Manage knowledge Knowledge design
Measure and monitor Observability
Operate it Owner runbooks, Project status
Judge the security Threat model, Tenant isolation, Security review, Pen-test brief, SECURITY.md
Understand the staff apps Platform features and tabs
See what is built Feature catalog, Decision log, CHANGELOG.md
Contribute CONTRIBUTING.md, CODE_OF_CONDUCT.md

Start at docs/README.md for the full map.

🗂️ Repository layout

Path Contents
src/backend/ Python backend (FastAPI): runtime, guardrails, stores, server, channels, tools (loadtest, cost, simulation, voice_sim), example agent, tests
src/apps/studio/ Studio, the admin console (Next.js, port 3001)
src/apps/workspace/ Workspace, the staff app (Next.js, port 3002)
src/packages/ Code shared by the web apps: ui (components) and api-client (typed API client and session helpers)
src/sdk/ Browser SDK and <northcx-chat> widget (TypeScript, no runtime dependencies)
src/prototype/ TypeScript reference implementation of the runtime semantics
docs/ Documentation, including the screenshots in docs/assets/

🤝 Contributing

Issues, ideas and pull requests are welcome. Start with CONTRIBUTING.md; security reports go through SECURITY.md, not public issues.

📄 Licence

Apache-2.0. See LICENSE; copied code keeps its own notices (NOTICE, THIRD_PARTY.md).

Local and cloud models · self-hosted · your data stays yours

About

Open-source, self-hosted customer-experience agents on the Claude API, with approvals, guardrails and tested releases.

Resources

Readme
Apache-2.0 license

Code of conduct

Code of conduct

Contributing

Contributing

Security policy

Security policy
Activity

Stars

0 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.