# Grove

A CLI tool for managing Claude Code sessions with git worktrees, built with TypeScript and NodeJS.

## Features

- 🌳 Automatic git worktree creation for feature development
- 🤖 Integrated Claude Code sessions
- 📁 Configurable project structure

## Installation

```bash
npm install -g @jcblw/grove
```

Or for development:

```bash
npm install
npm run build
npm link
```

## Usage

### Create a new feature worktree
```bash
grove user-authentication
```

### Continue working on existing worktree
```bash
grove user-authentication --continue
```

### Custom options
```bash
grove feature-name --location ../worktrees --project my-app
```

## Configuration

Create a `.groverc.json` file in your project root:

```json
{
  "worktreeLocation": "../",
  "projectName": "my-custom-project",
  "quickCommands": {
    "test": "npm test",
    "lint": "npm run lint", 
    "build": "npm run build",
    "dev": "npm run dev"
  },
  "autoStart": {
    "claudeCode": true
  }
}
```

## Keyboard Shortcuts

- `Ctrl+C` - Force quit


## Requirements

- Node.js >= 18.0.0
- Git
- Claude Code CLI tool

## License

MIT
