Repository navigation
One search across the World's saved Service context for Agents - #666
Merged
Merged
Conversation
The world tool world_context (context/search and context/read) searches and reads what the World keeps up to date from every connected Service, without asking a Service. Every "Can read <Service>" Grant names both targets, and an answer holds only the Services the calling Agent may read. It runs on the standing worldlet MCP server, so it also works through Remote access. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QruYYCM2FUfEGXqKwSd7m7
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.
Gap fix B. Since #657, a connected Service's context is saved into the World every hour. Agents can now search and read that saved context with one World tool instead of calling each Service live.
world_context(targetscontext/searchandcontext/read):searchtakes aqueryand matches every word against the saved records of every Service the Agent may read. It returns at most 20 results, each with an ID<provider>:<recordId>and a short snippet.readtakes one of those IDs and returns the saved record.turn-trust.ts). It reads only the saved snapshots, so a search makes no request to the Service.serviceGrantTargets), so granting a Service also covers its saved context.read_serviceon that Service (standingCallDecision). A Service the Agent may not read is never searched for it.OWN_GRANT_TARGETS). Fox itself is refused with a pointer toread_service.core/accounts/services/context.ts(serviceContext, limits and reasons).serviceContextinmodules/sources/service-sync.ts, over the current non-Notion sync jobs.world-tool-bridge.ts.Docs: INTEGRATIONS.md § Searching saved Service context, GRANTS.md, README.md and README.zh.md.
Checks:
scripts/service-context-check.ts, added to test:core.agent-grants-checkgithub-service-checkharness-sessions-checkmcp-service-records-checkworld-actions-equivalence-checknpm run check:pr,npm testandnpm run test:ui:prpass locally.Generated by Claude Code