mirror of
https://github.com/kvcache-ai/AgentENV.git
synced 2026-11-05 01:17:36 +00:00
[GH-ISSUE #188] Support opt-in package download caching across sandboxes #61
Labels
No labels
bug
documentation
enhancement
enhancement
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
kvcache-ai/AgentENV#61
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @ztting01 on GitHub (Aug 18, 2026).
Original GitHub issue: https://github.com/kvcache-ai/AgentENV/issues/188
Affected component
Cross-cutting / other
Problem statement
AgentENV caches OCI image layers and snapshot artifacts, but packages installed inside sandboxes with commands such as
apt installornpm installare still downloaded independently by every sandbox.When many short-lived sandboxes or template builds install overlapping dependencies, the same package objects are repeatedly downloaded. This increases startup and build latency, wastes upstream bandwidth, and can trigger public repository rate limits.
Use case
Typical workloads include:
apt install,npm install, ornpm ciacross isolated sandboxes; andSandboxes should remain filesystem-isolated while being able to reuse package downloads already fetched on the same AgentENV node.
Current behavior and workarounds
Each sandbox has its own package-manager cache, so downloaded packages are not reused after the sandbox is deleted.
Users can manually configure repository proxies in individual templates, but there is no standard AgentENV integration for enabling the capability per sandbox or keeping it correct across start, resume, fork, and node changes.
Desired behavior
AgentENV should support an optional integration that allows sandboxes on the same node to reuse downloads of public software packages.
The expected behavior is:
Proposed approach
The implementation approach is intentionally left open. A separate Discussion can cover possible responsibility boundaries between AgentENV, Custom Extension, guest configuration, networking, and external package-cache providers.
Compatibility and operational impact
API/config changes:
To be determined through design discussion. The feature should remain optional and backward compatible.
Snapshot or storage format changes:
The package cache should not become part of, or a correctness dependency of, AgentENV snapshots.
New host/runtime requirements:
Only deployments enabling the feature should require additional cache capacity or services.
Upgrade and rollback considerations:
Disabling the feature should restore the existing direct-download behavior without affecting existing sandboxes, templates, images, or snapshots.
Alternatives considered
Non-goals
Contribution
I can provide more design details.
Pre-submission checklist
@yingdi-shan commented on GitHub (Aug 19, 2026):
Thanks for raising this. The recommended approach is to preinstall commonly used dependencies in a sandbox, create a snapshot, and then start subsequent sandboxes from that snapshot. This avoids repeatedly downloading and installing the same dependencies while preserving sandbox isolation.
Deployments can maintain either a comprehensive base snapshot with most common dependencies or several workload-specific snapshots for different languages and toolchains.
@ztting01 commented on GitHub (Aug 19, 2026):
Thanks for reply.