MoonshotAI / MoonshotAI/kimi-code
Allow `kimi web [PATH]` to create/select a workspace at the given path
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 7.5k
- Forks
- 1.2k
- Avg merge
- 11h 53m
- Merged PRs (30d)
- 350
Description
What feature would you like to see?
Add an optional positional argument [PATH] to kimi web:
kimi web . # use the current directory as the workspace
kimi web ~/projects/foo # use the given directory as the workspace
- A relative
[PATH]is resolved against the cwd where the command runs (kimi web .= current directory). - When the web UI opens, it automatically creates (if missing) and selects the workspace at that path as the default workspace for this launch, instead of restoring the most recent session's workspace.
- Omitting
[PATH]keeps the current behavior unchanged (fully backward compatible). - Mirrors the familiar
code ./cursor .convention, lowering the friction of moving from the terminal to the web UI.
Use case
After cd-ing into a project in the terminal, a single kimi web . opens the browser already scoped to that project, with no manual directory picking in the web UI.
Additional information
No response
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at the entry point for the kimi web command and trace how it restores or selects the workspace when the web UI opens. Add optional path handling with cwd-relative resolution, creation when missing, and selection for that launch; verify that kimi web without a path retains existing behavior and that both relative and explicit paths open the expected workspace.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- cli, web-dev
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 68/100