Each section can be done independently if you prefer to spread it out.
Using Factory App? Most of this guide applies to both CLI and Factory App. Where the experience differs, we’ve noted the App-specific approach.
Level 1: Essential Setup
These foundational items give you the biggest immediate impact.1
Install the Factory IDE Plugin
The IDE plugin provides real-time context—open files, errors, selections—so Droid sees what you see.VSCode/Cursor:
- Open Extensions (
Cmd+Shift+X) - Search “Factory”
- Install and reload
droid and check for “IDE connected” in the status bar.2
Create your AGENTS.md
Create a basic Start minimal—you’ll expand this as you work. See the AGENTS.md guide for more examples.
AGENTS.md at your repository root:3
Configure your default model
Set your preferred model in settings:CLI:Factory App: Use the model selector dropdown in the chat interface.Recommendation: Start with Claude Opus 4.5 (default) for complex work, switch to Haiku 4.5 or GPT-5.1-Codex for routine tasks.
Checkpoint: You should now have IDE integration, basic project context, and your preferred model configured.
Level 2: Memory & Context
Build persistent memory so Droid remembers your preferences across sessions.1
Create a memories file
Create Update this file whenever you find yourself repeating instructions to Droid.
~/.factory/memories.md for personal preferences:2
Reference memories in AGENTS.md
Add to your
AGENTS.md:3
Create project-specific memories (optional)
For team projects, create
.factory/memories.md:Checkpoint: Droid now has access to your preferences and project history without you repeating them.
Level 3: Rules & Conventions
Organize your coding standards so Droid follows them consistently.1
Create a rules directory
Create
.factory/rules/ in your project:2
Add TypeScript rules
Create
.factory/rules/typescript.md:3
Add testing rules
Create
.factory/rules/testing.md:4
Reference rules in AGENTS.md
Update your
AGENTS.md:Checkpoint: Your coding standards are now documented and Droid will follow them consistently.
Level 4: Skills & Automation
Add reusable skills and automation hooks.Three ways to automate:
- Skills — Droid invokes them based on task context
- Hooks — Run automatically on specific events
- Custom Slash Commands — You invoke with
/command-name
1
Create a prompt refiner skill
Create
~/.factory/skills/prompt-refiner/SKILL.md:2
Add an auto-formatting hook
Run This automatically formats files after Droid edits them.
/hooks and add a PostToolUse hook for automatic formatting:3
Add a test-on-edit hook (optional)
Run related tests after edits:
Checkpoint: You now have reusable skills and automatic formatting/testing.
Level 5: Token Optimization
Fine-tune for cost efficiency without sacrificing quality.1
Enable Spec Mode for complex work
Use
Shift+Tab or /spec before starting features that touch multiple files. This prevents expensive false starts.2
Configure model switching
Set up a spec mode model for planning:Use Opus 4.5 for planning, then Sonnet or Codex for implementation.
3
Run the readiness report
Check your project’s AI-readiness:CLI:Factory App: View your readiness score in the Agent Readiness Dashboard.Address high-impact items first—linting, type checking, and fast tests dramatically reduce token waste.
Quick Reference: File Locations
| Purpose | Personal | Project |
|---|---|---|
| Skills | ~/.factory/skills/<name>/SKILL.md | .factory/skills/<name>/SKILL.md |
| Memory | ~/.factory/memories.md | .factory/memories.md |
| Rules | ~/.factory/rules/*.md | .factory/rules/*.md |
| Settings | ~/.factory/settings.json | .factory/settings.json |
| Hooks | In settings.json | In settings.json |
| Agent instructions | ~/.factory/AGENTS.md | ./AGENTS.md |
| Custom droids | ~/.factory/droids/<name>.md | .factory/droids/<name>.md |
Verification Checklist
Run through this checklist to verify your setup:- IDE plugin shows “connected” when running Droid
-
AGENTS.mdexists with build/test commands - Memories file created with your preferences
- Rules directory with at least one rules file
- At least one custom skill created
- Auto-formatting hook configured
- Readiness report shows Level 2 or higher
