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
_schema
(name: str, description: str, properties: dict[str, Any], required: list[str])
coworker/connectors/chat_tools.py:45
↓ 1 callers
Function
_schema
( name: str, description: str, properties: dict[str, Any], required: list[str] )
coworker/connectors/integration_tools.py:40
↓ 1 callers
Function
_schema_for
Generate one OpenAI-format tool schema via aisuite's schema generator.
coworker/tools/registry.py:69
↓ 1 callers
Function
_scripted_effort
The fake model echoes the level as a real provider's record would.
coworker/headless/runner.py:336
↓ 1 callers
Function
_secret_values
Values of environment variables that look like credentials (for redaction).
coworker/headless/runner.py:460
↓ 1 callers
Function
_seed
(folder: Path)
tests/test_sandbox_tools.py:31
↓ 1 callers
Function
_seed
(store: ConversationStore, sid: str, n: int)
tests/test_conversation_jsonl_robustness.py:13
↓ 1 callers
Method
_send
(self, message: dict[str, Any])
coworker/remote/channel.py:268
↓ 1 callers
Function
_send_newer
(doc=doc, current=current)
coworker/remote/acceptor.py:1127
↓ 1 callers
Function
_send_telegram
( token: str, chat_id: str, text: str, thread_id: Optional[str] = None )
coworker/connectors/senders.py:30
↓ 1 callers
Method
_serve
( self, server: MCPServerDef, ready: asyncio.Future, *, interactive: bool = False )
coworker/mcp/client.py:136
↓ 1 callers
Function
_serve_channel
Steady state: dispatch each RPC concurrently so a slow request never blocks the next one; bridged WebSocket streams (live sessions) run as their
coworker/remote/joiner.py:125
↓ 1 callers
Function
_server_host
The hostname an HTTP server's calls reach (lowercased), "" for stdio/unparseable.
coworker/mcp/tools.py:101
↓ 1 callers
Method
_session_liveness
(self, session_id: str)
coworker/server/manager.py:7900
↓ 1 callers
Function
_session_sandbox
The session's sandbox, for its header chip. Never raises: a header must not break a session.
coworker/server/app.py:172
↓ 1 callers
Method
_session_team_row
(self, record: SessionRecord)
coworker/server/manager.py:7853
↓ 1 callers
Method
_set_row
(self, key: str, **changes: Any)
coworker/sandbox/setup_job.py:50
↓ 1 callers
Method
_setup_error
(self, exc: Exception)
coworker/connectors/browser_automation.py:108
↓ 1 callers
Function
_shell_download_paths
Output paths of fetch commands. `curl URL | sh` writes no file and needs no entry: a pipe already costs a command its prefix eligibility, so it ga
coworker/provenance.py:172
↓ 1 callers
Method
_shell_run
(self, req_id: str, params: dict[str, Any])
coworker/sandbox/runner/daemon.py:247
↓ 1 callers
Function
_shell_turns
()
tests/test_server.py:1077
↓ 1 callers
Method
_should_notify_mcp_failure
True once per failure episode: the first session after `name` starts failing (or its error text changes) notices; unchanged-broken stays quiet
coworker/server/manager.py:2090
↓ 1 callers
Function
_sidecar_extras
Output items → the `_openai` sidecar, or {} when replay would add nothing. Reasoning items without `encrypted_content` are dropped: under `store:
coworker/providers/openai_responses.py:221
↓ 1 callers
Function
_sig_str
A part's thought signature as a base64 string (jsonl-safe; the SDK's base64 bytes validation turns it back into the original bytes on send).
coworker/providers/gemini_provider.py:322
↓ 1 callers
Function
_site
(entry: str)
coworker/headless/terminal.py:61
↓ 1 callers
Method
_site_allowed
On the machine's list, or granted by the user for this session. A session grant counts in every mode here: a person gave it, on a card only a
coworker/permissions.py:865
↓ 1 callers
Function
_site_name
github.com:443" reads as "github.com": the port only matters when it is not the web's.
coworker/sandbox/workspace.py:326
↓ 1 callers
Function
_skill
(base, name, description="a skill")
tests/test_persona_skills.py:36
↓ 1 callers
Function
_skill_dirs
(workspace: Optional[Path])
coworker/agent.py:205
↓ 1 callers
Method
_slack_actor_owns_item
Authorize a Slack resolution against both its owner and delivery binding.
coworker/server/manager.py:5078
↓ 1 callers
Function
_slack_frame
()
tests/test_github_installs.py:228
↓ 1 callers
Method
_sleeping_until
(self, session_id: str)
coworker/server/manager.py:7892
↓ 1 callers
Function
_slugify
Normalize a filename stem into the persona-id charset (used only for ids derived from filenames; explicit `id:` values must already be valid).
coworker/personas/manifest.py:222
↓ 1 callers
Function
_smtp_login
(profile, servers, factory)
coworker/connectors/email_tools.py:126
↓ 1 callers
Method
_snapshot
Copy a manifest into the managed install area; return the snapshot path (or None if no managed area is configured, e.g. an ephemeral in-memory
coworker/personas/registry.py:519
↓ 1 callers
Function
_solid_png
(r: int, g: int, b: int, size: int = 32)
tests/test_attachments.py:22
↓ 1 callers
Function
_sources
()
coworker/sandbox/bundle.py:41
↓ 1 callers
Method
_spawn_configured_session
A configuration's "new session" target (spec §10.4): coworker, first runnable model, a fresh directory (never an automatic checkout), the list
coworker/server/manager.py:6774
↓ 1 callers
Method
_spawn_mention_session
First tag in a thread: a NEW visible coworker session that owns the thread. Its in-thread replies carry a standing grant (§25 shape, exact-tar
coworker/server/manager.py:6860
↓ 1 callers
Method
_spawn_shadow_review
Shadow evaluation (spec Part 6 step 3): record what the reviewer WOULD have decided about this card, without touching anything. Fire-and-forge
coworker/engine.py:1480
↓ 1 callers
Function
_specificity
More literal (non-wildcard) characters = more specific; an exact pattern beats any glob.
coworker/overrides.py:34
↓ 1 callers
Function
_split_frontmatter
(text: str)
coworker/personas/manifest.py:205
↓ 1 callers
Function
_ssh_path
A path in an ssh config: quoted when it has spaces; forward slashes on Windows, which Windows OpenSSH reads and which keeps backslashes from being
coworker/sandbox/credentials.py:380
↓ 1 callers
Function
_ssh_probe
Reaches GitHub over SSH through whatever the sandbox provides. A throwaway key gets "Permission denied (publickey)": the tunnel, the config and th
tests/test_sandbox_windows.py:129
↓ 1 callers
Method
_ssh_proxy_command
(self)
coworker/sandbox/providers/windows.py:195
↓ 1 callers
Function
_stable_error
An error string with per-process noise removed, for change detection only: hex object addresses and long digit runs (pids, ports, timestamps) vary
coworker/server/manager.py:207
↓ 1 callers
Function
_stage_ok
(argv: list[str])
coworker/readonly.py:138
↓ 1 callers
Method
_stage_single_md
The bare-.md path: one SKILL.md, no resources. Frontmatter must carry the name (there is no folder to fall back to).
coworker/skills/store.py:340
↓ 1 callers
Function
_stage_targets
File operands of one accepted pipeline stage.
coworker/readonly.py:201
↓ 1 callers
Function
_start_callback_server
Bind the fixed loopback port and resolve the future with the auth code when the redirect (carrying the matching `state`) lands.
coworker/providers/codex_auth.py:316
↓ 1 callers
Function
_state_from_url
Pull the `state` query param out of an authorize URL (None if absent).
coworker/mcp/oauth.py:173
↓ 1 callers
Function
_status_code
(exc: Exception)
coworker/providers/codex_provider.py:31
↓ 1 callers
Method
_steer_tool
The lead's downward steering verb. Text lands in the worker's session attributed [Lead] — queued into a live turn, or a fresh background turn
coworker/server/manager.py:2949
↓ 1 callers
Function
_store_lock
(path: Path)
coworker/secrets.py:220
↓ 1 callers
Function
_strip_html
(html: str)
coworker/connectors/email_tools.py:148
↓ 1 callers
Function
_stub_broker_mint
cloud.github_installation_token's HTTP leg, one token per mint call.
tests/test_github_installs.py:367
↓ 1 callers
Function
_submit
(pilot, text)
tests/test_tui.py:38
↓ 1 callers
Function
_subpaths
(paths: Sequence[str])
coworker/sandbox/providers/seatbelt_profile.py:81
↓ 1 callers
Function
_summarize
(value: Any)
coworker/audit.py:244
↓ 1 callers
Function
_synthesized_items
An assistant message WITHOUT a usable `_openai` sidecar (history produced by another provider before a switch) → items rebuilt from the canonical
coworker/providers/openai_responses.py:105
↓ 1 callers
Function
_systemctl_user
(*args: str)
coworker/remote/joiner.py:940
↓ 1 callers
Function
_targeted_handoff
(connection_id: str, stage)
coworker/server/app.py:2047
↓ 1 callers
Function
_text
(text)
tests/test_ui_refresh_e2e.py:70
↓ 1 callers
Function
_text
(content: Any)
coworker/headless/trajectory.py:37
↓ 1 callers
Function
_throwaway_check
Open one sandbox on an empty folder, let the provider prove the wall (the profile is not listable from inside; in the closed mode no local port bu
coworker/sandbox/settings.py:190
↓ 1 callers
Function
_tool
(name, args, call_id)
tests/test_ui_refresh_e2e.py:66
↓ 1 callers
Function
_tool
(name: str)
tests/test_mcp_tool_selection.py:17
↓ 1 callers
Function
_tool
(name, args, call_id="c1")
tests/test_truncation_continuation.py:43
↓ 1 callers
Function
_tool_index
(known tool names, {name: sole-parameter-name}) from OpenAI tool schemas. The sole-param map lets us map a bare `toolname [args]` to `{param: args
coworker/providers/openai_provider.py:555
↓ 1 callers
Function
_tool_result_message
(tool_call: ToolCall, result: Any)
coworker/engine.py:2941
↓ 1 callers
Function
_tool_turn
(name, args, call_id="c1")
tests/test_dangerous_mode.py:53
↓ 1 callers
Function
_tool_turn
(name, args, call_id="call_1")
tests/test_tui.py:20
↓ 1 callers
Function
_toolkit_sources
()
coworker/sandbox/bundle.py:51
↓ 1 callers
Method
_touches_protected
The protected settings path this call would modify, or None. For writes we resolve the real target. For shell we can only inspect the command
coworker/permissions.py:900
↓ 1 callers
Method
_trailer
Command appended after each user command. Emits one line `<marker> <exit> <cwd>` parsed by `_parse_exit_code` / `_parse_cwd`. Reads the exit s
coworker/sandbox/runner/executor.py:397
↓ 1 callers
Function
_tree
(folder: Path)
tests/test_sandbox_tools.py:42
↓ 1 callers
Function
_turn_starts
Candidate boundary indexes past `start`: user-message indexes (turn starts, preferred) and assistant indexes (iteration starts — legal suffix head
coworker/compaction.py:164
↓ 1 callers
Function
_two_turns
()
tests/test_truncation_continuation.py:201
↓ 1 callers
Function
_tz
Resolve a schedule timezone to a DST-aware tzinfo, or None for the machine's local zone. None (not a fixed-offset tzinfo) is deliberate: naive dat
coworker/automation/store.py:57
↓ 1 callers
Method
_unanswered_trailing_tool_calls
The tool-calls of the last assistant message that don't yet have a tool result — i.e. the prompt we suspended on (+ any after it). Reconstruct
coworker/engine.py:612
↓ 1 callers
Method
_under_root
(self, path: str)
coworker/permissions.py:878
↓ 1 callers
Function
_unset
Remove a top-level key from the machine's config.toml (back to the default rule).
coworker/sandbox/settings.py:317
↓ 1 callers
Function
_usable
()
tests/test_sandbox_seatbelt.py:226
↓ 1 callers
Function
_usage_from
Responses-API usage → normalized counts (OPE-101). `input_tokens` INCLUDES the cached share, so fresh input = input_tokens − cached_tokens (the sa
coworker/providers/openai_responses.py:238
↓ 1 callers
Function
_user_blocks
User content (str or OpenAI parts list) → Converse content blocks (bytes, not URLs).
coworker/providers/bedrock_provider.py:124
↓ 1 callers
Function
_user_blocks
User content (str or OpenAI parts list) → Anthropic content blocks.
coworker/providers/anthropic_provider.py:255
↓ 1 callers
Function
_user_condition
The account, as a security descriptor the token is checked against (the same `D:(A;;CC;;;SID)` Windows Firewall's LocalUser takes).
coworker/sandbox/windows_wfp.py:283
↓ 1 callers
Function
_user_content
User content (str or OpenAI chat parts) → Responses content (str or input parts).
coworker/providers/openai_responses.py:82
↓ 1 callers
Function
_validate_tools
(persona_id: str, tools: list[str])
coworker/personas/manifest.py:396
↓ 1 callers
Function
_verdict
(decision)
tests/test_decision_matrix_golden.py:45
↓ 1 callers
Function
_verify
(blob: bytes, expected: str)
coworker/toolchain.py:227
↓ 1 callers
Function
_verify_bedrock
One cheap read-only Bedrock call (list models) with the same explicit → profile → ambient credential resolution the provider itself uses.
coworker/providers/registry.py:751
↓ 1 callers
Method
_verify_loopback
The closed account may reach the proxy on loopback and nothing else there (ruling 3d.2). A listener of ours outside the proxy's range must be
coworker/sandbox/providers/windows.py:260
↓ 1 callers
Function
_verify_vertex
One cheap call (countTokens) through the SELECTED auth method: ADC / service-account bearer, or the express API key header.
coworker/providers/registry.py:846
↓ 1 callers
Method
_wait_ready
(self, seconds: float = 120)
coworker/sandbox/providers/openshell.py:408
↓ 1 callers
Function
_wait_until
Poll `predicate` until it returns truthy (or the timeout elapses); return the last value.
tests/test_ui_refresh_e2e.py:74
↓ 1 callers
Method
_walk
(self)
coworker/sandbox/setup_job.py:85
↓ 1 callers
Function
_wallet_hash
(wallet, profile: str)
coworker/remote/acceptor.py:1282
↓ 1 callers
Method
_wanted_sandbox_provider
The provider a NEW engine would be built with right now, or "" for direct. Reads the config only, no preflight: it is asked on the event loop.
coworker/server/manager.py:743
↓ 1 callers
Function
_warn_if_state_shared
The desktop sidecar can coexist with a hand-run `openworker-server` on the same state dir (the app moves to a free port when 8765 is taken), so th
coworker/server/run.py:142
← previous
next →
2,601–2,700 of 8,537, ranked by callers