Skip to content

Feature Proposal: Context-Aware Intent Memory Chain #14

@mirror-in-peace

Description

@mirror-in-peace

Currently, intent-fluid treats each human intent as a relatively isolated execution block. While effective for simple tasks, this "stateless" approach limits the system's ability to handle complex, multi-step workflows where subsequent intents rely on previous context or user preferences.

I propose implementing an Intent Memory Chain to enhance the autonomous execution flow:

1. Short-term Session Memory (Context Buffer)

  • The Problem: If a user says "Search for Nvidia's stock price" followed by "Now analyze it," the second intent lacks the "Nvidia" context.
  • Proposal: Maintain a sliding window of the last $N$ intent-skill execution results to provide immediate context for the next LLM routing decision.

2. Long-term Preference Memory (RAG-based)

  • The Problem: Recurring intents (e.g., specific output formats or preferred tools) are re-processed from scratch every time.
  • Proposal: Use a lightweight vector store to persist successful execution patterns and user-specific constraints.

Why this matters:

  • Reduces Ambiguity: Better intent resolution by filling gaps with historical data.
  • Smoother "Fluid" Experience: Minimizes the need for redundant user prompts.
  • Higher Execution Confidence: Provides the agent with a "mental model" of the ongoing task.

Is this something aligned with the current roadmap? I’d be happy to discuss the implementation details or contribute a PR if there's interest in this direction.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions