Skip to content

hassaanmaqsood/mehro-agent

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mehro Agent Local

Mehro Agent Local is a tool for executing tasks locally using Ollama. It uses Directed Acyclic Graphs (DAGs) to process multi-step requests.

Features

  • TUI: Terminal interface for monitoring and triggering tasks manually.
  • Local Execution: Uses Ollama for processing.
  • DAG Engine: Breaks requests into sequential or parallel steps (visible as text).
  • Toolbox: Includes math, file I/O, and HTTP capabilities.
  • History: Automatically saves tasks to history.json.

Getting Started

  1. Install Dependencies:

    npm install
  2. Setup Environment:

    cp .env.example .env
  3. Run:

    npm start

Usage

  • Add Task (T): Enter a natural language request.
  • Run Task (Enter): Manually start a pending task.
  • Delete (D): Remove a task from history.
  • Quit (Q): Exit the agent.

Project Structure

  • src/index.js: Main agent loop.
  • src/tui.js: Interface logic.
  • src/tools/: Tool definitions.
  • src/core/: Validation logic.

Future Plans

  • Add more tools like web search, pdf reader, etc.
  • Use Nodaic for graph computation
  • Adding api for remote access
  • Generally just making it more autonmous

About

An AI agent that generates and executes Directed Acyclic Graphs (DAGs) for deterministic, multi-step task execution with strict schema validation and rate limiting.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors