Skip to content

Rename workspace_dir to shared_dir and add sales analyst example#4

Merged
andybbruno merged 1 commit into
masterfrom
feat/shared-dir-and-sales-example
Jun 4, 2026
Merged

Rename workspace_dir to shared_dir and add sales analyst example#4
andybbruno merged 1 commit into
masterfrom
feat/shared-dir-and-sales-example

Conversation

@andybbruno

Copy link
Copy Markdown
Owner

Summary

  • Renames workspace_dir to shared_dir and documents the host↔container bind mount at /shared (shell cwd inside the container).
  • Simplifies sandbox identity: uses a short UUID for sandbox.id instead of docker inspect, and removes unused inspect_container_id helper.
  • Relaxes default container hardening (drops read-only rootfs / cap-drop from the default docker run profile) while keeping memory/CPU/PID limits.
  • Adds examples/sales_analyst.py with sample examples/data/sales.csv, and updates the pizza agent + README accordingly.

Breaking changes

  • Constructor parameter workspace_dirshared_dir
  • Container mount path /workspace/shared

Test plan

  • pytest tests/ passes locally
  • DockerSandbox(shared_dir="examples/data") starts a container and mounts the host folder at /shared
  • Run examples/pizza_agent.py (network required) and confirm recipe.md appears under examples/data/
  • Run examples/sales_analyst.py and confirm sales_report.md + img/ are produced in the shared folder

Made with Cursor

Clarify that commands run in-container with a host bind mount at /shared, drop docker inspect for sandbox IDs, and add a sales analyst example with sample CSV data.
@andybbruno andybbruno self-assigned this Jun 4, 2026
@andybbruno andybbruno merged commit 3da5253 into master Jun 4, 2026
3 checks passed
@andybbruno andybbruno deleted the feat/shared-dir-and-sales-example branch June 4, 2026 08:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant