Skip to content

Instantly share code, notes, and snippets.

@erdembayar
erdembayar / post.md
Created December 31, 2025 04:46 — forked from burkeholland/post.md
Prompt Files vs Custom Instructions vs Custom Agents
layout post
title We need practical AI workflows
date 2025-11-17 08:40:00 +0000
categories posts
permalink /posts/promptfiles-vs-instructions-vs-agents/

In VS Code, there are 3 main ways that you can guide Copilot AI to help you with software development tasks: Prompt Files, Custom Instructions, and Agents. Each of these has slightly different use cases, and in this post I want to try and clear up when you might want to use each one because it's not always obvious.

namespace MemberAccessors
{
using System.Collections.Concurrent;
using System.Linq.Expressions;
using System.Reflection;
#nullable enable
/// <summary>
/// A helper class for accessing fields and properties of an object in a performant way.
/// </summary>
public class MemberAccessor<T>
{
"version": 1,
"parameters": "",
"projects": [
{
"path" : "src/lib/MyProjectA.csproj",
"frameworks": [
{
"framework": "netcoreapp3.1",
"topLevelPackages": [
{
"format": 1,
"restore": {
"C:\\Users\\test\\Downloads\\MainApplication.Xplat\\MachineReadable\\MyProjectA\\MyProjectA.csproj": {},
"C:\\Users\\test\\Downloads\\MainApplication.Xplat\\MachineReadable\\MyProjectB\\MyProjectB.csproj": {}
},
"projects": {
"C:\\Users\\test\\Downloads\\MainApplication.Xplat\\MachineReadable\\MyProjectA\\MyProjectA.csproj": {
"version": "1.0.0",
"restore": {
{
"http-proxy": {
"current": "1.16.2",
"wanted": "1.18.1",
"latest": "1.18.1",
"location": "node_modules\\http-proxy"
},
"lodash": {
"current": "4.2.0",
"wanted": "4.17.21",
{
"dependencies": {
"http-proxy": {
"version": "1.16.2",
"from": "http-proxy@1.16.2",
"resolved": "https://registry.npmjs.org/http-proxy/-/http-proxy-1.16.2.tgz",
"dependencies": {
"eventemitter3": {
"version": "1.2.0",
"from": "eventemitter3@1.x.x",
{
"version": 1,
"dependencies": {
".NETStandard,Version=v2.0": {
"NETStandard.Library": {
"type": "Direct",
"requested": "[2.0.3, )",
"resolved": "2.0.3",
"contentHash": "st47PosZSHrjECdjeIzZQbzivYBJFv6P2nv4cj2ypdI204DO+vZ7l5raGMiX4eXMJ53RfOIg+/s4DHVZ54Nu2A==",
"dependencies": {
SourceMapper.exe generate --configfile "C:\NuGetProj\NuGet.Client\NuGet.Config" -dr -dp
================================================ Package Source Map Generator ===============================================
This app creates nugetPackageSourceMapping.config section for Package Source Mapping and you can copy into your nuget.config file, for more info check https://devblogs.microsoft.com/nuget/introducing-package-source-mapping/
Nuget file successfully loaded: C:\NuGetProj\NuGet.Client\NuGet.Config
Global package folder path: C:\Users\eryondon\Desktop\GlobalNuGet4\
Detect package sources from package meta data:
Total source count: 7, Unique packages 354, PackageVersion count: 582
Source : https://dotnetfeed.blob.core.windows.net/dotnet-core/index.json, Unique packages 254, PackageVersion count: 254
>> SourceMapper.exe generate --configfile "C:\NuGetProj\NuGet.Clean\NuGet.Config" -dr
================================================ Package Source Map Generator ===============================================
This app creates nugetPackageSourceMapping.config section for Package Source Mapping and you can copy into your nuget.config file, for more info check https://devblogs.microsoft.com/nuget/introducing-package-source-mapping/
Nuget file successfully loaded: C:\NuGetProj\NuGet.Clean\NuGet.Config
Global package folder path: C:\Users\eryondon\Desktop\GlobalNuGet5\
Detect package sources from package meta data:
Total source count: 7, Unique packages 352, PackageVersion count: 580
Source : https://dotnetfeed.blob.core.windows.net/dotnet-core/index.json, Unique packages 73, PackageVersion count: 73
<packageSourceMapping>
<clear />
<packageSource key = "dotnet-core">
<package pattern="microsoft.*" />
<package pattern="netstandard.library" />
<package pattern="newtonsoft.json" />
<package pattern="runtime.*" />
<package pattern="system.*" />
</packageSource>
<packageSource key = "vside_vs-impl">