Thanks for considering contributing to CX Terminal! We value any contribution, even if it is just to highlight a typo.
# Clone the repository
git clone https://github.com/cxlinux-ai/cx.git
cd cx
# Install Rust (if not already installed)
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
# Check the code compiles
cargo check
# Run tests
cargo test
# Build release
cargo build --release
# Run the terminal
./target/release/cx-terminal-gui| Directory | Description |
|---|---|
cx-terminal-gui/src/ai/ |
AI panel and LLM providers |
cx-terminal-gui/src/blocks/ |
Command blocks system |
cx-terminal-gui/src/agents/ |
CX Linux agent system |
cx-terminal-gui/src/voice/ |
Voice capture and transcription |
cx-terminal-gui/src/learning/ |
ML workflow learning |
cx-terminal/src/cli/ |
CLI commands (ask, install, setup, etc.) |
term/ |
Core terminal model (escape sequences, etc.) |
config/ |
Configuration and Lua bindings |
shell-integration/ |
Shell scripts for CX features |
cargo checkcargo run --bin cx-terminal-guicargo test --allcargo fmt --allWhen adding CX-specific features:
- Add
// CX Terminal:comments to mark our additions - Use the
cxprefix for new modules/functions - Follow existing patterns in the codebase
- Add tests for new functionality
The AI CLI commands are in cx-terminal/src/cli/:
ask.rs- Main AI query commandshortcuts.rs- Convenience commands (install, setup, what, fix, explain)
The blocks system is in cx-terminal-gui/src/blocks/:
block.rs- Block data structuremanager.rs- Block lifecycle managementparser.rs- OSC sequence parsingrenderer.rs- Block rendering
- Fork the repository
- Create a feature branch:
git checkout -b feature/my-feature - Make your changes
- Run tests:
cargo test --all - Format code:
cargo fmt --all - Commit with clear message:
git commit -m "feat: Add my feature" - Push and create PR
type: Short description
Longer description if needed.
Co-Authored-By: Your Name <your@email.com>
Types: feat, fix, docs, style, refactor, test, chore
Be respectful and constructive. We're all here to build something great.
- Discord: https://discord.gg/7K6TR7qtS
- GitHub Issues: https://github.com/cxlinux-ai/cx/issues