Skip to main content
v1.0.0 · stable · MIT

employee.md

A single, human-readable YAML file that defines an AI agent's job: its role, scope, permissions, guardrails, economy, and compliance.

Schema validation checks contract structure. Runtime enforcement requires your executor to apply the relevant policy checks before each action. This file is not a sandbox.

If AGENTS.md tells an agent about the codebase, employee.md tells the agent about itself.

24
spec sections
CLI + SDK
Python tooling
11
official examples

For revision-specific verification, see the build and test runs.

A readable policy contract.

Use employee.md to describe an agent's expected role, budget, approval policy and data access. The file makes those expectations reviewable; an executor must connect the applicable checks to its tools and actions.

A minimal employee.md

Every field below maps to a section of the JSON Schema.

# a minimal valid employee.md
spec:
  name: "employee.md"
  version: "1.0.0"
  kind: "agent-employment"

role:
  title: "Senior Engineer"
  level: senior

mission:
  purpose: "Ship secure, well-tested code."

guardrails:
  prohibited_actions:
    - "deploy_to_production"
    - "access_pii_data"
  max_spend_per_task: 100

lifecycle:
  status: active

Install and validate

# install the CLI + runtime
pip install -e git+https://github.com/NosytLabs/employee-md.git#egg=employee-md

# validate a contract
employee-validate path/to/employee.md

In Python, load the contract and render a system prompt. Generating a prompt does not enforce permissions:

from pathlib import Path
from runtime import Employee

agent = Employee.from_yaml(Path("employee.md").read_text(encoding="utf-8"))
prompt = agent.system_prompt()