How kavya12024/logicflow works
LogicFlow is an autonomous code-repair agent. Users start repairs through the CLI or Streamlit dashboard; the agent detects failures, narrows the target with AST analysis, retrieves optional code context, asks a local LLM for a surgical fix, verifies it, and can publish a GitHub pull request. The graph preserves indexing and GitHub issue workflows as additional capabilities. Relationships are grounded mainly in the README’s architecture and workflow descriptions; unsampled implementation details are not inferred.
Main entry points: core.py Repair Agent · main.py CLI · docker_test_tool.py Test Sandbox · faiss_tool.py Code Index and Retrieval
Components 14
User Interfaces
- CLI
main.py - Streamlit Dashboard
dashboard/streamlit_app.py
Repair Orchestration
- Configuration
config.py - Repair Agent
agents/core.py
Analysis and Verification
- AST Slicing and Splicing
tools/ast_tool.py - Test Sandbox
tools/docker_test_tool.py - Code Index and Retrieval
tools/faiss_tool.py - GitHub Issue and PR Manager
tools/github_tool.py
External Services and Data
- Repair Workspace
workspace/logicflow-test-repo - Ollama LLM
- Persisted FAISS Index
faiss_index - Docker
- GitHub
Other components
- User
Connections 16
- User → CLI: starts command
README.md - User → Streamlit Dashboard: uses dashboard
README.md - CLI → Repair Agent: starts repair
main.py - Streamlit Dashboard → Repair Agent: runs workflows
dashboard/streamlit_app.py - CLI → Code Index and Retrieval: builds index
main.py - Repair Agent → Configuration: loads settings
agents/core.py - Repair Agent → Test Sandbox: runs tests
README.md - Repair Agent → AST Slicing and Splicing: slices and splices
README.md - Repair Agent → Code Index and Retrieval: retrieves context
README.md - Repair Agent → Ollama LLM: requests repair
README.md - Repair Agent → GitHub Issue and PR Manager: processes issues
README.md - Test Sandbox → Repair Workspace: tests code
README.md - Repair Agent → Repair Workspace: repairs code
README.md - Code Index and Retrieval → Persisted FAISS Index: persists index
README.md - Test Sandbox → Docker: runs isolated tests
README.md - GitHub Issue and PR Manager → GitHub: fetches issues and publishes PRs
README.md