{"slug": "librarian-is-truncating-files", "title": "Librarian is Truncating Files", "summary": "A user reports that Kagi's \"Librarian\" helper is truncating, paraphrasing, and summarizing source-code files the user sends to an AI assistant, causing the assistant to repeatedly claim the file is \"cut off\" or \"incomplete.\" The user says the assistant, unable to request specific lines, generated new code instead of referencing the provided source file, and is asking for a way to bypass the Librarian so the AI can process the full file. The user wants the Librarian to return the exact lines requested without truncation or false claims that nothing more exists.", "body_md": "I am working on a small code project and so far it's been awesome. The experimental research agent has been instrumental in getting a full-blown application built that handles the task I need.\n\nUnfortunately I noticed I have hit a context limit. Pasting the source code into the chat window now spits it into a txt file for the AI to read however, the AI is getting frustrated by a Kagi helper they refer to as \"Librarian\" who is not answering the AI's requests to send specific lines. The Librarian is truncating the output, worse even, paraphrasing or summarizing the lines.\n\nI have even tried opening up a new chat session and sent the chunks of the file in it's entirety inside the chat window. The final output though was not the program we were breaking apart and the AI created new code instead of referencing what was already available in the source file I provided it.\n\nThis is tragic because I am now trying to ask the AI to help me break the program down into chunks so that I can pass it specific portions of the code instead of everything each time but now it can't even help with that because no matter how I try to send the source code to the assistant it's getting truncated or paraphrased where the AI constantly is telling me \"the file is cut off\" or \"incomplete\".\n\nI expect the \"Librarian\" to assist the AI. I can understand it's trying to be helpful but in this context the AI is now hamstrung.\n\nIt would be awesome to have some sort of way to bypass the Librarian in cases like this and allow the AI to process the full source file without another agent sitting in between that may have a smaller context window than the assistant itself.\n\nDesired functionality would then be that if I send a decently sized source code file to the assistant, the Librarian provides the AI the lines it's asking for without truncating the file or saying there is nothing else when there definitely is.", "url": "https://wpnews.pro/news/librarian-is-truncating-files", "canonical_source": "https://kagifeedback.org/d/10074-librarian-is-truncating-files/14", "published_at": "2026-10-16 12:13:48+00:00", "updated_at": "2026-10-16 12:17:13.608537+00:00", "lang": "en", "topics": ["ai-agents", "ai-tools", "large-language-models"], "entities": ["Kagi", "Librarian"], "also_reported_by": [], "alternates": {"html": "https://wpnews.pro/news/librarian-is-truncating-files", "markdown": "https://wpnews.pro/news/librarian-is-truncating-files.md", "text": "https://wpnews.pro/news/librarian-is-truncating-files.txt", "jsonld": "https://wpnews.pro/news/librarian-is-truncating-files.jsonld"}}