AGENTS.md file and includes it in the system prompt, providing persistent configuration and behavioral guidelines.
Overview
When you set aworkspace path on an AutonomousAgent:
- Configuration Loading: The agent reads the
AGENTS.mdfile from the workspace folder and includes it in the system prompt - Session Greeting: You can call
execute_workspace_greeting()to generate a personalized greeting based on the configuration
Example
The AGENTS.md File
Create anAGENTS.md file in your workspace folder to define your agent’s behavior. We provide a ready-to-use template with memory management, safety rules, group chat guidelines, and more.
AGENTS.md Template
Get the full AGENTS.md template you can copy and customize for your workspace.
<AgentConfiguration> tags.
How It Works
When the AutonomousAgent initializes with a workspace:- It checks if an
AGENTS.mdfile exists in the workspace directory - If found, the file content is read and appended to the system prompt
- The agent uses these instructions alongside its built-in filesystem and shell tool guidelines
- The greeting method can introduce the agent based on its configuration
Integration with Interfaces
When using Upsonic interfaces (Telegram, Slack, WhatsApp), the workspace greeting is automatically called when a user resets their session with the/reset command. The greeting response is sent to the user, providing a fresh start with a personalized introduction.
