separately, I had OpenHands do an analysis of the ...
# proj-sdk
w
separately, I had OpenHands do an analysis of the dependency tree. Seems a little more circular than would be ideal, but I haven't dug in a ton
io/
- Dependency Depth: 0
• 3 Python files:
base.py
,
local.py
,
memory.py
• No sibling dependencies - Perfect standalone module • Purpose: File I/O abstractions and implementations • ✅ Excellent first candidate - completely self-contained 2.
sandbox/
- Dependency Depth: 0
• 2 Python files:
docker.py
,
port_utils.py
• No sibling dependencies - Another perfect standalone module • Purpose: Docker sandbox management and port utilities • ✅ Excellent first candidate - completely self-contained 🥈 Tier 2: Low Dependencies (Good Early Candidates) 3.
llm/
- Dependency Depth: 2
• 17 Python files across subdirectories:
mixins/
,
router/
,
utils/
• Dependencies:
tool
(2 imports),
utils
(2 imports) • Purpose: LLM abstractions, routing, and utilities • Migration consideration: Depends on
tool
and
utils
, so migrate after those 4.
security/
- Dependency Depth: 2
• 4 Python files: analyzers and policies • Dependencies:
event
(3 imports),
utils
(2 imports) • Purpose: Security analysis and confirmation policies • Migration consideration: Depends on
event
and
utils
5.
utils/
- Dependency Depth: 2
• 8 Python files: Various utilities • Dependencies:
event
(1 import),
llm
(2 imports) • Purpose: Common utilities and helpers • Migration consideration: Has circular dependency with
llm
🥉 Tier 3: Medium Dependencies 6.
context/
- Dependency Depth: 3
• 11 Python files across subdirectories:
condenser/
,
microagents/
,
prompts/
• Dependencies:
event
,
llm
,
utils
7.
mcp/
- Dependency Depth: 3
• 4 Python files: MCP (Model Context Protocol) implementation • Dependencies:
llm
,
tool
,
utils
8.
tool/
- Dependency Depth: 3
• 6 Python files with subdirectory:
builtins/
• Dependencies:
llm
,
security
,
utils
🔴 Tier 4: High Dependencies (Migrate Last) 9.
event/
- Dependency Depth: 4
• 9 Python files with subdirectory:
llm_convertible/
• Dependencies:
llm
,
security
,
tool
,
utils
10.
preset/
- Dependency Depth: 4
• 1 Python file: Default presets • Dependencies:
context
,
llm
,
security
,
tool
11.
conversation/
- Dependency Depth: 6
• 14 Python files with subdirectory:
impl/
• Dependencies:
agent
,
event
,
io
,
llm
,
security
,
utils
12.
agent/
- Dependency Depth: 8
• 2 Python files with subdirectory:
prompts/
• Dependencies:
context
,
conversation
,
event
,
llm
,
mcp
,
security
,
tool
,
utils
l
@wide-doctor-37830 maybe you could also run your dependency analysis?
nod 1
w
seems like it's a lot of types being shared
which is maybe inevitable
c
we can definitely move "sandbox" to another "openhands/runtime", but i worry it has a lot of logic duplication with Openhands-App-Server that i don't know what would be the best way to deal with that