This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
Kosho is a CLI tool that manages git worktrees in .kosho/ directories for isolated development environments, particularly useful for running multiple concurrent AI coding agents.
Core features complete including worktree management and merge workflows.
- Build:
go build - Run:
./kosho ... - Lint:
golangci-lint run - Format:
golangci-lint fmt - Check for dead code:
deadcode . - Tidy dependencies:
go mod tidy - Manual testing:
./test-kosho.sh
- Imports: Standard Go import organization (stdlib, external, internal)
- Error Handling: Return errors explicitly
- Naming: Use Go conventions (CamelCase for exported, camelCase for unexported)
- Types: Use strong typing; prefer interfaces for dependencies
- Documentation: Document all exported functions and types
- Manual Testing: Use
./test-kosho.shto test kosho functionality in a safe environment - Important: Never manually test kosho commands directly in the kosho repository itself
- The test script creates an isolated environment to safely verify kosho operations
- Always run
golangci-lint fmt/runbefore committing to ensure code is properly formatted and linted