惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

C
CERT Recently Published Vulnerability Notes
U
Unit 42
T
The Blog of Author Tim Ferriss
H
Hackread – Cybersecurity News, Data Breaches, AI and More
B
Blog RSS Feed
Microsoft Azure Blog
Microsoft Azure Blog
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
S
Securelist
L
Lohrmann on Cybersecurity
Blog — PlanetScale
Blog — PlanetScale
Recorded Future
Recorded Future
D
DataBreaches.Net
Spread Privacy
Spread Privacy
T
Threat Research - Cisco Blogs
I
Intezer
P
Palo Alto Networks Blog
Simon Willison's Weblog
Simon Willison's Weblog
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
I
InfoQ
宝玉的分享
宝玉的分享
Security Latest
Security Latest
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
T
Threatpost
Cisco Talos Blog
Cisco Talos Blog
P
Proofpoint News Feed
博客园 - 司徒正美
H
Hacker News: Front Page
Y
Y Combinator Blog
爱范儿
爱范儿
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
NISL@THU
NISL@THU
月光博客
月光博客
有赞技术团队
有赞技术团队
Cloudbric
Cloudbric
酷 壳 – CoolShell
酷 壳 – CoolShell
G
Google Developers Blog
A
Arctic Wolf
博客园 - 【当耐特】
W
WeLiveSecurity
V
Visual Studio Blog
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
V
V2EX
C
Cyber Attacks, Cyber Crime and Cyber Security
S
SegmentFault 最新的问题
The GitHub Blog
The GitHub Blog
The Cloudflare Blog
Stack Overflow Blog
Stack Overflow Blog

Hacker News: Show HN

PurrrrrFocus: Pomodoro Timer App - App Store Workflow Engine — Multi-Step Orchestration for Bun RapidPhoto: Pro Photo Editor App - App Store GitHub - DheerG/swarms: Achieve extraordinary results with claude code across a variety of tasks SPICE simulation → oscilloscope → verification with Claude Code — Lucas Gerads Show HN: VCoding – A 5 MB native Windows IDE with no dynamic dependencies Show HN: LLMs don't hallucinate because they're bad at math, it's the format GitHub - Agent-FM/agentfm-core: AgentFM is a peer-to-peer network that turns everyday computers into a decentralized AI supercomputer. AgentFM lets you run massive AI workloads directly across a global mesh of idle CPUs and GPUs. Show HN: Tracking Top US Science Olympiad Alumni over Last 25 Years GitHub - Potarix/agent-hub: One place to talk to all your agents Show HN: Runtime security for AI agents(injection,tool abuse, data exfiltration) GitHub - dubeyKartikay/lazyspotify: Terminal Spotify client for macOS and Linux GitHub - the-banana-tool/king-louie: Easy to use GUI Personal AI Assistant. Win/Linux/Mac. Show HN I made my vacation rental bookable by AI agents–no Airbnb, 0% commission GitHub - basteez/jsf-autoreload: maven plugin to enable hot reload on jsf projects uvm32/hosts/host-gdbstub at main · ringtailsoftware/uvm32 GitHub - labsai/EDDI: Config-driven engine that turns JSON into production-grade AI agents. Multi-agent orchestration, 12+ LLM providers, MCP/A2A protocols, RAG, persistent memory, and enterprise compliance (EU AI Act, GDPR, HIPAA). Built on Quarkus. GitHub - glitchnsec/fortyone-oss: AI Executive Assistant Platform Quickstart | Alien GitHub - muxshed/shed: One stream in, or many. Every destination, simultaneously. No cloud middleman, no per-channel fees, no limits. GitHub - ocrbase-hq/ocrbase: 📄 PDF/IMG ->.MD/JSON Document OCR API for PaddleOCR and GLMOCR. Self-hostable. GitHub - impactjo/home-memory: MCP server that lets your AI assistant remember everything about your home. GitHub - Sets88/dbcls: DbCls is a powerful terminal database client that supports various databases GitHub - neptun2000/heor-agent-mcp GitHub - SeanFDZ/macmind: Single-layer transformer in HyperTalk for the classic Macintosh RollQuation: Math Puzzles - Apps on Google Play GitHub - dropbox/witchcraft Show HN: Agent-cache – Multi-tier LLM/tool/session caching for Valkey and Redis GitHub - opentalon/opentalon: OpenTalon is an open-source platform built from the ground up in Go as a robust alternative to OpenClaw LinkedIn™ 职位抓取工具 - Chrome 应用商店 GitHub - EdoardoBambini/Agent-Armor-Iaga: AI agents are getting tool access — shell, file system, databases, APIs, secrets. But **nobody is governing what they actually do with it**. Frameworks like LangChain, CrewAI, AutoGen, and Claude Code give agents the power to execute. Agent Armor gives you the power to control, audit, and approve every single action before it happens. HN Vibes — Week 15, Apr 7–13 2026 GitHub - chojs23/ec: Easy terminal-native 3-way git mergetool vim-like workflow GitHub - SethPyle376/hiraeth: Local AWS emulator focused on fast integration testing, with SQS support, SQLite-backed state, and a debug-friendly web UI. GitHub - JakOb-dotcom/cloud-sandbox-security-analysis: Technical analysis and Proof of Concept (PoC) regarding environment variable exfiltration in containerized cloud sandboxes via side-channel data leaks. Springboards - Flint Alpha Show HN: A simpler coding agent harness GitHub - audiodude/sudomake-friends GitHub - 256thFission/mini-mythos: OSS clone of Anthropic’s Mythos harness to locate C/C++ memory vulnerabilities Show HN: OpenParallax: OS-level privilege separation for AI agent execution Hacker News Sorted - Chrome 应用商店 Show HN: How to Install Docker on Ubuntu 24.04 LTS: Complete 2026 Guide GitHub - himanshudongre/smriti GitHub - sverrirsig/claude-control: macOS desktop dashboard for monitoring and managing multiple Claude Code sessions GitHub - ory/dockertest: Write better integration tests! Dockertest helps you boot up ephermal docker images for your Go tests with minimal work. Chiral - Chrome 应用商店 Show HN: Two Claudes collaborating through shared memory on a $100 mini-PC GitHub - pmichaillat/latex-cv: Minimalist LaTeX template for academic CVs GitHub - oguzbilgic/posse: A web UI for Anthropic Managed Agents. GitHub - sshiraz/depsly: Dependency risk analysis tool for npm packages ABI Add safari/agent-harness — Safari browser automation via safari-mcp by achiya-automation · Pull Request #212 · HKUDS/CLI-Anything GitHub - Halfblood-Prince/trustcheck: Verify PyPI package attestations and improve Python supply-chain security GitHub - oguzbilgic/kern-ai: Agents that do the work and show it. GitHub - bruits/satteri: High-performance Markdown and MDX processing for the JavaScript ecosystem GitHub - tylergibbs1/feedstock: High-performance web crawler and scraper for TypeScript, powered by Bun and Playwright GitHub - Grimm67123/grimmbot: The self-improving sandboxed and open-source AI agent. With persistent memory and scheduling. GitHub - whitevanillaskies/whitebloom: Local whiteboard that blooms. GitHub - hwdsl2/docker-whisper: Docker image for a self-hosted Whisper speech-to-text server with speaker diarization and OpenAI-compatible transcription and translation APIs. Powered by faster-whisper. Supports all Whisper models, NVIDIA GPU (CUDA) acceleration, JSON/SRT/VTT output, SSE streaming, offline mode, and multi-arch (amd64, arm64). GitHub - yisding/reviewwiggum GitHub - MarwanAlsoltany/serrors: Structured errors for Go: sentinel hierarchies, typed data, custom formatting, and slog integration. GitHub - soatok/age-php GitHub - Luthiraa/markitme GitHub - stagas/rtdiff: realtime git diff gui and AI-assisted commits GitHub - tombedor/excalicharts GitHub - wh1le/excalidraw-edit: Open and edit .excalidraw files from the terminal. Offline, auto-saves to disk. MalExt Sentry - Malicious Extension Scanner - Chrome 应用商店 GitHub - syi0808/asciianimesvg: Generate animated ASCII art SVGs from text. CLI, Rust library, WASM, and web editor. GitHub - zaina-ml/ml_forge: A visual-based graph node editor for training computer vision models. GitHub - anakin87/llm-rl-environments-lil-course: 🌱 A little course on Reinforcement Learning Environments for evaluating and training Language Models GitHub - takaakit/superpowers-uml: Superpowers-UML modifies Superpowers to ensure a software development workflow in which AI agents design through UML modeling. AdriByte Studio - Sviluppo Web e Soluzioni Digitali GitHub - chouligi/angel-copilot: Your personalized Angel Investment Advisor Show HN: MoodSense AI (ML and FastAPI and Gradio, Deployed on Hugging Face) Moodsense Ai - a Hugging Face Space by aman179102 GitHub - agenteractai/lodmem: Level Of Detail Context Management for Agents GitHub - ostefani/subnetlens: A fast, concurrent network scanner with a TUI and plain-text CLI, built in Go. It discovers live hosts on your network, scans their open ports, resolves hostnames, and fingerprints operating systems—delivered. Cyber Pulse: Agentic Intel - Apps on Google Play Whisper API: Self-Hostable Speech to Text Transcription The Agent-Web Protocol Stack: A Research Thesis GitHub - msmarkgu/RelayFreeLLM: A restful API designed to route user prompts to various AI model providers. Show HN: Provepy – A Python decorator that proves your code using Lean and LLMs Show HN: Pardonned.com – A searchable database of US Pardons GitHub - patrickdappollonio/dux: Dux is a terminal UI that lets you run multiple AI coding agents side by side, each in its own git worktree, with full companion terminals, macros, commit generation, and a command palette that knows more tricks than you do. kMC Crystal Simulator Show HN: HyperFlow – A self-improving agent framework built on LangGraph GitHub - stef41/vibescore: 🎵 Grade your vibe-coded project. One command, instant letter grade across security, quality, dependencies, and testing. GitHub - stef41/lmscan: 🔍 Detect AI-generated text and fingerprint which LLM wrote it. Open-source GPTZero alternative. Zero dependencies, works offline. imgur.com GitHub - visionscaper/collabmem: Enabling long-term collaboration with Agentic AI - building up episodic and world model memory over time with in-context awareness 在 Steam 上购买 FriedrichAI: Offline AI 立省 10% GitHub - atripati/ark: AI Runtime Kernel — a context operating system for AI agents. Eliminates tool bloat, loads only what’s needed, and gives LLMs their reasoning space back. GitHub - nowork-studio/toprank: Open-source Claude Code skills for SEO, SEM, Google Ads GitHub - tacomanator/sash: Lightweight macOS menu bar app for reliably cycling through windows of the current application. Appents | Social Media Management for Product-First Teams GitHub - pnhoang/youtube-spam-blocker: Automatically detects and hides spam messages in YouTube Live chat. Set rate limits, keyword filters, and block repeat offenders. GitHub - decisionnode/DecisionNode: CLI + Local MCP - A shared structured memory store across Claude Code, Cursor, Windsurf, Antigravity, and every MCP client. Semantically queryable. GitHub - AvaCodeSolutions/django-email-learning: An open source Django app for creating email-based learning platforms with IMAP integration and React frontend components. The $100K Gap in Kubernetes Security Tooling Function Calling Harness: From 6.75% to 100%
GitHub - bugthesystem/agentjail: Minimal Linux sandboxes for running untrusted code. Built for AI agents, build systems, and any scenario where you need to execute code you didn't write.
bugthesystem · 2026-04-28 · via Hacker News: Show HN

agentjail

Minimal Linux sandboxes for running untrusted code.


A Rust library plus optional control plane. One jail is one child process inside a fresh set of Linux namespaces, pivot-rooted into a minimal filesystem, seccomp-filtered, cgroup-limited, and optionally walled behind an egress-proxy allowlist. No VM. No daemon. No setuid helper.

Status — beta. The core crate (crates/agentjail) is the load-bearing piece and is covered by a privileged test suite (make test-rust-privileged). The control plane, TypeScript/Python SDKs, web UI, and gateway are useful but not yet production-hardened. Pin a version, read the threat model, then depend on it.

Isolation

  • Namespaces — mount, network, IPC, PID; optionally user.
  • Filesystempivot_root onto a bind-mounted, 128-bit-random temp root; old root is umount2(MNT_DETACH)-ed. Minimal /bin, /lib, /usr binds; tmpfs /etc with just what dynamic linking and DNS need. Landlock on Linux ≥ 5.13 (hard-fail if enabled on a kernel that lacks it).
  • NetworkNone, Loopback, or Allowlist(domains). Allowlist mode routes through an in-process HTTP CONNECT proxy that resolves the hostname once, rejects private/link-local/loopback/CGNAT IPs, and connects to the resolved address (not the hostname) to close DNS rebinding. Veth pair configured via netlink; no ip binary.
  • Syscalls — seccomp-BPF blocklist (Standard / Strict). Blocks namespace, mount, module, keyring, BPF, perf, io_uring, chroot, name_to_handle_at, ptrace, personality, clone3, mount_setattr, memfd_create, fanotify_init, quotactl, syslog; argument-filters ioctl(*, TIOCSTI, …) and socket(AF_NETLINK|AF_PACKET|AF_VSOCK, …).
  • PrivilegesPR_SET_NO_NEW_PRIVS, close_range(3, ~0, CLOEXEC) before exec, full bounding-set drop + SECBIT_NOROOT_LOCKED | SECBIT_NO_SETUID_FIXUP_LOCKED + capset zeroing every effective, permitted, and inheritable capability, in the grandchild after /proc is remounted in the new PID namespace.
  • Resources — memory / CPU / PIDs / disk I/O via cgroup v2, gated by a barrier pipe: the child blocks until the parent has assigned the cgroup, so there is no unconstrained startup window.

Requirements

  • Linux ≥ 5.13, cgroup v2, user namespaces.
  • Rust 1.85+ (edition 2024).
  • CAP_NET_ADMIN — Allowlist mode only (veth + netlink).

Use

[dependencies]
agentjail = "0.1"
tokio = { version = "1", features = ["rt", "macros"] }
use agentjail::{Jail, preset_build};

#[tokio::main]
async fn main() -> anyhow::Result<()> {
    let jail = Jail::new(preset_build("./src", "./out"))?;
    let out  = jail.run("npm", &["run", "build"]).await?;
    println!("exit={} oom={}", out.exit_code, out.oom_killed);
    Ok(())
}

Presets

Preset Network Memory Timeout
preset_build None 512 MB 600 s
preset_install Allowlist 512 MB 600 s
preset_agent None 256 MB 300 s
preset_gpu None 8 GB 3600 s
preset_dev Loopback 1 GB 3600 s

preset_install requires explicit domains:

preset_install("./src", "./out", vec![
    "registry.npmjs.org".into(),
    "registry.yarnpkg.com".into(),
])

Config

use agentjail::{Jail, JailConfig, Network, SeccompLevel};

let jail = Jail::new(JailConfig {
    source:       "/code".into(),       // read-only at /workspace
    output:       "/artifacts".into(),  // read-write at /output
    network:      Network::None,
    seccomp:      SeccompLevel::Standard,
    memory_mb:    512,
    cpu_percent:  100,                  // 100 = 1 core
    max_pids:     64,
    io_read_mbps: 100,
    io_write_mbps: 50,
    timeout_secs: 300,
    ..Default::default()
})?;

Network

Network::Allowlist(vec![
    "api.anthropic.com".into(),
    "registry.npmjs.org".into(),
    "*.mcp.example.com".into(),
])

The proxy validates the hostname against the allowlist, resolves it via DNS, filters every private/loopback/link-local/CGNAT/test-net address, and connects to the remaining routable IP. TLS passes through unchanged (HTTPS, SSE, WebSocket).

GPU (experimental)

Exposes the NVIDIA kernel-driver attack surface. Trusted workloads only.

JailConfig { gpu: GpuConfig { enabled: true, devices: vec![0] },
             ..Default::default() }

Resource monitoring

let handle = jail.spawn("npm", &["run", "build"])?;
if let Some(s) = handle.stats() {
    println!("mem {} / peak {} MB  pids {}",
        s.memory_current_bytes / 1_048_576,
        s.memory_peak_bytes    / 1_048_576,
        s.pids_current);
}
let out = handle.wait().await?;
if out.oom_killed { eprintln!("OOM"); }

Events

let (_handle, mut rx) = jail.spawn_with_events("npm", &["run", "build"])?;
while let Some(ev) = rx.recv().await {
    match ev {
        JailEvent::Stdout(l)        => println!("{l}"),
        JailEvent::Stderr(l)        => eprintln!("{l}"),
        JailEvent::OomKilled        => eprintln!("OOM"),
        JailEvent::Completed { .. } => break,
        _ => {}
    }
}

Snapshots and live forks

let snap = Snapshot::create(&output, &snapshot_dir)?;
snap.restore()?;

// Clone a running jail's output without pausing it (reflink on btrfs/xfs,
// fallback to regular copy elsewhere; the jail is frozen sub-millisecond
// via the cgroup freezer for the clone's duration).
let handle = jail.spawn("python", &["train.py"])?;
let (forked, _info) = jail.live_fork(Some(&handle), "/tmp/fork-out")?;

Snapshots restored through the incremental pool strip S_ISUID / S_ISGID bits and reject manifest entries with absolute or .. paths.

Verified threat model

Each row links to the regression test that would fail if the protection ever did. All tests live in crates/agentjail/tests/.

Attack Protection Test
Read host ~/.ssh / ~/.aws Not mounted test_cannot_read_ssh_keys
Read /etc/shadow, machine-id Minimal /etc test_etc_shadow_not_accessible
Network exfiltration Netns + allowlist proxy test_network_none_blocks_external, test_reverse_shell_blocked
Fork bomb PID limit test_pid_limit_blocks_fork_bomb
Memory blow-up Memory limit + OOM detection test_large_stdout_does_not_oom
Disk thrashing I/O bandwidth limits test_io_write_bandwidth_limit_enforced
Signal host processes PID namespace test_pid_namespace_full_sandbox
Mount manipulation mount + new mount API blocked seccomp_standard_blocks_documented_syscalls
chroot escape pivot_root + detach; chroot seccomp-blocked test_chroot_no_home
io_uring bypass io_uring_* blocked seccomp_standard_blocks_documented_syscalls
Compat-mode escape personality() blocked seccomp_standard_blocks_documented_syscalls
Namespace escape clone3, unshare, setns blocked test_seccomp_blocks_unshare
BPF / perf bpf, perf_event_open, userfaultfd blocked test_seccomp_blocks_bpf
Executable memory memfd_create blocked seccomp_standard_blocks_documented_syscalls
Write + exec on /tmp NOEXEC test_tmp_noexec
Setuid escalation PR_SET_NO_NEW_PRIVS
Core-dump leak RLIMIT_CORE=0 test_rlimit_core_disabled
Parent stdout OOM Output capped at 256 MiB per stream test_large_stdout_does_not_oom
FD exhaustion RLIMIT_NOFILE at 4096 test_fd_limit_enforced
Symlink traversal Skipped in snapshots, forks, cleanup test_snapshot_restore_does_not_follow_symlinks
Zombie / fd leak PR_SET_PDEATHSIG + Drop kills+reaps test_no_zombie_after_drop
Cross-tenant read tenant_id stamped on every row; list filters, get returns 404 operator_cannot_read_other_tenants_workspace_by_id, credentials_are_tenant_scoped
Token spent on foreign tenant's bill TokenRecord.tenant_id; proxy looks up keys.get(tenant, service) agentjail-phantom
Malicious .gitmodules / core.sshCommand RCE on host Clone-jail: strict-ish seccomp, allowlist network, no host access clone_jail_clones_a_small_public_repo
Operator enumerates platform bind addrs / state_dir via GET /v1/config Admin-only fields; omitted for operator role settings_bind_addrs_hidden_from_operators
Snapshot rehydrate spoofing (id guessing) Requires parent_workspace_id, verified against the snapshot's recorded parent from_snapshot_requires_and_checks_parent_workspace_id

Limits

  • Linux-only. Not a VM; a kernel exploit escapes. For stronger isolation pair with gVisor or run inside a Firecracker microVM.
  • GPU mode widens the attack surface to the NVIDIA driver.
  • Allowlist mode costs one veth pair per concurrent jail; stale interfaces are reaped at agentjail-server startup via cleanup_stale_veths().

Control plane

An optional HTTP server (agentjail-server) sits in front of the library: phantom-token credential broker, jail/workspace/snapshot ledgers in Postgres, an SSE stream of upstream API calls, and a web UI. Installed pre-release; APIs may move. Useful for local dev, demos, and staging.

Tenancy

Every workspace, snapshot, session, jail-ledger row, and upstream credential is stamped with a tenant_id. API keys carry it plus a role:

token@tenant:role            # role ∈ { admin, operator }

Operators see only their own tenant. Admins see every tenant and can target a specific one via ?tenant=<id>. Cross-tenant direct-id access returns 404, never 403 — the server never reveals whether a row outside the caller's scope exists.

# Multiple keys, comma-separated. Every component is mandatory; a
# misconfigured entry fails loud rather than silently granting admin.
export AGENTJAIL_API_KEY="\
  ak_ops@platform:admin,\
  ak_acme_alice@acme:operator,\
  ak_globex_ops@globex:operator"
docker compose -f docker-compose.platform.yml up --build
# UI:  http://localhost:3000/t/<tenant>
# API: http://localhost:7000

See docs/tenancy.md for the full key format, role semantics, DB shape, and test coverage.

Flavors

Runtime "flavors" (nodejs, python, bun, …) are host directories under $state_dir/flavors/<name>/ bind-mounted read-only into each jail at /opt/flavors/<name>/, with bin/ auto-prepended to PATH. The jail engine stays language-agnostic — adding deno or ruby is a matter of dropping a directory, not touching core code.

POST /v1/workspaces
{ "flavors": ["nodejs", "python"] }

Discovery: GET /v1/flavors returns names only (host paths stay admin-internal). See docs/flavors.md.

Clone-jail

git clone runs inside its own short-lived jail by default — strict-ish seccomp, per-repo network allowlist, 60 s timeout, no host access. A malicious .gitmodules or core.sshCommand can't reach anything outside the target dir. Opt back into the old host-side path on restricted container runtimes:

export AGENTJAIL_CLONE_MODE=host   # default is `jail`

Surface

  • Identity: GET /v1/whoami · GET /v1/flavors
  • Credentials (per-tenant): POST /v1/credentials · GET /v1/credentials · DELETE /v1/credentials/:service (all accept ?tenant=<id> for admins)
  • Sessions: POST /v1/sessions · POST /v1/sessions/:id/exec
  • Runs: POST /v1/runs (/fork, /stream)
  • Workspaces: POST /v1/workspaces (/fork, /exec) · PATCH /v1/workspaces/:id · POST /v1/workspaces/:id/snapshot · POST /v1/workspaces/from-snapshot (requires parent_workspace_id)
  • Lists (tenant-filtered): GET /v1/workspaces · GET /v1/snapshots · GET /v1/sessions · GET /v1/jails · GET /v1/audit
  • Detail: GET /v1/snapshots/:id/manifest · GET /v1/jails/:id · GET /v1/config (bind-addrs + state_dir admin-only)

Web UI

control plane

React 19 + Vite + Tailwind. Every dashboard page lives at /t/:tenant/... so the active tenant is visible + bookmarkable; the shell header shows a tenant + role badge. Pages: Dashboard, Projects, API Sessions, Integrations, Playground, Docs. Operator tools behind an Advanced menu: Execution Ledger, Snapshots, API Audit, Accounts, System Settings. Admins browsing another tenant via URL see a cross-tenant view chip on sensitive pages.

TypeScript SDK

@agentjail/sdk — zero deps, Node ≥ 18. Sandboxes never see real API keys: they get phantom tokens (phm_<hex>) plus *_BASE_URL env vars pointing at the proxy.

import { Agentjail } from "@agentjail/sdk";

const aj = new Agentjail({
  baseUrl: "http://localhost:7000",
  apiKey:  process.env.AGENTJAIL_API_KEY!,
});

await aj.credentials.put({ service: "openai", secret: process.env.OPENAI_API_KEY! });

const result = await aj.runs.create({ code: "print('hi')", language: "python" });

for await (const ev of aj.runs.stream({ code, language: "python" })) {
  if (ev.type === "stdout") process.stdout.write(ev.line + "\n");
}

const session = await aj.sessions.create({
  services: ["openai", "github"],
  scopes:   { github: ["/repos/my-org/*"] },
  ttlSecs:  600,
});
spawn("node", ["agent.js"], { env: { ...process.env, ...session.env } });

Surface: credentials, sessions, runs (create / fork / stream), workspaces, snapshots, jails, audit. Reference: packages/sdk-node/README.md.

Python SDK

agentjail — Python ≥ 3.10, depends on httpx. Symmetrical with the Node SDK; see packages/sdk-python/README.md.

Build and test

make test-rust                     # low-privilege unit slice (in Docker)
make test-rust-privileged          # full security suite, --privileged Docker
make test-rust-privileged-clone    # end-to-end clone-jail + workspace-exec
                                   # pipeline (real git + two jails)
( cd packages/sdk-node    && npm test )
( cd packages/sdk-python  && pytest )
( cd web && npm run build )

GPU tests need an NVIDIA GPU + the Container Toolkit:

docker compose run --rm gpu cargo test --test gpu_test -- --nocapture

License

MIT. See LICENSE.