Documentation

Everything you need to know about Substratia's memory tools and AgentForge builder.

Quick Start

What is AgentForge?

AgentForge is a visual builder for creating AI agent configuration files (CLAUDE.md and agents.md). These files define how AI agents behave, what they can do, and what they should avoid.

Your First Agent

  1. Go to the Builder page
  2. Enter your agent name and description
  3. Select capabilities from the library (e.g., "Verify Facts", "Code Review")
  4. Add rulesets to define boundaries (e.g., "Security Rules", "Loop Prevention")
  5. Preview your configuration in real-time
  6. Download or copy your .md file

Understanding Agent Files

CLAUDE.md vs agents.md

Both file types serve the same purpose: defining agent behavior. CLAUDE.md is the convention for Claude-based agents, while agents.md is a more generic format. AgentForge supports both.

File Structure

# Agent Name

## Core Principles
- Capability 1
- Capability 2

## Negative Prompt (Critical Rules)
### NEVER DO
- Rule 1
- Rule 2

## Positive Guidelines
### ALWAYS DO
- Guideline 1
- Guideline 2

Capabilities

What are Capabilities?

Capabilities define what your agent can do. They are positive instructions that guide behavior. AgentForge includes 20+ built-in capabilities across 5 categories.

Categories

  • Core:Essential behaviors like fact verification and error handling
  • Safety:Security and protection mechanisms
  • Behavior:How the agent communicates and operates
  • Tools:Integration with external tools and APIs
  • Domain:Specialized knowledge areas

Rulesets

What are Rulesets?

Rulesets are collections of rules that define boundaries. They can be positive (ALWAYS DO) or negative (NEVER DO). Negative prompts are especially important for preventing costly mistakes.

Built-in Rulesets

  • Loop Prevention:Prevents agents from getting stuck in repetitive patterns
  • Security Rules:Protects credentials, data, and system access
  • Code Safety:Ensures safe coding practices
  • Verification:Requires confirmation before destructive actions
  • Communication:Clear and accurate user communication
  • Git Safety:Safe version control practices
  • File Safety:Protection against accidental file operations
  • API Best Practices:Rate limiting and error handling
  • Autonomous Rules:Self-governance for long-running agents

Best Practices

Start Simple

Begin with 3-5 core capabilities and 2-3 essential rulesets. Add more as you understand your agent's needs.

Test Iteratively

Run your agent with the configuration, observe its behavior, and refine. Good agent configs evolve over time.

Prioritize Negative Prompts

What your agent should NOT do is often more important than what it should do. See our blog post on Mastering Negative Prompts.

Be Specific

Vague instructions lead to unpredictable behavior. "Don't break things" is worse than "NEVER delete files without explicit user confirmation".

Related Resources