How to instruct Claude so that it can be better focused when it works to my implementations ?

Hello.

I wrote this post here because I do not see a dedicated section addressing the topic of artificial intelligence. Maybe it would be a good idea to create it. Anyway. Yesterday a Reddit user,told me :

I think I should create an Agents.md for people who haven’t been programming since they were 8 like me and may not have an understanding of security necessities.If anyone wants this let me know, I’ll create it and share it then your agent should do better.
I created the org here, with sample repos and agents.md, and a bunch of instructions and documentation. Please feel free to contribute. https://github.com/r-FreeBSD

As soon as I read it,immediately the idea came in my mind :

Maybe I didn't understand what you wanted to do. Still, I know what would actually can help me: a set of .md files to feed to Claude to guide it properly when tackling an ambitious project like nested virtualization. Each .md file could cover a key aspect to take into account before letting it start coding. You mentioned security—great, then write down some guidelines it should follow, drawing from the FreeBSD world, to make the project (more ?) secure. And so on.

Then,he replied :

You only need the agents.md. You can get it here. I set this org up for sharing and review by more senior people as well.
That way everyone gets better code and if someone wants to donate for runner time, I can setup actions for reviewing, testing and building the repos. Clone this: https://github.com/r-FreeBSD/freebsd-app-template. Put the agents.md in your code root directory. Claude should pick it up and start using it.

After having studied his repo,I ended with this conclusion :

It's written for userland and desktop applications: GUIs, themes, KWallet, polkit, packaging in the ports tree. For my work on kernel drivers and bring-up for the A733 and RK3566/68 it covers little. It says nothing about style(9), newbus/FDT, simplebus, bus_space, locking and WITNESS, kernel KPIs, or FreeBSD's upstream review workflow. The transferable parts are two: making minimal changes and distinguishing levels of evidence (e.g. "it compiles" ≠ "tested on the board"). If I want to use it, a CLAUDE.md with u/AGENTS.md plus a kernel-specific section of my own would be the way to go. For drivers, a CLAUDE.md I write myself works better.

Now,I'm not sure if our ideas match,but his idea/repo does not help me because my AI projects are different than those proposed by him. So,can agents.md or the whole idea be expanded to cover my needs ? Or even better,can someone write more and detailed instructions that I can give to Claude,so that it can be better focused about how my projects should be implemented,and on the end,taken in consideration by the developers ?
 
An AGENT.md file is the foundation for configuring the agent's general behavior, but it's certainly not enough to configure an entire project. You need to define rules for architecture, style, testing, build, publication, and so on. An LLM produces code that "works," but making it maintainable, robust, and scalable is another story. The most important thing is the tests because the AI uses them as feedback to make corrections. The writing and structure of the prompts are also important. The AGENT.md file corresponds to a person; the other files correspond to the project, that's how I see it.

AI or no AI does not change the basics of software engineering, what changes with AI is that we write less code but more directives to write code, which requires even more rigor.
 
I write this post here because I do not see a dedicated section addressing the topic of artificial intelligence
We're not running an AI support forum, we're running a FreeBSD support forum. There are plenty of forums on the internet entirely dedicated to AI. Maybe you should post there?
Maybe it would be a good idea to create it.
If you have questions or seeking support running AI (LLM/Generative/whatever) ON FreeBSD, sure. Not seeing that much though and it usually fits somewhere in the existing forums.
 
We're not running an AI support forum, we're running a FreeBSD support forum. There are plenty of forums on the internet entirely dedicated to AI. Maybe you should post there?

Nope. Because in this case I use the AI for creating FreeBSD projects / implementations. What it needs are FreeBSD developers or even senior users that/which use AI. On the AI forums there aren't users who knows FreeBSD at all. This is a perfect INTEROP case. Tell me where you would have written the question that I have placed here.
 
The biggest pain of Vibecoding it is also its the biggest selling point.

With Vibecoding you don't need to work with a team, you can do everything alone by yourself, there is not need wandering around trying to get people involved. Your only concern is to find someone that trusts your job and wants to use your software. However, if you haven't built your reputation as developer across the years finding someone willing to trust you (not you specifically) might be very challenging.
 
I wonder if the people you'd hope to gain a reputation, for being a developer, with would recognize the irony of providing a tokeninzer with useless (or counter productive) tokens while trying to claim it as useful.
 
Well, why not use AI to find some? https://share.google/aimode/5c9w1jrP2m8NGmSfz



The actual subject (FreeBSD in your case) is mostly irrelevant to your question; how can you make an LLM stay more focused on YOUR tasks?


I believe the key lies in carefully choosing the right levels of abstraction, so that my individual tasks become representative of the tasks performed by a broader community of users who share similar goals, interests, and technical challenges.

Rather than making an LLM focus exclusively on my personal needs, I would like to make it more competent within the ecosystem of problems to which my tasks belong.
 

For me, this is not a purely technical issue, nor is it simply a matter of learning how to write better prompts. The fundamental problem is my lack of insider knowledge of FreeBSD.

I am a hobbyist approaching FreeBSD from outside its core development community, doing my best to understand and follow its design principles, development practices, and architectural philosophy.

However, without the guidance of an experienced FreeBSD developer, there will always be aspects of the development process that I may misunderstand or overlook, even with the assistance of an LLM.

It is no coincidence that Google Summer of Code contributors work under the guidance of experienced mentors. Access to source code and documentation alone is not equivalent to having someone who understands the project's architecture, history, conventions, and unwritten rules.

Therefore, I believe that the right level of abstraction can indeed be identified, but I cannot reliably identify it on my own. Doing so requires precisely the kind of expertise that I am trying to acquire.

What I would ideally like is a collaboration between experienced FreeBSD developers, LLMs, and hobbyists like myself, where developers help establish the architectural principles and boundaries within which LLMs can operate effectively.

The resulting knowledge would benefit not only me, but an entire community of people interested in contributing to FreeBSD.
 
A good first step would be to get over your aversion to man pages and actually read them. AI can't give you the knowledge you need to generate prompts.

Oh yes, I would really love to be able to process and assimilate all the information contained in the man pages, but unfortunately, wanting to do something does not always mean being able to do it.

I realize that our ability to assimilate information also depends on how that information is organized, explained, and presented to us. Unfortunately, we do not have complete control over how our minds prefer to process information.

The fact that knowledge is publicly available does not necessarily mean that it is cognitively accessible to everyone.

This is another reason why I believe LLMs could play such an important role. Rather than simply providing answers or generating code, they could act as intermediaries between formal technical knowledge and the different ways in which human beings understand and assimilate information.

However, experienced developers would still be needed to ensure that this transformation of knowledge does not compromise its accuracy, meaning, or underlying architectural principles.
 
Or even better,can someone write more and detailed instructions that I can give to Claude,so that it can be better focused about how my projects should be implemented,and on the end,taken in consideration by the developers ?

It’s pretty simple really. Learn to write code. This isn’t an AI support forum.

It’ll take some time but you’ll know how to do the work yourself correctly.
 
I think dependency on an something not in your control is the best way to go (hands down), we should move `ls`, `cp`, and `mv`, ...`zfs` off our machines.

agent.md:
"you are an expert..."
What was it before that sentence? A banana?!
 
I find LLMs to be quite competent when it comes to asking FreeBSD internals questions.

You can also give it a copy of the FreeBSD source tree. In Claude code you just share that directory with the client software and ask it to do or research something in the sources.

It is not a situation where the relatively low popularity of FreeBSD seems to hurt.
 
You can also give it a copy of the FreeBSD source tree.
I understand your point is about learning but that cannot be used forever (not sustainable) because it would just perpetuate the same problem: "the source of truth is the code, not the documentation". Is not documentation still a priority (even this conversation is highlighting the problem of `source of truth of what exists and what should be`).
 
Code is certainly not the source of truth; it's the result. You can use templates and models, but that's where it ends.

ZioMario : What is your added value in this process? You don't write the code, nor the instructions for generating the code, nor the documentation, and certainly not the architecture, so what's the point?
 
I find LLMs to be quite competent when it comes to asking FreeBSD internals questions.

You can also give it a copy of the FreeBSD source tree. In Claude code you just share that directory with the client software and ask it to do or research something in the sources.

It is not a situation where the relatively low popularity of FreeBSD seems to hurt.

It does affect me, although perhaps in a different way. My problem is not simply whether an LLM can understand FreeBSD internals or produce working code. I have already created a lot of interesting and working projects.

The problem is that my projects do not seem to receive much attention from FreeBSD developers.

What I am trying to find is a way to develop projects that are better aligned with the technical expectations, architectural principles, development practices, and priorities of the FreeBSD developer community.

As an outsider, I do not always know what distinguishes a technically functional implementation from one that FreeBSD developers would consider architecturally sound, maintainable, and worth integrating into the operating system.

Giving an LLM access to the entire FreeBSD source tree certainly helps, but I am not convinced that this alone is sufficient to bridge that gap.

This is why I believe that some guidance from experienced FreeBSD developers would be extremely valuable, not necessarily to write the code, but to help establish the principles, constraints, and criteria that the LLM and I should follow when developing a project.

My ultimate goal is not simply to make things work on FreeBSD, but to produce something that can become a meaningful contribution to FreeBSD itself.
 
What I am trying to find is a way to develop projects that are better aligned with the technical expectations, architectural principles, development practices, and priorities of the FreeBSD developer community.

As an outsider, I do not always know what distinguishes a technically functional implementation from one that FreeBSD developers would consider architecturally sound, maintainable, and worth integrating into the operating system.
And you seem to be ignoring my fundamental hypotheticals. The problem of code adoption/maintenance has always existed, but why would adding another layer to that complexity be a wise choice for any project? Now the problems are: if ZioMario (as well as the model he uses, and instructions he uses) is available we can fix this problem. -i.e., using a model to read and understand the code, intension, and/or problem is not a healthy development workflow. Even if your instructions exist (they currently do exist and people/models ignore them already).
 
And you seem to be ignoring my fundamental hypotheticals. The problem of code adoption/maintenance has always existed, but why would adding another layer to that complexity be a wise choice for any project? Now the problems are: if ZioMario (as well as the model he uses, and instructions he uses) is available we can fix this problem. -i.e., using a model to read and understand the code, intension, and/or problem is not a healthy development workflow. Even if your instructions exist (they currently do exist and people/models ignore them already).

I understand your concern, and I think it raises an important point that should actually become one of the fundamental requirements of the approach I am proposing.

However, I am not suggesting that FreeBSD developers should become dependent on me, on the LLM I use, or on the instructions I provide to it in order to understand and maintain my contributions.

Quite the opposite.

The resulting code should be understandable, reviewable, and maintainable by a FreeBSD developer even if I disappear, the original LLM becomes unavailable, and all our conversations are lost.

If that requirement cannot be satisfied, then the development process has failed.

What I am trying to explore is whether the expertise of experienced FreeBSD developers can be incorporated into an AI-assisted development methodology that helps outsiders like myself produce contributions that satisfy those very requirements.

I also agree that instructions alone are insufficient. The fact that both humans and models can ignore existing guidelines means that we need mechanisms to verify compliance, document architectural decisions, and validate the resulting implementations.

My intention is not to introduce an additional dependency into FreeBSD's maintenance process, but to introduce an additional layer of guidance into the development process, before the code reaches FreeBSD developers.

There is an important distinction between using an LLM to produce a contribution and requiring an LLM to maintain that contribution.

Of course, such a methodology would have to demonstrate that it reduces, rather than increases, the workload imposed on FreeBSD developers. That is something we would need to establish experimentally, not simply assume.
 
Back
Top