Skip to content

RenzMc/Acode-Plugin-AI-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Acode AI CLI Assistant Plugin

License Platform AI Support

An advanced AI-powered coding assistant plugin for Acode (Android Code Editor) that brings intelligent code assistance, and comprehensive project management directly to your mobile development workflow.

Acode AI CLI Preview

Installation

Method 1: From Acode Plugin Store

  1. Open Acode app on your Android device
  2. Go to Settings Plugins
  3. Search for "Renz Ai"
  4. Tap Install and Enable

Method 2: Manual Installation

  1. Download the latest acode-ai-cli.zip from Releases
  2. Open Acode Settings Plugins
  3. Tap Install from ZIP/Local
  4. Select the downloaded file
  5. Enable the plugin
  6. Restart Acode app

Method 3: Development Build

git clone https://github.com/RenzMc/Acode-Plugin-AI-cli.git
cd Acode-Plugin-AI-cli
npm install
npm run build

Setup & Configuration

1. Initial Setup

  1. Open Acode and enable the AI CLI Assistant plugin
  2. The AI assistant will appear in your sidebar
  3. Configure your preferred AI provider

2. API Keys Configuration

Configure your AI provider credentials:

OpenAI

API Key: your-openai-api-key
Model: gpt-4, gpt-3.5-turbo, etc.

OpenRouter

API Key: your-openrouter-api-key
Model: available all open router models

Google Gemini

API Key: your-gemini-api-key
Model: gemini-pro, gemini-1.5-pro, etc.

Anthropic Claude

API Key: your-anthropic-api-key
Model: claude-3-opus, claude-3-sonnet, etc.

Groq

API Key: your-groq-api-key
Model: llama3-70b-8192, mixtral-8x7b-32768, etc.

Qwen

API Key: your-qwen-api-key
Model: qwen-turbo, qwen-plus, qwen-max, etc.

Ollama (Local)

Endpoint: http://localhost:11434
Model: llama2, codellama, mistral, etc.

3. Theme Integration

The plugin automatically adapts to your Acode theme:

  • Dark Mode: Full galaxy theme with cosmic effects
  • Light Mode: Softened galaxy theme with light colors
  • Auto Mode: Follows system preference

Usage Guide

Basic Chat

  1. Open the Renz Ai using Ctrl/Cmd + Shift + P
  2. Type your coding question or request
  3. Get instant AI-powered responses
  4. Copy code snippets with one tap

Real-Time Analysis

  • Auto-enabled when editing files
  • Get suggestions as you type
  • Instant error detection
  • Performance optimization tips

Bulk Operations

  1. Tap the bulk operations icon
  2. Choose your operation:
    • Rename Files: Use patterns like component_{index}.js
    • Move Files: Organize into proper folders
    • Add Headers: Consistent file headers
    • Format Conversion: Convert between file types
  3. Select files and follow prompts

Project Organization

  1. Tap Organize Project in the menu
  2. AI analyzes your project structure
  3. Get recommendations for:
    • Better folder organization
    • File categorization
    • Architecture improvements
    • Cleanup suggestions

Advanced Features

Custom Prompts

Create reusable prompts for common tasks:

// Add to your prompt library
"Optimize this React component for performance"
"Add TypeScript types to this function"
"Create unit tests for this module"

Context Menu Integration

  • Right-click any code selection
  • Choose "" for instant analysis
  • Get context-aware suggestions

Performance Settings

Adjust real-time analysis sensitivity:

  • High: Instant feedback (more API calls)
  • Medium: 5-second debounce (balanced)
  • Low: 10-second debounce (fewer API calls)

Responsive Design

Perfect experience across all devices:

  • ** Mobile Portrait**: Optimized for phones
  • ** Mobile Landscape**: Adapted for landscape typing
  • ** Tablet Portrait**: Enhanced for larger screens
  • ** Tablet Landscape**: Full desktop-like experience

Security & Privacy

Data Protection

  • Local Encryption: API keys encrypted with AES-GCM
  • No Tracking: Zero telemetry or analytics
  • Private Conversations: Chat history stays local
  • Secure APIs: HTTPS-only communication

API Key Security

  • Keys are encrypted before storage
  • Uses PBKDF2 with 100,000 iterations
  • Random initialization vectors
  • Automatic key rotation support

Troubleshooting

Common Issues

Plugin Not Loading

# Check Acode version compatibility
Minimum Acode version: 1.8.0

API Connection Failed

  1. Verify API key is correct
  2. Check internet connection
  3. Ensure endpoint URL is valid
  4. Try switching AI providers

Real-Time Analysis Not Working

  1. Enable the feature in settings
  2. Check file type support
  3. Verify API quota limits
  4. Restart the plugin

UI Not Responsive

  1. Clear plugin cache
  2. Restart Acode app
  3. Check device memory
  4. Disable hardware acceleration

Performance Optimization

  • Cache Management: Automatic 5-minute cache expiry
  • Token Optimization: Smart content filtering
  • Memory Usage: Efficient cleanup and debouncing
  • Battery Saving: Reduced animations on low battery

Contributing

We welcome contributions! Here's how to get started:

Development Setup

git clone https://github.com/RenzMc/Acode-Plugin-AI-cli.git
cd Acode-Plugin-AI-cli
npm install
npm run dev

Build Process

npm run build        # Production build
npm run dev          # Development build
npm run watch        # Watch mode
npm run test         # Run tests

Code Style

  • Follow ESLint configuration
  • Use Prettier for formatting
  • Write JSDoc comments
  • Add unit tests for new features

Submitting Changes

  1. Fork the repository
  2. Create a feature branch
  3. Make your changes
  4. Add tests if applicable
  5. Submit a pull request

Acknowledgments

  • Acode Team for the amazing mobile editor
  • LangChain for AI abstractions
  • OpenAI, Google, Anthropic for AI services
  • Contributors who make this project better
  • Community for feedback and suggestions

Support

Get Help


Made with by RenzMc

Transforming mobile development, one line of code at a time

Back to Top