# manikanta7cheruku/neural-shell architecture

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

- Interactive diagram: https://gitdiagram.com/manikanta7cheruku/neural-shell
- Repository: https://github.com/manikanta7cheruku/neural-shell

## Overview

Seven is a local Windows voice assistant: speech or typed input is processed, routed through direct-action layers or a local Ollama model, then answered aloud and/or acted upon. Its product also includes a desktop dashboard, task and schedule panels, persistent memory and document knowledge, triggers/workspaces, and voice controls. The README documents the main workflow and capabilities; sampled source confirms selected pipeline, API, task-store, and trigger-handler relationships. Unsampled subsystem links are omitted where their callers are not evidenced.

Main entry points: [`brain_modules/pipeline.py`](https://github.com/manikanta7cheruku/neural-shell/blob/main/brain_modules/pipeline.py) (Intent pipeline), [`brain.py`](https://github.com/manikanta7cheruku/neural-shell/blob/main/brain.py) (Conversation brain), [`main_modules/handlers/base.py`](https://github.com/manikanta7cheruku/neural-shell/blob/main/main_modules/handlers/base.py) (Action handlers), [`frontend/src/App.jsx`](https://github.com/manikanta7cheruku/neural-shell/blob/main/frontend/src/App.jsx) (Dashboard)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_desktop["Desktop experience"]
  node_electron["Desktop shell<br/>[main.js]"]
  node_dashboard["Dashboard<br/>[App.jsx]"]
  node_client["API client<br/>[api.js]"]
  node_taskui["Task panel UI<br/>[Tasks.jsx]"]
  node_taskstore["Task state<br/>[useTasks.js]"]
end

subgraph group_conversation["Voice and reasoning"]
  node_speech["Audio processing<br/>[core.py]"]
  node_voice_loop["Voice loop<br/>[voice_loop.py]"]
  node_brain["Conversation brain<br/>[brain.py]"]
  node_pipeline["Intent pipeline<br/>[pipeline.py]"]
  node_llm["Local model<br/>[layer_08_llm.py]"]
  node_speech_out["Voice response<br/>[core.py]"]
end

subgraph group_actions["Computer actions"]
  node_handlers["Action handlers<br/>[base.py]"]
  node_system["System control<br/>[system.py]"]
  node_scheduler["Schedules and reminders<br/>[scheduler.py]"]
  node_trigger_handler["Trigger and workspace handler<br/>[trigger_handler.py]"]
  node_workspace["Workspace restore<br/>[workspace.py]"]
end

subgraph group_knowledge["Memory and knowledge"]
  node_memory[("Persistent memory<br/>[core.py]")]
  node_knowledge[("Document knowledge<br/>[indexer.py]")]
  node_web["Web search<br/>[core.py]"]
end

subgraph group_services["Local services"]
  node_api["FastAPI service<br/>[api_server.py]"]
  node_tasks[("Task service<br/>[tasks.py]")]
end

node_person(("User"))
node_microphone(("Microphone"))
node_ollama["Ollama runtime"]

node_person -->|"speaks"| node_microphone
node_person -->|"types request"| node_dashboard
node_microphone -->|"captures audio"| node_speech
node_speech -->|"transcribes"| node_voice_loop
node_voice_loop -->|"submits request"| node_brain
node_brain -->|"runs layers"| node_pipeline
node_pipeline -->|"falls through"| node_llm
node_llm -->|"generates locally"| node_ollama
node_brain -->|"dispatches action"| node_handlers
node_handlers -->|"controls system"| node_system
node_handlers -->|"sets reminders"| node_scheduler
node_handlers -->|"handles trigger tags"| node_trigger_handler
node_trigger_handler -->|"restores workspace"| node_workspace
node_brain -->|"speaks response"| node_speech_out
node_person -->|"opens desktop app"| node_electron
node_electron -.->|"hosts interface"| node_dashboard
node_dashboard -.->|"requests data"| node_client
node_taskui -->|"reads task state"| node_taskstore
node_taskstore -->|"calls API"| node_client
node_client -.->|"sends requests"| node_api
node_api -->|"registers routes"| node_tasks
node_pipeline -.->|"uses persistent memory"| node_memory
node_pipeline -->|"answers from documents"| node_knowledge
node_pipeline -->|"searches on request"| node_web

click node_electron "https://github.com/manikanta7cheruku/neural-shell/blob/main/electron/main.js"
click node_dashboard "https://github.com/manikanta7cheruku/neural-shell/blob/main/frontend/src/App.jsx"
click node_client "https://github.com/manikanta7cheruku/neural-shell/blob/main/frontend/src/api.js"
click node_taskui "https://github.com/manikanta7cheruku/neural-shell/blob/main/frontend/src/pages/Tasks.jsx"
click node_taskstore "https://github.com/manikanta7cheruku/neural-shell/blob/main/frontend/src/stores/useTasks.js"
click node_speech "https://github.com/manikanta7cheruku/neural-shell/blob/main/ears/core.py"
click node_voice_loop "https://github.com/manikanta7cheruku/neural-shell/blob/main/main_modules/startup/voice_loop.py"
click node_brain "https://github.com/manikanta7cheruku/neural-shell/blob/main/brain.py"
click node_pipeline "https://github.com/manikanta7cheruku/neural-shell/blob/main/brain_modules/pipeline.py"
click node_llm "https://github.com/manikanta7cheruku/neural-shell/blob/main/brain_modules/layers/layer_08_llm.py"
click node_speech_out "https://github.com/manikanta7cheruku/neural-shell/blob/main/mouth/core.py"
click node_handlers "https://github.com/manikanta7cheruku/neural-shell/blob/main/main_modules/handlers/base.py"
click node_system "https://github.com/manikanta7cheruku/neural-shell/blob/main/hands/system.py"
click node_scheduler "https://github.com/manikanta7cheruku/neural-shell/blob/main/hands/scheduler.py"
click node_trigger_handler "https://github.com/manikanta7cheruku/neural-shell/blob/main/main_modules/handlers/trigger_handler.py"
click node_workspace "https://github.com/manikanta7cheruku/neural-shell/blob/main/hands/workspace.py"
click node_api "https://github.com/manikanta7cheruku/neural-shell/blob/main/backend/api_server.py"
click node_tasks "https://github.com/manikanta7cheruku/neural-shell/blob/main/backend/routes/tasks.py"
click node_memory "https://github.com/manikanta7cheruku/neural-shell/blob/main/memory/core.py"
click node_knowledge "https://github.com/manikanta7cheruku/neural-shell/blob/main/knowledge/indexer.py"
click node_web "https://github.com/manikanta7cheruku/neural-shell/blob/main/web/core.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_electron,node_dashboard,node_client,node_taskui,node_taskstore,node_person toneBlue
class node_speech,node_voice_loop,node_brain,node_pipeline,node_llm,node_speech_out toneAmber
class node_handlers,node_system,node_scheduler,node_trigger_handler,node_workspace toneMint
class node_memory,node_knowledge,node_web toneRose
class node_api,node_tasks,node_microphone,node_ollama toneIndigo
```

## Components

### Desktop experience

- [Desktop shell](https://github.com/manikanta7cheruku/neural-shell/blob/main/electron/main.js): `electron/main.js`
- [Dashboard](https://github.com/manikanta7cheruku/neural-shell/blob/main/frontend/src/App.jsx): `frontend/src/App.jsx`
- [API client](https://github.com/manikanta7cheruku/neural-shell/blob/main/frontend/src/api.js): `frontend/src/api.js`
- [Task panel UI](https://github.com/manikanta7cheruku/neural-shell/blob/main/frontend/src/pages/Tasks.jsx): `frontend/src/pages/Tasks.jsx`
- [Task state](https://github.com/manikanta7cheruku/neural-shell/blob/main/frontend/src/stores/useTasks.js): `frontend/src/stores/useTasks.js`

### Voice and reasoning

- [Audio processing](https://github.com/manikanta7cheruku/neural-shell/blob/main/ears/core.py): `ears/core.py`
- [Voice loop](https://github.com/manikanta7cheruku/neural-shell/blob/main/main_modules/startup/voice_loop.py): `main_modules/startup/voice_loop.py`
- [Conversation brain](https://github.com/manikanta7cheruku/neural-shell/blob/main/brain.py): `brain.py`
- [Intent pipeline](https://github.com/manikanta7cheruku/neural-shell/blob/main/brain_modules/pipeline.py): `brain_modules/pipeline.py`
- [Local model](https://github.com/manikanta7cheruku/neural-shell/blob/main/brain_modules/layers/layer_08_llm.py): `brain_modules/layers/layer_08_llm.py`
- [Voice response](https://github.com/manikanta7cheruku/neural-shell/blob/main/mouth/core.py): `mouth/core.py`

### Computer actions

- [Action handlers](https://github.com/manikanta7cheruku/neural-shell/blob/main/main_modules/handlers/base.py): `main_modules/handlers/base.py`
- [System control](https://github.com/manikanta7cheruku/neural-shell/blob/main/hands/system.py): `hands/system.py`
- [Schedules and reminders](https://github.com/manikanta7cheruku/neural-shell/blob/main/hands/scheduler.py): `hands/scheduler.py`
- [Trigger and workspace handler](https://github.com/manikanta7cheruku/neural-shell/blob/main/main_modules/handlers/trigger_handler.py): `main_modules/handlers/trigger_handler.py`
- [Workspace restore](https://github.com/manikanta7cheruku/neural-shell/blob/main/hands/workspace.py): `hands/workspace.py`

### Memory and knowledge

- [Persistent memory](https://github.com/manikanta7cheruku/neural-shell/blob/main/memory/core.py): `memory/core.py`
- [Document knowledge](https://github.com/manikanta7cheruku/neural-shell/blob/main/knowledge/indexer.py): `knowledge/indexer.py`
- [Web search](https://github.com/manikanta7cheruku/neural-shell/blob/main/web/core.py): `web/core.py`

### Local services

- [FastAPI service](https://github.com/manikanta7cheruku/neural-shell/blob/main/backend/api_server.py): `backend/api_server.py`
- [Task service](https://github.com/manikanta7cheruku/neural-shell/blob/main/backend/routes/tasks.py): `backend/routes/tasks.py`

### Other components

- **User**
- **Microphone**
- **Ollama runtime**

## Connections

- User → Microphone: speaks
- User → Dashboard: types request
- Microphone → Audio processing: captures audio
- Audio processing → Voice loop: transcribes
- Voice loop → Conversation brain: submits request
- Conversation brain → Intent pipeline: runs layers (evidence: `brain.py`)
- Intent pipeline → Local model: falls through (evidence: `brain_modules/pipeline.py`)
- Local model → Ollama runtime: generates locally
- Conversation brain → Action handlers: dispatches action
- Action handlers → System control: controls system
- Action handlers → Schedules and reminders: sets reminders
- Action handlers → Trigger and workspace handler: handles trigger tags (evidence: `main_modules/handlers/trigger_handler.py`)
- Trigger and workspace handler → Workspace restore: restores workspace (evidence: `main_modules/handlers/trigger_handler.py`)
- Conversation brain → Voice response: speaks response
- User → Desktop shell: opens desktop app
- Desktop shell → Dashboard: hosts interface
- Dashboard → API client: requests data
- Task panel UI → Task state: reads task state (evidence: `frontend/src/pages/Tasks.jsx`)
- Task state → API client: calls API (evidence: `frontend/src/stores/useTasks.js`)
- API client → FastAPI service: sends requests
- FastAPI service → Task service: registers routes (evidence: `backend/api_server.py`)
- Intent pipeline → Persistent memory: uses persistent memory
- Intent pipeline → Document knowledge: answers from documents
- Intent pipeline → Web search: searches on request
