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
↓ 1 callers
Function
_dm_event
(text="ping", chat_id="D1", platform="slack")
tests/test_connections.py:64
↓ 1 callers
Function
_document_block
An OpenAI `file` part (PDF data URL, attachments.py) → an Anthropic document block.
coworker/providers/anthropic_provider.py:235
↓ 1 callers
Method
_domain_allowed
True when the URL's host is an allowed egress destination — an exact match or a subdomain of an allowed domain (so `docs.python.org` matches `
coworker/permissions.py:934
↓ 1 callers
Function
_drain
(ws)
tests/test_skills_api.py:289
↓ 1 callers
Function
_drain_retry
(engine)
tests/test_engine_stop.py:386
↓ 1 callers
Function
_dump
An output item (SDK model, dict, or test namespace) → plain jsonl-safe data.
coworker/providers/openai_responses.py:193
↓ 1 callers
Method
_durable_resume
(self, item)
coworker/server/manager.py:1939
↓ 1 callers
Function
_effort_level
`reasoning_effort` must be one of EFFORT_LEVELS (case-insensitive); empty = unset.
coworker/config.py:305
↓ 1 callers
Function
_effort_record
The effort record for a reply, read from the kwargs that were finally sent (after the param-fix retries may have dropped or pinned the parameter).
coworker/providers/openai_provider.py:167
↓ 1 callers
Function
_effort_summary
What the run record says about effort. Set: the level requested plus what the provider reported sending on each reply. Unset: the provider default
coworker/headless/runner.py:1243
↓ 1 callers
Function
_enabled_connector_tools
(secrets: SecretStore)
coworker/agent.py:156
↓ 1 callers
Function
_encode_png
Minimal PNG writer (RGB/RGBA, 8-bit) so we don't ship Pillow just for this — the packaged sidecar deliberately excludes PIL (bundle size, signing
coworker/pdf_support.py:131
↓ 1 callers
Function
_engine
(agent, secrets, tmp_path)
tests/test_chat_tools.py:150
↓ 1 callers
Method
_engine_build_lock
(self, session_id: str)
coworker/server/manager.py:773
↓ 1 callers
Function
_ensure_api_token
Set launch auth; standalone/dev tokens use a user-only, port-specific file.
coworker/server/run.py:128
↓ 1 callers
Function
_ensure_ca_bundle
Point SSL at certifi's CA bundle if the interpreter has none configured. macOS framework Python ships without a usable system trust store for `aio
coworker/server/run.py:112
↓ 1 callers
Method
_env_set
Variables for the shells started from now on (a provider that could not pass an environment at start, or learned a path only after connecting)
coworker/sandbox/runner/daemon.py:207
↓ 1 callers
Method
_environment
Only what the account's own environment lacks: the person's PATH (the account's knows nothing of their tools) and the proxy. The account has a
coworker/sandbox/providers/windows.py:186
↓ 1 callers
Method
_environment
(self)
coworker/sandbox/providers/seatbelt.py:144
↓ 1 callers
Method
_evaluate_network_request
(self, arguments: dict[str, Any])
coworker/permissions.py:806
↓ 1 callers
Function
_events
(engine, text="hi")
tests/test_session_socket_sandbox_build.py:86
↓ 1 callers
Method
_execute_sync
Execute one authorized call (runs in a worker thread).
coworker/engine.py:1979
↓ 1 callers
Function
_exit_when_orphaned
When launched as a desktop sidecar (`COWORKER_EXIT_WITH_PARENT=1`), exit if the parent process dies — even on an abrupt kill (e.g. the Tauri dev w
coworker/server/run.py:18
↓ 1 callers
Function
_explicit
(sid: _Sid, mode: int, permissions: int = 0, inherit: bool = True)
coworker/sandbox/winsec.py:346
↓ 1 callers
Function
_extra_dirs
The `--add-dir DIR` folders as writable roots: created if missing, deduplicated, and without the workspace itself (always the first root).
coworker/headless/runner.py:685
↓ 1 callers
Method
_fail
(self, req_id: Optional[str], code: int, message: str, data: Optional[dict] = None)
coworker/sandbox/runner/daemon.py:158
↓ 1 callers
Method
_failed
(self, command: str, message: str)
coworker/sandbox/executor.py:48
↓ 1 callers
Function
_fake_tool
(name)
tests/test_mcp_connectors.py:184
↓ 1 callers
Function
_fetch_display_name
users.info → the human's name (display name, else real name). None on any failure.
coworker/connectors/attribution.py:31
↓ 1 callers
Function
_fields
(buf: bytes)
coworker/sandbox/providers/openshell_wire.py:64
↓ 1 callers
Function
_figma_summarize
(node: dict[str, Any], depth: int)
coworker/connectors/integration_tools.py:4445
↓ 1 callers
Function
_filtered
(mcp_tools: list[Any], server: MCPServerDef)
coworker/mcp/tools.py:46
↓ 1 callers
Function
_final_answer
The text of the coworker's last reply.
coworker/headless/runner.py:1212
↓ 1 callers
Function
_find_card
The mirrored approval card = a chat.postMessage carrying Block Kit blocks.
tests/test_ui_refresh_e2e.py:84
↓ 1 callers
Function
_find_machine
(client, headers: dict, mid: str)
coworker/server/app.py:1965
↓ 1 callers
Function
_find_reply
A plain (no-blocks) chat.postMessage = the agent's send_message reply.
tests/test_ui_refresh_e2e.py:102
↓ 1 callers
Function
_firewall_rule_enabled
()
coworker/sandbox/providers/windows_setup.py:368
↓ 1 callers
Function
_first_user_text
(out: Path)
tests/test_headless_run.py:422
↓ 1 callers
Function
_fit
(candidates: list[int])
coworker/compaction.py:186
↓ 1 callers
Method
_fix
(self, step: setup_cmd.Step)
coworker/sandbox/setup_job.py:138
↓ 1 callers
Function
_fwp
()
coworker/sandbox/windows_wfp.py:156
↓ 1 callers
Function
_gated
(func: Callable, schema: dict, *, approval: bool)
coworker/automation/tools.py:137
↓ 1 callers
Function
_gateway
(host:port, folder with the client certificate) of the active gateway.
coworker/sandbox/providers/openshell.py:217
↓ 1 callers
Function
_gateway_is_remote
()
coworker/sandbox/providers/openshell.py:156
↓ 1 callers
Function
_gcal_account_list
(secrets: SecretStore)
coworker/connectors/setup.py:252
↓ 1 callers
Function
_gemini_response
(text, usage_metadata=None)
tests/test_token_usage.py:231
↓ 1 callers
Method
_generate_autotitle
One cheap non-streaming completion on the session's own provider/model. Every failure (provider error, empty, absurdly long) is swallowed — th
coworker/server/manager.py:7330
↓ 1 callers
Function
_get
(door: dict[str, Any], path: str)
coworker/subscription_sync.py:163
↓ 1 callers
Function
_get_pages
Cursor-paginated GET; raises RuntimeError with Slack's error string.
coworker/connectors/slack_directory.py:50
↓ 1 callers
Function
_gh_frame
(**over)
tests/test_github_installs.py:210
↓ 1 callers
Function
_git
(*args, cwd=None)
tests/test_configured_spawn.py:133
↓ 1 callers
Function
_git
(workspace: Path, *args: str)
coworker/environment.py:18
↓ 1 callers
Function
_git_branch
(path: Path)
coworker/server/manager.py:8375
↓ 1 callers
Function
_git_common_dir
(workspace: Path)
coworker/projects.py:22
↓ 1 callers
Function
_git_ok
(args: list[str])
coworker/readonly.py:102
↓ 1 callers
Function
_git_remotes
`(name, url)` per remote, deduplicated (git prints fetch and push separately). Best-effort by design: no git, not a repo, or a hang all yield an
coworker/session_facts.py:50
↓ 1 callers
Function
_git_snapshot
(workspace: Path)
coworker/environment.py:33
↓ 1 callers
Function
_github_base
()
coworker/connectors/integration_tools.py:391
↓ 1 callers
Function
_github_git_base
()
coworker/connectors/integration_tools.py:470
↓ 1 callers
Function
_github_headers
(token: str)
coworker/connectors/integration_tools.py:383
↓ 1 callers
Function
_github_install_profiles
(installation_id, profile) for every managed GitHub App installation.
coworker/connectors/config.py:133
↓ 1 callers
Function
_github_installations
(secrets: SecretStore)
coworker/connectors/setup.py:211
↓ 1 callers
Function
_github_thread
(number_arg: str)
coworker/connectors/tool_defs.py:33
↓ 1 callers
Function
_gmail_account_list
(secrets: SecretStore)
coworker/connectors/setup.py:228
↓ 1 callers
Function
_gmail_from_address
(message: dict[str, Any])
coworker/connectors/integration_tools.py:264
↓ 1 callers
Function
_go
()
tests/test_message_timestamps.py:67
↓ 1 callers
Function
_go
()
tests/test_attendance_auto.py:108
↓ 1 callers
Function
_go
()
tests/test_session_facts.py:190
↓ 1 callers
Function
_go
()
tests/test_dangerous_mode.py:170
↓ 1 callers
Method
_handle
(self, frame: dict[str, Any])
coworker/sandbox/client.py:209
↓ 1 callers
Method
_handle_command
(self, command: str)
coworker/tui/app.py:209
↓ 1 callers
Method
_handle_connector_request
`request_connector` (ask the human to connect a service) and `grant_connector` (a lead asks the human to give one of its workers a connector)
coworker/engine.py:2191
↓ 1 callers
Method
_handle_items_proposal
The decomposition gate: emit the proposed items, await the user's decision. Approval creates them on the board (server-side, inside the approv
coworker/engine.py:2140
↓ 1 callers
Method
_handle_plan_proposal
Emit the plan for review, await the user's out-of-band decision, and apply it: approval flips the live PermissionEngine out of plan mode (the
coworker/engine.py:2300
↓ 1 callers
Method
_handle_team_proposal
The staffing gate: emit the proposed roster, await the user's out-of-band decision. Approval PRE-SPAWNS the worker sessions (server-side, insi
coworker/engine.py:2232
↓ 1 callers
Method
_handle_tool_request
Emit the install prompt, await the user's decision, hand the outcome back. Declining is a normal outcome, not an error: the result tells the
coworker/engine.py:2367
↓ 1 callers
Function
_handoff_failed
(error: str, *, status: int = 400)
coworker/server/app.py:2050
↓ 1 callers
Function
_handshake
( ws, identity: MachineIdentity, name: str, token: Optional[str] )
coworker/remote/joiner.py:93
↓ 1 callers
Method
_has_manual_slack_inbox_binding
(self)
coworker/server/manager.py:5069
↓ 1 callers
Function
_has_setup
()
tests/test_sandbox_windows.py:22
↓ 1 callers
Function
_has_unquoted_shell_variable
(command: str)
coworker/readonly.py:59
↓ 1 callers
Function
_heartbeat
()
coworker/remote/acceptor.py:1077
↓ 1 callers
Method
_hello
(self, params: dict[str, Any])
coworker/sandbox/runner/daemon.py:188
↓ 1 callers
Method
_history_has_images
(self)
coworker/engine.py:486
↓ 1 callers
Function
_home_for
(target: Path, root: Path, extra_roots: Sequence[Path])
coworker/sandbox/runner/tools_read.py:27
↓ 1 callers
Function
_hosts
(name: str, hosts: Sequence[str])
coworker/sandbox/providers/openshell_policy.py:39
↓ 1 callers
Function
_http_response
(status: str, title: str, body: str)
coworker/providers/codex_auth.py:307
↓ 1 callers
Function
_hubspot_portal_list
(secrets: SecretStore)
coworker/connectors/setup.py:276
↓ 1 callers
Function
_human_time
(hour: int, minute: int)
coworker/automation/models.py:64
↓ 1 callers
Function
_image_block
An OpenAI `image_url` part → an Anthropic image block. Attachments are always data URLs (attachments.py); plain http(s) URLs map to a url source.
coworker/providers/anthropic_provider.py:217
↓ 1 callers
Function
_image_part
An OpenAI `image_url` part → a Gemini inline_data part. Attachments are always data URLs (attachments.py). Plain http(s) URLs are not fetchable by
coworker/providers/gemini_provider.py:118
↓ 1 callers
Function
_imap_date
(value: str)
coworker/connectors/email_tools.py:222
↓ 1 callers
Function
_imap_login
(profile, servers, factory)
coworker/connectors/email_tools.py:120
↓ 1 callers
Function
_inbound_epoch
Best-effort epoch-seconds for a MessageSource: a Slack-style ts, else wall-clock now.
coworker/server/manager.py:8309
↓ 1 callers
Function
_index_line
One-line rendering: the saved summary, or a truncated first line for rows written before summaries existed (no data migration).
coworker/memory/base.py:87
↓ 1 callers
Function
_inference_config
Whitelisted engine settings → Converse `inferenceConfig` (camelCase).
coworker/providers/bedrock_provider.py:269
↓ 1 callers
Method
_init
(self)
coworker/automation/store.py:83
↓ 1 callers
Method
_initialize
(self)
coworker/mcp/oauth.py:257
↓ 1 callers
Method
_interrupted_tool
The stop-path answer for a call that will not run: a tool-error result in the history (hosted chat templates reject orphaned tool_calls, and d
coworker/engine.py:1201
↓ 1 callers
Function
_is_controller_address
A bare address (no path): enroll by approving a code there, not with a link.
coworker/remote/joiner.py:685
← previous
next →
2,301–2,400 of 8,537, ranked by callers