Data locations
| Path | Contents |
|---|---|
/opt/nightshift/nightshift.db | SQLite database (agents, runs, api_keys tables) |
/opt/nightshift/agents/{uuid}/ | Deployed agent source files (one directory per agent) |
/opt/nightshift/vmlinux | Linux kernel for Firecracker VMs |
/opt/nightshift/rootfs.ext4 | Base Ubuntu rootfs image with baked agent runtime |
Rootfs layers
The base rootfs is an Ubuntu image with the Nightshift agent runtime baked in viainfra/bake-rootfs.sh. It contains:
/sbin/init— minimal shell init (PID 1) that boots the VM, configures networking, and starts the agent/opt/nightshift/agent/— agent entry point and multi-run HTTP server/opt/nightshift/sdk/—NightshiftAppandAgentConfig(imported by user agents)/opt/nightshift/protocol/— packaging and event serialization
/workspace/— user project files/opt/nightshift/agent_pkg/— the deployed agent’s source code and manifest/etc/nightshift/env— per-run environment variables
