Skip to content

docs(blog): add giving an AI agent its own Linux user post - #777

Open
steffenmaechtel wants to merge 1 commit into
ddev:mainfrom
steffenmaechtel:20261105_steffenmaechtel_ai_agent_own_linux_user
Open

steffenmaechtel wants to merge 1 commit into
ddev:mainfrom
steffenmaechtel:20261105_steffenmaechtel_ai_agent_own_linux_user

Conversation

@steffenmaechtel

@steffenmaechtel steffenmaechtel commented Nov 5, 2026 •

Copy link
Copy Markdown

Short Summary

Adds a new community blog post by Steffen Maechtel on running a coding agent (opencode) as its own Linux user on a WSL2 machine. Related to: ddev/ddev#9031 (comment)

Rendered at https://pr-777.ddev-com-fork-previews.pages.dev/blog/giving-an-ai-agent-its-own-linux-user/

Infos

The text was translated entirely using AI. The source text and information were written in German. The AI has generated its own phrases based on the information. Some of my colleagues have checked it, and we have made changes in a few places.

Four new files: the post (src/content/blog/giving-an-ai-agent-its-own-linux-user.md), a new author entry (src/content/authors/steffen-maechtel.md) with avatar (public/img/avatar/steffen.jpg), and a hand-written(AI) SVG feature image (public/img/blog/2026/11/giving-an-ai-agent-its-own-linux-user.svg).

Tests

prettier --check and textlint are green

Release/Deployment Notes

pubDate is set to 2026-11-09, need to be adjusted

Short Summary (TL;DR): Adds a community blog post by Steffen Maechtel on running a coding agent (opencode) as its own Linux user on a WSL2 machine: dedicated user without Windows interop, DDEV re-executed as the agent user through a sudoers helper, a rootless Docker daemon owned by the agent, and the working tree shared through a group. The daily workflow stays the same; the agent loses access to SSH keys, /mnt/c, and any root-equivalent socket.

## The Issue

- New content, no issue.

## How This PR Solves The Issue

Four new files: the post (src/content/blog/giving-an-ai-agent-its-own-linux-user.md), a new author entry (src/content/authors/steffen-maechtel.md) with avatar (public/img/avatar/steffen.jpg), and a hand-written SVG feature image (public/img/blog/2026/11/giving-an-ai-agent-its-own-linux-user.svg).

## Manual Testing Instructions

Open the PR preview at REPLACE_ME and compare with https://ddev.com/blog/: the /blog/ listing (card with feature image, DevOps category, Nov 9 date), the post page (the napkin ASCII diagram renders in its code block, the author box shows Steffen Maechtel with avatar), and /blog/author/steffen-maechtel/.

## Automated Testing Overview

No new code. prettier --check, textlint, and npm run build pass locally; astro-link-validator found no broken links; the three external links (opencode.ai, docs.ddev.com docker-installation, github.com/steffenmaechtel/opencode-permissions-kit) return 200.

## Release/Deployment Notes

pubDate is 2026-11-09 and must match the merge day: the site has no scheduling, pubDate only sorts posts, so a future-dated post is visible immediately after merge. It will be adjusted if the merge moves.

🤖 Developed with assistance from [OpenCode](https://opencode.ai)
@github-actions

github-actions Bot commented Nov 5, 2026

Copy link
Copy Markdown

🌐 Fork Preview for PR #777

https://pr-777.ddev-com-fork-previews.pages.dev

This preview updates automatically when you push changes to your fork.

@stasadev

Copy link
Copy Markdown
Member

I asked Claude about AI security concerns on my Linux (I had forgotten about this PR), and it answered:

For stronger isolation, run Claude Code as a separate Linux user, for example claude-agent, with its own rootless Docker, no access to your home folder, and only a checkout of your ddev/ddev. That's the cleanest boundary you can get without a VM, and DDEV would still work there.

And then I remembered this PR 🙂. I think this approach makes sense from a DDEV user's perspective, and the article itself should have cross-links to #778 (once one of them is merged) - an alternative approach for isolation.

I haven't reviewed it yet.

@stasadev
stasadev self-requested a review November 12, 2026 15:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants