feat: update kimi-code skill with session persistence, file arch refactor issues #164-#170
This commit is contained in:
@@ -21,7 +21,22 @@ Delegate coding tasks to Kimi Code CLI via the Hermes terminal. Powered by kimi-
|
||||
- Logged in: `kimi login`
|
||||
- Config at `~/.kimi/config.toml`
|
||||
|
||||
## One-Shot Tasks (Print Mode)
|
||||
## Session Persistence (ALWAYS USE)
|
||||
|
||||
Kimi scans the entire codebase on first run. Reuse sessions to keep context warm:
|
||||
|
||||
```
|
||||
# First task in a worktree — creates session, caches codebase
|
||||
terminal(command="kimi --print --session worktree-148 -p 'Fix the XSS vulnerability'", workdir="~/worktrees/kimi-148", timeout=300)
|
||||
|
||||
# Subsequent tasks — context is cached, much faster
|
||||
terminal(command="kimi --print --continue --session worktree-148 -p 'Now fix the CSRF issue'", workdir="~/worktrees/kimi-148", timeout=180)
|
||||
```
|
||||
|
||||
**NEVER run Kimi without --session on large codebases.** First run takes 2-5 min.
|
||||
Subsequent runs in same session take 30-90s.
|
||||
|
||||
## One-Shot Tasks (only for tiny repos or quick questions)
|
||||
|
||||
```
|
||||
terminal(command="kimi --print -p 'Fix the XSS vulnerability in swarm_live.html by sanitizing innerHTML'", workdir="~/project", timeout=120)
|
||||
|
||||
Reference in New Issue
Block a user