Develop in a project
Use the coding workspace to keep requirements, source, terminal output, and diffs in one project context. This guide follows a narrow-screen project-list fix from reproduction to code handoff. For project creation, chats, and archiving, see Projects and chats.
Prepare source and reproduction material
Open the source project, enter its coding workspace, and check the actual directory. Prepare a reproducible operation, screenshot, or error output and read the repository's startup and test instructions. Preserve existing changes; use a Git worktree when the task needs its own directory and branch.
Record the baseline in the terminal:
git status --short --branch
git diff --stat
The first command establishes branch and file state; the second shows the scale of existing edits. Inspect untracked files too, including files absent from the diff.
Verify the development environment first
The project directory, execution agent, and model connection determine where code lives, who executes the task, and which model responds. A model response does not establish that dependencies, terminal commands, or test services are ready.
| Preparation | Confirm before editing |
|---|---|
| Directory and revision | The terminal and task target the same checkout or worktree; record the branch, HEAD, and existing changes |
| Toolchain | Check runtime and package-manager versions against repository instructions; install with the existing lockfile |
| Configuration and credentials | Prepare local configuration from project templates; use your own private-package and test-service access without pasting secrets into chat or committing them |
| Services and data | Identify startup commands, ports, and test data; give parallel worktrees separate ports and verify the database target |
| Verification | Run the smallest relevant check first; record its command, directory, exit result, and existing failures |
Dependency installation can execute project or dependency scripts. Read the installation instructions and scripts first. Do not upgrade the whole dependency set or regenerate the lockfile simply to repair setup. Recheck dependencies and local configuration in a new worktree; Git branch isolation does not prepare those resources.
Resolve setup failures
| Symptom | Next step |
|---|---|
| Command not found | Inspect executable paths and runtime versions in the actual terminal |
| Private dependency download fails | Check registry URL, network access, and account authorization separately; retain a redacted error |
| Server starts but shows the wrong page | Match its port to the process, directory, and branch so you do not test another task's server |
| A check fails before editing | Record the baseline failure and determine whether it blocks acceptance; explicitly expand scope if repairing it is necessary |
Mark blocked verification as incomplete and identify the missing condition. Setup is ready when the actual check or service works in the target directory.
Start an actionable task
Send this request in the target project's chat and add the real page URL and screenshot:
Fix horizontal overflow in the project list at 320px and 390px.
Read the list, menu, and nearby tests before locating the overflowing element.
Preserve sorting, filtering, desktop layout, and existing workspace changes.
Exercise the list menu, run the relevant tests, and report changed files and results.
Change local code only; do not commit, push, or deploy.
This request defines the trigger, preserved behavior, and acceptance method. The URL and screenshot supply original evidence; an aesthetic preference alone does not establish reproduction conditions.
Follow execution
The assistant reads the implementation and project rules before editing. Inspect its directory, file operations, and command output. Resolve missing dependencies, startup failures, and confirmation requests before dependent steps continue.
For this example, diagnosis should identify a concrete element and constraint: long text, fixed width, minimum width, or menu positioning. Hiding horizontal scrolling across the page can conceal clipped content and does not establish a fix.
After a directory change, recheck the project and terminal location. Switching chats does not switch Git branches, and creating a worktree does not copy every uncommitted file.
Verify code and interaction
- Start the repository's local server and open the reproduction page.
- At 320px and 390px, inspect long names, empty results, and populated lists.
- Open the menu and exercise sorting and filtering; check visibility, clickability, and results.
- Return to desktop width and check layout and interaction.
- Run the relevant tests and required repository checks in the integrated terminal, retaining actual output.
Separate failures introduced by the change from pre-existing failures. Rerun affected checks after correction. Removing tests, weakening assertions, or skipping failures does not establish completion.
Accept and hand off
Refresh Code review and changes and inspect file ownership individually. The handoff should answer:
| Evidence | What this example requires |
|---|---|
| Cause and change | The overflowing element and the constraint that changed |
| Actual interaction | Menu, sorting, and filtering results at both phone widths |
| Automated checks | Exact commands, results, and checks still failing |
| Workspace state | Existing changes preserved; unrelated files and build output excluded |
After acceptance, select commit scope and follow the project process for pushing or opening a PR. Completing a local fix does not establish those external delivery steps.