Klaus Elk Books

CoPilot AI

Using CoPilot for a Python-tool

Introduction

When it comes to AI, I am a bit torn between being an impressed science and R&D-person - and a sceptical citizen and employee. However, it doesn't matter which hat you wear - understanding the technology and how to use it is important.

On this site I have described some of the basics behind LLMs - Large Lanuage Models - as well as how this relates to embedded programs - see Embedded AI.

Recently I have used Microsoft Copilot, inside Visual Studio Code, to generate a helper tool - implemented in Python. I am sharing some of this experience here.

The job

I needed to scan a number of SharePoint sites and generate a list of the files found - with as many meaningful atributes as possible. These were deducted from file names, file-extensions, file-path and the parent SharePoint site. I also needed to be able to update the list. The process ended up being as follows:

All the above may be automated into an agent, but for now it runs on demand on the desktop, and I am a bit reluctant to let any "random" user run it.

What I learned

Conclusion

At LinkedIn and other places. people often say that using AI is like having a skilled junior developer to help you.
In this case it felt like I became the project-manager, user-representative and tester, while CoPilot was the senior developer.

Black Elk

© 2026 KlausElk.com & ElkTronic.dk - LinkedIn