Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/HKUDS/OpenOPC
/ types & classes
Types & classes
1,083 in github.com/HKUDS/OpenOPC
⨍
Functions
10,715
◇
Types & classes
1,083
↳
Endpoints
9
↓ 679 callers
Class
Task
opc/core/models.py:338
↓ 222 callers
Class
OPCConfig
opc/core/config.py:1694
↓ 183 callers
Class
DelegationWorkItem
opc/core/models.py:457
↓ 176 callers
Class
OPCStore
Async SQLite store for OPC data (WAL mode for concurrency).
opc/database/store.py:200
↓ 139 callers
Class
TaskResult
opc/core/models.py:864
↓ 111 callers
Class
ServiceError
Expected business error from a shared service.
opc/plugins/office_ui/services/models.py:25
↓ 105 callers
Class
OPCEngine
Central orchestrator — initializes and coordinates all layers.
opc/engine.py:344
↓ 88 callers
Class
FakeEvent
opc/plugins/office_ui/tests/test_event_adapter.py:34
↓ 87 callers
Class
RoleConfig
opc/core/config.py:816
↓ 83 callers
Class
ServiceResult
Structured service response plus optional side-effect events.
opc/plugins/office_ui/services/models.py:18
↓ 79 callers
Class
ToolDefinition
Metadata and callable for a single tool.
opc/layer4_tools/registry.py:39
↓ 75 callers
Class
CompanyWorkItemExecutor
Dispatches company work-item runtime turns through projected tasks. This is the formal executor name for company mode. Projected task records
opc/layer2_organization/company_mode.py:1273
↓ 71 callers
Class
EventBus
Simple async pub/sub event bus for inter-layer communication.
opc/core/events.py:15
↓ 68 callers
Class
CommunicationManager
Manages direct messages, broadcasts, meetings, annotations, and peer waits.
opc/layer2_organization/communication.py:56
↓ 66 callers
Class
DummyOrgEngine
tests/test_company_collaboration.py:79
↓ 66 callers
Class
_SlashCommandSpec
opc/cli/app.py:2706
↓ 53 callers
Class
ExternalAgentConfig
opc/core/config.py:344
↓ 51 callers
Class
EventAdapter
Stateful OPC → Visual event translator. Maintains per-agent state machines to emit correct transition events.
opc/plugins/office_ui/event_adapter.py:117
↓ 48 callers
Class
OrgEngine
Manages the organizational structure and runtime role policies.
opc/layer2_organization/org_engine.py:81
↓ 45 callers
Class
ServiceEvent
Outbound event to publish on UI transports or consume by CLI callers.
opc/plugins/office_ui/services/models.py:10
↓ 44 callers
Class
AgentMessage
opc/core/models.py:1011
↓ 43 callers
Class
CodexAdapter
Invokes the OpenAI Codex CLI.
opc/layer3_agent/adapters/codex_adapter.py:23
↓ 41 callers
Class
ToolRegistry
Manages all available tools and dispatches execution.
opc/layer4_tools/registry.py:80
↓ 41 callers
Class
WSHandler
Routes all WebSocket messages between frontend and OPC.
opc/plugins/office_ui/ws_handler.py:389
↓ 39 callers
Class
CompanyWorkItemRuntimePlan
Company mode plan expressed only as projected work items.
opc/layer2_organization/org_work_item_planner.py:250
↓ 38 callers
Class
EmployeeConfig
opc/core/config.py:851
↓ 35 callers
Class
PaletteCommand
opc/plugins/cli_board/tui/screens/palette.py:16
↓ 34 callers
Class
DummyRecruiterLLM
tests/test_company_recruiter.py:36
↓ 34 callers
Class
ExecutionCheckpoint
opc/core/models.py:932
↓ 33 callers
Class
WorkItemContextView
Read-only view preferring WorkItem-owned metadata. Constructor snapshots both dicts at construction. In company mode, task fallback is a lega
opc/layer2_organization/work_item_context_view.py:45
↓ 32 callers
Class
ExternalAgentBroker
Coordinates approval, execution mode, and session persistence for external agents.
opc/layer3_agent/external_broker.py:72
↓ 31 callers
Class
ApprovalDecision
opc/core/models.py:874
↓ 31 callers
Class
CompanyRuntime
Keeps long-lived company-member session state across work-item turns.
opc/layer2_organization/company_runtime.py:152
↓ 31 callers
Class
NativeRuntimeV2
OpenOPC native runtime with structured events and tool batches.
opc/layer3_agent/runtime_v2/runtime.py:55
↓ 30 callers
Class
ContextAssembler
Build minimal, mode-aware context without forcing a heavy schema.
opc/layer1_perception/context_assembler.py:126
↓ 29 callers
Class
MemoryManager
Manages four memory scopes. - Global memory: durable cross-project memory in `memory/global.md` - Project memory: durable project memory in `
opc/layer5_memory/memory_manager.py:28
↓ 29 callers
Class
RuntimePermissionDecision
opc/core/models.py:886
↓ 27 callers
Class
ApprovalEngine
Bounded-autonomy policy engine.
opc/layer2_organization/approval.py:101
↓ 26 callers
Class
AutonomyConfig
opc/core/config.py:969
↓ 26 callers
Class
OpenCodeAdapter
Invokes the OpenCode CLI via ``opencode run``.
opc/layer3_agent/adapters/opencode_adapter.py:23
↓ 26 callers
Class
_MemoryStub
tests/test_approval_engine.py:32
↓ 26 callers
Class
_StoreStub
tests/test_approval_engine.py:27
↓ 25 callers
Class
PromptField
opc/plugins/cli_board/tui/screens/prompt.py:14
↓ 25 callers
Class
_SessionStoreStub
tests/test_external_agent_monitoring.py:45
↓ 24 callers
Class
CompanyMemberSession
opc/core/models.py:551
↓ 24 callers
Class
OPCEvent
opc/core/models.py:1366
↓ 24 callers
Class
PreferenceManager
No-op compatibility facade for legacy structured preference storage.
opc/layer5_memory/preference.py:15
↓ 24 callers
Class
TalentMarket
Imports talent templates from local markdown files and hires employees.
opc/layer2_organization/talent_market.py:195
↓ 24 callers
Class
_ApprovalStub
tests/test_external_agent_monitoring.py:74
↓ 23 callers
Class
StubStore
In-memory task store for testing.
tests/test_session_integration.py:37
↓ 22 callers
Class
StubOrgEngine
Minimal org engine providing reports_to resolution for tests.
tests/test_company_review_flow.py:103
↓ 22 callers
Class
_LLMStub
tests/test_approval_engine.py:194
↓ 21 callers
Class
LLMConfig
opc/core/config.py:267
↓ 21 callers
Class
WorkItemProjectionSpec
Projection-first spec consumed by the company work-item runtime.
opc/layer2_organization/org_work_item_planner.py:155
↓ 21 callers
Class
_EscalationStub
tests/test_approval_engine.py:218
↓ 20 callers
Class
ClaudeCodeAdapter
Invokes the Claude Code CLI (claude command) for task execution.
opc/layer3_agent/adapters/claude_code.py:20
↓ 20 callers
Class
ExternalApprovalRequest
Normalized approval request emitted by an external agent CLI.
opc/layer3_agent/adapters/base.py:81
↓ 19 callers
Class
LLMProvider
Unified LLM interface via LiteLLM supporting tool calls.
opc/llm/provider.py:207
↓ 19 callers
Class
_StubLLM
tests/test_native_runtime_v2.py:31
↓ 18 callers
Class
DummyRuntimeCommunication
tests/test_company_collaboration.py:155
↓ 18 callers
Class
ToolPermissionResolver
Runtime permission gate with persisted session/project/global grants.
opc/layer3_agent/runtime_v2/permissions.py:77
↓ 17 callers
Class
OfficeServiceContext
Dependency holder shared by Office UI, CLI, and CLI board services.
opc/plugins/office_ui/services/context.py:38
↓ 17 callers
Class
PermissionsV2Config
opc/core/config.py:719
↓ 17 callers
Class
RecruitmentProposal
opc/core/models.py:760
↓ 17 callers
Class
SkillImportError
Raised when importing or normalizing a skill fails.
opc/layer5_memory/skill_importer.py:46
↓ 16 callers
Class
CursorAdapter
Invokes local Cursor for programming tasks via CLI.
opc/layer3_agent/adapters/cursor_adapter.py:16
↓ 16 callers
Class
ExternalSession
opc/core/models.py:918
↓ 16 callers
Class
_MemoryStore
tests/test_parallel_runtime_isolation.py:19
↓ 15 callers
Class
DelegationEvent
opc/core/models.py:499
↓ 15 callers
Class
DelegationRun
opc/core/models.py:422
↓ 15 callers
Class
SessionMessageRecord
opc/core/models.py:1175
↓ 15 callers
Class
SessionPartRecord
opc/core/models.py:1188
↓ 15 callers
Class
SkillLibrary
Manages skills stored as ``<skill-name>/SKILL.md`` directories. Two-level loading: 1. System skills — ``opc_home/skills/`` (shared across
opc/layer5_memory/skill_library.py:32
↓ 14 callers
Class
PackageLoader
Loads .opcpkg packages from disk and installs/uninstalls them.
opc/market/package_loader.py:33
↓ 14 callers
Class
PromptScreen
Simple form dialog used by the CLI board.
opc/plugins/cli_board/tui/screens/prompt.py:23
↓ 14 callers
Class
SecretaryPolicyManager
No-op compatibility facade for legacy secretary policy storage.
opc/layer5_memory/secretary_policy.py:31
↓ 14 callers
Class
WorkItemGatePolicy
Projection-first gate policy for company work items.
opc/layer2_organization/org_work_item_planner.py:38
↓ 13 callers
Class
DummySelectionLLM
tests/test_company_collaboration.py:237
↓ 13 callers
Class
ModeState
opc/plugins/office_ui/services/context.py:32
↓ 13 callers
Class
_PreferencesStub
tests/test_approval_engine.py:18
↓ 13 callers
Class
_StubStore
tests/test_native_runtime_v2.py:59
↓ 13 callers
Class
_WorkItemLogCell
opc/cli/app.py:5945
↓ 12 callers
Class
MessageBus
Async message bus for routing between interaction channels and the OPC engine. Channels publish inbound messages; the engine processes them and p
opc/layer0_interaction/message_bus.py:16
↓ 12 callers
Class
SystemMessage
opc/core/models.py:296
↓ 12 callers
Class
_StubMemoryManager
tests/test_native_runtime_v2.py:101
↓ 11 callers
Class
Phase
Single authoritative state of a delegation work item. Replaces the previous mixture of `status` + 5 metadata sub-state fields. Pure-function
opc/core/models.py:110
↓ 11 callers
Class
RuntimeLLMEvent
opc/core/models.py:910
↓ 11 callers
Class
SeatConfig
opc/core/config.py:873
↓ 11 callers
Class
StubMemory
Stub for engine.memory (MemoryManager).
tests/test_session_integration.py:140
↓ 10 callers
Class
ApprovalAllowlistManager
Persists reusable approval rules in a user-editable YAML file.
opc/layer5_memory/approval_allowlist.py:29
↓ 10 callers
Class
ChannelProviderSpec
opc/channels/provider_registry.py:9
↓ 10 callers
Class
DummyCompanyExecutor
tests/test_company_runtime_suspend_resume.py:216
↓ 10 callers
Class
RecordingCommunication
Communication stub that captures manager notifications.
tests/test_company_review_flow.py:59
↓ 10 callers
Class
TaskStatus
opc/core/models.py:96
↓ 10 callers
Class
_FakePlaywrightFactory
tests/test_browser_tools.py:177
↓ 10 callers
Class
_ScriptAdapter
tests/test_external_agent_monitoring.py:156
↓ 10 callers
Class
_StubPart
tests/test_native_runtime_v2.py:89
↓ 9 callers
Class
MarkdownMemoryStore
Persists pure Markdown memory at global and project scopes.
opc/layer5_memory/markdown_memory.py:25
↓ 9 callers
Class
PatchApplyError
Raised when an apply_patch payload cannot be applied safely.
opc/layer4_tools/file_ops.py:22
↓ 9 callers
Class
TalentTemplateConfig
opc/core/config.py:836
next →
1–100 of 1,083, ranked by callers