🪟 Windows TippsThe Gemini desktop app is now available for Windows(11.09.2026 um 17:06 Uhr)
🪟 Windows TippsHeader and Footer not showing in Excel(14.09.2026 um 22:43 Uhr)
🕵️ SicherheitslückenBurn Out, Or Fade Away(14.09.2026 um 14:25 Uhr)
🪟 Windows TippsKB5129194 Windows 11 26H1 Out of Band Update - Deskmodder.de(14.09.2026 um 19:25 Uhr)
🪟 Windows TippsThe Gemini desktop app is now available for Windows(11.09.2026 um 17:06 Uhr)
🪟 Windows TippsHeader and Footer not showing in Excel(14.09.2026 um 22:43 Uhr)
🕵️ SicherheitslückenBurn Out, Or Fade Away(14.09.2026 um 14:25 Uhr)
🪟 Windows TippsKB5129194 Windows 11 26H1 Out of Band Update - Deskmodder.de(14.09.2026 um 19:25 Uhr)

🔧 Programmierung 🕛 vor 3 Monaten 3 Min Lesezeit
0

The case for persistent sandboxes in AI code execution

↗ Quelle (dev.to)
🗣️ Stimme:
📑 Inhaltsübersicht

Every AI coding tool generates code. None of them solve what happens next.



Cursor writes your Python. Claude Code refactors your script. Windsurf

ships your feature. But running that code safely, in isolation, with

audit trails, without exposing your secrets, is still an unsolved problem.



That's what Jhansi.io is built for.





The mistake we made in v0.1



Our first execution model was simple. Send code as a string, run it in

an isolated container, return the output.




CODE
POST /v1/sandboxes/{id}/exec
body: { "code": "print('hello world')" }






It worked. But it had three fundamental problems.
























Problem Why it breaks
Single file only No multi-file projects, no shared modules, no dependencies. Not how production code works.
Full payload on every run Even if nothing changed, you resent everything. Wasted bandwidth, added latency.
No foundation for delta sync If you're sending everything every time, there's nothing to diff against.





The insight



A sandbox should be a workspace, not a disposable container.



Give every sandbox a dedicated folder on disk. Files live there between

runs. Execution just says "run this file" — no payload, no resend, no waste.



This is the architecture shift in Jhansi.io v0.2.





What changed



Workspace per sandbox. Every sandbox gets a dedicated folder on disk

at creation time. Zero config locally, overridable in production via

PETRI_WORKSPACE_ROOT.



File upload API. Upload once. Upload only when something changes.




CODE
POST /v1/sandboxes/{id}/files






Files land in the sandbox workspace and persist between runs.



Exec by filename. No code in the request body. Just a filename.




CODE
POST /v1/sandboxes/{id}/exec
body: { "filename": "main.py" }






Jhansi.io mounts the workspace into a fresh isolated container and runs

the named file. The container dies. The workspace survives.






The flow






CODE
# Create once
curl -X POST /v1/sandboxes -d '{"language": "python"}'

# Upload when files change
curl -X POST /v1/sandboxes/{id}/files -F "[email protected]"

# Exec as many times as you need
curl -X POST /v1/sandboxes/{id}/exec -d '{"filename": "main.py"}'









What this unlocks



The persistent workspace is the foundation for everything coming next:





  • Delta sync — detect file changes, upload only diffs


  • Auto dependency detection — parse imports, install packages invisibly


  • Multi-file projects — real codebases, not toy scripts



If you're building AI agents that generate and run code, we want you in

our design partner program. Early access at jhansiio.featurebase.app






Jhansi.io — Build it. Run it. Ship it.

Vollständiger Original-Bericht
Ausführliche Details, Code-Beispiele & Hersteller-Stellungnahme auf dev.to.
↗ Original-Artikel auf dev.to lesen
Wie bewertest du diesen Beitrag?
1 Klick Feedback
Teilen mit Netzwerk & Team:

Community-Analysen & Experten-Meinungen 0

Verfasse deine eigene Analyse, teile Workarounds oder diskutiere diesen Vorfall im Blog.
Noch keine Community-Analyse verfasst. Markiere einen Textabschnitt oder klicke oben auf Eigene Analyse verfassen“!
Community Pulse: Relevanz-Einschätzung
1 Klick Experten-Votum
🔴 Akute Relevanz 0%
🟡 In Evaluierung 0%
🟢 Keine Auswirkung 0%
Spannende Innovation 0%
Verwandte Story-Cluster & Quellen (Vektor-KI)
Port 8095 Engine
1 Quelle
The Gemini desktop app is now available for Windows
1 Quelle
Header and Footer not showing in Excel
1 Quelle
Burn Out, Or Fade Away
Ähnliche Beiträge
🔍 Verwandte News

Auch interessante Nachrichten The case for persistent sandboxes in AI code execution

Thematisch verwandte Begriffe: case, persistent, sandboxes, code · 6 Treffer

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...