Skip to main content
Factory is an AI-powered development agent. Entire integrates with Factory via its hook-based settings system, automatically capturing sessions and checkpoints. The Factory integration is in preview and may contain bugs.

Prerequisites

Enable

entire agent add factoryai-droid installs hooks into .factory/settings.json automatically.
The hooks track the full session lifecycle:
  1. Session Start — fires when Factory launches, creating a new Entire session.
  2. Turn Tracking — each user prompt triggers tracking via user-prompt-submit hooks.
  3. Subagent Trackingpre-tool-use and post-tool-use hooks capture Task tool invocations for nested session support.
  4. Session End — fires when Factory exits, finalizing the session.
  5. Transcript Capture — session transcript is read from Factory’s JSONL log files.
  6. Session Storage — data saved to the entire/checkpoints/v1 branch.
Nested session support. When Factory spawns sub-agents via the Task tool, Entire captures these as nested sessions through pre-tool-use and post-tool-use hooks:
Nested sessions preserve the full context of complex multi-agent workflows.Rewind during sessions. Use entire checkpoint rewind to restore to a previous checkpoint during or after a Factory session. See the checkpoint rewind command reference for full flag documentation.Resume previous sessions. Switch to a session’s branch with entire session resume BRANCH. The CLI restores the session log if needed and prints droid --session-id ID. See the session resume command reference for full flag documentation.Explain commits. Inspect any commit or checkpoint with entire checkpoint explain. See the checkpoint explain command reference for full flag documentation.
  • The integration is in preview and may have rough edges.
  • Session detection relies on hook-based process detection.
  • Transcript capture depends on Factory writing JSONL session logs.
Commit at logical points. Commit when you’ve made meaningful progress:
Check status regularly. Monitor your session with entire status.
Your session is now visible on entire.io with full context for code review.

Troubleshooting

  1. Ensure you’re in an Entire-enabled repo: entire status
  2. Verify Factory is running from within the repository
  3. Check that hooks are installed in .factory/settings.json
  4. Check Git hooks are installed: ls .git/hooks
  1. Checkpoints require file changes — ensure Factory is modifying files
  2. Check your settings in .entire/settings.json
  3. Verify the .factory/settings.json hooks are present
  1. Ensure Factory’s session storage exists at ~/.factory/sessions/<repo>/
  2. Check that JSONL transcript files are being written
  3. Look for errors in the Entire hook output