# A Deterministic Daemon That Turns a Labelled Issue Into a Pull Request

DevFeed: [A Deterministic Daemon That Turns a Labelled Issue Into a Pull Request](<https://devfeed.tech/articles/a-deterministic-daemon-that-turns-a-labelled-issue-into-a-pull-request-34105.md>)

Original publisher: [Read original article](<https://philipptheserver.com/posts/issue-to-pr-daemon/>)

Author: Philipp Lehmann (philipp.lehmann@gruppe.ai)

Published: 2026-07-24T07:00:00Z

Content type: tutorial

Language: en

Sources: [Philipp Lehmann](<https://devfeed.tech/sources/philipp-lehmann.md>)

Topics: [Pull Request](<https://devfeed.tech/topics/pull-request.md>), [Git](<https://devfeed.tech/topics/git.md>), [GitHub](<https://devfeed.tech/topics/github.md>), [Python](<https://devfeed.tech/topics/python.md>), [audit](<https://devfeed.tech/topics/audit.md>), [file](<https://devfeed.tech/topics/file.md>)

Tags: [agent](<https://devfeed.tech/tags/agent.md>), [agents](<https://devfeed.tech/tags/agents.md>), [audit-trail](<https://devfeed.tech/tags/audit-trail.md>), [ci-cd](<https://devfeed.tech/tags/ci-cd.md>), [commit](<https://devfeed.tech/tags/commit.md>), [git](<https://devfeed.tech/tags/git.md>), [github](<https://devfeed.tech/tags/github.md>), [pull-request](<https://devfeed.tech/tags/pull-request.md>), [python](<https://devfeed.tech/tags/python.md>)

## AI overview

The article proposes an issue-to-PR daemon in which a model works in an isolated workspace and returns a patch, while deterministic Python code validates and applies the patch, commits it, pushes it, and opens the pull request. This separation improves auditability and avoids giving the model credentials for the real repository.

## Source excerpt

git apply --check before git commit: an issue-to-PR daemon where the model only returns a patch and plain Python commits, pushes and opens the PR.