Installation
codeknit can be installed from source. The following steps will guide you through setting up codeknit on your system.
From source
Section titled “From source”The primary installation method is building from source. You’ll need:
- Go 1.26+
- A C compiler (required for tree-sitter via CGo)
Clone the repository and build the binary:
git clone https://github.com/awslabs/codeknit.gitcd codeknitmake buildThe compiled binary will be available at ./bin/codeknit.
Add to PATH
Section titled “Add to PATH”To run codeknit from any directory, add the binary location to your system’s PATH.
For bash (~/.bashrc):
export PATH="$PATH:/path/to/codeknit"For zsh (~/.zshrc):
export PATH="$PATH:/path/to/codeknit"For fish (~/.config/fish/config.fish):
fish_add_path /path/to/codeknitAfter updating your shell configuration, reload it by running source ~/.bashrc (or ~/.zshrc) or restart your terminal.
Shell completions
Section titled “Shell completions”codeknit supports auto-completion for popular shells. Install completions using these commands:
For bash:
codeknit completion bash >> ~/.bashrcFor zsh:
codeknit completion zsh >> ~/.zshrcFor fish:
codeknit completion fish > ~/.config/fish/completions/codeknit.fishFor PowerShell:
codeknit completion powershell >> $PROFILEVerify installation
Section titled “Verify installation”After installation, verify codeknit is correctly set up:
codeknit --versionDevelopment setup
Section titled “Development setup”If you’re contributing to codeknit, run these additional commands:
Install development dependencies:
make depsSet up git hooks:
make setupRun the test suite:
make test