Spaces:
Running
Running
zhimin-z commited on
Commit ·
6bd2171
1
Parent(s): 9b299b0
add
Browse files- README.md +18 -66
- README_ref.md +0 -96
README.md
CHANGED
|
@@ -9,87 +9,39 @@ hf_oauth: true
|
|
| 9 |
short_description: Agent arena for software engineering tasks
|
| 10 |
---
|
| 11 |
|
| 12 |
-
# SWE-Agent-Arena
|
| 13 |
|
| 14 |
-
|
| 15 |
|
| 16 |
-
|
| 17 |
|
| 18 |
-
|
| 19 |
-
- **Multi-Round Conversational Workflows**: Send follow-up messages to each agent independently across multiple rounds, mirroring real-world iterative SE workflows.
|
| 20 |
-
- **Live Streaming Output**: Watch agent stdout stream in real-time as agents work on your task.
|
| 21 |
-
- **Side-by-Side Git Diffs**: Compare exactly what each agent changed with side-by-side diff views.
|
| 22 |
-
- **RepoChat Integration**: Automatically inject repository context (issues, PRs, commits, file contents, and more) from GitHub, GitLab, or HuggingFace URLs into agent workspaces for more realistic evaluations.
|
| 23 |
-
- **Advanced Evaluation Metrics**: Assess agents using a comprehensive suite of metrics including:
|
| 24 |
-
- **Traditional ranking metrics**: Elo ratings and win rates to measure overall agent performance
|
| 25 |
-
- **Efficiency metrics**: Conversation Efficiency Index (CEI) — fewer rounds to win = higher score
|
| 26 |
-
- **Consistency metrics**: Model Consistency Score (MCS) — draw rate in self-matches to quantify agent determinism and reliability
|
| 27 |
-
- **Probabilistic metrics**: Bradley-Terry iterative MLE coefficients for pairwise comparison modeling
|
| 28 |
-
- **Network-based metrics**: PageRank, eigenvector centrality to identify influential agents in head-to-head comparisons
|
| 29 |
-
- **Community detection metrics**: Newman modularity to reveal clusters of agents with similar capabilities
|
| 30 |
-
- **Transparent, Open-Source Leaderboard**: View real-time agent rankings across diverse SE workflows with full transparency.
|
| 31 |
-
- **Intelligent Request Filtering**: Employ `gpt-oss-safeguard-20b` as a guardrail to automatically filter out non-software-engineering-related requests, ensuring focused and relevant evaluations.
|
| 32 |
|
| 33 |
-
|
| 34 |
-
|
| 35 |
-
|
| 36 |
-
|
| 37 |
-
- Supporting context-rich, multi-turn evaluations to capture iterative agent workflows
|
| 38 |
-
- Integrating repository-level context to simulate real-world development scenarios
|
| 39 |
-
- Providing multidimensional metrics for nuanced agent comparisons
|
| 40 |
-
- Comparing end-to-end CLI agents — not just language models — on actual code changes
|
| 41 |
|
| 42 |
## How It Works
|
| 43 |
|
| 44 |
-
1. **Submit a
|
| 45 |
-
2. **Watch
|
| 46 |
-
3. **Compare
|
| 47 |
-
4. **
|
| 48 |
-
5. **Vote**: Choose the better agent — Agent A, Agent B, Tie, or Tie (Both Bad)
|
| 49 |
-
|
| 50 |
-
## Getting Started
|
| 51 |
-
|
| 52 |
-
### Prerequisites
|
| 53 |
-
|
| 54 |
-
- A [Hugging Face](https://huggingface.co) account
|
| 55 |
-
|
| 56 |
-
### Usage
|
| 57 |
-
|
| 58 |
-
1. Navigate to the [SWE-Agent-Arena platform](https://huggingface.co/spaces/SE-Arena/SWE-Agent-Arena)
|
| 59 |
-
2. Sign in with your Hugging Face account
|
| 60 |
-
3. Enter your SE task prompt (optionally include a repository URL for context)
|
| 61 |
-
4. Watch agents work, compare diffs, engage in multi-round interactions, and vote on agent performance
|
| 62 |
-
|
| 63 |
-
## Contributing
|
| 64 |
-
|
| 65 |
-
We welcome contributions from the community! Here's how you can help:
|
| 66 |
-
|
| 67 |
-
1. **Submit SE Tasks**: Share your real-world SE problems to enrich our evaluation dataset
|
| 68 |
-
2. **Report Issues**: Found a bug or have a feature request? Open an issue in this repository
|
| 69 |
-
3. **Enhance the Codebase**: Fork the repository, make your changes, and submit a pull request
|
| 70 |
|
| 71 |
## Terms of Service
|
| 72 |
|
| 73 |
-
-
|
| 74 |
-
-
|
| 75 |
-
-
|
| 76 |
-
-
|
| 77 |
-
|
| 78 |
-
## Future Plans
|
| 79 |
|
| 80 |
-
|
| 81 |
-
- **Multi-Round Evaluation Metrics**: Develop specialized metrics for assessing agent adaptation over successive turns
|
| 82 |
-
- **Expanded Agent Coverage**: Include additional CLI coding agents as they become available
|
| 83 |
-
- **Advanced Context Integration**: Support richer repository context injection for more realistic evaluation scenarios
|
| 84 |
-
|
| 85 |
-
## Contact
|
| 86 |
|
| 87 |
-
|
| 88 |
|
| 89 |
## Citation
|
| 90 |
|
| 91 |
-
Made with ❤️ for SWE-Agent-Arena. If this work is useful to you, please consider citing our vision paper:
|
| 92 |
-
|
| 93 |
```bibtex
|
| 94 |
@inproceedings{zhao2025se,
|
| 95 |
title={SE Arena: An Interactive Platform for Evaluating Foundation Models in Software Engineering},
|
|
|
|
| 9 |
short_description: Agent arena for software engineering tasks
|
| 10 |
---
|
| 11 |
|
| 12 |
+
# SWE-Agent-Arena
|
| 13 |
|
| 14 |
+
An open-source platform for evaluating CLI coding agents on real software engineering tasks. Two anonymous agents tackle the same task in isolated environments — you compare their output and git diffs, then vote.
|
| 15 |
|
| 16 |
+
**[Try it on HF Spaces](https://huggingface.co/spaces/SE-Arena/SWE-Agent-Arena)**
|
| 17 |
|
| 18 |
+
## Key Capabilities
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 19 |
|
| 20 |
+
- **Blind pairwise comparison** with live-streaming output and side-by-side git diffs
|
| 21 |
+
- **Multi-round conversations** — send follow-ups to each agent independently, mirroring real iterative workflows
|
| 22 |
+
- **RepoChat** — auto-inject repo context (issues, PRs, files) from GitHub / GitLab / HuggingFace URLs
|
| 23 |
+
- **Rich leaderboard** — Elo, Bradley-Terry MLE, PageRank, CEI (conversation efficiency), MCS (consistency), and Newman modularity
|
|
|
|
|
|
|
|
|
|
|
|
|
| 24 |
|
| 25 |
## How It Works
|
| 26 |
|
| 27 |
+
1. **Submit a task** — sign in, describe an SE task (optionally paste a repo URL for context)
|
| 28 |
+
2. **Watch agents work** — two anonymous agents run in parallel with live stdout
|
| 29 |
+
3. **Compare diffs** — side-by-side view of what each agent changed
|
| 30 |
+
4. **Vote** — Agent A, Agent B, Tie, or Tie (Both Bad)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 31 |
|
| 32 |
## Terms of Service
|
| 33 |
|
| 34 |
+
- **Research preview** — limited safety measures; may generate offensive content.
|
| 35 |
+
- Must not be used for illegal, harmful, violent, racist, or sexual purposes.
|
| 36 |
+
- Do not upload private information.
|
| 37 |
+
- Collected dialogue data may be distributed under a **CC-BY** or similar license.
|
|
|
|
|
|
|
| 38 |
|
| 39 |
+
## Contributing
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 40 |
|
| 41 |
+
Issues, tasks, and PRs welcome — [open an issue](https://github.com/Software-Engineering-Arena/SWE-Agent-Arena/issues/new) to get started.
|
| 42 |
|
| 43 |
## Citation
|
| 44 |
|
|
|
|
|
|
|
| 45 |
```bibtex
|
| 46 |
@inproceedings{zhao2025se,
|
| 47 |
title={SE Arena: An Interactive Platform for Evaluating Foundation Models in Software Engineering},
|
README_ref.md
DELETED
|
@@ -1,96 +0,0 @@
|
|
| 1 |
-
---
|
| 2 |
-
title: SWE-Chatbot-Arena
|
| 3 |
-
emoji: 🎯
|
| 4 |
-
colorFrom: green
|
| 5 |
-
colorTo: blue
|
| 6 |
-
sdk: gradio
|
| 7 |
-
sdk_version: 5.50.0
|
| 8 |
-
app_file: app.py
|
| 9 |
-
hf_oauth: true
|
| 10 |
-
pinned: false
|
| 11 |
-
short_description: Chatbot arena for software engineering tasks
|
| 12 |
-
---
|
| 13 |
-
|
| 14 |
-
# SWE-Chatbot-Arena: An Interactive Platform for Evaluating Foundation Models in Software Engineering
|
| 15 |
-
|
| 16 |
-
Welcome to **SWE-Chatbot-Arena**, an open-source platform designed for evaluating software engineering-focused foundation models (FMs), particularly large language models (LLMs). SWE-Chatbot-Arena benchmarks models in iterative, context-rich workflows that are characteristic of software engineering (SE) tasks.
|
| 17 |
-
|
| 18 |
-
## Key Features
|
| 19 |
-
|
| 20 |
-
- **Multi-Round Conversational Workflows**: Evaluate models through extended, context-dependent interactions that mirror real-world SE processes.
|
| 21 |
-
- **RepoChat Integration**: Automatically inject repository context (issues, commits, PRs) into conversations for more realistic evaluations.
|
| 22 |
-
- **Advanced Evaluation Metrics**: Assess models using a comprehensive suite of metrics including:
|
| 23 |
-
- **Traditional ranking metrics**: Elo ratings and win rates to measure overall model performance
|
| 24 |
-
- **Network-based metrics**: Eigenvector centrality and PageRank to identify influential models in head-to-head comparisons
|
| 25 |
-
- **Community detection metrics**: Newman modularity to reveal clusters of models with similar capabilities
|
| 26 |
-
- **Consistency metrics**: Self-play match analysis to quantify model determinism and reliability
|
| 27 |
-
- **Efficiency metrics**: Conversation efficiency index to measure response quality relative to length
|
| 28 |
-
- **Transparent, Open-Source Leaderboard**: View real-time model rankings across diverse SE workflows with full transparency.
|
| 29 |
-
- **Intelligent Request Filtering**: Employ `gpt-oss-safeguard-20b` as a guardrail to automatically filter out non-software-engineering-related requests, ensuring focused and relevant evaluations.
|
| 30 |
-
|
| 31 |
-
## Why SWE-Chatbot-Arena?
|
| 32 |
-
|
| 33 |
-
Existing evaluation frameworks (e.g. [LMArena](https://lmarena.ai)) often don't address the complex, iterative nature of SE tasks. SWE-Chatbot-Arena fills critical gaps by:
|
| 34 |
-
|
| 35 |
-
- Supporting context-rich, multi-turn evaluations to capture iterative workflows
|
| 36 |
-
- Integrating repository-level context through RepoChat to simulate real-world development scenarios
|
| 37 |
-
- Providing multidimensional metrics for nuanced model comparisons
|
| 38 |
-
- Focusing on the full breadth of SE tasks beyond just code generation
|
| 39 |
-
|
| 40 |
-
## How It Works
|
| 41 |
-
|
| 42 |
-
1. **Submit a Prompt**: Sign in and input your SE-related task (optional: include a repository URL for RepoChat context)
|
| 43 |
-
2. **Compare Responses**: Two anonymous models provide responses to your query
|
| 44 |
-
3. **Continue the Conversation**: Test contextual understanding over multiple rounds
|
| 45 |
-
4. **Vote**: Choose the better model at any point, with ability to re-assess after multiple turns
|
| 46 |
-
|
| 47 |
-
## Getting Started
|
| 48 |
-
|
| 49 |
-
### Prerequisites
|
| 50 |
-
|
| 51 |
-
- A [Hugging Face](https://huggingface.co) account
|
| 52 |
-
|
| 53 |
-
### Usage
|
| 54 |
-
|
| 55 |
-
1. Navigate to the [SWE-Chatbot-Arena platform](https://huggingface.co/spaces/SE-Arena/SWE-Chatbot-Arena)
|
| 56 |
-
2. Sign in with your Hugging Face account
|
| 57 |
-
3. Enter your SE task prompt (optionally include a repository URL for RepoChat)
|
| 58 |
-
4. Engage in multi-round interactions and vote on model performance
|
| 59 |
-
|
| 60 |
-
## Contributing
|
| 61 |
-
|
| 62 |
-
We welcome contributions from the community! Here's how you can help:
|
| 63 |
-
|
| 64 |
-
1. **Submit SE Tasks**: Share your real-world SE problems to enrich our evaluation dataset
|
| 65 |
-
2. **Report Issues**: Found a bug or have a feature request? Open an issue in this repository
|
| 66 |
-
3. **Enhance the Codebase**: Fork the repository, make your changes, and submit a pull request
|
| 67 |
-
|
| 68 |
-
## Privacy Policy
|
| 69 |
-
|
| 70 |
-
Your interactions are anonymized and used solely for improving SWE-Chatbot-Arena and FM benchmarking. By using SWE-Chatbot-Arena, you agree to our Terms of Service.
|
| 71 |
-
|
| 72 |
-
## Future Plans
|
| 73 |
-
|
| 74 |
-
- **Analysis of Real-World SE Workloads**: Identify common patterns and challenges in user-submitted tasks
|
| 75 |
-
- **Multi-Round Evaluation Metrics**: Develop specialized metrics for assessing model adaptation over successive turns
|
| 76 |
-
- **Expanded FM Coverage**: Include multimodal and domain-specific foundation models
|
| 77 |
-
- **Advanced Context Compression**: Integrate techniques like [LongRope](https://github.com/microsoft/LongRoPE) and [SelfExtend](https://github.com/datamllab/LongLM) to manage long-term memory in multi-round conversations
|
| 78 |
-
|
| 79 |
-
## Contact
|
| 80 |
-
|
| 81 |
-
For inquiries or feedback, please [open an issue](https://github.com/SE-Arena/SWE-Chatbot-Arena/issues/new) in this repository. We welcome your contributions and suggestions!
|
| 82 |
-
|
| 83 |
-
## Citation
|
| 84 |
-
|
| 85 |
-
Made with ❤️ for SWE-Chatbot-Arena. If this work is useful to you, please consider citing our vision paper:
|
| 86 |
-
|
| 87 |
-
```bibtex
|
| 88 |
-
@inproceedings{zhao2025se,
|
| 89 |
-
title={SE Arena: An Interactive Platform for Evaluating Foundation Models in Software Engineering},
|
| 90 |
-
author={Zhao, Zhimin},
|
| 91 |
-
booktitle={2025 IEEE/ACM Second International Conference on AI Foundation Models and Software Engineering (Forge)},
|
| 92 |
-
pages={78--81},
|
| 93 |
-
year={2025},
|
| 94 |
-
organization={IEEE}
|
| 95 |
-
}
|
| 96 |
-
```
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|