Rules
Set workspace and personal instructions for AlphaBase.
Rules let you provide durable instructions that shape agent behavior.
The primary rules file is AGENTS.md.
Create Rules
Use /init to generate a starter AGENTS.md, or create it manually.
Recommended location:
- Project:
./AGENTS.md
Optional global location:
~/.config/alphabase/AGENTS.md
Example AGENTS.md
# Project Context
This is a TypeScript monorepo using workspace packages.
## Standards
- Prefer small, testable changes.- Add tests for behavioral fixes.- Keep public APIs backward compatible unless explicitly approved.
## Workflow
- Run lint and tests before finalizing edits.- Document user-visible changes in release notes.Layering and Precedence
AlphaBase loads instruction context from nearest to broadest scope.
- Project-local
AGENTS.mddiscovered from current directory upward - Global
~/.config/alphabase/AGENTS.md - Additional files defined in
instructionsconfig
Additional Instruction Files
You can include extra rule files in config.
{ "$schema": "https://alphabase.ai/config.json", "instructions": [ "docs/development-standards.md", "packages/*/AGENTS.md" ]}Remote instruction URLs are supported, but keep them versioned and stable.
Claude-Compatible Fallbacks
For teams migrating from Claude-style setups, AlphaBase can also discover:
CLAUDE.md~/.claude/CLAUDE.md.claude/skills/*/SKILL.md
Disable compatibility with:
export ALPHABASE_DISABLE_CLAUDE_CODE=1Best Practices
- Keep rules short, concrete, and enforceable.
- Separate universal standards from project-specific conventions.
- Avoid secrets, private keys, or credentials in rules files.
- Commit project rules so behavior is consistent across teammates.