AI Notes

I want to keep some scattered AI notes here...

2025-05-01 VS Code Agent Mode

VS Code Agent Mode Just Changed Everything - YouTube

Use agent mode in the chat

Use #fetch and ask it to follow instructions

Hit keep all when it does stuff

8m - .github/copilot-instructions.md for custom copilot instructions + project requirements

10m - MCP server to talk to Postgres

13m30s - edit suggestions

burkeholland.github.io

My turn

Made vscode-agent-01

Asked it to create the project; it had trouble installing Go dependencies, so I did that and told it to continue.

It wrote some stuff and I had it generate a test and that was wrong

It seems to get stuck if a command fails, like installing dependencies and fixing test errors.

But I'm still able to fix things manually and tell it to keep going

Fri 2025-05-16 Coercing Copilot

Ok, I'm trying to get Copilot to update warg for all my apps.

I tried asking it to fetch from Github but that didn't work. Tyring the githubRepo tool with a custom prompt.

https://code.visualstudio.com/updates/v1_100#_search-code-of-a-github-repository-with-the-githubrepo-tool

Ok, in agent mode, I can now run /update_warg to do this.

TODO: back up prompts!

Maybe it's my shell, but it's still having issues continuing after a command has finished. So run these manually:

go mod edit -go=1.24
go get -u ./...

hahaha hit the rate limit:

copilot-rate-limit.png

Ok, stopped at shovel. I need to check the version subcommand and color flag on earlier migrated ones. But the fact I was able to have copilot update so many of these with the prompt file is awesome!

Prompt ( /home/bbkane/.config/Code/User/prompts/update_warg.prompt.md):

---
mode: 'agent'
tools: ['githubRepo', 'codebase']
description: 'Update this repo to latest warg API'
---

Please update all files in this repo using the new warg APIs.

For reference, see #githubRepo bbkane/warg , especially the CHANGELOG.md, README.md files and the files in the examples directory.

If needed, also update the Go version in this project to go 1.24

Make sure to use `section.CommandMap(warg.VersionCommandMap()),` to add a version command and `warg.GlobalFlagMap(warg.ColorFlagMap()),` to add a `--color` flag.

Tue 2025-07-01 Project prompts

Project prompts are stored in in ./github/prompts

Create with > Chat: New Prompt file. Note: if you copy a file instead of using this, Copilot can't fnd the prompt. So always use this.

Run by clicking copilot, switching to agent, typing /filename

Example in acm:

---
mode: edit
tools: ['codebase']
---

Please embed the following YouTub playlists underneath "Courses". On desktop they should be on a grid but on mobile they should be in a list. Please respect the existing color scheme and make sure the page is mobile friendly.

```html
<iframe width="560" height="315" src="https://www.youtube.com/embed/videoseries?si=96xU2QjHec8MFk17&amp;controls=0&amp;list=PLT9WHwcLoiUHgzV4_E5RUVHJGtfNSnV6r" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe>
```