8000 GitHub - mshogin/aiagent
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

mshogin/aiagent

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AI Agent CLI Tool

A command-line interface tool that uses AI to assist with various tasks including code analysis, command generation, and more.

Disclaimer

This codebase was completely developed by Claude Code (Anthropic's Claude AI assistant). The author is not responsible for any issues that may arise from its use.

We are planning to continue developing this codebase using an agent-only approach, with minimal human intervention.

Features

  • Command generation and execution with safety validation
  • Code analysis and insights
  • Content collection and summarization
  • Directory structure analysis
  • Rich terminal output formatting

Installation

# Clone the repository
git clone https://github.com/your-username/aiagent.git
cd aiagent

# Build the application
go build -o aiagent cmd/aiagent/main.go

Usage

# Basic usage
./aiagent "your request here"

# Use mock LLM (no API key needed)
./aiagent --mock "your request here"

# Enable verbose mode
./aiagent -v "your request here"

# Force approve commands (use with caution)
./aiagent -y "your request here"

Examples

# Generate and execute a command
./aiagent "show me the disk usage in a readable format"

# Analyze code
./aiagent "collect all information about the formatter component"

# Get a direct answer
./aiagent "explain what chmod does"

Configuration

By default, the application uses the OpenAI API. You need to set the OPENAI_API_KEY environment variable:

export OPENAI_API_KEY="your-api-key"

License

This project is open source and available under the MIT License.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

0