Workspace modes
- Normal — run against the live directory
- Read-only — library-level write guard
- Overlay — temp copy, apply() to commit
Multi-language runtime
Execute bash, Python, JavaScript, and SQL against a real project directory — with overlay mode, read-only guards, file-change tracking, and OpenAI tool integration. Built for AI agents and CI.
npm install agentpadimport { Runtime } from "agentpad";
const rt = new Runtime("./my-project");
// Run across four languages
await rt.run("bash", "ls -la src/");
await rt.run("python", "import sys; print(sys.version)");
await rt.run("javascript", "console.log(process.version)");
await rt.run("sql", "SELECT count(*) FROM events;");
// Track file changes
const r = await rt.run("bash", "echo patch > fix.txt");
console.log(r.files); // [{ path: "fix.txt", ... }]
// OpenAI function-calling
const tool = rt.asOpenAITool();
rt.close();Languages
Shell scripts and system commands
Python 3 with full stdlib access
Node.js with ESM and CJS support
SQLite via the sqlite3 CLI
Features
Workspace modes
File tracking
Agent tooling
Limits & logging