Skip to content

docs(runner): ask sessions for push commands a user can approve - #269

Merged
rfay merged 2 commits into
mainfrom
20261124_rfay_readable_push
Nov 24, 2026
Merged

rfay merged 2 commits into
mainfrom
20261124_rfay_readable_push

Conversation

@rfay

@rfay rfay commented Nov 24, 2026

Copy link
Copy Markdown
Member

Short Summary (TL;DR)

The runner's coder-shared-workspace skill now asks sessions for one plain git push <remote> <branch> per approval, with the identity check and remote setup kept out of it. Users can then approve a push by reading its command.

The Issue

Sessions on the runner push to forks over SSH, and the skill asks them to compare ssh -T git@github.com with get_me first. Sessions often folded that check, git remote add, and a retry loop into the push command itself. The approval prompt then showed a script, which a user can't judge, especially from a phone.

How This PR Solves The Issue

A new "Make each push easy to approve" section in modules/claude-self-hosted-runner/files/SKILL.md says:

  • Run checks and add remotes as separate commands, before the push.
  • Push with one plain command naming remote and branch, with no &&, pipes, loops, variables or bash -c.
  • Before the push, name the branch, the remote URL and the commits, and say whether it rewrites the branch.
  • On a network error, run the same command again as a new call.
  • Follow a repository's own AGENTS.md where it is stricter. For example, ddev/ddev's ask rule doesn't see git -C.

make sync-shared copied the change into freeform/modules/claude-self-hosted-runner/.

ddev/ddev gets the same rule in its own AGENTS.md in a separate PR.

Manual Testing Instructions

  1. Push this template version and rebuild a freeform workspace with the runner enabled.
  2. Start a session and ask it to push a branch to your fork.
  3. Expect the identity check and any git remote add as separate prompts.
  4. Expect a short note of the branch, fork URL and commits.
  5. Expect the push prompt to be exactly git push -u <remote> <branch>.

Automated Testing Overview

Documentation only. Claude Code ran make sync-shared, and only the vendored SKILL.md changed. Nobody ran make validate or make test-templates for this change.


Generated by Claude Code

Keep identity checks and remote setup out of the push, push with one
plain git push naming remote and branch, and describe it first.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01UrTUMxgU4PhDDYKGGjpT5z
@github-actions

github-actions Bot commented Nov 24, 2026 •

Copy link
Copy Markdown

Previews

The start.coder.ddev.com landing-page preview has been removed. Read the Docs keeps or removes its own docs preview.

@rfay
rfay merged commit bb5a118 into main Nov 24, 2026
21 checks passed
@rfay
rfay deleted the 20261124_rfay_readable_push branch November 24, 2026 18:41
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