Skip to main content

customer-support-agent

Solo Founder OS agent #9 — triage user messages (signup-broken / forge-stuck / billing / love / spam / novel) → auto-draft replies → HITL queue.

License Python

Built by Alex Ji — closes the 5th layer of the canonical one-person-company stack (customer support).

What it does

PH-day or post-launch, your inbox/PH-comments/X-DMs flood with user inquiries. This agent:

  1. Reads incoming messages (JSONL inbox file)
  2. Classifies each into one of 6 templates via Claude Haiku (or keyword fallback)
  3. Drafts a reply for each non-spam classification
  4. Writes drafts to ~/.customer-support-agent/queue/pending/ for HITL review
$ customer-support-agent triage --inbox messages.jsonl
# Customer support triage — 2026-05-02T13:24:00Z
Messages processed: 14
By label: {'signup_broken': 4, 'love': 5, 'billing': 2, 'forge_stuck': 1, 'spam': 1, 'novel': 1}
Drafts queued: 13
Spam skipped: 1
Novel (need human reply): 1

Install

pip install customer-support-agent
# or
git clone https://github.com/alex-jb/customer-support-agent
cd customer-support-agent && pip install -e .

Usage

Triage a batch

Inbox JSONL format (one message per line):

{"source":"email","source_id":"abc123","sender":"alice@x.com","subject":"signup not working","body":"Verification email never arrived..."}
{"source":"producthunt","source_id":"ph_456","sender":"@bob","subject":"","body":"Love this!"}
customer-support-agent triage --inbox inbox.jsonl

One-shot classify

customer-support-agent classify "I never got the verification email"
# label=signup_broken confidence=0.55
# reasoning: keyword match: signup, verification, email

Check queue

customer-support-agent queue-status
# # Pending drafts (3)
#   - 2026-05-02-signup_broken-alice-x-com.md
#   - 2026-05-02-billing-bob-x-com.md
#   - 2026-05-02-novel-carol-x-com.md

Six default labels

Label Trigger Action
signup_broken auth/login/register problems empathetic + 2-3 troubleshooting steps
forge_stuck core flow stuck/broken "this is on me, fixing now"
billing payment/refund/subscription acknowledge + 24h response promise
love positive feedback brief thank-you
spam promo/scam/irrelevant skipped
novel doesn't match any "I'll think on this" placeholder + flag for human

Why all drafts go to HITL

Auto-sending replies to real users is the fastest way to get banned, mocked, or to send something tone-deaf. This agent NEVER sends. It drafts; you review in Obsidian; you send (or paste into Gmail / PH / X).

MCP server

pip install 'customer-support-agent[mcp]'
{
  "mcpServers": {
    "customer-support": {
      "command": "customer-support-mcp",
      "env": { "ANTHROPIC_API_KEY": "..." }
    }
  }
}

Tools: classify_message(text, subject?, sender?) · draft_support_reply(text, subject?, sender?, label?)

Roadmap

  • v0.1 — heuristic + Claude classifier · 6 labels · HITL queue · MCP server · 25 tests
  • v0.2 — IMAP + PH GraphQL ingest (auto-pull instead of JSONL)
  • v0.3 — auto-send "love" replies (still HITL on first 100, then auto)
  • v0.4 — Reflexion learning: classifier improves from rejected drafts

License

MIT.


🧩 Part of the Solo Founder OS stack

A growing collection of MIT-licensed agents that share solo-founder-os as their base — cron, eval, reflexion, AnthropicClient, HITL queue, notifiers. Each agent is independently useful; together they cover the full one-person company workflow.

🌐 The whole stack is live in production at vibexforge.com.

Agent What it does
solo-founder-os The shared base lib (cron · eval · reflexion · skill library · DGM-lite). Every other agent depends on it.
build-quality-agent Pre-push Claude diff reviewer + local build runner — catches CI-killing changes before they ship.
customer-discovery-agent Reddit pain-point scraper + Claude clustering for product validation.
funnel-analytics-agent Daily founder brief + real-time PH-day alerts across 9 sources.
orallexa-marketing-agent AI marketing agent — submit project once, get platform-native posts for X / Reddit / HN / Dev.to / 小红书 + 7 more. Powers vibexforge.com.
vc-outreach-agent Cold email drafter — investors (vc mode) or paying customers (customer mode, merged from customer-outreach in v0.9.0). HITL queue + SMTP sender.
cost-audit-agent Monthly bill audit across 6 providers (Vercel / Anthropic / OpenPanel / HyperDX / Supabase / GitHub Actions) with dollar-tagged waste findings.
bilingual-content-sync-agent EN ⇄ 中文 i18n diff + Claude translate + HITL apply. Batch API path @ 50% off.
payments-agent Overdue-invoice reminder drafter. Stripe-shaped types + MockProvider fallback + hard money-safety prompt rules.

Each agent's own row is omitted from its README. Install whichever solve real problems for you — pip install <agent-name>.

Metadata

Release files for customer-support-agent 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for customer-support-agent 0.1.0
File Size Uploaded
customer_support_agent-0.1.0.tar.gz 22.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for customer-support-agent 0.1.0
File Interpreter ABI Platform
customer_support_agent-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 42.3 kB

Release files / customer_support_agent-0.1.0.tar.gz

Download URL customer_support_agent-0.1.0.tar.gz
Size 22.6 kB
Tags Source
SHA-256 checksum
How to use checksums
0efd13cf2a5ec72e4820601912d6bcc04d94314eff455272a920c109f59972d7
BLAKE2b-256 checksum
How to use checksums
cd8470cdac720f819915266a4d2ec9829424c619d2449940de49b9809c836d16
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jun 6, 2026.

Transparency log

Release files / customer_support_agent-0.1.0-py3-none-any.whl

Download URL customer_support_agent-0.1.0-py3-none-any.whl
Size 19.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c045fd205a9bae0f454e17cccd94e798d68fc993d662ac1c6f3e44ce6c4a676e
BLAKE2b-256 checksum
How to use checksums
ca1aff0bdc4b867014b41da55081eea530de50bbbb095e259c2e4d59f653e6d9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jun 6, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page