explaingit

xuwenhao/kimi-code-action

Analysis updated 2026-05-18

2TypeScriptAudience · developerComplexity · 3/5Setup · moderate

TLDR

A GitHub Action, forked from claude-code-action, that lets the kimi-code AI agent answer, review, and fix issues and PRs.

Mindmap

mindmap
  root((Kimi Code Action))
    What it does
      Answer PR questions
      Review code
      Implement fixes
    Tech stack
      TypeScript
      GitHub Actions
      kimi-code CLI
    Use cases
      Mention-triggered review
      Automated triage
      CI auto-fix
    Security
      Permission checks
      Prompt injection defense
      Default deny force push

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Comment @kimi on a pull request to get an automatic code review with inline comments.

USE CASE 2

Let an issue trigger an automated fix that gets implemented and pushed to a branch.

USE CASE 3

Run kimi-code in automation mode with a fixed prompt to auto-triage new issues on a schedule.

USE CASE 4

Sign commits made by the agent with your own SSH key instead of the default GitHub API signing.

What is it built with?

TypeScriptGitHub Actionskimi-code CLI

How does it compare?

xuwenhao/kimi-code-action4ssh1/mine-sweeperachawla19/intuitcode-extension
Stars222
LanguageTypeScriptTypeScriptTypeScript
Last pushed2026-01-31
MaintenanceMaintained
Setup difficultymoderatemoderatemoderate
Complexity3/52/54/5
Audiencedevelopervibe coderdeveloper

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · moderate Time to first run · 30min

Requires a Kimi Code or Moonshot Open Platform API key stored as a repository secret.

In plain English

Kimi Code Action is a GitHub Action that lets an AI agent work directly inside your GitHub issues and pull requests. It is a fork of Anthropic's claude-code-action project, keeping the same GitHub side features such as tracking comments, inline code comments, and security safeguards, but swapping out the underlying agent for the kimi-code command line tool instead of Claude Code. Once installed, you mention at kimi in a comment on an issue or pull request and the agent responds inside a single tracking comment: it can answer questions about the code, review a pull request's changes and leave feedback including comments on specific lines, or implement a requested fix or feature and push it to a branch. It can also run in a fully automated mode with no mention needed, driven instead by a prompt you configure directly in the workflow file, which is useful for things like automatically triaging new issues. The action figures out on its own which of these two modes to use based on what triggered it, so no manual mode switching is required. Setting it up means creating an API key in the Kimi Code console or on Moonshot AI's Open Platform, saving it as a repository secret, and adding a small YAML workflow file that reacts to comments, reviews, and new issues. Security features carried over from the original project include checking that whoever triggered the action actually has write permission to the repository, defenses against prompt injection attempts hidden in issue text, restoring configuration files from the base branch, and refusing by default to touch GitHub Actions workflow files or force push to branches. Other inputs let you customize the trigger phrase, sign commits either through the GitHub API or your own SSH key, filter out test or probe style inline comments, and choose which model and API endpoint the kimi-code CLI should use. The entire agent runs on your own GitHub runner, with the AI model API being the only external service it calls.

Copy-paste prompts

Prompt 1
Help me set up a .github/workflows/kimi.yml file that responds to @kimi mentions on issues and PRs.
Prompt 2
Explain the difference between Kimi Code Action's automation mode and its interactive tag mode.
Prompt 3
Show me how to configure kimi_platform and kimi_model to use Moonshot's Open Platform instead of the default.
Prompt 4
Write a GitHub Actions workflow that filters which comment authors can trigger an AI agent action.

Frequently asked questions

What is kimi-code-action?

A GitHub Action, forked from claude-code-action, that lets the kimi-code AI agent answer, review, and fix issues and PRs.

What language is kimi-code-action written in?

Mainly TypeScript. The stack also includes TypeScript, GitHub Actions, kimi-code CLI.

How hard is kimi-code-action to set up?

Setup difficulty is rated moderate, with roughly 30min to a first successful run.

Who is kimi-code-action for?

Mainly developer.

Open on GitHub → Explain another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.