Problem
AgenticSeek's "Autonomous Coding Assistant" capability is a core feature, allowing the agent to write and execute code locally. However, executing generated code (or code fetched from web searches) directly on the host or within the main application container presents a significant security risk. A hallucinated command or malicious snippet could compromise the WORK_DIR or the host system.
Proposed Solution
Implement an isolated sandbox environment for all code execution tasks.
Approaches:
-
Docker-in-Docker (DinD) / Sidecar Container:
- Spin up a transient, network-restricted container for each code execution task.
- Mount only the specific necessary sub-directories, not the entire
WORK_DIR.
- Limit resources (CPU/RAM) to prevent denial-of-service.
-
gVisor / Firecracker (Advanced):
- For higher isolation, wrap the execution environment in a microVM or userspace kernel.
Benefits
- Zero Trust: Users can trust the agent to experiment with code without risking their personal data.
- Resilience: Crashes in the execution environment won't take down the main agent.
- Alignment: Reinforces the project's mission of "Privacy and Local Control" by ensuring local safety.
I am happy to contribute to the design or implementation of a basic Docker-based sandbox if this aligns with the roadmap.
Protocol Zero: Trust nothing. Verify everything. ⚡
Problem
AgenticSeek's "Autonomous Coding Assistant" capability is a core feature, allowing the agent to write and execute code locally. However, executing generated code (or code fetched from web searches) directly on the host or within the main application container presents a significant security risk. A hallucinated command or malicious snippet could compromise the
WORK_DIRor the host system.Proposed Solution
Implement an isolated sandbox environment for all code execution tasks.
Approaches:
Docker-in-Docker (DinD) / Sidecar Container:
WORK_DIR.gVisor / Firecracker (Advanced):
Benefits
I am happy to contribute to the design or implementation of a basic Docker-based sandbox if this aligns with the roadmap.
Protocol Zero: Trust nothing. Verify everything. ⚡