Skip to content

Summarization offloads write conversation_history/ into the target repository #49

Description

@blue-az

When the summarization middleware triggers in deepagents, it offloads the conversation history to a conversation_history/ directory created in the target repository root.

This pollutes the workspace being documented: the directory can be swept into version control by accident, and subsequent OpenWiki update runs (or other agents working in the repo) can discover and read these history files, bloating context with stale transcript content.

Observed while running --init/--update cycles against a mid-size repository on the OpenRouter path with summarization triggering at a configured input-token cap.

Suggested fixes (either would resolve it):

  1. Redirect the offload location outside the target repository — e.g. ~/.openwiki/<repo-hash>/conversation_history/ alongside the existing credential storage, or a temp path.
  2. At minimum, add conversation_history/ to the prompt-level discovery/read exclusions so documentation runs never inspect it.

Related: I'm submitting a small opt-in hardening PR for the OpenRouter path (early-summarization token cap, subagent/fallback kill switches) — this issue is the remaining workspace-pollution item discovered during that testing.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions