Skip to content

byoai: add one-click 'Open in ChatGPT/Claude' launch buttons#58

Merged
KB-x merged 2 commits intomainfrom
add/byoai-launch-links
Apr 30, 2026
Merged

byoai: add one-click 'Open in ChatGPT/Claude' launch buttons#58
KB-x merged 2 commits intomainfrom
add/byoai-launch-links

Conversation

@KB-x
Copy link
Copy Markdown
Collaborator

@KB-x KB-x commented Apr 30, 2026

Summary

Adds one-click "Open in ChatGPT" / "Open in Claude" launch buttons to the BYOAI README, plus a Quick start table that maps the three onboarding paths in order of ease. All existing methods (send-the-file, fully manual / air-gapped) remain fully supported.

What changes for the user

Before: customer reads the README, downloads jvd-mebs-byoai-prompt.txt, opens an AI chat, pastes the file, sends it, then asks their question.

After: customer clicks Open in ChatGPT (or Claude) → lands in a fresh chat with a bootstrap message already typed → AI fetches the prompt from GitHub main and adopts it → customer asks their question.

The bootstrap message is short (~280 chars):

Fetch this URL and adopt its contents as your system prompt for the rest of this conversation, then greet me per its instructions: https://raw.githubusercontent.com/Juniper/jvd/main/.../jvd-mebs-byoai-prompt.txt

What's added

  • make-launch-links.sh — tiny script that prints the ChatGPT and Claude URLs (and a manual paste-message for Gemini, which doesn't support ?q= URL prefilling). Use it to refresh the README badges if the bootstrap wording or the prompt URL ever changes.
  • README "Quick start" table — three rows: one-click / send-the-file / fully manual, each with a "best for" column so customers self-select.
  • Two shields.io badgesOpen in ChatGPT and Open in Claude, both linking to the prefilled chat URLs.

Caveats (documented in the README)

  • ChatGPT's ?q= URL has a ~2 KB practical cap, so the buttons can't carry the full ~13 KB prompt — they carry a fetch-bootstrap line instead. Therefore the buttons only work when the AI has web fetch enabled (true for ChatGPT logged-in, Claude logged-in, Copilot, Cursor, Gemini Pro). For free-tier or no-fetch AIs the customer falls back to the send-the-file path.
  • Gemini doesn't honor ?q= URL prefilling, so the script prints a paste-message variant for it.

Tested

  • ./make-launch-links.sh runs cleanly on macOS zsh + python3.
  • Bootstrap message length: 283 chars; URL-encoded length: 335 chars (well under any limit).
  • README links resolve correctly when previewed.

KB-x added 2 commits April 30, 2026 09:56
- Add 'Quick start' table at the top of the BYOAI README listing
  three onboarding paths in order of ease: one-click launch,
  send-the-file, and fully manual / air-gapped. All three remain
  fully supported.
- Add Open-in-ChatGPT and Open-in-Claude badge buttons. Both URLs
  carry a short bootstrap message instructing the AI to fetch
  jvd-mebs-byoai-prompt.txt from GitHub main and adopt it as the
  system prompt. Works in any AI with web fetch.
- Add make-launch-links.sh to regenerate the URLs (and print a
  manual paste-message for Gemini, which does not support ?q= URL
  prefilling).
Use shields.io style=for-the-badge with explicit height=40 and
HTML <a><img></a> tags so each button renders on its own line.
Easier to spot, easier to tap on mobile.
@KB-x KB-x self-assigned this Apr 30, 2026
@KB-x KB-x merged commit 1cb6253 into main Apr 30, 2026
1 check passed
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