MoonshotAI / MoonshotAI/kimi-code

Allow `kimi web [PATH]` to create/select a workspace at the given path

Open
#3,222 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.