Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/andrewyng/openworker
/ functions
Functions
8,537 in github.com/andrewyng/openworker
⨍
Functions
8,537
◇
Types & classes
636
↳
Endpoints
260
↓ 5 callers
Method
complete
(self, **k)
tests/test_reasoning_effort.py:78
↓ 5 callers
Function
compute_next_run
Next fire time (epoch seconds), or None if the task is exhausted/one-shot-past.
coworker/automation/store.py:22
↓ 5 callers
Method
connect
(self)
coworker/connectors/adapters.py:189
↓ 5 callers
Method
connect_mcp
Connect one server NOW — for OAuth servers this may open the browser and wait for the loopback callback, so callers run it as a background tas
coworker/server/manager.py:2182
↓ 5 callers
Function
connector_handoff_info
Whether this connector's grant can MOVE to a machine, and which profile keys the move carries. One grant, one holder (spec §Remote OAuth): the
coworker/connectors/setup.py:691
↓ 5 callers
Method
connector_lists
What a lead may do with connectors for one worker persona ON THIS MACHINE: `ready` (default set, connected — suggest with a reason), `connecta
coworker/server/manager.py:1098
↓ 5 callers
Function
connector_profile_keys
Every stored profile key belonging to one connector — the unit a grant handoff moves to a machine. Mirrors disconnect_connector's enumeration.
coworker/connectors/setup.py:639
↓ 5 callers
Method
consume
(self, group_id: str, member: str, upto_seq: int)
coworker/teams/chat.py:188
↓ 5 callers
Function
content_to_text
Flatten message content (string or parts) to text — for titles, previews, search. Images render as `image_placeholder` (pass "" to drop them, e.g.
coworker/attachments.py:123
↓ 5 callers
Function
decode_mime_header
(raw: Any)
coworker/connectors/email_tools.py:133
↓ 5 callers
Function
default_key
(connector: str)
coworker/connectors/accounts.py:32
↓ 5 callers
Method
defaults_for
The persona's default connector map, seeding it from the manifest on first read. Seeding rule: a ``recommends`` item of kind ``connector`` wi
coworker/connections.py:63
↓ 5 callers
Method
delete_mcp
(self, name: str)
coworker/server/manager.py:2287
↓ 5 callers
Function
deployMachineSecrets
( machineId: string, profiles: string[], )
surfaces/gui/src/api.ts:3644
↓ 5 callers
Function
disallowUser
(name: string, userId: string, teamId?: string | null)
surfaces/gui/src/api.ts:2757
↓ 5 callers
Method
disconnect
(self)
coworker/connectors/adapters.py:363
↓ 5 callers
Method
due
Timer wakes whose fire time has passed, plus completion/event wakes marked due.
coworker/selfwake.py:132
↓ 5 callers
Function
effective_skills
The single source of truth for a session's skill menu (SKILLS-SPEC §3): any-off-wins. A Settings disable removes the skill everywhere — a session
coworker/skills/store.py:459
↓ 5 callers
Function
engine
(mode: Mode, tmp_path, store: RiskOverrideStore)
tests/test_mcp_trust.py:19
↓ 5 callers
Method
ensure
Return a live connection for `server`, connecting (once) if needed. `interactive=True` (explicit connect actions only) lets an OAuth server r
coworker/mcp/client.py:65
↓ 5 callers
Function
ensure_fresh_connector_token
Refresh-on-expiry hook for connector tools: if this is a managed profile about to expire, renew it in place. No-op for manual profiles.
coworker/cloud.py:585
↓ 5 callers
Function
fail
(res: { ok?: boolean; error?: string })
surfaces/gui/src/components/SkillsTab.tsx:112
↓ 5 callers
Function
format_memories
Render memories in full for injection into the system prompt. Ids are shown so the agent can revise a memory (`memory_update`) or retire it (`memo
coworker/memory/base.py:98
↓ 5 callers
Function
getCloudMachines
()
surfaces/gui/src/api.ts:3266
↓ 5 callers
Function
getSessionMessages
(sessionId: string)
surfaces/gui/src/api.ts:365
↓ 5 callers
Function
global_config_path
()
coworker/config.py:188
↓ 5 callers
Function
global_mcp_path
()
coworker/mcp/config.py:44
↓ 5 callers
Method
handle_message
(self, event: MessageEvent)
coworker/connectors/base.py:196
↓ 5 callers
Method
has_tokens
(self)
coworker/remote/stores.py:88
↓ 5 callers
Function
is_readonly_command
True iff `command` is a single command or pure pipeline of local read-only stages.
coworker/readonly.py:169
↓ 5 callers
Method
is_surfaced
(self, persona_id: str)
coworker/personas/registry.py:280
↓ 5 callers
Method
is_trusted
(self, workspace: str | Path)
coworker/workspace_trust.py:41
↓ 5 callers
Function
item_snapshot
(item: dict, *, brief: bool = False)
coworker/teams/tools.py:50
↓ 5 callers
Method
list
( self, *, session_id: Optional[str] = None, state: Optional[str] = None,
coworker/inbox.py:358
↓ 5 callers
Function
load
()
surfaces/gui/src/components/connectors/ConnectorGlance.tsx:103
↓ 5 callers
Method
logout
(self)
tests/test_email_tools.py:75
↓ 5 callers
Function
machineOfSession
(sessionId: string)
surfaces/gui/src/api.ts:116
↓ 5 callers
Function
make_web_search_tool
Build the `web_search` tool. `provider` overrides resolution (used by tests).
coworker/web/tool.py:87
↓ 5 callers
Function
model_labels
Full-id → display-label map, shipped to the GUI so every picker shows human names.
coworker/providers/matrix.py:329
↓ 5 callers
Method
names
(self)
coworker/tools/registry.py:53
↓ 5 callers
Function
network_request_hosts
The hosts a `request_network_access` call names, as ("host:port" entries, rejected inputs). Exact host names only: no wildcards, no addresses, not
coworker/permissions.py:102
↓ 5 callers
Function
offerFor
(persona: string)
surfaces/gui/src/components/TeamRequestCard.tsx:96
↓ 5 callers
Function
onOpen
(e: Event)
surfaces/gui/src/components/RightRail.tsx:243
↓ 5 callers
Function
open_workspace
The session's workspace for the configured provider. `credentials`: the machine's `sandbox_credentials` setting; the enabled entries are copied in
coworker/sandbox/workspace.py:363
↓ 5 callers
Method
pending
(self, session_id: Optional[str] = None)
coworker/selfwake.py:224
↓ 5 callers
Method
pop_mcp_failures
Drain (name, error) for servers that failed while preparing this session's tools — consumed once by the WS handler to append a transcript noti
coworker/server/manager.py:2109
↓ 5 callers
Function
publish
(next: DictationStatus)
surfaces/gui/src/components/SettingsView.tsx:477
↓ 5 callers
Function
read_image_file
(path: str | Path, *, roots=None)
coworker/teams/attachments.py:103
↓ 5 callers
Function
refresh
()
surfaces/gui/src/components/ScheduledView.tsx:80
↓ 5 callers
Function
registerSessionMachine
(sessionId: string, machineId: string | null | undefined)
surfaces/gui/src/api.ts:111
↓ 5 callers
Function
replay_reasoning
Re-attach each assistant message's persisted thinking under the field name it arrived in (OPE-178). Messages without the sidecar are returned unto
coworker/providers/openai_provider.py:83
↓ 5 callers
Function
reply
(frame_id: str, status: int, body: dict[str, Any])
coworker/remote/joiner.py:147
↓ 5 callers
Method
require_attachment_write
Check before reading/copying a capture; attach_ref rechecks at publication.
coworker/teams/store.py:814
↓ 5 callers
Function
resolveInboxItem
( id: string, resolution: string, )
surfaces/gui/src/api.ts:1936
↓ 5 callers
Function
resolve_api_key
Resolve the Gemini API key: env `GEMINI_API_KEY` (then `GOOGLE_API_KEY`, the SDK's own convention) first, else the SecretStore `provider:gemini` p
coworker/providers/gemini_provider.py:104
↓ 5 callers
Method
resolve_workspace
(self, requested: Optional[str])
coworker/server/manager.py:722
↓ 5 callers
Method
reviewer_stats
Per-session Auto-Approve metering (§1.7), computed from the durable rows so it survives restarts and engine rebuilds. `live` counts stage=revi
coworker/audit.py:150
↓ 5 callers
Method
runs
(self, task_id: str, *, limit: int = 50)
coworker/automation/store.py:176
↓ 5 callers
Method
save
(self)
coworker/personas/registry.py:229
↓ 5 callers
Function
scratchBaseIfReady
()
surfaces/gui/e2e-live/helpers.ts:33
↓ 5 callers
Function
search_tools
(workspace: str)
coworker/tools/search.py:59
↓ 5 callers
Function
sendTask
(page: Page, text: string)
surfaces/gui/e2e-live/helpers.ts:81
↓ 5 callers
Function
send_frame
(frame: dict[str, Any])
coworker/remote/joiner.py:140
↓ 5 callers
Method
set_binding
( self, name: str, *, channel: Optional[str] = None, target: str = "" )
coworker/inbox_routing.py:72
↓ 5 callers
Method
set_enabled
(self, persona_id: str, enabled: bool)
coworker/personas/registry.py:351
↓ 5 callers
Method
set_trust
Mint a trust rule (the approval card's "Always allow this tool" writes an EXACT name — a button grants precisely what its card showed, nothing
coworker/overrides.py:144
↓ 5 callers
Method
sign_b64
(self, data: bytes)
coworker/remote/identity.py:72
↓ 5 callers
Function
snapshot
(cfg: Optional[app_config.Config] = None)
coworker/sandbox/settings.py:61
↓ 5 callers
Method
state
(self)
coworker/sandbox/setup_job.py:38
↓ 5 callers
Method
team_tick
Drain team queues (called each scheduler tick + kicked after team turns). One wake consumes a burst as one digest; durable-until-consumed — th
coworker/server/manager.py:3158
↓ 5 callers
Method
terminate
Ends the whole job: the daemon, its shells and everything they started.
coworker/sandbox/winsec.py:283
↓ 5 callers
Method
to_agent
Materialize the runtime Agent (prompt + catalog-expanded tools + traits).
coworker/personas/manifest.py:130
↓ 5 callers
Function
usageFromMessages
(messages: ConversationMessage[])
surfaces/gui/src/usage.ts:49
↓ 5 callers
Function
validate_stored_name
Return one normalized stored name, rejecting malformed input.
coworker/teams/attachments.py:150
↓ 5 callers
Method
verify
A REAL health check for explicit Test actions. `ensure` returns a cached connection untouched, which made Test-on-Live a silent no-op that cou
coworker/mcp/client.py:88
↓ 5 callers
Function
voiceError
(error: unknown)
surfaces/gui/src/components/SettingsView.tsx:456
↓ 5 callers
Function
workItemsItemFromPayload
(d: any)
surfaces/gui/src/cardPayloads.ts:88
↓ 5 callers
Function
write_paths
Every filesystem path a write tool would touch, for root scoping. Returns ``(paths, located)``. ``located`` is False when the path can't be deter
coworker/permissions.py:191
↓ 4 callers
Function
_allow_all
()
tests/test_fake_slack.py:22
↓ 4 callers
Method
_audit_sink_for
The engine's audit sink, stamped with the session's actor so every exported event names the person (or "" for automated runs).
coworker/server/manager.py:5598
↓ 4 callers
Function
_b64
(data: bytes)
coworker/remote/identity.py:43
↓ 4 callers
Method
_bot_token
(self, team_id: str)
coworker/connectors/relay_client.py:313
↓ 4 callers
Function
_build
(server: MCPServerDef, tool_names: list[str])
tests/test_mcp_tool_selection.py:25
↓ 4 callers
Function
_bundle
(tmp_path, name, manifest)
tests/test_sharing_v1.py:35
↓ 4 callers
Method
_candidate
(self, path: str)
coworker/permissions.py:873
↓ 4 callers
Function
_canonical
(payload: dict[str, Any])
coworker/teams/store.py:1478
↓ 4 callers
Function
_change_dacl
(folder: str, sid_text: str, mode: int, permissions: int = 0, inherit: bool = True)
coworker/sandbox/winsec.py:357
↓ 4 callers
Function
_check
(code: int, what: str)
coworker/sandbox/windows_wfp.py:185
↓ 4 callers
Function
_check
(value, schema, path)
coworker/teams/proposals.py:55
↓ 4 callers
Method
_check_access
(self, actor: Actor, case: str)
coworker/teams/journal.py:381
↓ 4 callers
Function
_chunk
(content=None, tool_call=None, finish=None)
tests/test_providers.py:241
↓ 4 callers
Method
_compaction_config
(self)
coworker/engine.py:872
↓ 4 callers
Function
_connect_slack
Inbound delivery is gated on the connector being CONNECTED (§4.3). Tests used to pass by riding the developer's real Slack profile; with the isola
tests/test_message_source.py:71
↓ 4 callers
Function
_ctx
(tmp_path)
tests/test_builtin_personas.py:16
↓ 4 callers
Method
_data
(self)
coworker/mcp/oauth.py:61
↓ 4 callers
Function
_delta
(index, **delta_attrs)
tests/test_anthropic_provider.py:369
↓ 4 callers
Method
_display_name
Resolve a user id to a display name via users.info, cached. Best-effort: None on failure (the caller falls back to the id).
coworker/connectors/adapters.py:304
↓ 4 callers
Function
_docusign_ctx
Return {token, base} — discovering and caching account_id + base_uri from the OAuth userinfo endpoint on first use.
coworker/connectors/integration_tools.py:4753
↓ 4 callers
Function
_door
How to reach the broker for this connector, or None (local-only).
coworker/subscription_sync.py:37
↓ 4 callers
Function
_drain
(agen)
tests/test_auto_approve.py:294
← previous
next →
701–800 of 8,537, ranked by callers