Claude Code for Product Designers
Lesson 27 of 49, 0 of 49 lessons completed
Sign in
Watch on YouTubePlay

Plays from YouTube. Google's privacy policy (opens in a new tab) applies.

Up next

2.13 Two sessions: motion and an audit

Next lesson in 8 s

2.12 Two tasks at once

Adam explains why two agents shouldn't share one local folder and what cloud sessions are, then connects GitHub and gives Claude access to his repo so a cloud session can start on main.

What you'll learn

  1. You can start another session while Claude works, but two agents in one local folder will clash.
  2. Worktrees would isolate local sessions, but several running at once drain your computer; this course doesn't cover them.
  3. Cloud sessions: a virtual machine that clones your GitHub repo and runs Claude there, included with your subscription, without load on your Mac.
  4. Keep work that must be judged by eye (like motion) local; review-style work (like an accessibility pass) suits the cloud.
  5. Run at most two sessions at once, three if the work is simple and linear; more makes it hard to keep quality and leaves you exhausted.
  6. Cloud sessions only see what's in the repo: no local plugins, no personal CLAUDE.md.
  7. Connectors live on your claude.ai account and work in every session, on any device or in the cloud.
  8. To start a cloud session: switch the environment to Cloud, connect GitHub, give Claude's GitHub app access to the repo, pick the repo; it starts on main.

Chapters

  1. 00:00Why not two local sessions
  2. 02:00What cloud sessions are for
  3. 04:28How many sessions at once
  4. 05:41What cloud sessions can't see
  5. 07:28Connecting GitHub to Claude
  6. 08:32Giving Claude access to your repo
  1. 00:00Okay, let's step it up a notch and talk about working on multiple things simultaneously.
  2. 00:06So, every now and then you will find yourself just, you know, sitting and waiting for Claude to finish this slightly longer, more ambitious task.
  3. 00:14Perhaps you have a team of sub agents running in the background and you really feel like like you have that mental capacity to take on a new task while
  4. 00:24Claude is still wrapping up wrapping things up on that other task that is happening.
  5. 00:29So, it is totally possible.
  6. 00:31I mean, technically there is nothing that would prevent you from just going into your Claude Code desktop application and hitting that plus button to start a new session.
  7. 00:40But unless you have multiple work trees locally on your computer, and we are not going to go into what that means in this course, you are going to be
  8. 00:49running into many nasty conflicts.
  9. 00:53So, just imagine like you have one folder on your machine that represents your code base and you have multiple Claude agents working on this and writing and editing sometimes
  10. 01:03the exact same files, trying to commit, trying to work on different branches.
  11. 01:08That is going to end up being really wrong really fast.
  12. 01:12So, you really don't want to be doing that again unless you have a separate work tree.
  13. 01:16But again, we're not going to be doing this because, you know, having multiple work trees on your machine and like having Claude agents working on them simultaneously is also
  14. 01:25going to drain your computer really quickly.
  15. 01:28Just imagine having like it's not that, you know, running a preview of your Next.js application in your browser is like comes for free.
  16. 01:36It might feel like really lightweight initially when you work on a very simple application.
  17. 01:42But, you know, as time goes on and your application becomes more heavy, you know, having two servers uh and then doing checks and building the application simultaneously across more
  18. 01:54than one more than one work tree, this is going to cause you some problems you have a very strong and powerful machine, okay?
  19. 02:04So that is why sessions in the cloud are such a nice thing.
  20. 02:09So with your Claude subscription, you also get access to these cloud sessions.
  21. 02:15So basically Antropik is offering you a way to open up and just start a new virtual machine that is going to clone your GitHub repository and it's going to
  22. 02:25let you work with Claude in that virtual machine in a very similar way as we just as as we just did over the course of the like all of
  23. 02:35the videos we've we've been through so far.
  24. 02:38And this is really like very powerful because it's not going to cost you anything extra in terms of your Claude subscription Claude subscription and also you're not going to
  25. 02:49feel that on your computer.
  26. 02:51Now so there are two things that I would like to work on right now.
  27. 02:55The first one is I would like to infuse slightly more motion into our application.
  28. 03:00So far, at least in my implementation of our parking application, we only have just one animated toast and that animation is very simple.
  29. 03:10It's very basic. I would like to I would like for our animations to be a little bit more refined.
  30. 03:17I would also like to have that dialogue when it comes up being animated as well.
  31. 03:23So we are going to so we are going to talk about installing our first dependency like consciously.
  32. 03:28We're going to install motion to create a slightly more refined animations.
  33. 03:35And then and this is something we're going to do locally in our mocks because previewing that session or previewing the work locally is really important for us to judge
  34. 03:45the animation and just make sure it feels right.
  35. 03:49And then the thing that we'll be doing in the cloud is we are going to run just a simple accessibility pass, okay?
  36. 03:55So we're going to ask Claude just to review our code and make sure it's compliant with all of the best practices when it comes to building and designing accessible
  37. 04:08web applications. And I'm going to run this session in the cloud because even though with cloud sessions we can totally still preview the work that Claude is doing and
  38. 04:18we can like preview it in the browser, it's not as convenient as the local sessions and we'll we'll get to see why in a second.
  39. 04:27Right, and also one last thing before we move on.
  40. 04:30Just a sanity note I guess.
  41. 04:33So a lot of the people are really overwhelmed and really excited about the idea of having multiple cloud sessions working all at the same time on different things and
  42. 04:45I get it. It's you know we can really boost your productivity.
  43. 04:49But the moment you start running three, four, five different sessions all working on different things it's becoming more and more difficult for you to keep track of everything that
  44. 05:01is going on. In each session cloud agents are going to be coming back to you with really long and word like worldly responses.
  45. 05:09You'll have to be making lots of decisions and not only it's going to be impossible for you to really stay up to date with everything that's happening and like
  46. 05:19produce really quality work, it's going to end up with you being really exhausted at the end of the day.
  47. 05:25My personal advice is not really going more than with more than two sessions happening at once, three if you know the work that you're doing is really simple and
  48. 05:34you are just tackling simple linear issues, okay?
  49. 05:38So just a little bit of you know personal tip tip from from me to you.
  50. 05:43Okay, so I'm going to go back to the Claude desktop application and first let's make sure we are well equipped to start our first local sessions and let's make
  51. 05:54sure we understand how local sessions are different from cloud sessions are different from local sessions.
  52. 06:01So first First um, when we're talking about local cloud sessions, we need to understand that in that virtual machine, Claude is not going to have access to any of
  53. 06:13the plugins that we install on our machine only.
  54. 06:17And it's also not going to have access to our personal Claude.md file that we created a couple of videos ago in our, um, home root directory on this Mac.
  55. 06:29This is because it's just a totally different machine.
  56. 06:32It is going to only have access to whatever it to whatever is inside inside our repository.
  57. 06:38So you might be wondering, okay, then how Claude is going to be able then to work with things like GitHub or Figma since both of these are, you know,
  58. 06:48things we have just locally on our Macs.
  59. 06:50So this is why connectors have been introduced.
  60. 06:54Um, so we and we like briefly discussed them a couple of videos ago.
  61. 06:58So far we've been only installing plugins or installing GitHub locally through Homebrew, but connectors are things we install and set up on our Claude AI account.
  62. 07:10And whatever we install on one computer is going to be available to all sessions, whatever machine we're running them on, whether it's our, you know, mobile phone or a
  63. 07:19different computer or cloud sessions.
  64. 07:22So before we before we can begin with cloud sessions, first we need to make sure that, um, that we have our like GitHub connected to our Claude AI account
  65. 07:35through a connector. So I'm going to I'm going to first of all, um, in that new session view, okay, I'm going to switch the environment from local to cloud.
  66. 07:45I'm going to just pick the default and you should see the same on your on your end.
  67. 07:50And then over here I'll need to select a GitHub repository and I can't see anything because I haven't connected my GitHub yet.
  68. 07:58So I'm going to just either hit connect to GitHub or I can go into customize.
  69. 08:03I can type in GitHub.
  70. 08:05And over here, um, I let's make sure that we're looking at a GitHub connector.
  71. 08:10I'm just going to hit connect.
  72. 08:12Now I have already connected that before so I'm just going to I'm just going to reconnect it.
  73. 08:18I'm just going to hit this button on your end.
  74. 08:20This process might be slightly longer.
  75. 08:22You might have to again authenticate with your GitHub account.
  76. 08:25In my case, it was just a simple like reconnection kind of a thing.
  77. 08:29And as you can see, I am already like well set up.
  78. 08:33And then there is another thing.
  79. 08:35So when you set up your GitHub or when you give your Claude AI account access to your GitHub profile, you'll have to make a decision whether to give it
  80. 08:45access to all of your repositories or just the ones that you pick.
  81. 08:50Now I went with the like manual repository access option, which means Claude can only access the the repos that I give it access to.
  82. 09:01And since I haven't given access since I haven't given my Claude AI access to this repo, I'm going to do it right now and you can do it with
  83. 09:10me as well if you decided to go with that same option as I did.
  84. 09:15So I'm going to go into GitHub.
  85. 09:19Let's make sure I'm in the in the right repo and then I'm going to go into the settings folder, the settings tab, and then I need to scroll down
  86. 09:28over here. Oh, I'm sorry, it's not that.
  87. 09:30I'll need to go I'll need to go into my user menu and I'll need to get into settings over here.
  88. 09:39So I'm going to get into integrations applications.
  89. 09:46And then I'm going to find Claude.
  90. 09:48I'm going to hit configure.
  91. 09:51And then I'm going to from the repository access section where I can find a list of all of the repos that my Claude has access to, I 'm going
  92. 10:00to find the one which we created a couple of lessons ago and I 'm going to add it here.
  93. 10:06And so let me type in Claude.
  94. 10:08I'm sorry. No, a tonic parking course.
  95. 10:13And here it is.
  96. 10:14I'm just going to click on it, and then I'm going to confirm by hitting save.
  97. 10:20Without this, if I try to find this repository in my Claude desktop application or Claude on the web, it's just won't it it just won't show up.
  98. 10:29So let me press this button here.
  99. 10:33And seems like we are all good to go.
  100. 10:37So let me go back to your to that like new session view.
  101. 10:42I'm going to again change this to Claude.
  102. 10:45And then I'm going to select and type in tonic parking course.
  103. 10:52And here it is.
  104. 10:53I'm just going to confirm by selecting this repo.
  105. 10:55Oh, seems like it was already selected.
  106. 10:57So tonic parking course.
  107. 11:02And over here, this is a confirmation that I'm about to start a new Claude Code session in the Claude.
  108. 11:10And this Claude Code session is going to look at this repository and it's going to look and it's going to start off in the main branch, which is exactly
  109. 11:18what we want. So with this kind of a setup, we are ready to start like actually prompting Claude in these two new sessions.
  110. 11:26And we are going to do this in the next video.
  111. 11:28So I'll see you there.

The cheat sheet is for signed-in viewers. Inside: the lesson's prompts ready to reuse, the commands and shortcuts, useful links and what to watch out for.

Sign in to get the cheat sheet

Loading the cheat sheet…