Better HN
topnewbestaskshowjobs
Log inSign up

dorianzheng

3 karma · joined Dec 27, 2021 (4y ago) · 29 submissions

Submissions

1.

Building a VMM from scratch, #0.5: Booting Linux in 190 lines of C(blog.boxlite.ai ↗)

5 points · by dorianzheng · 1mo ago · discuss

2.

Building a VMM from scratch, #0: Why BoxLite is replacing libkrun(blog.boxlite.ai ↗)

4 points · by dorianzheng · 1mo ago · discuss

comment 1mo ago · link · parent

Founder here. We’re bridging the gap between embedded and the cloud. Happy to answer any questions!

comment 2mo ago · link · parent

This is really amazing. Quick question, do you plan to support custom domain

comment 6mo ago · link · parent

i built a similar project named boxlite (embeddable micro-VM) and agentlite (agent in boxlite). i like your idea

comment 6mo ago · link · parent

got it, will definitely check it out do you have some performance number of lakeFS in your mind

comment 6mo ago · link · parent

seems cool to integrate with https://github.com/boxlite-ai/boxlite and https://github.com/boxlite-ai/agentlite

comment 6mo ago · link · parent

is it possible to run it inside local micro-VM, such as boxlite?

comment 6mo ago · link · parent

how's the performance compare to boxlite?

comment 6mo ago · link · parent

it would be cool if we can integrate it with the local micro-VM https://github.com/boxlite-ai/boxlite

comment 6mo ago · link · parent

any chance i can run local micro-VM such as boxlite with this?

comment 6mo ago · link · parent

not yet for memory, just persistent storage snapshotting/forking right now

13.

Show HN: BoxLite – the all-terrain micro-VM(github.com ↗)

6 points · by dorianzheng · 7mo ago · 2 comments

comment 9mo ago · link · parent

+1. That’s basically what I want too: npx skills but for Python. For now BoxLite is the isolation/runtime layer; the “skills registry + one-liner runner” is a thin wrapper we can add (e.g. pipx boxlite && boxlite run <skill>). If you have a preferred UX, I’m all ears.

comment 9mo ago · link · parent

I think you basically answered the entire question 1. Our fundamental assumption is: anything that hands control to an agent/skill is potentially compromised (especially if it touches the web / parses docs). So we isolate that work in its own Box with least privilege: minimal mounts (prefer read-only), no ambient secrets, tight CPU/mem limits, and only the network access it actually needs. 2. BoxLite doesn’t try to solve inter-agent “data trust” / prompt-injection by sanitizing content. What it does do is make sure untrusted code can’t hurt the host, and that sensitive local info doesn’t leak (i.e. it reduces blast radius). If you want semantic safety between agents, you still need boundary hygiene patterns (structured outputs, extraction/validation steps, etc.).

comment 9mo ago · link · parent

I've been thinking about AI agents wrong. We keep treating them as this special thing that needs special infrastructure. But what if agent skills are just... functions you compose?

# Specify what skills the agent has - like importing modules async with boxlite.SkillBox(skills=["anthropics/skills"]) as agent:

    # Skills loaded: pdf, docx, pptx, xlsx handling
    await agent.call("Read quarterly_report.pdf and summarize key metrics")
    await agent.call("Export that to a PowerPoint with charts")  # remembers context
That's SkillBox. You declare what skills your agent has upfront. Then call it like any other async function. State persists between calls.

The same skill works across Claude Code, OpenAI Codex CLI, and Gemini CLI. It's becoming the package manager for agent capabilities.

# Install skills dynamically - like pip install at runtime await agent.install_skill("anthropics/skills") # PDF, Word, Excel, PowerPoint await agent.install_skill("example/web-scraper") # Custom scraping skill await agent.install_skill("your-company/internal") # Your private skills

Orchestrating multiple agents:

async with boxlite.SkillBox(skills=["anthropics/skills"]) as doc_agent:

async with boxlite.SkillBox(skills=["example/web-research"]) as research_agent:

    research = await research_agent.call("Find Q3 earnings for top 5 tech companies")

    analysis = await doc_agent.call(f"Analyze this data: {research}")
Just async Python. No YAML. No special DSL.

The fun demo - Starbucks: One function call, Claude navigates the website, handles popups, adds coffee to cart. You watch via noVNC at localhost:3000.

Yeah, it runs in a micro-VM (hardware isolation). But that's a feature, not the point. The point is the programming model.

17.

Compose AI agent skills like Python imports, orchestrate like microservices(github.com ↗)

2 points · by dorianzheng · 9mo ago · 5 comments

18.

Building Open Source Manus(github.com ↗)

1 points · by dorianzheng · 11mo ago · discuss

19.

SQLite for VMs: embeddable AI agent sandboxing(github.com ↗)

2 points · by dorianzheng · 11mo ago · discuss

comment 11mo ago · link · parent

  The problem:

  AI agents are most useful when they have freedom—freedom to write code, install packages, run scripts, explore solutions. But that freedom is dangerous. One hallucinated rm -rf / or a malicious package install, and your host system pays the price.

  So we restrict them. Limit file access. Disable network. Whitelist commands. The agent becomes safer but also dumber—unable to iterate, experiment, or recover from mistakes like a human developer would.

  I wanted to give AI agents a full computer they could break without breaking mine.

  Why not existing tools?

  When I started sandboxing AI-generated code, nothing quite fit:

  - Docker shares the host kernel—container escapes are a real attack surface, and that makes me nervous
  - QEMU/libvirt is powerful but heavyweight—XML configs, daemon processes, steep learning curve
  - Cloud sandboxes (E2B, Modal, etc.) work, but you're locked into their platform with limited customization
  - Kata Containers is designed for Kubernetes orchestration, not for embedding in a Python script

  The SQLite idea:

  I've been thinking about why SQLite works so well. Before SQLite, databases meant running a server—PostgreSQL, MySQL, managing daemons, configuring connections. SQLite asked: what if it was just a library? No server. Just import sqlite3.

  I wanted the same thing for VMs.

  So I started building BoxLite—an attempt to make VMs embeddable like SQLite. A library call that gives you a real micro-VM with its own kernel. No daemon. No root.

  import asyncio
  import boxlite

  async def main():
      async with boxlite.SimpleBox(image="python:slim") as box:
          result = await box.exec("python", "-c", "print('Hello from VM!')")
          print(result.stdout)

  asyncio.run(main())

  To be clear: this is early.

  It works on macOS Apple Silicon and Linux. You can pull OCI images, mount volumes, forward ports. There are some higher-level abstractions (BrowserBox for Playwright, ComputerBox for desktop automation).

  But there are bugs. Boot time is 200ms for hot runs (I want it under 100ms). Documentation is thin. Error messages could be better. macOS Intel and Windows aren't supported. I haven't battle-tested it at scale.

  I'm sharing it now because I'd rather build this with feedback than in isolation.

  What I'd love to hear:
  - Does the SQLite-for-VMs idea make sense, or am I stretching the analogy?
  - What would you actually use this for?
  - What's broken or confusing when you try it?

  GitHub: https://github.com/boxlite-labs/boxlite
  PyPI: https://pypi.org/project/boxlite/

21.

BoxLite Love AI agent – SQLite for VMs: embeddable AI agent sandboxing(github.com ↗)

1 points · by dorianzheng · 11mo ago · 1 comment

comment 4y ago · link · parent

I gotta say StarRocks is not only a MPP database. It's also a distributed SQL engine for data lake analytics. https://github.com/StarRocks/starrocks/pull/2225