99<div align =" center " >
1010 <a href =" https://github.com/Pantheon-temple/Prometheus/graphs/contributors " ><img src =" https://img.shields.io/github/contributors/Pantheon-temple/Prometheus?style=for-the-badge&color=blue " alt =" Contributors " ></a >
1111 <a href =" https://github.com/Pantheon-temple/Prometheus/stargazers " ><img src =" https://img.shields.io/github/stars/Pantheon-temple/Prometheus?style=for-the-badge&color=blue " alt =" Stargazers " ></a >
12- <a href =" https://github.com/Pantheon-temple/Prometheus/blob/main/LICENSE " ><img src =" https://img.shields.io/github/license/Pantheon-temple/Prometheus?style=for-the-badge&color=blue " alt =" MIT License " ></a >
12+ <a href =" https://github.com/Pantheon-temple/Prometheus/blob/main/LICENSE " ><img src =" https://img.shields.io/github/license/Pantheon-temple/Prometheus?style=for-the-badge&color=blue " alt =" APACHE-2.0 License " ></a >
13+ <a href =" https://www.arxiv.org/abs/2507.19942 " ><img src =" https://img.shields.io/badge/Paper-arXiv-red?style=for-the-badge&logo=arxiv " alt =" Paper " ></a >
1314 <br />
1415 <a href="https://github.com/Pantheon-temple/Prometheus/blob/main/CREDITS.md"><img src="https://img.shields.io/badge/Project-Credits-blue?style=for-the-badge&color=FFE165&logo=github&logoColor=white" alt="Credits"></a>
1516 <br />
@@ -36,11 +37,22 @@ governed by a state machine to ensure code quality through automated reviews, bu
3637## 📊 Evaluation Results on SWE-bench Lite
3738
3839<div align =" center " >
39- <img src =" ./docs/static/images/barChart .png " alt =" SWE-bench Lite Result " width =" 800 " />
40+ <img src =" ./docs/static/images/comparison_deepseek_July08 .png " alt =" SWE-bench Lite Result " width =" 800 " />
4041 <p ><em >Success Rate Comparison across popular agents. Prometheus achieves 28.67%.</em ></p >
4142</div >
4243
4344
45+ ``` bibtex
46+ @misc{Prometheus-code-agent-2025,
47+ title={Prometheus: Unified Knowledge Graphs for Issue Resolution in Multilingual Codebases},
48+ author={Zimin Chen and Yue Pan and Siyu Lu and Jiayi Xu and Claire Le Goues and Martin Monperrus and He Ye},
49+ year={2025},
50+ eprint={2507.19942},
51+ archivePrefix={arXiv},
52+ primaryClass={cs.SE},
53+ url={https://arxiv.org/abs/2507.19942},
54+ }
55+ ```
4456
4557## ⚙️ Quick Start
4658
@@ -54,18 +66,34 @@ governed by a state machine to ensure code quality through automated reviews, bu
5466
5567### 📦 Setup
5668
57- 1 . Clone the repository:
69+ 1 . #### Clone the repository:
5870 ``` bash
5971 git clone https://github.com/Pantheon-temple/Prometheus.git
6072 cd Prometheus
6173 ```
6274
63- 2 . Copy the ` example.env ` file to ` .env ` and update it with your API keys and other required configurations:
75+ 2 . #### Copy the ` example.env ` file to ` .env ` and update it with your API keys and other required configurations:
76+
6477 ``` bash
6578 mv example.env .env
6679 ```
6780
68- 3 . Start the services using Docker Compose:
81+ > You need to provide a secure ` JWT_SECRET_KEY ` in the ` .env ` file.
82+ > You can generate a strong key by running the following command:
83+
84+ ``` bash
85+ python -m prometheus.script.generate_jwt_token
86+ ```
87+
88+ This will print a secure token you can copy and paste into your ` .env ` file
89+
90+ 3 . #### Create the working directory to store logs and cloned repositories:
91+
92+ ``` bash
93+ mkdir working_dir
94+ ```
95+
96+ 4 . #### Start the services using Docker Compose:
6997
7098 - ** Linux (includes PostgreSQL)** :
7199 ``` bash
@@ -82,10 +110,27 @@ governed by a state machine to ensure code quality through automated reviews, bu
82110 docker-compose -f docker-compose.win_mac.yml up --build
83111 ```
84112
85- 4. Access Prometheus:
86- - Service: [http://localhost:9002](http://localhost:9002)
113+ 5. #### Access Prometheus:
114+ - Service: [http://localhost:9002/v1.2 ](http://localhost:9002/v1.2 )
87115 - OpenAPI Docs: [http://localhost:9002/docs](http://localhost:9002/docs)
88116
117+ 6. #### Upload Your Codebase:
118+
119+ You can upload a GitHub repository to Prometheus using the following API endpoint:
120+
121+ - **Endpoint:** `POST /repository/upload/`
122+ - **Request Body:** JSON object matching the `UploadRepositoryRequest` schema (see [API Documents](http://127.0.0.1:9002/docs#/repository/repository-upload_github_repository))
123+
124+ This will clone the specified repository (defaulting to the latest commit on the main branch) into Prometheus.
125+
126+ 7. #### 📝 Answer Repository Issues
127+
128+ You can ask Prometheus to analyze and answer a specific issue in your codebase using the `/issue/answer/` API endpoint.
129+
130+ - **Endpoint:** `POST /issue/answer/`
131+ - **Request Body:** JSON object matching the `IssueRequest` schema (see [API Documents](http://127.0.0.1:9002/docs#/issue/issue-answer_issue))
132+ - **Response:** Returns the generated patch, test/build results, and a summary response.
133+
89134---
90135
91136## 🗄️ Database Setup
@@ -126,39 +171,6 @@ Verify Neo4J at: [http://localhost:7474](http://localhost:7474)
126171
127172---
128173
129- # # ⚙️ Configuration
130-
131- Set the following variables in your ` .env` file:
132-
133- # ## 🔹 Neo4j
134-
135- * ` PROMETHEUS_NEO4J_URI`
136- * ` PROMETHEUS_NEO4J_USERNAME`
137- * ` PROMETHEUS_NEO4J_PASSWORD`
138-
139- # ## 🔹 LLM Models
140-
141- * ` PROMETHEUS_ADVANCED_MODEL`
142- * ` PROMETHEUS_BASE_MODEL`
143- * API Keys:
144-
145- * ` PROMETHEUS_OPENAI_FORMAT_API_KEY`
146- * ` PROMETHEUS_ANTHROPIC_API_KEY`
147- * ` PROMETHEUS_GEMINI_API_KEY`
148- * Base URL for LLMs:
149-
150- * ` PROMETHEUS_OPENAI_FORMAT_BASE_URL`
151-
152- # ## 🔹 Other Settings
153-
154- * ` PROMETHEUS_WORKING_DIRECTORY`
155- * ` PROMETHEUS_GITHUB_ACCESS_TOKEN`
156- * ` PROMETHEUS_KNOWLEDGE_GRAPH_MAX_AST_DEPTH`
157- * ` PROMETHEUS_NEO4J_BATCH_SIZE`
158- * ` PROMETHEUS_POSTGRES_URL`
159-
160- ---
161-
162174# # 🧪 Development
163175
164176# ## Requirements
0 commit comments