@lucidityai/lucidity-ai-agent
v1.0.3
Published
A coding agent intended for LucidityAI models.
Readme
LucidityAI Agent
A coding agent intended for LucidityAI models, providing a terminal-based interface for AI-assisted coding tasks.
Description
This project is a CLI tool that leverages LucidityAI models to assist with coding tasks. It can execute commands, edit files, read code, and interact with users through a terminal interface. The agent uses a modular architecture with tools for file operations, bash execution, and user interaction.
Configuration
On first run, a configuration file .lc_config/config.json will be created in the project root with default settings:
{
"api_key": "YOUR_API_KEY",
"model": "MODEL_NAME",
"api_base": "YOUR_API_BASE_URL",
"actions": "auto-accept",
"checkpoints": ".lc_checkpoints"
}api_key: Your API keymodel: The AI model to useapi_base: Base URL for the APIactions: Set to "auto-accept" for automatic tool execution or "ask" to ask the user before executing toolscheckpoints: Directory for storing checkpoints
Features
- Terminal-based Interface: Interactive CLI with colored output and progress indicators
- Tool Execution: Supports various tools including:
- File operations (create, edit, delete, read)
- Directory listing and creation
- Bash command execution
- Diff/patch application
- User questioning for clarification
- Context Management: Automatic compression of long conversations to stay within context limits
- Configurable Settings: Customize API endpoints, models, and execution behavior
- Streaming Responses: Real-time streaming of AI responses for better user experience
- Error Handling: Robust error handling with retry mechanisms
- Checkpoints: Rollback support for codebases
Bulit with ❤️ by LucidityAI
