Repository navigation
feat(scient): use the person's ChatGPT apps through the ChatGPT sign-in - #57
Merged
Merged
Conversation
The apps a person connected in ChatGPT (Gmail, Google Drive, Calendar and the others) sit behind one MCP server of ChatGPT's, the one the Codex apps use. Scient Agent now reaches it with the stored openai-codex sign-in, through the shared OAuth retry. `scient-agent apps [--json]` lists the connected apps, so a host can show them. A host that sets SCIENT_AGENT_CHATGPT_APPS (`all`, app ids, `-<id>` to leave one out) gets the chosen apps' tools in its sessions, named <app>__<tool> and loaded on demand under xd://. ChatGPT's own connector_openai_* features are never listed or registered. A tool result carries the app's structured data, which holds what it found. A lost link to the service says where to reconnect the app. Scient-Divergence: SA-CHATGPT-APPS Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A host learns from hostCommands that this build has `apps` and `dictate`; an executable without a command reads the word as a prompt, so checking the list is safer than guessing from the version. Scient-Divergence: SA-PRODUCT Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A client now stays on the ChatGPT account its first request used: the OAuth retry resolves one stored sign-in for it, and a call that would run through another account is refused instead of reaching that account's apps. Listings are kept per credential store, so another store's sessions in the same process never share a client. Scient-Divergence: SA-CHATGPT-APPS Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
Author
|
Two follow-up commits on this PR:
🤖 Generated with Claude Code |
This was referenced Nov 14, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Scient Agent can now use the apps a person connected in ChatGPT, such as Gmail, Google Drive and Calendar, through its own ChatGPT sign-in. It uses the same apps server that Codex uses (
chatgpt.com/backend-api/ps/mcp).What's new
scient-agent apps [--json]lists the connected apps, so Scient Desktop can show them in Extensions.{ "apps": [{ "id", "name", "description"?, "tools", "readOnlyTools" }] }.{ "error": { "kind": "signed-out" | "unavailable", "message" } }and exits 1.SCIENT_AGENT_CHATGPT_APPSlets a host choose apps for its sessions:all, app ids, or-<id>to leave one out.<app>__<tool>, which load on demand underxd://.connector_openai_*features are left out.Checked
bun test test/scientpasses (91), along with type-check, lint, format and the divergence check.apps --jsonlisted 18 apps (Gmail 21 tools, Google Drive 45, Calendar 15, ...).SCIENT_AGENT_CHATGPT_APPS=allon GPT-6 Luna answered "how many emails did I get in the last 2 days" throughxd://gmail__search_email_ids.reviews/account-apps-20261114/RECORD.mdin the ScientFactory workspace.Platforms: the code has no platform-specific parts. I tested on macOS only; Windows and Linux behave the same, and only the CI build covers them.
Release: this ships in the next Scient Agent release, which is held until #53 merges. Scient Desktop gates on that version.
Scient-Divergence: SA-CHATGPT-APPS
🤖 Generated with Claude Code