Skip to content

Implement User-Configurable Lifecycle Hooks System #785

@Verdenroz

Description

@Verdenroz

What feature would you like to see?

Description

Currently, Kimi Code CLI operates with a fixed lifecycle. Users cannot easily inject custom context or trigger external workflows without modifying the core codebase.

Proposal

I propose implementing a Hooks System inspired by Claude Code. This would allow users to configure scripts that trigger at specific lifecycle events (e.g., SessionStart, PreToolUse, UserPromptSubmit), enabling local extensibility without bloating the core tool.

Proposed Approach

Implement a hook system configurable via a user settings file (e.g., ~/.kimi/settings.json or project-local config).

Image

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions