π€― LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.
Agent Share gate: builtin allowlist evidence
Reviewer record for AGENT_SHARE_ALLOWED_BUILTIN_IDENTIFIERS (@lobechat/builtin-tools). Update it whenever an identifier is added to or kept out of that allowlist.
Denied builtins
Rationale for every registered builtin identifier that is DENIED β i.e.
absent from AGENT_SHARE_ALLOWED_BUILTIN_IDENTIFIERS. Under a denylist an
identifier had to be explicitly proven dangerous to be blocked; under the
allowlist an identifier has to be explicitly proven safe to be exposed, so
this block exists purely to record the evidence trail for reviewers β the
denial itself needs no code beyond "not in the Set".
Confirmed leak paths (a concrete visitorβcreator-data route was found):
lobe-agent-management:agentManagementRuntimeis scoped byuserId(the creator β the run executes as the creator), butagentIdis a free-form model argument on nearly every API.searchAgentenumerates the creator's whole workspace;getAgentDetailreturns any creator-owned agent's full config (system prompt included) for an arbitrary id;createAgent/updateAgent/updatePrompt/duplicateAgent/installPluginpersistently mutate the creator's agent collection.agent-signal-review:listManagedSkills/getManagedSkillprefer an optional model-suppliedagentIdover the context-bound one, letting a visitor read ANY other agent's private managed-skill catalog under the same creator.writeMemory/createSkillIfAbsent/replaceSkillContentCASare unconditional creator-scoped mutations, and share grants arenone/readonly.lobe-skill-maintainer/agent-signal-skill-management: hidden, system-only tools whose every API WRITES agent-document rows under the creator's account. No write grant exists to honor.lobe-task/builtin-goal:TaskModel/taskRouterare scoped only byuserId/workspaceIdβ the CREATOR's. Every mutating and single-task-read API takes a model-supplied identifier resolved with no topic/conversation check, letting a visitor read, edit, delete, reschedule or RUN (spending the creator's budget) any task in the workspace.listTasks'sscope: 'allAgents'makes the breadth explicit.lobe-creds:injectCredstakes a free-formkeys: string[]and decrypts matching entries out of the creator's ENTIRE saved credential store.lobe-message: every bot-management API resolvesbotIdstraight from model args with no check againstcontext.agentId; the messenger APIs act on the creator's whole personal messenger account.lobe-skill-store: theimportFrom*family fetches attacker-chosen remote code/zip content and persists it into the creator's skill catalog.lobe-agent-builder:updateConfig/updatePromptoverwrite the shared agent's ownsystemRole/config wholesale β a visitor rewriting the creator's live agent.installPlugininstalls an arbitrary market MCP plugin onto it as the creator, with no consent step.lobe-brief:createBriefunconditionally persists a row viaBriefModel.createundercontext.userId(the creator) from model-supplied content, with no intervention marker to gate it.lobe-group-agent-builder/lobe-group-management: group-orchestration tools operating on the creator's group-agent collection and membership, with no share-run scoping designed in β same risk class aslobe-agent-management.
Denied for lack of positive safety evidence (no confirmed exploit was required to withhold access β the point of default-deny is that an unproven tool does not ship):
lobe-local-system/lobe-browser/lobe-remote-device: these proxy throughdeviceGatewayto the creator's own registered physical device(s). A visitor executing arbitrary commands or driving a live browser session on the CREATOR's own machine is a far larger blast radius than any single data store, so they are never offered through the tool picker. They are granted only byshareConfig.deviceAccess:contactsadmits everyone currently in the address book of the Agent's scope (personal contacts, or the workspace's members and external contacts), including people added later;allowlistadmits only visitors named indeviceAllowUserIds, and only while they are still in that address book.everyoneadmits every signed-in visitor holding the link, set only after the creator confirms that it reaches strangers; a legacy storedallstays denied. The explicit creator choice is resolved once per gate byresolveShareVisitorDeviceAccessintocanUseDeviceand re-applied at dispatch. The same grant admits device-only MCP servers (which still need their own tool grant). The device is always the Agent's configured execution environment; a visitor never picks it, and project directories stay denied. The grant covers the engine's device tools (DEVICE_TOOL_IDENTIFIERS, so computer use too) except thelobe-remote-devicepicker: with it the visitor's model could list and activate the creator's other machines, so it stays default-denied even under the grant. The same grant lets the visitor run a heterogeneous Agent that runs locally (Claude Code, Codex and the other local CLIs) on that device; without it the run is refused, and a share run never falls back to the cloud sandbox.lobe-web-onboarding: reads and WRITES the creator's own onboardingSOUL.mddocument and persona.lobe-self-feedback-intent/agent-signal-reflection/agent-signal-feedback-intent: hidden, system-only self-iteration tools whose write paths were never audited for share safety.lobe-page-agent: not unsafe β genuinely unreachable for a share visitor's run (execAgentstrips it wheneverappContext?.scope !== 'page', and the share visitor path never setsscope), so allowlisting it would only let the owner-facing tool picker confirm a grant no visitor conversation can ever exercise.lobe-user-interaction: originally denied because share runs were forced headless, so it could never honestly complete. Share runs now honor the visitor's approval flow, but it stays denied until audited on its own.Device-only MCP servers (stdio, or an HTTP endpoint on localhost / a private network): not builtin identifiers, so the allowlist above never sees them β the server can only call them by tunneling to the creator's online desktop app (or, with no device gateway, by spawning the binary on the server itself), exactly as it would for the creator. Without the share's device grant,
applyShareGateToToolSetdrops them regardless oftoolGrantsandToolExecutionService.executeMCPToolrefuses the dispatch; with it, they follow their ordinarytoolGrantsentry.
Allowed builtins with general reach
Positive evidence for builtin identifiers that WERE added to
AGENT_SHARE_ALLOWED_BUILTIN_IDENTIFIERS despite reaching outside a single
data store β recorded here, rather than left implicit, because their
general-purpose reach needs an explicit safety argument instead of just the
absence of a known exploit.
lobe-cloud-sandbox: general-purpose shell/script execution, but a share visitor's run gets a fresh, isolated per-topic sandbox session β never the creator's own sandbox state. ThelhCLI's JWT credential shim (preprocessLhCommand.ts) that would otherwise mint a creator-scoped token inside a shell the visitor controls is skipped entirely foragentShareVisitorruns (serverRuntimes/cloudSandbox.ts), andlobe-credsstays denied above so nothing ever writes~/.creds/envinto that session either. No creator credential or JWT is therefore reachable from inside a visitor's sandbox command. The kept manifest'ssystemRolealso getsshareVisitorSystemPromptappended (applyShareGateToCloudSandboxintoolSet.ts), so the model knowslhis refused before it plans a flow the agent prompt or a skill routes through the CLI.lobe-activator: widens the run's tool surface at runtime, so it is allowed only because every source it reads is already the gated set. Never picked by the owner: any tool grant implies it, and so does the device grant (Computer Use is discoverable, not enabled), scoped toactivateTools(shareGate/grants.ts:132, which also overrides a stored entry so nothing widens it to the runtime's unlistedactivateSkill), and assembly drops it again when no granted tool is left to activate, counting restored historical activations as already enabled (shareGate/toolSet.ts:166). A kept activator gets the share-visitorsystemRole(getSystemPromptForShareVisitor), which omits the default prompt's push to activatelobe-skill-storefirst and keeps itsactivateSkilllines only whenlobe-skillsitself survived the gate. Credential discovery lives in thelobe-credsmanifest, which the gate excludes.- What it can see.
<available_tools>is the operation'smanifestMapminus enabled tools (apps/server/src/modules/AgentRuntime/executorHelpers.ts:644), and that map is the oneapplyShareGateToToolSetpruned in place (apps/server/src/services/aiAgent/pipeline/operationPrep.ts:559). An ungranted MCP server or plugin contributes no name or description. - What it can activate.
activateToolsonly resolves ids present incontext.toolManifestMap(apps/server/src/services/toolExecution/serverRuntimes/activator.ts:166), which is the step'seffectiveManifestMap(apps/server/src/modules/AgentRuntime/adapters/ServerToolTransport.ts:310): the gated operation map plus manifests of earlier activations, themselves copied from the same map (packages/agent-runtime/src/executors/tool.ts:117,:567). An ungranted id comes back as "Not found". - Calls in the same step. The tool-call resolver only accepts a call the
step offered, or one whose identifier and API exist in the step's
prompt manifests (
packages/context-engine/src/engine/tools/ToolNameResolver.ts:284); a tool activated in this response is not offered until the next step, so a same-response call to it is dropped. Whatever does reach dispatch still meets the dispatch-time gates:isShareBlockedBuiltinDispatchfor builtins (apps/server/src/services/toolExecution/builtin.ts:192) and the gated manifest lookup for MCP (apps/server/src/services/toolExecution/index.ts:253). - Activations restored from history.
operationPrepre-derives them intoactivatableToolIds(apps/server/src/services/aiAgent/pipeline/operationPrep.ts:535) before the share gate prunes that list, andAgentRuntimeServicerestores only ids still in it (apps/server/src/services/agentRuntime/AgentRuntimeService/createOperation.ts:182). - Its skill fallback.
activateToolsretries a non-tool id as a skill name. That lookup re-checksshareConfig.skillGrantson every source it opens (apps/server/src/services/toolExecution/serverRuntimes/activator.ts:97), the same rule the skills runtime enforces, so it cannot reach a skill the share did not grant.
- What it can see.
lobe-skills: the tool DOES resolve skills out of the creator's personal catalog β that is what it is for, and it was denied for exactly that reason until the catalog stopped being the unit of authorization. What changed is that the creator now names individual skills (shareConfig.skillGrants), so the reachable set is an explicit allowlist instead of "everything the creator owns minus an opt-outdisabledSkillIdsset". Three things make that allowlist the real boundary rather than a UI suggestion:- the operation's skill pool is intersected with it at assembly
(
filterSkillsByShareGate, applied inoperationPrep); activateSkillresolves a MODEL-SUPPLIED name, so assembly alone would be bypassable β the skill runtime re-checks the allowlist at load time, on every path that opens skill content (name/id resolution AND the archive/resource loads thatexecScriptandreadReferencereach through). A name outside the grant fails there even if the model invents it;- only
activateSkill/readReferencesurvive at all (AGENT_SHARE_SKILL_API_NAMES, enforced by the rule above): both are pure reads of granted skill content. The exec-class APIs, which are what would turn a granted skill into arbitrary code running as the creator, stay blocked.
The grant deliberately carries whatever the granted skill itself does β a creator who opens a skill opens that skill's instructions, and that is the premise of Agent Share, not a hole in it. The gate's job is to execute the grant exactly, not to second-guess which skills a creator should share.
- the operation's skill pool is intersected with it at assembly
(
lobe-work: the one builtin a visitor run gets WITHOUT a creator grant (AGENT_SHARE_IMPLIED_BUILTIN_IDENTIFIERS):resolveEffectiveShareToolGrantsimplies it,getShareGrantActivatedPluginIdsenables it, andfilterPluginsByShareGatekeeps it, so the owner's picker shows no toggle for it. It only registers what the run produced as Work cards:- the run (operation, topic, tool call, assistant message) comes from the execution context, never from model arguments;
- writes go through
WorkModelunder the share scope pinned to the visitor topic (resolveRunWorkAccessScope), so the Works never reach the creator's ordinary lists; a visitor run without a topic is refused; updateWork/deleteWorkreach only Works this conversation created through the tool orlh work(agentEditable), never ones collected automatically or made in another conversation;- collection images must be images of the run's account
(
resolveAgentWorkCollectionItems): a generated image or run output must also appear in a tool result of the visitor topic, and any other image must come from anexportFilecall of that topic (its state'sfileId), so a guessed id of another creator image is refused as not found.
Its implied grant is added after the activator check, so it never implies
lobe-activatoron its own.