Skip to content
This repository was archived by the owner on Nov 29, 2025. It is now read-only.

Commit 82718d4

Browse files
committed
Fix tool permissions and workflow
1 parent ae677ef commit 82718d4

File tree

1 file changed

+8
-10
lines changed

1 file changed

+8
-10
lines changed

.github/workflows/swe-agent.yml

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -59,16 +59,14 @@ jobs:
5959
- For BUGS: write a failing test first, then fix
6060
6161
Workflow:
62-
1. Understand codebase backend and frontend structure. Start by reading README and docs.
63-
2. Create branch: feature/issue-${{ github.event.issue.number }} or bugfix/issue-${{ github.event.issue.number }}
64-
3. For bugs: write failing test that reproduces issue
65-
4. Implement fix or feature ensure professional with NO emojies, excessive try / excepts and aligned with best practices.
66-
5. Run tests: uv run pytest
67-
6. Ensure tests pass
68-
7. Commit with clear messages that are up to 2 sentences long
69-
8. Open PR with summary and test results
62+
1. Read existing code to understand structure
63+
2. For bugs: create failing test first
64+
3. Implement solution - Write for new files, Edit for changes
65+
4. Professional code: NO emojis, minimal try/except, PEP 8
66+
5. Include type hints, >80% test coverage
67+
6. Action will automatically create branch, commit, and open PR
7068
claude_args: |
7169
--max-turns 50
7270
--model claude-sonnet-4-5-20250929
73-
--system-prompt "You are an expert Python developer. Follow PEP 8, use type hints, maintain >80% test coverage. Use uv for dependencies. Write clear commit messages."
74-
--allowedTools "Read,Write,Edit,MultiEdit,Glob,Grep,LS,Bash(*)"
71+
--system-prompt "Expert Python developer. Use Write for new files, Edit for changes. NEVER run git commands (checkout, add, commit) - GitHub Action handles this. Focus on quality code."
72+
--allowedTools "Read,Write,Edit,MultiEdit,Glob,Grep,LS,Bash(uv:*),Bash(pytest:*),Bash(python:*),Bash(cat:*),Bash(ls:*),Bash(find:*)"

0 commit comments

Comments
 (0)