Commit f0009ed

mo khan <mo@mokhan.ca>
2026-01-31 06:27:56
fix: use format defined in https://platform.claude.com/docs/en/build-with-claude/prompt-engineering/long-context-tips#essential-tips-for-long-context-prompts
1 parent 322d088
Changed files (1)
lib/elelem.rb
@@ -133,7 +133,7 @@ module Elelem
       files.each_with_index do |line, i|
         path = line.strip
         next if path.empty? || !File.file?(path)
-        puts %Q{<document index="#{i + 1}"><source>#{path}</source><content><![CDATA[#{File.read(path)}]]></content></document>}
+        puts %Q{<document index="#{i + 1}"><source>#{path}</source><document_content><![CDATA[#{File.read(path)}]]></document_content></document>}
       end
       puts "</documents>"
     end