Skip to content

fix(cli): init nests a project directory when the cwd is already the target #967

Description

@rickylabs

Summary

Running netscript init <name> from a directory that is already meant to be the workspace creates a nested <name>/ inside it, rather than initialising in place.

Impact

Small in time (~15 min) but it propagates: the resulting layout has the real project one level down, so every later path, script and publication step has to account for it. One agent published its playground with the project nested inside a workspace directory for exactly this reason.

Suggested direction

Detect an empty or otherwise suitable cwd and offer to initialise in place, or support netscript init . explicitly.


Found by Grok 4.5, and independently visible in Claude Fable 5s playground layout.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions