File Explorer
v10.0.179+ (standing instructions in instructions.md).
Each Agent's configuration, memory, and skills are stored as files in AgentFS (Agent File System). The file explorer lets you intuitively browse and manage these files.
AgentFS File Structure Overview
Each Agent's files are stored in the ~/.desirecore/agents/<agent_id>/ directory:
<agent_id>/
+-- agent.json # Entry configuration
+-- persona.md # Persona
+-- principles.md # Principles
+-- instructions.md # Optional stable responsibilities, strategies, and delivery standards
+-- memory/ # Memory files
| +-- *.md # One file per memory
+-- skills/ # Skills directory
| +-- <skill_id>/ # One directory per skill
| +-- SKILL.md # Skill documentation
+-- tools/ # Tool registration
+-- workflows/ # Workflow definitions
+-- schedules/ # Scheduled task definitions
+-- heartbeat/ # Heartbeat configuration
+-- resources/ # Resource files
+-- assets/ # Static resources
+-- .git/ # Git version management
DesireCore's design philosophy is "everything is files." Files are more transparent than databases - you can directly view, edit, back up, and version manage them. Every change to an Agent is recorded in Git history.
Browsing Agent Files
Opening the File Explorer
- Enter the Agent details page
- Click the "Files" tab
- The file explorer displays all the Agent's files in a tree structure
File Preview
Click any file to preview its content on the right:
- Markdown files (
.md): Rendered rich text preview - JSON files (
.json): Syntax-highlighted JSON view - YAML files (
.yaml): Syntax-highlighted YAML view
File Editing
For Markdown and configuration files, you can edit directly in the preview interface. After editing and saving, a Git commit is automatically generated and recorded in version history.
Directly editing core configuration files like agent.json may affect the Agent's normal operation. If you're unsure about the meaning of a field, it's recommended to modify through the interface or conversation.
Edit Standing Instructions
Open an existing instructions.md in the file tree and edit it like other Markdown files, or select the agent's Standing Instructions in Prompt Center. If the file does not exist yet, ask the agent through conversation to save its stable responsibilities, then edit the body.
This file has no L0/L1/L2 loading tiers. Saved changes are read when the next input, explicit continuation, or restoration is accepted; the current execution turn keeps its original snapshot. Put detailed SOPs in skills and personal preferences in the user scope. See File Format Reference for full-body loading, budget, and update behavior.
Uploading and Managing Resource Files
You can upload reference documents, templates, data files, etc. to the Agent's resources/ directory for the Agent to reference during work.
Uploading Files
- Navigate to the
resources/directory in the file explorer - Click the "Upload" button
- Select local files
- Files are automatically committed after upload
Managing Files
- Rename: Right-click the file, select "Rename"
- Delete: Right-click the file, select "Delete" (recorded in version history, recoverable)
- Move: Drag and drop files to the target directory
File Type Reference
| File | Format | Description |
|---|---|---|
agent.json | JSON | Entry configuration: name, version, description, default model, environment injection, heartbeat switch, permissions, and repository settings |
persona.md | Markdown | Persona: tone, style, response strategy |
principles.md | Markdown | Principles: rules, forbidden zones, priorities |
instructions.md | Ordinary Markdown | Optional agent-specific stable responsibilities, default work strategies, and delivery standards; loaded in full when allowed |
memory/_policy.json | JSON | Memory compression and retention policy |
memory/*.md | Markdown | Memory entries: learned knowledge and preferences |
skills/*/SKILL.md | Markdown | Skill documentation: skill description and execution instructions |
tools/*.json | JSON | Tool registration: parameter definitions for callable tools |
heartbeat/HEARTBEAT.md | Markdown | Heartbeat inspection content: what the agent monitors and how it reports |
workflows/*.yaml | YAML | Visual workflow DSL |
schedules/*.json | JSON | Scheduled task definitions: trigger rule, target prompt, status, and lifecycle controls |
resources/* | Any | Reference resources: documents, templates, data files |
Use agent.json.llm for default models, agent.json.env for date/time injection and date rollover reminders, heartbeat settings or agent.json.heartbeat.enabled for the heartbeat switch, and memory/_policy.json for automatic memory compression.
Next Steps
- Skills Management - Learn how to add and manage skills for Agents
- Version Control - Learn about Git version control for Agents