Skip to content

Add C2B (Chat2Business) console at /c2b/ + dock launcher - #2

Open
captkernel wants to merge 1 commit into
masterfrom
claude/c2b-console
Open

Add C2B (Chat2Business) console at /c2b/ + dock launcher#2
captkernel wants to merge 1 commit into
masterfrom
claude/c2b-console

Conversation

@captkernel

Copy link
Copy Markdown
Owner

What this adds

A self-contained Chat2Business (C2B) console hosted on captkernel.com at /c2b/, plus a dock launcher on the homepage. It lets visitors run the C2B pipeline on their own idea, iterate with special instructions, and get a scored verdict + MVP spec — all in the browser.

How it works (BYOK, client-side)

  • Bring your own Anthropic API key. The key is stored only in the visitor's browser (localStorage, opt-in) and sent only to api.anthropic.com. The page loads no third-party scripts or fonts — nothing else can see the key. Visitors pay Anthropic for their own usage.
  • Calls the Anthropic Messages API directly from the browser (anthropic-dangerous-direct-browser-access: true), streaming each stage.

The pipeline

structure (idea brief) → research dossier → Council: 5 personas in parallel (Contrarian, First-Principles, Optimist, Outsider, Executor) → Chair verdict with a parsed 0–100 score + tier badge (Launch / Showcase / Prototype / Hangar / Don't Build) → MVP spec (or a Don't-Build report).

  • Special instructions box is injected into every stage, so users can steer ("focus on India", "be extra harsh", "$0 budget") and re-run to iterate. A "re-run council only" button reuses the current brief + research.
  • Live token + cost meter and a model selector (Sonnet 5 default / Opus 5 / Haiku 4.5).
  • Model output is HTML-escaped before rendering (safe against markup in responses).

Homepage change (minimal, reversible)

Two small hunks in index.html:

  1. One dock tile — <div class="app" data-link="c2b">◆… — matching the existing github/x launcher pattern.
  2. Extends the existing data-link map with c2b:'/c2b/' and navigates same-tab for it.

No changes to the window/desktop system.

Notes / review points

  • Deploys to the live captkernel.com on merge (GitHub Pages) — opened as a PR for review rather than pushed to master.
  • No live web in the research stage (browser + BYOK); it uses the model's own knowledge and says so. A future enhancement could enable the Anthropic web_search server tool.
  • Suggested test: open /c2b/, paste a key, enter an idea, Run — watch the five personas stream in parallel and the score/tier badge populate.

🤖 Generated with Claude Code


Generated by Claude Code

A self-contained, client-side Chat2Business tool hosted on captkernel.com.
Visitors bring their own Anthropic API key (stored only in their browser,
sent only to api.anthropic.com); the page loads no third-party scripts.

It runs the C2B pipeline entirely in the browser via the Anthropic Messages
API with direct browser access:
  structure (idea brief) -> research dossier -> 5-persona Council in parallel
  -> Chair verdict with a parsed 0-100 score + tier badge -> MVP spec
  (or a Don't-Build report). A 'special instructions' box is injected into
  every stage so users can steer and iterate; a live token/cost meter and
  model selector (Sonnet 5 / Opus 5 / Haiku 4.5) are included.

Homepage: adds one dock tile (data-link="c2b") that navigates to /c2b/,
matching the existing github/x launcher pattern. Two small, reversible hunks;
no changes to the window/desktop system.

🤖 Generated with [Claude Code](https://claude.com/claude-code)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants