A Go-based CLI agent that connects AI assistants (Claude Code, Cursor) to team collaboration platforms like Slack and Discord through the Claude Control platform.
- Claude Code: Anthropic's official CLI tool for software engineering (default)
- Cursor: Popular AI-powered code editor integration
ccagent runs on macOS, Linux, and Windows with native binaries for both Intel and ARM architectures.
brew install presmihaylov/taps/ccagent
To upgrade to the latest version:
brew upgrade presmihaylov/taps/ccagent
You will need to have Go 1.24 installed:
git clone https://github.com/presmihaylov/ccagent.git
cd ccagent
make build
The compiled binary will be available at bin/ccagent
.
- Git
- GitHub CLI (
gh
) - Install here - Claude Control account (sign up here)
Important: ccagent will autonomously create branches, make changes, and create pull requests. To avoid conflicts with your main development workflow, it's strongly recommended to clone your repository separately for ccagent use.
Before running ccagent, ensure you have:
-
GitHub CLI Authentication: ccagent uses the GitHub CLI to create pull requests
# Login to GitHub gh auth login # Verify authentication gh auth status
-
Repository Access: If using SSH, ensure your key is loaded
ssh-add ~/.ssh/id_rsa
You can use ccagent with:
- Your personal GitHub account: ccagent will create PRs on your behalf
- Dedicated bot account: Create a separate GitHub account for ccagent to use (recommended for teams)
ccagent requires the following environment variables:
# Required: API key from your Claude Control organization
export CCAGENT_API_KEY=your_api_key_here
You can generate an API key from the Claude Control dashboard.
Once setup is complete, run ccagent in your repository directory.
By default, ccagent uses Claude Code as the AI assistant with acceptEdits
permission mode.
ccagent [OPTIONS]
Options:
--agent=[claude|cursor] AI assistant to use (default: claude)
--claude-bypass-permissions Use bypassPermissions for Claude (sandbox only)
--cursor-model=[gpt-5|sonnet-4|sonnet-4-thinking] Model for Cursor agent
-v, --version Show version information
-h, --help Show help message
# Standard mode - requires approval for file edits
ccagent --agent claude
# Bypass permissions (Recommended in a secure sandbox environment only)
ccagent --agent claude --claude-bypass-permissions
# Use Cursor with specific model
ccagent --agent cursor --cursor-model sonnet-4
ccagent automatically creates log files in ~/.config/ccagent/logs/
with timestamp-based naming. Logs are written to both stdout and files for debugging.
# Build for current platform
make build
# Clean build artifacts
make clean
# Run all tests
make test
# Run tests with verbose output
make test-verbose
# Run linter
make lint
# Auto-fix linting issues
make lint-fix
ccagent operates in different permission modes depending on the AI assistant and configuration:
- Claude Code (default): Runs in
acceptEdits
mode, requiring explicit approval for all file modifications - Best Practice: Use this mode when running ccagent on your local development machine
- Claude Code with
--claude-bypass-permissions
: Allows unrestricted system access - Cursor Agent: Always runs in bypass mode by default
When running in bypass permissions mode, anyone with access to your Slack workspace or Discord server can execute arbitrary commands on your system with your user privileges. It's recommended that you use this mode only if you're running the agent in a secure environment like a docker container or a remote, isolated server.
Fork the repository and open a pull request. Contributions are welcome!
MIT License - see LICENSE file for details.
Contact us at [email protected]