Skip to content

claude code project learning

License

MIT, Unknown licenses found

Licenses found

MIT
LICENSE
Unknown
LICENSE.md
Notifications You must be signed in to change notification settings

BenBenVibe/ccode

Repository files navigation

CCode - Claude Code Learning

Node.js TypeScript License

An enhanced agentic coding tool that lives in your terminal. Understand your codebase, execute tasks, and handle workflows through natural language commands.

English | δΈ­ζ–‡

✨ Features

  • πŸ—‚οΈ File Management - Read, edit, create, and search files
  • πŸ” Code Analysis - Explain architecture and complex logic
  • ⚑ Command Execution - Run tests, lint, and other commands
  • πŸ”„ Git Integration - Handle commits, PRs, and conflicts
  • πŸš€ Parallel Processing - SubAgent system for concurrent tasks
  • πŸ› οΈ Agent Management - Specialized agents for different tasks
  • 🎣 System Hooks - Execute custom commands at key points

πŸš€ Quick Start

Prerequisites

Installation

# Clone the repository
git clone https://github.com/BenBenVibe/ccode.git
cd ccode

# Install dependencies
npm install

# Build the project
npm run build

# Install globally (recommended)
npm install -g .

Setup & Usage

  1. Set your API key:

    export ANTHROPIC_API_KEY="your-api-key-here"
    # Add to ~/.bashrc or ~/.zshrc for persistence
  2. Start CCode:

    # If installed globally
    claude-local
    
    # Or run directly from source
    npm run start
  3. Complete OAuth authentication when prompted

πŸ’‘ Usage Examples

Basic Commands

# Code analysis and fixes
"Explain how the authentication system works"
"Fix the typescript errors in this file"
"Add unit tests for the login component"
"Refactor this function to be more readable"

# Git operations  
"Create a PR with my changes"
"Show me the git history for this file"
"Help me resolve this merge conflict"

# Project management
"Run tests and fix any failures"
"Update dependencies to latest versions"
"Generate documentation for this API"

Slash Commands

Command Description
/help Get help with using CCode
/compact Compact conversation history
/agents Manage SubAgent configurations
/bug Report issues
/clear Clear conversation history

Agent System

Use specialized agents for different tasks:

# Use specific agent types
"Use the code-analyzer agent to review this module"
"Have the performance-optimizer agent check this function"

# Manage agents
/agents  # Opens agent management interface

πŸ”§ Development

Available Scripts

Command Description
npm run start Run the CLI application
npm run dev Run in development mode
npm run build Compile TypeScript to JavaScript
npm run lint Run ESLint
npm test Run test suite

Development Setup

# Fork and clone the repo
git clone https://github.com/yourusername/ccode.git
cd ccode

# Install dependencies
npm install

# Run in development mode
npm run dev

# Build for production
npm run build

# Install your local version globally
npm install -g .

Project Structure

β”œβ”€β”€ src/
β”‚   β”œβ”€β”€ components/          # React UI components
β”‚   β”œβ”€β”€ tools/              # Tool implementations
β”‚   β”œβ”€β”€ services/           # Core services
β”‚   β”œβ”€β”€ utils/              # Utility functions
β”‚   └── entrypoints/        # Application entry points
β”œβ”€β”€ bin/                    # Executable scripts
β”œβ”€β”€ .claude/               # Agent configurations
└── dist/                  # Compiled output

βš™οΈ Configuration

Project Configuration

Create a CLAUDE.md file in your project root:

# My Project

## Build Commands
- `npm run build` - Build the project
- `npm test` - Run tests

## Architecture
This project uses React with TypeScript...

## Code Style
- Use TypeScript strict mode
- Follow ESLint rules

System Hooks

Execute custom commands at key points:

# List hooks
claude hooks list

# Add a hook
claude hooks add PreToolUse "git add . && git commit -m 'Auto backup'" --matcher "FileWriteTool"

# Test hooks
claude hooks test SessionStart

πŸ”§ Troubleshooting

Common Issues

1. API Key Issues

  • Ensure ANTHROPIC_API_KEY is set correctly
  • Check API key has sufficient credits
  • Verify key is from Anthropic Console

2. Installation Issues

# Clean install
rm -rf node_modules package-lock.json
npm install
npm run build

3. Global Installation

# Reinstall globally
npm uninstall -g claude-code-local
npm install -g .

4. Permission Issues

# Make binary executable
chmod +x ./bin/claude-local

5. Working Directory Issues

  • CCode should automatically detect your current directory
  • If showing wrong directory, try reinstalling: npm install -g .

Getting Help

  • Use /bug command within CCode to report issues
  • Check GitHub Issues
  • Create detailed bug reports with reproduction steps

🀝 Contributing

We welcome contributions! Here's how to get started:

Quick Contribution

  1. Fork the repository
  2. Create feature branch: git checkout -b feature/amazing-feature
  3. Make changes and add tests
  4. Commit: git commit -m 'Add amazing feature'
  5. Push: git push origin feature/amazing-feature
  6. Open a Pull Request

Development Guidelines

  • Follow existing code patterns
  • Add tests for new features
  • Update documentation
  • Run npm run lint before committing

See CONTRIBUTING.md for detailed guidelines.

πŸ“ License

This project is licensed under the MIT License - see the LICENSE file for details.

πŸ™ Acknowledgments

  • Built on Anthropic's Claude
  • Enhanced with SubAgent system and parallel processing
  • Thanks to all contributors and the open source community

πŸ“Š Project Status

CCode is actively developed with these features:

  • βœ… SubAgent system for parallel processing
  • βœ… Enhanced dependency management
  • βœ… Improved agent configurations
  • βœ… Extended tool capabilities
  • βœ… Working directory preservation
  • 🚧 Continuous improvements and bug fixes

⭐ Star this repo if you find it helpful!

Issues β€’ Contributing β€’ Changelog

About

claude code project learning

Resources

License

MIT, Unknown licenses found

Licenses found

MIT
LICENSE
Unknown
LICENSE.md

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published