Skip to content

Instantly share code, notes, and snippets.

View amartinr's full-sized avatar

A. Martin amartinr

View GitHub Profile
@amartinr
amartinr / agent-sandbox-design.md
Last active September 27, 2026 15:51
Isolated AI coding agent on Linux design template (Podman, overlayfs, bindfs, git)

Isolated AI Coding Agent on Linux — Design Template

Reference architecture for running a coding agent in an isolated container with controlled read/write access to a host home directory, versioned via git, and routed through a local gateway to remote models.

Design template. Adapt values, paths, and tool choices to the target environment.


@amartinr
amartinr / backup-post.service
Last active June 2, 2024 17:12
Systemd units definying a backup.target that can be triggered by a service unit
# /etc/systemd/system/backup-post.service
[Unit]
Description=Return from backup target
RefuseManualStart=true
RefuseManualStop=true
IgnoreOnIsolate=true
After=backup.service
[Service]
Type=exec
@amartinr
amartinr / i3lock@.service
Last active May 19, 2018 20:40
i3lock sleep unit
[Unit]
Description=Lock screen before suspend
Before=sleep.target
[Service]
User=%I
Type=simple
Environment=DISPLAY=:0
ExecStart=/usr/local/bin/i3lock-dunst.sh
ExecStartPost=/bin/sleep 1