Skip to content

Commit 06182b6

Browse files
chore: normalize container env and tighten agent output constraints
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent adfa2bd commit 06182b6

File tree

4 files changed

+16
-5
lines changed

4 files changed

+16
-5
lines changed

Dockerfile

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,15 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
1717
apt-get update && apt-get install -y --no-install-recommends gh && \
1818
rm -rf /var/lib/apt/lists/*
1919

20-
# Git config (agents need this for commits)
21-
RUN git config --global user.name "SWE Agent" && \
22-
git config --global user.email "swe-agent@agentfield.ai"
20+
# Git identity — env vars take highest precedence and are inherited by all
21+
# subprocesses including Claude Code agent instances spawned by the SDK
22+
ENV GIT_AUTHOR_NAME="SWE-AF" \
23+
GIT_AUTHOR_EMAIL="contact@agentfield.com" \
24+
GIT_COMMITTER_NAME="SWE-AF" \
25+
GIT_COMMITTER_EMAIL="contact@agentfield.com"
26+
27+
RUN git config --global user.name "SWE-AF" && \
28+
git config --global user.email "contact@agentfield.com"
2329

2430
# Install uv for fast package installation
2531
RUN pip install --no-cache-dir uv

swe_af/prompts/coder.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,8 @@
6060
- Commit your work when implementation is complete.
6161
- Do NOT push — the merge agent handles that.
6262
- Do NOT create new branches — work on the current branch.
63+
- Do NOT add any `Co-Authored-By` trailers to commit messages. Commits \
64+
must only contain your descriptive message — no attribution footers.
6365
6466
## Self-Validation
6567

swe_af/prompts/github_pr.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,9 @@
2828
1. A "## Summary" section with 2-4 bullet points describing what was built.
2929
2. A "## Changes" section listing key files/areas modified.
3030
3. A "## Test plan" section with verification steps.
31-
4. A footer line: `Built with [AgentField SWE](https://agentfield.ai)`
32-
31+
4. A footer line: `🤖 Built with [AgentField SWE](https://github.com/Agent-Field/SWE-AF)`
32+
4. A footer line: `🔌 Powered by [AgentField](https://github.com/Agent-Field/agentfield)`
33+
5. Add any other relevant information someone reviewing the PR would want to know. Do not be verbose, but explain when needed.
3334
## Tools Available
3435
3536
- BASH for git and gh commands\

swe_af/prompts/merger.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,8 @@
8989
- Do NOT delete branches — cleanup is handled separately.
9090
- If a branch doesn't exist, skip it and report in `failed_branches`.
9191
- Always work from the integration branch in the main repository directory.
92+
- Do NOT add any `Co-Authored-By` trailers to commit messages. Commits \
93+
must only contain your descriptive message — no attribution footers.
9294
9395
## Tools Available
9496

0 commit comments

Comments
 (0)