Skip to content

mirageN1349/guidedao-code

Repository files navigation

GuideDAO Code

GuideDAO Code Architecture

Intelligent Code Assistant for Your Codebase

InstallationUsageCommandsArchitectureDevelopment

📋 Overview

GuideDAO Code is an intelligent CLI assistant for working with your codebase, designed to simplify development and maintenance processes. Using powerful LLM models, GuideDAO Code helps you analyze, modify, and understand code by responding to your natural language requests.

✨ Features

  • 🔍 Code Analysis - explanation of complex parts of your codebase
  • ✏️ File Modification - editing, creating, and deleting files based on requests
  • 🔄 File Management - moving and renaming files
  • 🐛 Error Fixing - analyzing and fixing browser errors
  • 📚 Documentation - generating explanations and documentation

🚀 Installation

Global Installation

npm install -g guidedao-code

Local Installation

npm install guidedao-code

🖥️ Usage

Running via CLI

guidedao-code

This will launch an interactive CLI interface in your current project directory.

Example Requests

After launching the CLI, you can enter natural language requests:

guidedao-code> Explain the project structure
guidedao-code> Create a new utils/helpers.ts file with date utility functions
guidedao-code> Fix browser errors

🛠️ Commands

GuideDAO Code supports the following commands:

Command Description Example Usage
READ_FILE Read file content Show me the content of src/index.ts
EDIT_FILE Edit a file Add logging to the login function in auth.js
CREATE_FILE Create a new file Create a Button component in src/components/Button.tsx
DELETE_FILE Delete a file Delete the unused old-utils.js file
MOVE_FILE Move/rename a file Move auth.js to the services folder
EXPLAIN_FILE Explain a file Explain what webpack.config.js does
FIX_BROWSER_ERRORS Fix browser errors Fix errors in the browser console

🏗️ Architecture

GuideDAO Code uses the following architecture:

System Architecture

Key Components:

  • CLI Interface - user interaction
  • LLM Model - natural language processing and code generation
  • Codebase Manager - scanning and managing project files
  • Action Handlers - performing operations on files

🧩 Integrations

GuideDAO Code integrates with:

  • 🌐 MCP Browser Client - for analyzing browser errors
  • 🤖 Anthropic Claude - for natural language processing
  • 🗄️ SQLite - for local data storage

💻 Development

Requirements

  • Node.js 20+
  • pnpm 9+

System Requirements

This package uses native modules (better-sqlite3) that require compilation during installation:

  • macOS: Make sure you have Xcode or Command Line Tools installed
    xcode-select --install
  • Linux: Ensure you have build tools and SQLite development libraries
    # Ubuntu/Debian
    sudo apt-get install build-essential python3 libsqlite3-dev
    # RHEL/Fedora
    sudo dnf install gcc-c++ make python3 sqlite-devel
  • Windows: Install Visual Studio Build Tools and Python
    npm install --global --production windows-build-tools

Installing Dependencies

pnpm install

Building the Project

pnpm run build

Running in Development Mode

pnpm run dev

🔑 Configuration

To work with different LLM models, create a .env file in the project root:

ANTHROPIC_API_KEY=your-api-key

🤝 Contributing

Contributions are welcome! To contribute:

  1. Fork the repository
  2. Create a branch for your changes
  3. Make changes and create a PR

📄 License

ISC

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •