Syntax Video
Copilot Workspace First Look & Test
intro
hey what's up this is Scott from syntax and today I'm putting co-pilot workspace github's new code assistant tool to the test now I just wanted to see what this tool could do in its current state and then we can compare this down the line to see if it continues to improve so I put co-pilot workspace to the test on five increasingly difficult GitHub issues some of which I purposely set it up to fail against others which I would just hope it would succeed and we're going to walk through them together and see how well co-pilot does and through that process we're going to get a a chance to check out the interface and see what's really really neat about this exciting upcoming tool so let's get going on this thing I just got access to github's latest project co-pilot workspace that's right it's not co-pilot workspaces GitHub workspaces or GitHub workspace it is co-pilot workspace as
their FAQ lets you know but this thing is as it says a co-pilot native Dev environment and you can see it takes a little bit different of an approach in terms of well you could say like co-pilot for vs code in which what you're doing is you're iterating over some ideas it's giving you a to-do list of sorts and then automating that process so is co-pilot the hands-off dev tool of the future well I'm going to be putting it to the test I have not used this yet and I'm interested to see exactly what this does for the first time I feel like some of these are pretty easy some of these might be a little bit tough but I think all of them are just things that are like are easy to offload right um for instance let's take a look at this first one in fact I haven't tried any of these I have not tried a co-pilot workspace yet so we're going to see it together in action so
test 1 - copy file
add custom instructions for GitHub co-pilot now when I wrote this issue I wrote it very specifically so that it could potentially feed off some of these instructions for its task we should reuse the cursor rules file as a GitHub copil instructions file now this is a new thing they also announced a GitHub Universe which allows you to give your codebase some rules that way co-pilot has an understanding right you can tell it to prefer types over interfaces or classes for State instead of objects and functions whatever right so I have this open in workspace button down here this is going to be interesting I'm going to click open in workspace and we're going to see what happens together so this opens this up and first thing it does is it tries to brainstorm and the first thing I
do is get an error could not uh no space left on device that's not a good start co-pilot but it does seem to be continuing to do its thing so is the cursor rules file reused as GitHub uh instructions first it says no the file is not reused the cursor rules exist in the repository with Specific Instructions there is no file named co-pilot instruction so you can see the AI is sort of working through um what is going on here this is the current behavior the dog Hub directory comp uh contains files like testing uh but no co-pilot okay let's collapse this proposed Solutions yes the cursor rules file is now reused as GitHub copilot instructions the content of cursor rules has been copied and a new file named GitHub co-pilot instructions the cursor rules file remains
unchanged let's see if it did it uh cuz that is oh that's the proposed solution I'm sorry so first it describes what uh the the status of the the repo in context of the issue then it's going to propose a solution so I believe the next thing we do is we select generate plan it's green it's a green button I'm going to uh take that in okay so it gave me a plan add a section about the GitHub co-pilot instructions to the readme mention the new file in the readme do I need that I'm going to be honest I don't think I need that and I don't really think I want that so if I uncheck this does that remove it from the plan or do I have to say remove from plan to be safe I'm going to click remove from plan I don't need it right but I'm glad it gave me the the choice before it did let's Implement selected
files and click oh I see if I if I left it unchecked when I click Implement selected files it wouldn't implement it but it would keep it as an option that way I could implement it later but I don't even want it to do that right see you later all right let's go ahead and implement this thing and uh oh
man co-pilot imple let me tell you first and foremost here this this repo is literally copying the contents of one file into another file now how hard would that have been to do on my local machine and commit and pushup I would have had it done by now but but if I knew what I was doing in this interface click click go right that's a little bit different um so this is a easy task on purpose right we're going to see how this goes so uncommitted uh changes here files changed okay looks like it did this this is the file hey just wanted to jump in real quick so I actually recorded a followup attempting to do this again now the end result of this first test before I show you the second test was that it created this unknown Target file as a file without an extension I ended up creating the pr
changing the file name and merging it so at the time I counted this one as a partial failure but you'll see in a second uh how it works now that it was updated so I made a second issue now this time it's slightly different I just have Coop pilot. MD this isn't a real type of file but I thought it was a good opportunity to to give it a second chance on this one because I do think it can accomplish this um this there was the the out of space bug as well as the unknown Target bug so we're going to see if this has been completed here so we're going to click open in workspace get blasted and I'm going to bump up the interface here make it easy to see you can see it's analyzing the issue no more out of space bug Okay cool so it says no the copilot instructions MD file is not created okay the copilot instructions MD file exists and
contains so the current behavior it found the co-pilot instructions now what's interesting about this is I specifically didn't say anything about co-pilot instructions but it was able to understand that that's what it was supposed to do now I did ask it for specifically copilot MD which I understand is is atypical so this is the current behavior yes but the proposed solution is the co-pilot DMD is now created from the cursor rules file I don't want it to do this one I didn't ask it to rename anything so we'll delete this one the content of copilot DMD matches the guidelines for cursor rules that all sounds reasonable to me so let's generate this plan let's see if it actually creates the file and uh let's see if this this uh issue is fixed okay so oddly enough there's two planned things which is uh it's going to okay let's
see so we don't want to do no I I asked it specifically not to do this and it still came up with this step so I'm going to remove this step that's uh an annoyance but again it's AI you're going to want to baby this thing anyways I'm going to remove any sort of updating to the readme I don't need that all I did was ask it to copy the cursor rules file uh the contents of it add a comment at the top indicating that the file is generated I guess so I I'm asking okay we'll click Implement I'm concerned that this is just going to um add a comment to the top of this file there's nothing in here explicitly that states that it should copy the contents of cop or of cursor rules but we'll see because that's given what the plan is overall okay cool so it looks like one
this file is generated from a cursor rules you an expert no more unknown Target it did create this file correctly that's one thing that it did and the cursor rules I guess it's also adding a comment to the top of this I guess I'm going to click create PLL request on this anyways from robot do not merge okay so what can I say it fixed the unknown Target issue it fixed the uh out of space issue and if I open this in GitHub here we head to our PR it did in fact change two files it added that this file is used to generate I didn't want really want to do this it's okay I'm not merging this um also added this one cool I didn't need the comment at the top but hey it's fine so the good news is it actually fixed the problems
it was having before with creating a file so I would give this one a success Now it worked was it as smooth as could be I mean this is still an early product okay that's one down okay close the issue now this next one very well may be a little bit harder of a task remove B from the about page now Ben vinegar huge Mentor for the syntax team he's been at Sentry for a long time he has decided to move on from Sentry after being there for so long either way we love Ben and uh but he's not on the team anymore I got to remove him from the website so I do say it's too soon but we're going to have a robot unceremoniously remove you from the website Ben so open in workspace let's see what happens here okay remove Ben from about page So the instructions I feel like are funny like I included some funny stuff in here that hopefully it ignores but then I added
test 2 - remove Ben from about page
some actual information like Ben vinegar so his full name is on the forward slab and is no longer on the team and should be removed so once again we're getting these air generating plans no space left on device which is interesting that this error keeps popping up so the current behavior no Ben vinegar is listed on slab page that's actually not true so I can edit this and I can say Ben vinegar is listed on the about page the petwood found the right route okay so this is actually really interesting because this is a spelt kit site using spelt 5 by all intent yeah spelt kit their stuff's around spelt 5 is still a little new that I wasn't sure if it would be I guess it's felt kit either way it was able to do that we have spel kit site and that theabout page would in fact be located at this
path Good Start includes a Ben vinegar in the host's object uh I'm going to confirm that that's correct because I don't know if it's a host's object or not and sure enough we pop into the code and um the object is named hosts okay seems like an odd name for that object but whatever uh Ben vinegar details and image are displayed in the team member section all good so far proposed solution yes Ben vinegar has been removed no that's not what we need to say we we just let's just delete this step entirely delete item okay it says on this page remove Ben and vinegar from the host object remove the team member section for Ben vinegar does is that a thing let's check this file the team member selection or section team member
I mean it should just be a loop oh you know what I I couldn't tell you why this wasn't done as a loop here and that these are all done individually but I'll tell you what there's a reason for it and because of that I'm not going to touch it um so this thing is correct so the proposed solution looks correct let's click generate plan let's see in an action here okay Okay cool so it's now generated us a plan remove Ben from the host object remove the team member uh Ben from the team me team member section for Benjamin interesting that it was able to pull Ben and Benjamin okay let's implement this and let's see what happens I'm interested because the last one had to create a file this one simply has to modify a file and I feel like it's going to be a little bit better at just modifying this file
now I should say folks this is in real time so jump forward if you would like to see I'm curiously uh personally curious about how long this will take and maybe it's held up or maybe that out of space issue actually means something because this honestly shouldn't take that long but again it's not a full release of this product so there's a good chance that um you know either getting hammered with people trying it out for the first time or um there's still being uh Kinks worked out let's check this out I think this is great so the first thing it did is it did find that uh Benjamin Had a photo and and this I believe because it's listed as Benjamin and we have Emo and B boy up here that these are like the photos from when When We Were Young that we have photos when you hover over uh you can see it also removed Ben Benjamin Ben vinegar all this stuff from here we should actually add Blue Sky to these and the next it should remove his section down here which is team member
Benjamin nice has removed that did not touch anything else but it did seem like it also found the CSS uh and this this has a CSS override so this is interesting that it found this this is a CSS override simply uh because his photo was too light now obviously it's it's a class of Benjamin so it's easy to find this one looks good let's create a pole request and we can say removes Ben sadly and this is done by robots now I'm I'm just being cheeky I do think that it actually adds that information you can actually attach the issue directly from here attach share link as well create poll request I got to say so far this is taking more time than it would if I was doing these by hand but that's it this one in particular was very effective now this
one doesn't need to be merged just yet so I'm going to bug Wes and I'm going to say hey Wes review this PR I'm not going to tell CJ so we're going to let this uh all of our actions run and things and we're going to take on the next issue in line here okay so you can tell by my wardrobe change here there's been a time Jump um but it did successfully do remove Bend from about page that's great this one worked the uh creating a cursor file worked now I want to toss it something that I believe is going to be kind of precarious here now I've actually solved is this issue already and I can tell you it is a weird combination of several libraries now I did add some more context FS events from uh Sentry profiling node is causing some issues now I don't think this is necessarily an issue with the Sentry package but a just a combination of several factors here
now if co-pilot could understand this issue correctly it would be able to actually check out our GitHub action see potentially why it's not working and try some things now I've added the second comment in here for context to see as like a little bit of like hey you're not going to find this on your own I know you're not going to well one because I've already tried it and it didn't it's a bit of a mysterious bug I'll say that but two if it has this information is going to use this to an its Advantage so let's click open in workspace let's see how this goes here let's see what it
does okay much faster getting started this time I wonder if it's because it's already analyzed our code base so the current playright tests do not pass ay due to profiling node causing FS events issues that is actually that is actually the problem the playright tests are configured in this Cent is in package.json the v includes in the SSR external and Es build configurations ooh the issue with FS events is mentioned in the issue comments indicating it effects this is a little bit that I didn't pick up because if we're being entirely honest I did not know that the profiling node package actually was in our SSR external which could be one of the reasons why this issue is happening so but I think we need it in there for some reason we'll see um so
now for the proposed solution it says remove Sentry profiling node from package.json updated to remove from SSR external configurations now what I'm curious about is maybe we just straight up need to remove it from here and that would just work because it says it's going to remove it from our package.json but it does not mention removing it from our codebase now again this is just a proposed solution and like a starting point and if I wanted to actually have this definitely working I can add an item saying remove uh profiling node from the actual code base but I don't I don't necessarily wanted to do that cuz I don't think that the package itself is the issue okay so yes playright tests um update to remove that from the config let's go let's go with the proposed solution so this is the proposed solution now one thing I don't
necessarily understand is the proposed solution is different from the generate plan because the proposed solution is sort of like here's how we think uh this thing could get solved and then the plan is the exact making what edits to which files so again it's attempting to remove the package.json even though I deleted that line and that's twice now that uh co-pilot workspace has been given some plan and then kind of ignored that within here so I'm going to remove this from the plan entirely and it looks like it has this exact same thing here twice so I'm going to remove that we're going to select implemented undoubtedly this is going to create or modify this file correctly I it's typically very good at these types of things so we'll see here the proposed Solutions um yeah oo this is not okay another little bug here so again early product I'm submitting these bug reports what's
interesting here is that it says there's a file change revise regenerate file EX review changes let's see for some reason it's not opening the file so no I don't want to do that okay revise no I don't want to revise the file I just want to see what this file is and I I guess open file is going to be the best way to do it there we go and it just shows us removing profiling node from our external and Es build here okay uh again I think that's a bug I'll have to um I'll have to submit that no biggie and let's go ahead from robot as test I'm I bet I'm really annoying Wes with all of these emails he's getting right now because every time we do one of these he gets an email let's actually see what happens here um because if if
if it found that it was external in the vit settings and that's why it wasn't working um then I would chalk that up to being a huge win CU I did some work by looking over the air logs now I I I would have been curious to know if I would have been able to find it all I'm going to click on this run playright test I know what the error we're looking for is here obviously it fails at some point right around here um it builds the site it goes to run the the the test actually it's installing playright browsers right now so this is the part where it normally starts to get upset here so we're going to see if this continues to make it upset and if it does hey I think this is a hard bug to solve and I intentionally gave this one a difficult challenge of looking inside of a GitHub action to uh try to figure out what was going on okay yeah so segmentation fault core dump this is the same bug we're having before so I'm going to go ahead and say close this uh fail I'm going to go ahead and close this um PR here now I don't necessarily
think this is a super failure on the co-pilot workspace um because it did kind of one it found some potential issues it did offer to remove it from my package.json now it did not offer to remove it from the files that it's referenced but we never really gave it a chance to do that specifically so who knows it honestly could have done that I'm going to put this one as a um didn't quite get it hard challenge so let's give it another challenge here now this challenge is interesting for a couple of reasons we have ADD Json ID to the guest Pages now this is part of structur data and now with structured data what you do is you add structured data via a script tag like this now Wes has included a link to the documentation for structured data he says we just need a type of profile page and then I left a comment here saying we currently don't have Json ID on any pages but we should add this
to the individual guest pages that way we have some some context individual guest pages so let's put it to the test let's see what it can do here open in workspace let's go and again if you're working with any new tools like this things that aren't publicly available you do have to be bug tolerant uh there will be bugs there's always bugs so if you see any hiccups or bumps along the way I'm sure there are are ironing them out in fact I've been on the Discord Channel I know the team is uh working really hard on this thing no Json ID profile page is not added to individual guest Pages no it is not um the file and this is the name slug does not contain any structured data the file server. TS does not include any structured data it shouldn't so we'll see what it does with that it should not yes the file does not include any Json ID but this is a server based file
should not have that information no other files related to the guest Pages contain Json accurate okay yes the Json ID is now an individual guest pages okay so the Nam slug page now includes an application LD plus Json tag with Json ID structured data from the profile page the Json ID structure data includes the guest name description and Ur that would be great thank you so that all sounds good now what I'm curious about still cuz it does seem if I modify these it does not seem to care in the generated plan and I wonder if that is how it's supposed to work or if I'm doing something wrong here okay let's run this plan let's see what happens let's generate this plan add script Beauty let's Implement let's go
now there is a bit of a hiccup in this that I'm interested in to see if this picks up on we're in a spelt file SP files are a single file component and a typical script tag in a spelt file is just your spelt script um that's for component stuff right but if you want a script to load on the page as if it were just straight up JavaScript you would use the spelt meta tag to add a meta tag that is a R tag or at least I think so we'll see what this outputs and then I'll confirm that either way what you don't have necessarily is two script
blocks now this is interesting this is extremely interesting uh I don't know what any of this stuff is what oh boy I'm going to have to ask this to revise this yeah I do wonder if this was a react file would it be having these issues because one's fault is is less widely used but that's hilarious all right classic AI issues I'm going to click straight up regenerate file it it got lost it got lost along the way and I you know since the stuff is non-deterministic I think giving a second try is appropriate there we go I said spelt meta what I meant was spelled head which is a way you can add a script tag to the Head yeah so let's check out what this is doing now what's
interesting here besides the fact that it actually did it correctly uh it did do it correctly I should say and let me pop open cursor for this page now this is the same file and you'll not Noti that it just removed everything from the current file please insert into the existing file and once again it did fail to do that so I'm I'm this close to to saying that this one is a failure so what I should do is about a couple weeks from now maybe try to redo these same PRS or very similar ones to see if it's able to um handle these changes now in an odd turn of events it is now loading Google analytics why are you doing
that I don't think we have anything about Google analytics in here and it added more metadata I don't want it to add more metadata I would just like it to add the this app and furthermore it got rid of all of the stuff that we had here added a main tag what I don't understand is why it's not modifying the current file why it's just deciding to create it all from scratch co-pilot uh good try um good good good try uh little a little bit of a failure now if it didn't succeed at that one I don't have a ton of Hope for this one which is honestly very complex so we want to add a cookie warning Banner to YouTube and beds because the YouTube and bed actually gives you a Google tracking cookie we didn't know that so what we want to do is we want to show you a dialogue that
says hey uh do you care if we are using cookies like a cookie warning Banner I'm going to modify this after the fact I just want to see what it can do and I want that to cookie loading Banner to either show the YouTube embed if they say yes or the YouTube no cookie.com so Wes even spelled it incorrectly here which interesting we'll see if it works um because I spelled it somewhat correctly right here we'll just see what this does this is a heavy task we're going to see what workspace does okay so so far in my experience using this tool I found that the current behavior and the proposed Solutions are often very good I've also found that the generated plans they don't necessarily always pay attention to what's over here but they are Ty typically pretty good so the end result would have a cookie warning displayed on YouTube videos um cookie consent to layout I can tell you right now this is not right because we don't
have any YouTube players on layout dosf felt um so this that's not a correct part of the solution because that's just where we're loading the web component script updated listen links to include handling logic consent this also does not exist in listen links which means I'm going to delete this it did however find yeah man it's it's crazy because it just sees the word YouTube in like an import and it's AI right there's no context it sees the word YouTube it's like all there must be a YouTube in bed here but we specifically say YouTube in bed and although we are using this is actually a bit of the reason why I'm a little sympathetic here is that we use a web component for this where typically you could just use the Straight Up YouTube in bed and maybe it's looking for that iframe so the idea is to add a a cookie warning component to our layout file no I already removed this from the proposed solution so once again it's adding things that I've removed from the
proposed solution now create a cookie warning component add yes okay that all sounds good and then what is this page right here we'll see page. spelt also not part of it we're going to see what it actually creates for our cookie warning I could modify this I could update the plan as if it were to ask you to do this um that said given where we're at that it's unable to find the embed itself uh you know okay so this wants you to put it in a writable again it's not using our code style it's not using spelt 5 like we asked it to it's not knowing that our code base is in spelt 5 which was just released but still function accept deny on Mount here's a cookie warning you accept or deny it from there it will either show the current URL as a no cookie or a YouTube url now honestly I
don't know if this code will work I mean I think functionally this code will work as a spelt component but I don't know enough about YouTube no cookie to know that you just do an iframe with this URL in here I think that might work so I'm going to say that even though this failed to complete the task ask here I think this was a tough task one we were asking it to only show or hide one or the other it actually created a component that most likely will do that I again I don't I don't necessarily know two it failed though because it didn't identify where we were actually loading the YouTube video where in fact there is I believe only one spot in this code base where we're loading the YouTube video and it should have been able to find it it found where we're loading the web component component but it did not find this did not find this which is yeah it's understandable it's not the typical way you do um I could have give
it some more information and and see if that were to actually fix it maybe even um loads YouTube videos okay is the current behavior maybe even encapsulate this in component here so that way it knows to look for a component potentially I don't even know um swap with new cookie warning video okay let's see modified the plan I'm going to see if it actually even proposes some of those things cuz like I mentioned before I have noticed that it kind of ignoring these things so once again it's saying that it will do the cookie warning thing and then it will import the cookie warning on layout on this page which it has not identified the page where the YouTube video is so I'm going to say this one fails as well so what are the lessons that we learned from the current version of co-pilot workpace
co-pilot workspace is a tool that is still being worked on actively it's still brand new and in fact I'm going to give feedback I'm going to go in the Discord I'll share this video with the team and I know they're going to be able to do a lot with it so where did it succeed and where did it fail it succeeded in simple tasks of copying and moving files it did that fine it also succeeded in a simple task where it was very obvious go to the about page and remove Ben worked just fine there three it also did what I asked it to do in the issue where we had our playright test this was an kind of an impossible issue for it to solve but what it could have done and by actually by all accounts I think it did actually it what it did would have mostly solved this where it was going to remove the senty profiling node and as as long as it actually pulled it from the file it was being used then that would be a success as well but this was a tough one it also mostly succeeded in generating the
proposed plan it's only once you got from the proposed solution to the plan itself where there was a bit of a disconnect and then from the plan to the generating of the files in the cookie warning example and the Json ID example that it failed uh hard on now this Json ID one still mystifies me cuz it's not that different from remove Ben on the about page there's not that much difference between these two issues right you're going to a page You're simply modifying the file you're adding something and in this case what we're asking it to to add is is very straightforward just like this I think this one might even been a little bit more mysterious here so it's interesting I think this tool is great what I would love to do is come back a month from now and try this again and see how much better it's gotten uh because I do think this is a really really exciting future tool here and one that I think will change a lot of how we handle quick
issues uh quick bugs right it's fast to just be able to pop it open in workspaces have it uh do everything for you you click go instead of cloning pulling down and modifying yourself now I think the speed will improve I think the UI for it is great I think it just needs to get a little bit more time in the oven before people are going to start really getting a ton of value out of it so let me know what you think are you going to use co-pilot workspace is this a feature that you're looking forward to what other tests would you like to see me put this thing through the ringer and see if we can actually knock out uh some harder bugs or some bigger issues if you have issues on the syntax site that you would love to see solved by co-pilot workpace uh make an issue for it and then we can try to do it together as always this is Scott with syntax peace
Quote it with credit and a link. Quoting Syntax