Skip to main content

EdgeMind

A Resource-Aware Agentic Coding Assistant for Efficient Edge AI Deployment

"Building intelligent software engineering agents that run locally on consumer hardware."

Python LangGraph Ollama SQLite Platform Status


๐Ÿ“– Overview

EdgeMind is a terminal-first autonomous software engineering assistant designed to operate entirely on local hardware.

Unlike conventional AI coding assistants that rely heavily on cloud infrastructure, EdgeMind focuses on resource-aware execution, dynamic model routing, and agentic orchestration to intelligently perform software engineering tasks on consumer-grade devices.

Rather than being "another chatbot", EdgeMind behaves like a lightweight software engineer capable of:

  • Understanding projects
  • Explaining code
  • Debugging errors
  • Generating deployment files
  • Planning execution steps
  • Remembering previous project interactions
  • Selecting the best local LLM for every task

All while running completely offline using local language models.


๐ŸŽฏ Vision

Modern AI coding assistants are powerful but expensive.

They often require:

  • Continuous internet connectivity
  • Cloud GPUs
  • API subscriptions
  • External infrastructure

EdgeMind explores a different question:

Can autonomous software engineering agents operate efficiently on local consumer hardware while intelligently adapting to limited computational resources?

The project combines:

  • Edge AI
  • Agentic AI
  • Local LLM Inference
  • Resource-Aware Computing
  • Autonomous Planning

to build an intelligent coding assistant that works entirely on edge devices.


๐Ÿง  Core Philosophy

EdgeMind follows four simple principles.

๐Ÿ–ฅ๏ธ Local First

Everything should execute locally whenever possible.

No cloud dependency.


โšก Resource Aware

The assistant continuously monitors system resources and dynamically adapts model selection based on available hardware.


๐Ÿค– Agentic Workflow

Instead of executing one command at a time, EdgeMind plans, routes, evaluates and remembers tasks.


๐Ÿงฉ Keep It Simple (KISS)

Rather than building hundreds of disconnected AI features,

EdgeMind focuses on solving one problem extremely well:

Building a lightweight autonomous software engineering assistant.


โœจ Current Features

๐Ÿค– AI Features

  • โœ… Intelligent Project Analysis
  • โœ… AI-Powered Code Explanation
  • โœ… Automated Debugging Assistant
  • โœ… Dynamic Task Planning
  • โœ… LangGraph Agent Workflow
  • โœ… Execution Evaluation
  • โœ… Local LLM Inference
  • โœ… Dynamic Model Routing

โš™๏ธ Deployment Features

  • โœ… Dockerfile Generation
  • โœ… Requirements.txt Generation
  • โœ… Docker Compose Generation

๐Ÿ’ป System Features

  • โœ… Resource Monitoring
  • โœ… CPU Monitoring
  • โœ… RAM Monitoring
  • โœ… SQLite Project Memory
  • โœ… Terminal-Based CLI

๐Ÿš€ Future Features

  • ๐Ÿ”„ Intelligent Code Editing
  • ๐Ÿง  Context-Aware Project Memory
  • ๐Ÿ’ป VS Code Extension
  • โšก Apple MLX Optimization
  • ๐Ÿ”Œ MCP (Model Context Protocol)
  • ๐Ÿ“ฆ Production Packaging

๐Ÿ—๏ธ Current System Architecture

                           User
                             โ”‚
                             โ–ผ
                     EdgeMind CLI
                             โ”‚
                             โ–ผ
                     Memory Lookup
                             โ”‚
                             โ–ผ
                          Planner
                             โ”‚
                             โ–ผ
                     Current Task
                             โ”‚
                             โ–ผ
                     Model Router
                             โ”‚
                             โ–ผ
                     Tool Executor
                             โ”‚
        โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
        โ–ผ          โ–ผ          โ–ผ          โ–ผ
  Project      Code      Debug      Deployment
 Analyzer   Explainer   Assistant    Generator
                             โ”‚
                             โ–ผ
                  Execution Evaluator
                             โ”‚
                             โ–ผ
                  SQLite Memory Update
                             โ”‚
                             โ–ผ
                        Continue?

๐Ÿงฉ Core Components

๐Ÿง  Planner

Responsible for converting a user request into an executable task plan.

Example:


Debug my project and generate Dockerfile

becomes


Analyze Project
โ†“
Debug Errors
โ†“
Generate Dockerfile


๐Ÿ—‚๏ธ Memory Layer

Uses SQLite to store previous project executions.

Instead of remembering conversations,

EdgeMind remembers:

  • Previous project analyses
  • Previous debugging sessions
  • Generated deployment files
  • Execution history
  • Task outcomes

๐Ÿ”€ Model Router

Chooses the best local model for every task.

Current routing strategy:

Task Model
Analyze Phi-3 Mini
Deployment Phi-3 Mini
Explain Qwen2.5-Coder
Debug Qwen2.5-Coder

Future versions will also consider:

  • Available RAM
  • CPU Usage
  • Battery Level
  • Thermal Constraints

before selecting models.


๐Ÿง  Execution Evaluator

Every completed task is validated before the planner proceeds.

Instead of blindly executing workflows,

EdgeMind asks:

"Was this execution successful?"

before moving to the next task.


๐Ÿ“Š Resource Monitor

Continuously monitors:

  • CPU Utilization
  • Available RAM

using psutil.

This information is later used for intelligent model selection.


๐Ÿ’พ SQLite Memory

Instead of storing chat history,

EdgeMind stores:

  • Project Path
  • Executed Task
  • Selected Model
  • Execution Result
  • Success Status
  • Timestamp

allowing future executions to become context-aware.


๐Ÿ“‚ Project Structure

EdgeMind
โ”‚
โ”œโ”€โ”€ app
โ”‚   โ”‚
โ”‚   โ”œโ”€โ”€ cli
โ”‚   โ”‚     โ””โ”€โ”€ main.py
โ”‚   โ”‚
โ”‚   โ”œโ”€โ”€ graph
โ”‚   โ”‚     โ”œโ”€โ”€ workflow.py
โ”‚   โ”‚     โ”œโ”€โ”€ planner.py
โ”‚   โ”‚     โ”œโ”€โ”€ evaluator.py
โ”‚   โ”‚     โ”œโ”€โ”€ nodes.py
โ”‚   โ”‚     โ””โ”€โ”€ state.py
โ”‚   โ”‚
โ”‚   โ”œโ”€โ”€ memory
โ”‚   โ”‚     โ”œโ”€โ”€ database.py
โ”‚   โ”‚     โ”œโ”€โ”€ schema.py
โ”‚   โ”‚     โ””โ”€โ”€ memory_manager.py
โ”‚   โ”‚
โ”‚   โ”œโ”€โ”€ models
โ”‚   โ”‚     โ”œโ”€โ”€ ollama_client.py
โ”‚   โ”‚     โ””โ”€โ”€ model_router.py
โ”‚   โ”‚
โ”‚   โ”œโ”€โ”€ resources
โ”‚   โ”‚     โ””โ”€โ”€ system_monitor.py
โ”‚   โ”‚
โ”‚   โ””โ”€โ”€ tools
โ”‚         โ”œโ”€โ”€ project_analyzer.py
โ”‚         โ”œโ”€โ”€ code_explainer.py
โ”‚         โ”œโ”€โ”€ debug_assistant.py
โ”‚         โ”œโ”€โ”€ deployment_generator.py
โ”‚         โ”œโ”€โ”€ requirements_generator.py
โ”‚         โ””โ”€โ”€ docker_compose_generator.py
โ”‚
โ”œโ”€โ”€ tests
โ”‚
โ”œโ”€โ”€ docs
โ”‚
โ”œโ”€โ”€ README.md
โ”œโ”€โ”€ requirements.txt
โ””โ”€โ”€ edgemind.db

๐Ÿ”จ Tech Stack

AI Framework

  • LangGraph

Local Inference

  • Ollama

Language Models

  • Qwen2.5-Coder 3B
  • Phi-3 Mini

Backend

  • Python
  • Typer CLI
  • SQLite

Resource Monitoring

  • psutil

Deployment

  • Docker
  • Docker Compose

Future Runtime

  • Apple MLX

Future Standard

  • MCP (Model Context Protocol)

๐ŸŽฏ Research Contribution

EdgeMind is not another chatbot.

Its contribution lies in combining:

  • Resource-Aware Computing
  • Dynamic Model Routing
  • LangGraph Agent Orchestration
  • Local LLM Inference
  • Persistent Project Memory

to build a lightweight software engineering assistant capable of operating entirely on consumer hardware.

The project investigates:

Can autonomous software engineering agents intelligently perform development workflows without relying on cloud infrastructure?


โš™๏ธ Installation & Setup

Install via PyPI

Install the official package directly into your project virtual environment:

pip install edgemind

To upgrade an existing installation to the latest version:

pip install -U edgemind

Once installed, launch the interactive CLI shell from any project directory:

edgemind

Install from Source

git clone https://github.com/Akhilesh-Venkiteswaran/EdgeMind.git
cd EdgeMind
python3 -m venv venv
source venv/bin/activate
pip install -e .

Install Ollama

Download Ollama from:

https://ollama.com

Verify installation.

ollama --version

Download Local Models

Qwen2.5 Coder

ollama pull qwen2.5-coder:3b

Phi-3 Mini

ollama pull phi3:mini

Verify the installed models.

ollama list

Expected:

qwen2.5-coder:3b

phi3:mini

Initialize SQLite Database

Run once.

from app.memory.schema import initialize_database

initialize_database()

This creates:

edgemind.db

๐Ÿš€ Usage

Analyze a Project

python -m app.cli.main analyze

Explain a Python File

python -m app.cli.main explain app/models/model_router.py

Debug an Error Log

python -m app.cli.main debug sample_error.txt

Generate Dockerfile

python -m app.cli.main generate-docker

Generate Requirements

python -m app.cli.main generate-requirements

Generate Docker Compose

python -m app.cli.main generate-compose

๐Ÿงช Running Tests

EdgeMind includes integration tests for the complete agent workflow.

Run:

python -m tests.test_agent_workflow

The integration test validates:

  • Planner
  • Model Router
  • Project Analyzer
  • Code Explainer
  • Debug Assistant
  • Deployment Tools
  • Execution Evaluator
  • SQLite Memory

๐Ÿ“Š Evaluation Metrics

EdgeMind is evaluated using the following metrics.

Metric Description
Inference Latency Time taken by local models
CPU Utilization Resource consumption
Memory Usage RAM utilization
Task Completion Successful execution percentage
Execution Quality Quality of generated outputs
Resource Efficiency Compute-aware routing performance

๐Ÿ“ˆ Development Roadmap

โœ… Phase 1 โ€” Core AI Utilities

Completed

  • Local LLM Integration
  • Ollama Runtime
  • Resource Monitoring
  • Project Analysis
  • Code Explanation
  • Debug Assistant
  • Dockerfile Generation
  • Requirements Generation
  • Docker Compose Generation

โœ… Phase 2 โ€” Agentic Orchestration

Completed

  • LangGraph Workflow
  • Planner Node
  • Dynamic Task Planning
  • Model Router
  • Execution Evaluator
  • Multi-Step Agent Execution

โœ… Phase 3 โ€” Persistent Project Memory

Completed

  • SQLite Database
  • Memory Lookup
  • Memory Update
  • Project-Based Execution History
  • Context-Aware Planning Foundation

๐Ÿšง Phase 4 โ€” Intelligent Code Editing

In Progress

Planned Features

  • Generate Code Fixes
  • Preview Code Changes
  • Apply Approved Changes
  • File Safety Validation
  • Automatic Backup Before Editing

๐Ÿ“… Phase 5 โ€” VS Code Extension

Planned

  • Native VS Code Extension
  • Inline AI Suggestions
  • Code Actions
  • Project Sidebar
  • Integrated Terminal Commands

๐Ÿ“… Phase 6 โ€” Apple MLX Optimization

Planned

Current Runtime

Ollama

Future Runtime

MLX

Goals

  • Faster Inference
  • Better Apple Silicon Performance
  • Reduced Memory Usage
  • Efficient Local Execution

๐Ÿ“… Phase 7 โ€” MCP Integration

Planned

EdgeMind tools will be exposed through the Model Context Protocol (MCP).

This allows EdgeMind to become compatible with modern AI agents and IDEs while maintaining the same backend architecture.

Planned MCP Tools

  • Project Analyzer
  • Code Explainer
  • Debug Assistant
  • Deployment Generator
  • Code Editor
  • Project Memory

๐Ÿ”ฌ Research Focus

This project investigates:

  • Resource-Aware Computing
  • Dynamic Model Routing
  • Edge AI
  • Agentic AI
  • Local LLM Inference
  • Autonomous Software Engineering
  • Efficient AI Systems
  • Intelligent Planning
  • Persistent Project Memory

๐ŸŽ“ Academic Information

Project Title

EdgeMind: A Resource-Aware Agentic Coding Assistant for Efficient Edge AI Deployment


Project Type

Research


Domain

Artificial Intelligence

Edge AI

Agentic AI

Software Engineering


Relevant SDG

SDG 9

Industry, Innovation and Infrastructure


๐ŸŒŸ Why EdgeMind?

Unlike many student projects that simply wrap cloud APIs into chatbots,

EdgeMind focuses on solving a real systems engineering problem.

It investigates how autonomous software engineering agents can:

  • Operate fully offline
  • Adapt to hardware limitations
  • Route tasks intelligently
  • Persist project knowledge
  • Execute software engineering workflows
  • Scale from lightweight laptops to production-ready environments

The project emphasizes AI Systems Engineering, combining planning, orchestration, resource awareness, memory, and local inference into one unified architecture.


๐Ÿค Contributing

Contributions are always welcome.

If you would like to improve EdgeMind,

feel free to:

  • Open an Issue
  • Submit a Pull Request
  • Suggest New Features
  • Improve Documentation
  • Share Research Ideas

๐Ÿ“œ License

This project is released under the MIT License.

Feel free to use, modify, and build upon this work.


๐Ÿ‘จโ€๐Ÿ’ป Author

Akhilesh Venkiteswaran

B.Tech Artificial Intelligence & Data Science

Chennai Institute of Technology


โญ Future Vision

EdgeMind is being developed as a lightweight software engineering agent capable of running entirely on consumer hardware.

Rather than competing with large cloud-based coding assistants,

its goal is to demonstrate that efficient, resource-aware autonomous agents can perform meaningful software engineering tasks locally while remaining modular, explainable, and extensible.

The long-term vision is to evolve EdgeMind into a production-ready AI engineering assistant that seamlessly integrates with developer workflows through VS Code, MLX acceleration, and the Model Context Protocol.


โญ If you found this project interesting, consider giving it a star!

Building the future of Edge AI, one agent at a time.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

edgemind-1.0.1.tar.gz (49.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

edgemind-1.0.1-py3-none-any.whl (47.5 kB view details)

Uploaded Python 3

File details

Details for the file edgemind-1.0.1.tar.gz.

File metadata

  • Download URL: edgemind-1.0.1.tar.gz
  • Upload date:
  • Size: 49.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for edgemind-1.0.1.tar.gz
Algorithm Hash digest
SHA256 03263862f3823d282ed46f6eae0e680f83207f49a7244b6b7d816bfbbfb464aa
MD5 13dc601e63fee840a645a231786b2262
BLAKE2b-256 5356634ba19473fa1b4d4cf295f5338a9025586ac9196358c4c826e12c9fa028

See more details on using hashes here.

Provenance

The following attestation bundles were made for edgemind-1.0.1.tar.gz:

Publisher: release.yml on DarkFoot101/EdgeMind

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file edgemind-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: edgemind-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 47.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for edgemind-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 def8f771df97c2c7ea69546667ce8288d91ff59e78f0a6c005475a30a49fec80
MD5 346adc15a3cdccc566ec9539c7f11ceb
BLAKE2b-256 608575ac53dc959ecd6db7e427c37031e0cba32b61dc5f59a4570e8bae33942d

See more details on using hashes here.

Provenance

The following attestation bundles were made for edgemind-1.0.1-py3-none-any.whl:

Publisher: release.yml on DarkFoot101/EdgeMind

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page