Permissions
An agent can read files, change them and run commands. Some of these actions are safe, and some can do harm. A harness does not let the model decide which is which. It has a list of permission rules. Each rule names a tool, sometimes the start of a path, and an effect: allow, ask or deny. The first rule that matches a call decides. If no rule matches, the harness asks a person.
About this lesson
Words to know
- harness
- The program around a model that makes the model an agent: it runs the tools, keeps the context, requests permission and sets the limits.
- permission rule
- A rule of a harness that says if a tool call runs at once, waits for a person, or does not run.
- tool call
- A model's request that your program run a function for it, with a name and arguments.
Why it matters
Coding agents have this list as a settings file. The order rule differs between products: in some, a rule that denies always wins. When an agent does something that you did not expect, read the rules first.
With a year
How it works, a worked example, the exercise with its tests, three hints and the explained solution are in the app, with a year of Algo150 for $29 or ₾49. The first chapter, Model foundations, is free for everyone: start with Vector dot product.