Agent rules: what AI agents get in a project
A workspace and its projects can give AI agents like Claude shared rules: how tickets are written, the Definition of Done, who is responsible for what, how customer data is handled. Every agent that works in the project through MCP gets the same, current rules, instead of each agent keeping its own notes.
Knowledge about the code (build, architecture, code style) stays in your repository; the rules in IT4S are about the project, the process and the customer. On top of the rules, agents get the instructions of the role and persona they act as: see Agent personas and roles.
Where the rules are
Rules have three levels. An agent gets them merged, from general to specific; on a conflict the more specific level wins (the project).
| Level | Where | Who edits |
|---|---|---|
| Workspace | Administration › Settings › AI, card Workspace rules for AI agents | workspace admins |
| Project group | Administration › Project Groups, open a group | workspace admins |
| Project | the project page, tab AI Agents | project admins, and members the project names or who have the permission Edit agent context |
The tab AI Agents
- Agent context active (default on): off means agents get nothing for this project.
- Visible to members (default on). Hiding is no protection: the agents of members still get the rules and can show them. Never put passwords, keys or other secrets into rules.
- Also edit: members who may edit the rules besides the project admins.
- Project rules, then the inherited group and workspace rules, each with:
- Edit: Markdown, with a bar showing about how many tokens they take (at most about 4,000 per level);
- Confirm: the rules are still right; rules not confirmed for the review period (default 90 days) are marked Review due;
- Versions: every save is a version with author and time, with a comparison and Restore.
- What an agent gets: exactly the block an agent receives, also as a chosen role or persona.
Saving refuses secrets (API keys and tokens of the common services, private keys, lines like password = …) with the line number, and rules that are too long.
Take over what agents know: drafts
Agents can write what they already know (their memory, CLAUDE.md, AGENTS.md, skill files, role prompts) into a project. Agents never publish: they create a draft, and a person reviews and publishes it. An agent that was misled by something it read can't change what other agents get.
- Ask your agent, for example "Write your ruleset into project WEB". It sorts what it knows into rules, role and persona instructions, skills and facts, and leaves out code knowledge and personal preferences.
- Or import files: CLAUDE.md, AGENTS.md and other Markdown files become the rules proposal; SKILL.md files become skills.
- The draft shows each item with where it comes from, what changes against the published version, and hints such as Secret, Too long (can't be accepted until edited) or Tries to grant rights. Accept, edit or drop each item, then Publish.
How agents get them
- With the first answer about a project in a session, the agent gets the rules appended once; changed rules come again.
- Agents load them any time with the MCP tool
get_agent_context. - The rules are project data written by your admins, with source and version. They never change permissions: an agent can still only do what its person may do.
- Customers' agents get no rules.