Skip to content

feat(setup): add Kimi Code integration#66

Merged
Grivn merged 1 commit into
masterfrom
feat/kimi-code-setup
Jun 22, 2026
Merged

feat(setup): add Kimi Code integration#66
Grivn merged 1 commit into
masterfrom
feat/kimi-code-setup

Conversation

@Grivn

@Grivn Grivn commented Jun 22, 2026

Copy link
Copy Markdown
Member

Summary

  • Add mnemon setup --target kimi for Kimi Code using its native config root (~/.kimi-code or $KIMI_CODE_HOME).
  • Install the mnemon skill and lifecycle hook scripts, then register SessionStart, UserPromptSubmit, and Stop in Kimi Code config.toml.
  • Preserve unrelated TOML config and hook blocks on install/eject, with README and usage docs updated.

Research

  • Kimi Code CLI uses ~/.kimi-code/config.toml, relocated by KIMI_CODE_HOME.
  • Kimi Code skills are scanned from $KIMI_CODE_HOME/skills/.
  • Kimi hooks are configured as [[hooks]] entries with event, optional matcher, command, and optional timeout; UserPromptSubmit and Stop are blockable events.

Validation

  • go test ./internal/setup
  • go test ./...
  • go build -o mnemon .
  • isolated KIMI_CODE_HOME smoke install/eject for mnemon setup --target kimi --yes

Add Kimi Code as a setup target using its native config root, respecting KIMI_CODE_HOME when present and otherwise writing to ~/.kimi-code. The integration installs the mnemon skill, lifecycle hook scripts, and [[hooks]] entries in config.toml for SessionStart, UserPromptSubmit, and Stop while preserving unrelated TOML hook blocks.

Validation: go test ./internal/setup; go test ./...; go build -o mnemon .; isolated KIMI_CODE_HOME smoke install/eject for mnemon setup --target kimi --yes.
@Grivn Grivn merged commit 132ea22 into master Jun 22, 2026
1 check passed
@Grivn Grivn deleted the feat/kimi-code-setup branch June 22, 2026 14:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant