codebolt-code
v1.0.6
Published
Codebolt CLI and Server
Readme
Codebolt Code
Codebolt CLI and Server - A powerful development tool for interacting with AI agents and managing code projects.
Overview
Codebolt Code is a command-line interface and server application that provides developers with tools to:
- Interact with AI agents for code generation and assistance
- Manage code projects through a terminal-based user interface
- Communicate with remote agent servers
- Perform file operations and version control
Features
- Terminal User Interface (TUI): Interactive terminal interface built with React and Ink
- Server Mode: WebSocket server for agent communication
- Agent Integration: Connect and communicate with AI agents
- File Operations: Read, write, and manage files directly from the CLI
- Git Integration: Version control operations through simple commands
- Project Management: Organize and manage code projects
Installation
npm install -g codebolt-codeUsage
Terminal User Interface
Launch the interactive TUI:
codebolt-codeServer Mode
Start the Codebolt server:
codebolt-serverBy default, the server runs on port 3001.
Commands
TUI Commands
Once in the TUI, you can use the following key bindings:
- Arrow keys: Navigate menus and options
- Enter: Select options
- Ctrl+C: Exit the application
Server Commands
# Start the server with default settings
codebolt-server
# Start the server on a specific port
PORT=3002 codebolt-serverProject Structure
codebolt-code/
├── bin/ # CLI executable scripts
├── server/ # Server implementation
├── tui/ # Terminal User Interface components
└── package.json # Project configurationDependencies
Key dependencies include:
- Ink - React for interactive command-line apps
- React - UI library
- Express - Web framework for the server
- ws - WebSocket library
- simple-git - Git operations
Development
To run the project locally:
- Clone the repository
- Install dependencies:
npm install - Run the TUI:
npm run tui - Run the server:
npm run server
Configuration
The application can be configured through environment variables:
PORT: Server port (default: 3001)HOST: Server host (default: localhost)
License
ISC
