Skip to content

domain-skills: add claude-ai internal chat API#497

Open
johncheng-max wants to merge 2 commits into
browser-use:mainfrom
johncheng-max:domain-skill-claude-ai
Open

domain-skills: add claude-ai internal chat API#497
johncheng-max wants to merge 2 commits into
browser-use:mainfrom
johncheng-max:domain-skill-claude-ai

Conversation

@johncheng-max

@johncheng-max johncheng-max commented Jul 7, 2026

Copy link
Copy Markdown

Adds a domain skill for claude.ai's internal chat API.

What it captures:

  • The trap: http_get() (cookieless urllib) against claude.ai/api/* always returns a Cloudflare managed challenge. The reliable path is fetch() inside an authenticated claude.ai tab — same-origin, real cookies, real fingerprint.
  • Endpoint shapes for /api/organizations, the conversation list, and single-conversation transcripts (chat_messages with sender/text), verified against live responses 2026-07-07.
  • A note that CDP-tab navigation challenges seen on 2026-07-02 proved transient by 2026-07-07.

No user-specific data included.

🤖 Generated with Claude Code


Summary by cubic

Add domain skills for claude.ai internal chat API and console.neon.tech. Enables reading Claude chat transcripts from an authenticated tab and reliably extracting Neon branch endpoints and clean connection strings.

  • New Features
    • claude-ai/api.md: Use in-tab fetch() from an authenticated claude.ai tab to bypass Cloudflare; documents GET /api/organizations, conversation list, and single-conversation endpoints with chat_messages (sender and text); notes that js() resolves promises and returns None if logged out.
    • neon/console.md: Maps key routes and the BRANCH picker; confirms each branch has its own primary compute endpoint; shows how to open the compute drawer to read the ep-... hostname; documents the connection-string whitespace trap and fixes (strip all whitespace or use “Copy snippet”); clarifies pooled -pooler vs direct hosts.

Written for commit 5ada5a7. Summary will update on new commits.

Review in cubic

johncheng-max and others added 2 commits May 3, 2026 07:00
console.neon.tech navigation, branch picker, finding compute endpoint
hostnames, and the connection-string whitespace trap (the connect dialog
renders the host across multiple inline spans, so naive textContent reads
yield 'aws    .neon.tech' — strip all whitespace, since postgres URLs can't
legally contain any).

Also corrects a piece of folklore: free-plan branches do NOT share one
compute endpoint — each branch has its own, observable in the Branches
table's Primary compute column.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
http_get gets Cloudflare-challenged on claude.ai/api/*; in-page fetch()
from an authenticated tab works. Documents the organizations /
chat_conversations endpoint shapes, verified live 2026-07-07.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@browser-harness-review

Copy link
Copy Markdown

✅ Skill review passed

Reviewed 2 file(s) — no findings.

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1 issue found across 2 files

Prompt for AI agents (unresolved issues)

Check if these issues are valid — if so, understand the root cause of each and fix them. If appropriate, use sub-agents to investigate and fix each issue separately.


<file name="domain-skills/neon/console.md">

<violation number="1" location="domain-skills/neon/console.md:53">
P3: The prose includes a raw pixel coordinate (`x=124, y=310` for a 1442×1508 viewport) to describe where the branch-picker button appears. This is viewport-dependent and will be wrong at different window sizes, zoom levels, or after layout changes. The code snippet just below already shows the correct approach — find the button by selector + text matching. Drop the coordinate from the description; the selector-based code is the durable reference.</violation>
</file>

Reply with feedback, questions, or to request a fix.

Fix all with cubic | Re-trigger cubic


## Branch picker (left nav, "BRANCH" combobox)

Below the PROJECT nav. Currently selected branch's name is shown in a button at roughly `x=124, y=310` for a default 1442×1508 viewport. Clicking opens a dropdown listing all branches with a checkmark on the current one.

@cubic-dev-ai cubic-dev-ai Bot Jul 7, 2026

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P3: The prose includes a raw pixel coordinate (x=124, y=310 for a 1442×1508 viewport) to describe where the branch-picker button appears. This is viewport-dependent and will be wrong at different window sizes, zoom levels, or after layout changes. The code snippet just below already shows the correct approach — find the button by selector + text matching. Drop the coordinate from the description; the selector-based code is the durable reference.

Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. At domain-skills/neon/console.md, line 53:

<comment>The prose includes a raw pixel coordinate (`x=124, y=310` for a 1442×1508 viewport) to describe where the branch-picker button appears. This is viewport-dependent and will be wrong at different window sizes, zoom levels, or after layout changes. The code snippet just below already shows the correct approach — find the button by selector + text matching. Drop the coordinate from the description; the selector-based code is the durable reference.</comment>

<file context>
@@ -0,0 +1,123 @@
+
+## Branch picker (left nav, "BRANCH" combobox)
+
+Below the PROJECT nav. Currently selected branch's name is shown in a button at roughly `x=124, y=310` for a default 1442×1508 viewport. Clicking opens a dropdown listing all branches with a checkmark on the current one.
+
+```python
</file context>
Suggested change
Below the PROJECT nav. Currently selected branch's name is shown in a button at roughly `x=124, y=310` for a default 1442×1508 viewport. Clicking opens a dropdown listing all branches with a checkmark on the current one.
Below the PROJECT nav. Click the button showing the current branch name (visible text) — it opens a dropdown listing all branches with a checkmark on the current one.
Fix with cubic

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.

1 participant