Skip to content

Doc(Clarification): Document File Truncation Limits When Sending Content to LLM  #1434

@dariuszkowalski-com

Description

@dariuszkowalski-com

After testing a prompt like:

<task>create xxx based on rules from @[PROJECT_STANDARDS.md]</task>

I noticed that PROJECT_STANDARDS.md (2696 lines) was truncated to 2000 lines when sent to anthropic/claude-sonnet-4-20250514:

<file_content path="/mnt/...md" start_line="1" end_line="2000" total_lines="2696" ... >

Questions

  • Is this 2000‑line cutoff hardcoded in Forge, or is it a model limitation (Claude‑Sonnet‑4)?
  • If this is expected behavior, could it be documented?

Why this matters

  • Users may include large files (e.g. via repomix or similar tools).
  • Silent truncation means the LLM won’t see the full context, leading to incorrect or incomplete results.
  • Clear documentation would help users understand limitations and plan around them.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions