My App
Advance features

Forking in Rofy

Learn how chat forking works in Rofy and how it helps manage long development sessions and AI context limits.

Forking in Rofy

Chat forking is Rofy’s intelligent solution to context limit challenges. It allows seamless project continuation in a fresh chat while preserving all essential context when your conversation approaches the 200,000 token limit.


How Forking Manages Memory Context

The Core Problem

All AI agents have limited token context windows (similar to limited memory). Complex development sessions consume this through:

  • Detailed code discussions
  • Multiple iterations and refinements
  • Extensive debugging sessions
  • Feature additions and modifications

Intelligent Context Preservation Strategy

What Gets Preserved

When a chat is forked, Rofy intelligently keeps the most important information:

  • Project goals and requirements
  • Architectural decisions and reasoning
  • Current codebase and file structure
  • Key implementation details
  • Recent changes and their context
  • Outstanding tasks and planned features
  • Important constraints and considerations

What Gets Compressed or Removed

To optimize the context window, Rofy compresses or removes less important data:

  • Exact conversation history (replaced with an intelligent summary)
  • Detailed debugging logs (unless currently relevant)
  • Exploratory discussions that didn’t impact the final code
  • Redundant or superseded information

Triggers for Forking

Automatic Forking Scenarios

Rofy provides signals when a fork becomes necessary:

  • Context Limit Warning – The system displays warnings as you approach the token limit
  • Performance Degradation – Slower response times may indicate context strain

Forking becomes necessary near the 200,000 token limit.
Rofy provides built-in warnings and a seamless transition to continue your work in a new chat.


Manual Forking Options (Strategic)

You can also fork chats manually for better organization and workflow.

Common scenarios include:

  • Major Transitions – Moving between major features or development phases
  • Experimentation – Trying different approaches while preserving the main thread
  • Organization – Keeping different development aspects separate

On this page