How ozyyshr/repograph works
RepoGraph builds repository-level code graphs and exposes graph-based context retrieval to two SWE-bench workflows: Agentless localization/repair and SWE-agent interactive task solving. The documented core path is graph construction followed by search; Agentless separately structures a repository, localizes likely files and code locations, then generates and postprocesses repairs. SWE-agent runs an agent against a Docker-backed environment, with RepoGraph retrieval available as an added action. Edges reflect README statements and SOURCE INDEX references; unsampled integrations are shown only where documented.
Main entry points: agents.py Agent Loop · repair.py Repair Generation · preprocess_data.py Data Preprocessing · FL.py File Localization
Components 25
RepoGraph
- Graph Construction
repograph/construct_graph.py - Graph Utilities
repograph/utils.py - Graph Search
repograph/graph_searcher.py
Agentless Workflow
- Repo Structure
agentless/get_repo_structure/get_repo_structure.py - Data Preprocessing
agentless/util/preprocess_data.py - File Localization
agentless/fl/FL.py - Location Localization
agentless/fl/localize.py - Repair Generation
agentless/repair/repair.py - Repair Reranking
agentless/repair/rerank.py - Patch Processing
agentless/util/postprocess_data.py - Model Requests
agentless/util/api_requests.py
SWE-agent Runtime
- Task Runner
SWE-agent/run.py - Agent Loop
SWE-agent/sweagent/agent/agents.py - Model Adapters
SWE-agent/sweagent/agent/models.py - Action Parsing
SWE-agent/sweagent/agent/parsing.py - Agent Commands
SWE-agent/sweagent/agent/commands.py - History Processing
SWE-agent/sweagent/agent/history_processors.py - Execution Environment
SWE-agent/sweagent/environment/swe_env.py - Graph Search Action
SWE-agent/config/commands/_code_graph.py
SWE-agent Interface
Other components
- Target Repository
- Docker Runtime
Connections 27
- Target Repository → Graph Construction: analyzes
README.md - Graph Construction → Graph Utilities: uses
repograph/construct_graph.py - Graph Search → Target Repository: retrieves context
README.md - Repo Structure → Data Preprocessing: provides structure
agentless/util/preprocess_data.py - Data Preprocessing → File Localization: feeds localization
agentless/fl/FL.py - File Localization → Location Localization: delegates localization
agentless/fl/localize.py - Location Localization → Repo Structure: uses repository structure
agentless/fl/localize.py - File Localization → Repair Generation: calls
agentless/fl/FL.py - Repair Generation → Model Requests: requests completions
agentless/repair/repair.py - Repair Generation → Data Preprocessing: uses
agentless/repair/repair.py - Repair Generation → Patch Processing: uses
agentless/repair/repair.py - Repair Reranking → Patch Processing: uses
agentless/repair/rerank.py - Patch Processing → Data Preprocessing: uses
agentless/util/postprocess_data.py - Task Runner → Agent Loop: runs
SWE-agent/run.py - Task Runner → Execution Environment: creates
SWE-agent/run.py - Agent Loop → Model Adapters: queries
SWE-agent/sweagent/agent/agents.py - Agent Loop → Action Parsing: parses actions
SWE-agent/sweagent/agent/agents.py - Agent Loop → Agent Commands: uses commands
SWE-agent/sweagent/agent/agents.py - Agent Loop → History Processing: processes history
SWE-agent/sweagent/agent/agents.py - Agent Loop → Execution Environment: acts through
SWE-agent/sweagent/agent/agents.py - Execution Environment → Docker Runtime: controls containers
SWE-agent/sweagent/environment/swe_env.py - Agent Loop → Graph Search Action: offers graph action
README.md - Graph Search Action → Graph Search: searches graph
- Web API → Task Runner: starts run
SWE-agent/sweagent/api/server.py - Web API → Run Hooks: registers hooks
SWE-agent/sweagent/api/server.py - Web App → Run View: routes to
SWE-agent/sweagent/frontend/src/App.js - Run View → Web API: controls run