# seshadri-07/devpulse-github-intelligence architecture

> Architecture diagram of the GitHub repository seshadri-07/devpulse-github-intelligence, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-10). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/seshadri-07/devpulse-github-intelligence
- Repository: https://github.com/seshadri-07/devpulse-github-intelligence

## Overview

DevPulse is a GitHub research and repository-management assistant. A user asks through the Streamlit studio or a command-line agent; model-backed agent logic discovers MCP tools, invokes GitHub operations, and presents a synthesized answer. The studio also supports human approval for sensitive actions. The graph preserves the single-agent, routed multi-agent, and Redis-backed memory modules as distinct product branches. Source excerpts show the app, agent, bridge, and server interactions; several storage alternatives are present in the tree but their callers are not established by the available evidence.

Main entry points: [`mcp_bridge.py`](https://github.com/seshadri-07/devpulse-github-intelligence/blob/main/mcp_bridge.py) (MCP Bridge), [`agent_core.py`](https://github.com/seshadri-07/devpulse-github-intelligence/blob/main/agent_core.py) (Persistent Agent), [`model_client.py`](https://github.com/seshadri-07/devpulse-github-intelligence/blob/main/model_client.py) (Model Client), [`devpulse_app.py`](https://github.com/seshadri-07/devpulse-github-intelligence/blob/main/devpulse_app.py) (Streamlit Studio)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_experience["User Experience"]
  node_studio["Streamlit Studio<br/>[devpulse_app.py]"]
end

subgraph group_agents["Agent Workflows"]
  node_single_agent["Persistent Agent<br/>[agent_core.py]"]
  node_cli_agent["CLI Agent<br/>[file.py]"]
  node_router["Intent Router<br/>[langgraph_agent.py]"]
  node_specialists["Specialist Agents<br/>[langgraph_agent.py]"]
end

subgraph group_integrations["Model and MCP"]
  node_model["Model Client<br/>[model_client.py]"]
  node_bridge["MCP Bridge<br/>[mcp_bridge.py]"]
  node_server["GitHub Tool Server<br/>[mcp_server.py]"]
end

subgraph group_memory["Repository Memory"]
  node_redis_db[("Redis Conversation Store")]
  node_repo_memory[("Redis Repository Memory<br/>[repo_memory.py]")]
  node_redis_memory[("Redis Memory Helpers<br/>[redis_memory.py]")]
  node_mongo_db[("MongoDB Store")]
  node_monet_db[("MonetDB Store")]
  node_neo4j_db[("Neo4j Graph Store<br/>[neo4j_database.py]")]
end

node_user(("User"))
node_github["GitHub API"]

node_user -->|"asks"| node_studio
node_studio -->|"requests completion"| node_model
node_studio -->|"discovers and calls tools"| node_bridge
node_user -.->|"asks"| node_single_agent
node_single_agent -->|"requests completion"| node_model
node_single_agent -->|"discovers and calls tools"| node_bridge
node_single_agent -->|"loads and saves history"| node_redis_db
node_user -->|"asks"| node_cli_agent
node_cli_agent -->|"requests completion"| node_model
node_cli_agent -->|"discovers and calls tools"| node_bridge
node_user -->|"asks"| node_router
node_router -->|"routes by intent"| node_specialists
node_specialists -->|"requests completion"| node_model
node_specialists -->|"discovers and calls tools"| node_bridge
node_bridge -->|"launches and dispatches"| node_server
node_server -->|"calls GitHub API"| node_github

click node_studio "https://github.com/seshadri-07/devpulse-github-intelligence/blob/main/devpulse_app.py"
click node_single_agent "https://github.com/seshadri-07/devpulse-github-intelligence/blob/main/agent_core.py"
click node_cli_agent "https://github.com/seshadri-07/devpulse-github-intelligence/blob/main/file.py"
click node_router "https://github.com/seshadri-07/devpulse-github-intelligence/blob/main/langgraph_agent.py"
click node_specialists "https://github.com/seshadri-07/devpulse-github-intelligence/blob/main/langgraph_agent.py"
click node_model "https://github.com/seshadri-07/devpulse-github-intelligence/blob/main/model_client.py"
click node_bridge "https://github.com/seshadri-07/devpulse-github-intelligence/blob/main/mcp_bridge.py"
click node_server "https://github.com/seshadri-07/devpulse-github-intelligence/blob/main/mcp_server.py"
click node_redis_db "https://github.com/seshadri-07/devpulse-github-intelligence/blob/main/devpulse_database.py"
click node_repo_memory "https://github.com/seshadri-07/devpulse-github-intelligence/blob/main/repo_memory.py"
click node_redis_memory "https://github.com/seshadri-07/devpulse-github-intelligence/blob/main/redis_memory.py"
click node_mongo_db "https://github.com/seshadri-07/devpulse-github-intelligence/blob/main/mongodb_database.py"
click node_monet_db "https://github.com/seshadri-07/devpulse-github-intelligence/blob/main/monetdb_database.py"
click node_neo4j_db "https://github.com/seshadri-07/devpulse-github-intelligence/blob/main/neo4j_database.py"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_studio,node_user toneBlue
class node_single_agent,node_cli_agent,node_router,node_specialists toneAmber
class node_model,node_bridge,node_server,node_github toneMint
class node_redis_db,node_repo_memory,node_redis_memory,node_mongo_db,node_monet_db,node_neo4j_db toneRose
```

## Components

### User Experience

- [Streamlit Studio](https://github.com/seshadri-07/devpulse-github-intelligence/blob/main/devpulse_app.py): `devpulse_app.py`

### Agent Workflows

- [Persistent Agent](https://github.com/seshadri-07/devpulse-github-intelligence/blob/main/agent_core.py): `agent_core.py`
- [CLI Agent](https://github.com/seshadri-07/devpulse-github-intelligence/blob/main/file.py): `file.py`
- [Intent Router](https://github.com/seshadri-07/devpulse-github-intelligence/blob/main/langgraph_agent.py): `langgraph_agent.py`
- [Specialist Agents](https://github.com/seshadri-07/devpulse-github-intelligence/blob/main/langgraph_agent.py): `langgraph_agent.py`

### Model and MCP

- [Model Client](https://github.com/seshadri-07/devpulse-github-intelligence/blob/main/model_client.py): `model_client.py`
- [MCP Bridge](https://github.com/seshadri-07/devpulse-github-intelligence/blob/main/mcp_bridge.py): `mcp_bridge.py`
- [GitHub Tool Server](https://github.com/seshadri-07/devpulse-github-intelligence/blob/main/mcp_server.py): `mcp_server.py`

### Repository Memory

- [Redis Conversation Store](https://github.com/seshadri-07/devpulse-github-intelligence/blob/main/devpulse_database.py): `devpulse_database.py`
- [Redis Repository Memory](https://github.com/seshadri-07/devpulse-github-intelligence/blob/main/repo_memory.py): `repo_memory.py`
- [Redis Memory Helpers](https://github.com/seshadri-07/devpulse-github-intelligence/blob/main/redis_memory.py): `redis_memory.py`
- [MongoDB Store](https://github.com/seshadri-07/devpulse-github-intelligence/blob/main/mongodb_database.py): `mongodb_database.py`
- [MonetDB Store](https://github.com/seshadri-07/devpulse-github-intelligence/blob/main/monetdb_database.py): `monetdb_database.py`
- [Neo4j Graph Store](https://github.com/seshadri-07/devpulse-github-intelligence/blob/main/neo4j_database.py): `neo4j_database.py`

### Other components

- **User**
- **GitHub API**

## Connections

- User → Streamlit Studio: asks (evidence: `devpulse_app.py`)
- Streamlit Studio → Model Client: requests completion (evidence: `devpulse_app.py`)
- Streamlit Studio → MCP Bridge: discovers and calls tools (evidence: `devpulse_app.py`)
- User → Persistent Agent: asks
- Persistent Agent → Model Client: requests completion (evidence: `agent_core.py`)
- Persistent Agent → MCP Bridge: discovers and calls tools (evidence: `agent_core.py`)
- Persistent Agent → Redis Conversation Store: loads and saves history (evidence: `agent_core.py`)
- User → CLI Agent: asks (evidence: `file.py`)
- CLI Agent → Model Client: requests completion (evidence: `file.py`)
- CLI Agent → MCP Bridge: discovers and calls tools (evidence: `file.py`)
- User → Intent Router: asks (evidence: `langgraph_agent.py`)
- Intent Router → Specialist Agents: routes by intent (evidence: `langgraph_agent.py`)
- Specialist Agents → Model Client: requests completion (evidence: `langgraph_agent.py`)
- Specialist Agents → MCP Bridge: discovers and calls tools (evidence: `langgraph_agent.py`)
- MCP Bridge → GitHub Tool Server: launches and dispatches (evidence: `mcp_bridge.py`)
- GitHub Tool Server → GitHub API: calls GitHub API (evidence: `mcp_server.py`)
