Skip to content

feat: add simple real-project creation workflow with '+ New Project' - #13

Open
atomtanstudio wants to merge 1 commit into
daniel-farina:mainfrom
atomtanstudio:feat/real-project-workflow
Open

feat: add simple real-project creation workflow with '+ New Project'#13
atomtanstudio wants to merge 1 commit into
daniel-farina:mainfrom
atomtanstudio:feat/real-project-workflow

Conversation

@atomtanstudio

Copy link
Copy Markdown
Contributor

Summary

This PR makes it dead simple for users to work with real directories on their machine instead of being stuck in the isolated ~/.grok-remote/agents/<id>/cwd sandbox.

New user-facing features

  • "+ New Project" button (placed first in the actions toolbar):
    • Prompts only for a short project name.
    • Automatically creates the folder under the user's configured "Default projects base" (e.g. ~/Documents/coding/my-cool-app).
    • Spawns a new agent directly bound to that real path.
    • Also auto-creates a matching sidebar folder and places the new agent inside it for instant organization.
  • "+ in folder" for the "I already have code in an existing location" case (attach any agent to any real directory).
  • The classic "+ new" sandbox behavior is preserved unchanged.

Backend & settings

  • spawn() now always honors an explicit cwd (and creates the directory if it doesn't exist). Added ~ expansion support.
  • Agents now support updating their cwd after creation (via PATCH).
  • New defaultProjectsBase setting (exposed in Settings UI next to the existing "default cwd").
  • Sensible defaults and fallbacks; ~/Documents/coding is the suggested base.

Polish

  • Grouped the creation buttons in a .sidebar-actions flex container for proper alignment and consistent spacing (fixes previous visual misalignment in the agents toolbar).
  • Consistent button styling, sizing, and hover states.
  • Improved empty-state text and prompt copy to guide new users toward the real-project flow.
  • Added a dedicated "Real working directories (non-sandbox mode)" section to the README.

Why this is useful

Many users (including the contributor) want to use grok-remote for actual development work on their own codebases rather than throwaway sandbox experiments. Previously there was no ergonomic way to point agents at real folders. This change removes that friction while remaining 100% optional and backward-compatible.

Testing

  • Manually tested new project creation, attaching to existing paths, updating cwd on live agents, and the Files tab against real directories.
  • Verified settings persistence and that the base can be customized.
  • Type-checked and built cleanly.

Checklist

  • Code is focused and the diff is easy to review
  • New feature is documented in README
  • No breaking changes to existing behavior or data

This should make the "start a new real project" experience feel as simple as clicking a button and typing a name.

This change makes it trivial for users to bind remote agents to real
directories on their filesystem instead of the isolated sandbox under
~/.grok-remote/agents/<id>/cwd.

### New UX
- Added "+ New Project" button (first in the actions toolbar for
  discoverability).
  - Prompts only for a project name.
  - Automatically creates the folder under the configured "Default
    projects base" (default: ~/Documents/coding).
  - Spawns a fresh agent directly bound to that real path.
  - Also auto-creates a matching sidebar folder and places the agent
    inside it for immediate organization.
- Kept "+ in folder" for the "attach to existing real directory" use
  case.
- "+ new" remains for the classic isolated sandbox behavior.

### Backend improvements
- `spawn()` now always respects an explicit `cwd` parameter (even if the
  directory does not exist yet) and creates it with `mkdir -p`.
- Added `~` expansion for convenient paths like `~/Documents/coding/foo`.
- `update()` now supports changing `cwd` on an existing agent (via
  PATCH /api/agents/:id or future UI).

### Settings
- New "default projects base" setting (exposed in Settings UI, right
  next to the existing "default cwd").
- Falls back gracefully; clients can also use localStorage for the
  helper.

### Polish & DX
- Grouped action buttons in `.sidebar-actions` flex container with
  consistent gap for proper alignment in the agents toolbar (addresses
  previous visual misalignment of mixed button styles).
- Unified button base styling (consistent height, padding, alignment,
  hover states). The "+ new project" gets a subtle highlight as the
  primary real-workflow entry point.
- Normalized button labels for visual balance.
- Improved empty-state messaging and prompt copy to guide users.
- Added "Real working directories (non-sandbox mode)" section to
  README with clear explanation of the new buttons and setting.

### Backward compatibility
- All changes are additive. Existing "+ new" behavior is unchanged.
- No breaking changes to existing agent records or APIs.

This feature was developed to make real source tree usage dead simple
for end users while remaining fully optional.

Closes the original pain point of agents being stuck in the
`~/.grok-remote` sandbox with no easy way to point them at actual
projects.
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