A Resource-Aware Agentic Coding Assistant for Efficient Edge AI Deployment
"Building intelligent software engineering agents that run locally on consumer hardware."
๐ 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:
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.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
03263862f3823d282ed46f6eae0e680f83207f49a7244b6b7d816bfbbfb464aa
|
|
| MD5 |
13dc601e63fee840a645a231786b2262
|
|
| BLAKE2b-256 |
5356634ba19473fa1b4d4cf295f5338a9025586ac9196358c4c826e12c9fa028
|
Provenance
The following attestation bundles were made for edgemind-1.0.1.tar.gz:
Publisher:
release.yml on DarkFoot101/EdgeMind
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
edgemind-1.0.1.tar.gz -
Subject digest:
03263862f3823d282ed46f6eae0e680f83207f49a7244b6b7d816bfbbfb464aa - Sigstore transparency entry: 2477434153
- Sigstore integration time:
-
Permalink:
DarkFoot101/EdgeMind@31d9da62f46452928df27f444e76838396a629eb -
Branch / Tag:
refs/tags/v1.0.1 - Owner: https://github.com/DarkFoot101
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@31d9da62f46452928df27f444e76838396a629eb -
Trigger Event:
push
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
def8f771df97c2c7ea69546667ce8288d91ff59e78f0a6c005475a30a49fec80
|
|
| MD5 |
346adc15a3cdccc566ec9539c7f11ceb
|
|
| BLAKE2b-256 |
608575ac53dc959ecd6db7e427c37031e0cba32b61dc5f59a4570e8bae33942d
|
Provenance
The following attestation bundles were made for edgemind-1.0.1-py3-none-any.whl:
Publisher:
release.yml on DarkFoot101/EdgeMind
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
edgemind-1.0.1-py3-none-any.whl -
Subject digest:
def8f771df97c2c7ea69546667ce8288d91ff59e78f0a6c005475a30a49fec80 - Sigstore transparency entry: 2477434168
- Sigstore integration time:
-
Permalink:
DarkFoot101/EdgeMind@31d9da62f46452928df27f444e76838396a629eb -
Branch / Tag:
refs/tags/v1.0.1 - Owner: https://github.com/DarkFoot101
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@31d9da62f46452928df27f444e76838396a629eb -
Trigger Event:
push
-
Statement type: