Factory AI Complete Guide: Setup, Droids, and Real-World Workflows

N

Written by Nik

TU Wien • Software Engineer • Real User

AI Development Tools • 15 min read • Updated October 30, 2025

After testing every AI coding tool available - Copilot, Cursor, Codeium, and more - I can definitively say Factory AI is different. It's not another line-completion tool. It's a platform with specialized AI agents (Droids) that handle your entire development workflow: coding, debugging, research, documentation, and production incidents.

This is the complete Factory AI guide based on real usage. You'll learn setup, how each Droid works, context management, integrations, and workflows for students, professional developers, and teams.

Get 40M Free Tokens

Start building with Factory immediately. No credit card required.

Claim Free Tokens →

Complete Guide Contents

What is Factory AI?

Factory AI is a development platform with specialized AI agents (called Droids) that handle different parts of software development. While GitHub Copilot suggests code line-by-line, Factory understands your entire project, executes commands, and maintains context across sessions.

Key difference: Factory integrates with your entire development workflow - Jira tickets, Notion docs, Slack discussions, Sentry errors, and your codebase. It uses all this context to make better decisions.

Why I Switched from Copilot

Copilot: Suggests next line based on current file.
Factory: Reads your architecture docs, understands project structure, executes tests, and makes coordinated changes across multiple files. Plus it remembers your coding style across sessions.

Meet the Specialized Droids

Each Droid is optimized for specific tasks with specialized tools and system prompts:

šŸ‘Øā€šŸ’»

Code Droid

Main engineering assistant. Handles features, refactoring, and bug fixes.

šŸ”

Knowledge Droid

Research specialist. Searches codebase, docs, and internet.

🚨

Reliability Droid

On-call specialist. Handles alerts and troubleshooting.

šŸ“‹

Product Droid

PM assistant. Manages backlog and creates specs.

šŸŽ“

Tutorial Droid

Learning assistant. Helps you master Factory.

Complete Setup Guide

Factory works through CLI, Web App, and IDE. I recommend starting with CLI as it's the most powerful.

1Install the CLI

Open your terminal and run one command:

# Install Factory CLI curl -fsSL https://app.factory.ai/cli | sh # Navigate to your project cd your-project # Start Factory droid

On first launch, authenticate through your browser. You'll get free tokens immediately.

Pro Tip: Extra Tokens

Use this promo link for 40M free tokens (vs standard amount): app.factory.ai/?promo=mPRFZ2oAuEwh1hblDSGI

2Set Up AGENTS.md (Critical)

Create an AGENTS.md file in your project root. This is how Factory understands your project:

# MyProject A web app for [brief description]. ## Build & Commands - Install: `npm install` - Dev server: `npm run dev` - Tests: `npm test` - Build: `npm run build` ## Project Structure - `/src` - Source code - `/components` - React components - `/api` - Backend endpoints - `/tests` - Test files ## Development Patterns **Code Style:** - TypeScript strict mode - Functional components only - Single responsibility principle - No `any` types **Testing:** - Test-driven development - All features need unit tests - Integration tests for API endpoints **Git Workflow:** - Feature branches from `main` - Descriptive commit messages - PR review required **Never:** - Never commit API keys - Never force-push to main - Never skip tests before commit

This file gets loaded at conversation start. Factory uses it to understand your conventions, testing approach, and project structure.

Why AGENTS.md Matters

Without this file, Factory guesses. With it, Factory knows exactly how you work. This is the difference between mediocre and amazing AI assistance.

3First Session: Understand Your Codebase

Start by asking Factory to analyze your project:

> Explain this codebase to me

Factory will read your code and respond with insights about:

Spec Mode: Plan Before Building

Factory's killer feature is Specification Mode. Press Shift-Tab to cycle through modes:

How Spec Mode Works

Switch to Spec mode and describe what you want:

> Add a feature for users to export their data as JSON. > Include error handling and rate limiting. > Follow existing API patterns.

Factory generates a complete specification:

Specs Are Saved

Approved specs save to `.factory/docs/` as markdown. This creates documentation of your decisions that future Droids (and team members) can reference.

Three Autonomy Levels

After approving a spec, choose how much control to give Factory:

  1. Low (Manual approval): Approve every file edit
  2. Medium (Safe commands): Reversible changes automatic, risky ones need approval
  3. High (Full autonomy): Factory handles everything

Start with Low Autonomy

Build trust with the tool before giving full control. Use version control (git) religiously so you can always rollback. I use Medium autonomy for most tasks.

Context Management: How Factory Sees Your Project

Factory's intelligence comes from layered context management:

Layer 1: AGENTS.md

Repository-level conventions loaded at every session start. You can have multiple:

Layer 2: Dynamic Code Context

When you ask a question, Factory automatically:

You can also @mention specific files, but letting Factory figure it out usually works better.

Layer 3: Tool Integrations

Connect Factory to where your context lives:

šŸ“Š

Observability

Sentry, Datadog errors

šŸ“

Documentation

Notion, Google Docs

šŸŽ«

Project Management

Jira, Linear

šŸ’¬

Communication

Slack threads

Layer 4: Memory

Factory maintains two types of persistent memory:

User Memory (Private to you):

Organization Memory (Shared):

Memory in Action

Say "Remember that our staging is at staging.company.com" once. Factory never forgets. Your teammate adds a convention? Every Droid on your team follows it automatically.

Connecting Your Dev Tools

Sign in to Factory web app and connect integrations:

Essential: Source Control

Connect GitHub or GitLab (cloud or self-hosted). Required for Droids to read and write code.

High Impact Integrations

Notion/Google Docs: Architecture decisions, design docs, onboarding guides

Jira/Linear: Ticket descriptions, acceptance criteria, dependencies

Slack: Technical discussions, decisions made in channels

Sentry/Datadog: Error traces, performance metrics, incident history

Example: Integrated Workflow

You: "Implement the notification system from this Notion doc: [link]"

Factory: Fetches Notion doc → Searches existing patterns → Recalls team conventions → Implements according to all context

Advanced Features

Droid Exec: Headless Automation

Run Factory non-interactively for CI/CD, cron jobs, or pre-commit hooks:

droid exec --auto high "run tests, commit changes, push to main"

Factory executes everything and exits. Perfect for automation.

Custom Droids

Create specialized sub-agents in `.factory/droids/` as markdown files:

--- name: Security Auditor model: claude-sonnet-3.5 tools: [read, search] --- You are a security specialist. Focus only on security concerns: - Check for SQL injection risks - Verify authentication - Review input validation - Identify exposed secrets

Custom Slash Commands

Automate routine actions. Define in `.factory/commands/`:

/run-tests - Triggers test suite script /deploy-staging - Deploys to staging environment /generate-docs - Creates API documentation

Bring Your Own Model Key

Use Factory's orchestration with your own API key. Access via /model command.

Real-World Workflows

Here's how different users leverage Factory's capabilities:

For Students: Learning + Building

Debugging Assignments:

> My sorting algorithm works on small inputs but fails on large ones. > Here's my code: [paste code] > Explain the bug and the underlying concept.

Factory analyzes, identifies the issue (likely O(n²) complexity), and teaches you why it breaks on large datasets.

Course Projects That Impress:

> I want to build a study group matching app for my project. > Users input courses and availability. > System suggests optimal groups. > Create a complete spec with architecture.

Factory generates tech stack, database schema, API design, and implementation roadmap. Most students submit basic apps - you can submit production-quality tools.

Learning New Frameworks:

> I'm learning React. Explain component lifecycle, > then help me build a todo app with useState and useEffect.

Factory teaches concepts while building practical examples you can learn from.

Academic Integrity Note

Use Factory to understand concepts, not skip learning. Most universities allow AI assistance similar to Stack Overflow or tutoring. Always check your school's policy and disclose AI usage if required.

For Professional Developers: Features + Debugging

Feature Development with Spec Mode:

> Add user authentication with JWT tokens. > Include refresh tokens, rate limiting, and password reset. > Follow our existing API patterns in /api/auth/.

Factory reads your existing auth code, generates a complete spec matching your patterns, then implements with tests.

Production Debugging (Reliability Droid):

> Sentry shows error spike: "Database connection timeout" > at 2am. Analyze logs and root cause.

Reliability Droid fetches Sentry traces, analyzes logs, identifies connection pool exhaustion, and suggests fixes with monitoring.

Refactoring Legacy Code:

> This /services/user.js file is 800 lines. > Refactor into smaller modules following our patterns. > Maintain all existing behavior.

Factory analyzes dependencies, proposes module structure, refactors with tests to ensure nothing breaks.

For Teams: Collaboration + Context

Implementing from Tickets:

> Implement the notification system from Linear ticket LIN-234. > Use the architecture from this Notion doc: [link]

Factory fetches ticket details, reads Notion architecture doc, checks team conventions in Org Memory, and implements following all context.

Onboarding New Team Members:

> Explain how our payment processing works. > Where is Stripe integrated? How do we handle failures?

Knowledge Droid searches codebase, reads documentation, and provides comprehensive overview with file references.

Incident Response:

> PagerDuty alert: API response time spiked to 5s. > Investigate and fix. Production incident.

Reliability Droid analyzes metrics, identifies slow database query, suggests index addition, documents resolution in incident report.

Pricing & Tokens

Factory uses token-based pricing, not subscriptions:

Token Usage

Simple queries use ~1,000 tokens. Complex multi-file refactoring might use 50,000. Free tier covers weeks of daily student usage.

Factory AI vs Alternatives: Complete Comparison

Based on 3 months testing every major AI coding tool:

Feature Factory AI GitHub Copilot Cursor Codeium
Full codebase context āœ“ Deep Limited (current file) āœ“ Good āœ“ Basic
Specialized agents āœ“ 5 Droids āœ— āœ— āœ—
Command execution āœ“ Full āœ— āœ“ āœ—
Tool integrations āœ“ Jira, Notion, Slack, Sentry, Datadog āœ— Limited āœ—
Persistent memory āœ“ User + Org āœ— āœ— āœ—
Spec Mode (planning) āœ“ āœ— āœ— āœ—
Multi-file refactoring āœ“ Coordinated Manual āœ“ Limited
Production debugging āœ“ Reliability Droid āœ— āœ— āœ—
AGENTS.md support āœ“ Native āœ— āœ— āœ—
CLI interface āœ“ Full-featured āœ— āœ“ Basic
Web interface āœ“ āœ— āœ— āœ“
Free tier āœ“ Generous tokens $10/mo (free for students) āœ“ Limited āœ“ Forever free
Best use case Full development lifecycle Autocomplete while typing Interactive code editing Free autocomplete

When to Use Each Tool

Use Factory AI when:

Use Copilot when:

Use Cursor when:

Use Codeium when:

Ready to Build Smarter?

Get started with 40M free tokens. No credit card required.

Start Building →

Common Questions

Is Factory free for students?

Yes, you get free tokens to start (use promo link for 40M). This covers weeks of regular usage. Additional tokens are affordable pay-as-you-go.

Does it work offline?

No, Factory requires internet as it uses cloud-based AI models.

Which languages are supported?

All major languages: Python, JavaScript, TypeScript, Java, C++, Go, Rust, Ruby, PHP, and more.

Can I use this for homework?

Check your school's policy. Use Factory to learn and understand, not to skip learning. Most universities allow AI assistance similar to Stack Overflow or tutoring.

How is my code used?

Factory uses your code only to provide assistance. It's not used for training models. See privacy policy.

What if I'm not happy with generated code?

Hit Escape to reject and provide feedback. Factory learns from corrections. With proper AGENTS.md setup and clear prompts, accuracy is very high.


Video Tutorial

Complete Factory AI walkthrough by Dan Mac • Watch on YouTube →

Official Resources


Key Takeaways

After months of real-world usage, here's what makes Factory AI worth using:

What Factory does best:

Success formula:

  1. Create detailed AGENTS.md (this is critical)
  2. Connect your integrations (Jira, Notion, Slack, etc.)
  3. Start with low autonomy, build trust
  4. Use Spec Mode for complex features
  5. Let Factory handle boilerplate while you focus on architecture

Reality check: Factory won't magically make you a better developer. But it will handle repetitive tasks, help you understand unfamiliar codebases faster, and catch issues before they hit production. The developers who succeed with Factory use it to amplify their skills, not replace them.

Start with the free tokens, experiment with different Droids, and integrate with your workflow. The learning curve is real, but once you understand how to manage context effectively, Factory becomes indispensable.

← All Articles | Join Telegram Community

Questions? DM me on Telegram: @ai4studentss