Watch on YouTubePlayPlays from YouTube. Google's privacy policy (opens in a new tab) applies.
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
- You can start another session while Claude works, but two agents in one local folder will clash.
- Worktrees would isolate local sessions, but several running at once drain your computer; this course doesn't cover them.
- Cloud sessions: a virtual machine that clones your GitHub repo and runs Claude there, included with your subscription, without load on your Mac.
- Keep work that must be judged by eye (like motion) local; review-style work (like an accessibility pass) suits the cloud.
- 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.
- Cloud sessions only see what's in the repo: no local plugins, no personal CLAUDE.md.
- Connectors live on your claude.ai account and work in every session, on any device or in the cloud.
- 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
- 00:00Why not two local sessions
- 02:00What cloud sessions are for
- 04:28How many sessions at once
- 05:41What cloud sessions can't see
- 07:28Connecting GitHub to Claude
- 08:32Giving Claude access to your repo
- 00:00Okay, let's step it up a notch and talk about working on multiple things simultaneously.
- 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.
- 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
- 00:24Claude is still wrapping up wrapping things up on that other task that is happening.
- 00:29So, it is totally possible.
- 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.
- 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
- 00:49running into many nasty conflicts.
- 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
- 01:03the exact same files, trying to commit, trying to work on different branches.
- 01:08That is going to end up being really wrong really fast.
- 01:12So, you really don't want to be doing that again unless you have a separate work tree.
- 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
- 01:25going to drain your computer really quickly.
- 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.
- 01:36It might feel like really lightweight initially when you work on a very simple application.
- 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
- 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?
- 02:04So that is why sessions in the cloud are such a nice thing.
- 02:09So with your Claude subscription, you also get access to these cloud sessions.
- 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
- 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
- 02:35the videos we've we've been through so far.
- 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
- 02:49feel that on your computer.
- 02:51Now so there are two things that I would like to work on right now.
- 02:55The first one is I would like to infuse slightly more motion into our application.
- 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.
- 03:10It's very basic. I would like to I would like for our animations to be a little bit more refined.
- 03:17I would also like to have that dialogue when it comes up being animated as well.
- 03:23So we are going to so we are going to talk about installing our first dependency like consciously.
- 03:28We're going to install motion to create a slightly more refined animations.
- 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
- 03:45the animation and just make sure it feels right.
- 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?
- 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
- 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
- 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.
- 04:27Right, and also one last thing before we move on.
- 04:30Just a sanity note I guess.
- 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
- 04:45I get it. It's you know we can really boost your productivity.
- 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
- 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.
- 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
- 05:19produce really quality work, it's going to end up with you being really exhausted at the end of the day.
- 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
- 05:34you are just tackling simple linear issues, okay?
- 05:38So just a little bit of you know personal tip tip from from me to you.
- 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
- 05:54sure we understand how local sessions are different from cloud sessions are different from local sessions.
- 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
- 06:13the plugins that we install on our machine only.
- 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.
- 06:29This is because it's just a totally different machine.
- 06:32It is going to only have access to whatever it to whatever is inside inside our repository.
- 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,
- 06:48things we have just locally on our Macs.
- 06:50So this is why connectors have been introduced.
- 06:54Um, so we and we like briefly discussed them a couple of videos ago.
- 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.
- 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
- 07:19different computer or cloud sessions.
- 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
- 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.
- 07:45I'm going to just pick the default and you should see the same on your on your end.
- 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.
- 07:58So I'm going to just either hit connect to GitHub or I can go into customize.
- 08:03I can type in GitHub.
- 08:05And over here, um, I let's make sure that we're looking at a GitHub connector.
- 08:10I'm just going to hit connect.
- 08:12Now I have already connected that before so I'm just going to I'm just going to reconnect it.
- 08:18I'm just going to hit this button on your end.
- 08:20This process might be slightly longer.
- 08:22You might have to again authenticate with your GitHub account.
- 08:25In my case, it was just a simple like reconnection kind of a thing.
- 08:29And as you can see, I am already like well set up.
- 08:33And then there is another thing.
- 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
- 08:45access to all of your repositories or just the ones that you pick.
- 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.
- 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
- 09:10me as well if you decided to go with that same option as I did.
- 09:15So I'm going to go into GitHub.
- 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
- 09:28over here. Oh, I'm sorry, it's not that.
- 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.
- 09:39So I'm going to get into integrations applications.
- 09:46And then I'm going to find Claude.
- 09:48I'm going to hit configure.
- 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
- 10:00to find the one which we created a couple of lessons ago and I 'm going to add it here.
- 10:06And so let me type in Claude.
- 10:08I'm sorry. No, a tonic parking course.
- 10:13And here it is.
- 10:14I'm just going to click on it, and then I'm going to confirm by hitting save.
- 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.
- 10:29So let me press this button here.
- 10:33And seems like we are all good to go.
- 10:37So let me go back to your to that like new session view.
- 10:42I'm going to again change this to Claude.
- 10:45And then I'm going to select and type in tonic parking course.
- 10:52And here it is.
- 10:53I'm just going to confirm by selecting this repo.
- 10:55Oh, seems like it was already selected.
- 10:57So tonic parking course.
- 11:02And over here, this is a confirmation that I'm about to start a new Claude Code session in the Claude.
- 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
- 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.
- 11:26And we are going to do this in the next video.
- 11:28So I'll see you there.