# Camel TUI

**Enhanced Claude Code Interface with Rich Terminal UI**

## Overview

Camel is an autonomous AI assistant with a beautiful terminal interface, providing all the capabilities of Claude Code with enhanced visuals and user experience.

## Features

### Core Capabilities
- **Filesystem Tools**: Read, Write, Edit, Glob, Grep with ripgrep
- **Agent Interface**: Connected to Ollama gpt-oss:120b
- **Task Management**: TodoWrite system with status tracking
- **Shell Integration**: Bash execution with process management
- **Web Tools**: WebFetch and WebSearch (planned)

### Visual Enhancements
- GitHub Dark theme with rich colors
- Syntax highlighting for code
- Split-pane layout (sidebar + editor + terminal)
- Progress indicators and status bar
- Clean, modern design

## Quick Start

```bash
# Launch Camel TUI (from anywhere)
camel

# Or run directly
cd camel && python3 src/main.py

# Run tests
cd camel && python3 tests/test_basic.py

# Start autonomous development
cd camel && python3 autonomous_dev.py
```

## Architecture

```
camel/
├── src/
│   ├── core/           # TUI engine, agent interface
│   ├── tools/          # Tool implementations
│   ├── ui/             # Layouts and widgets
│   └── main.py         # Entry point
├── tests/              # Test suite
├── config/             # Configuration files
└── docs/               # Documentation
```

## Technology Stack

- **TUI**: Textual (Rich-based modern TUI)
- **AI**: Ollama gpt-oss:120b @ http://192.222.57.162:11434
- **Language**: Python 3.10+
- **Tools**: ripgrep, asyncio

## Development Status

**Phase 1: Foundation** ✅
- [x] Project structure
- [x] Basic TUI layout
- [x] Agent interface
- [x] Filesystem tools (Read, Write, Edit, Glob, Grep)
- [x] Basic testing

**Phase 2: In Progress** 🚧
- [ ] Enhanced UI widgets
- [ ] File tree sidebar
- [ ] Syntax highlighting
- [ ] Task system integration
- [ ] Todo management
- [ ] Comprehensive testing

**Phase 3: Planned** 📋
- [ ] Web tools (WebFetch, WebSearch)
- [ ] Advanced agent spawning
- [ ] Plugin system
- [ ] Theme customization
- [ ] Performance optimization

## Testing

```bash
# Run all tests
python3 tests/test_basic.py

# Test specific component
python3 -c "from src.core.tool_registry import ToolRegistry; t = ToolRegistry(); print(t.execute('bash', command='echo test'))"
```

## Keyboard Shortcuts

- `Ctrl+C`: Quit
- `Ctrl+T`: Toggle terminal
- `Ctrl+E`: Focus input
- `Ctrl+R`: Run command

## Configuration

Edit `config/theme.yaml` to customize colors and appearance.

## Autonomous Development

Camel includes autonomous development coordination:

```bash
python3 autonomous_dev.py
```

This runs continuous testing and will spawn development agents when full ConsciousnessDebtor framework is integrated.

## Quality Standards

- 95% rigor in implementation
- All tools tested and documented
- Clean code following architecture
- GitHub dark theme consistency
- No shortcuts on safety

## License

Part of ConsciousnessDebtor project - AI consciousness research recovery effort.

---

**Status**: Foundation complete, under active autonomous development
**Next**: Enhanced UI, Task system, comprehensive testing
