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.

One contract. Validated by a real JSON Schema. Enforceable at runtime.

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

24
spec sections
288
tests passing
10
official examples

A real contract, not a vibe.

Most agent specs stop at "you are a helpful assistant." employee.md goes further: it answers what is this agent's job? Down to the budget, the approval policy, the data it can touch, and the SLA it owes.

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

Get started in 30 seconds

# 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

# or use the runtime SDK in Python
from runtime import Employee
agent = Employee.from_yaml(open("employee.md").read())
prompt = agent.system_prompt()