Commit graph

12422 commits

Author SHA1 Message Date
Amar Sood (tekacs)
02c092afff Try for more cache-friendly prompt ordering 2025-04-30 19:39:50 -04:00
Amar Sood (tekacs)
930880151e Try to improve InsertBlock 2025-04-30 19:39:50 -04:00
Amar Sood (tekacs)
b36aaa6f62 feat: make search/replace blocks trigger another turn in navigator mode 2025-04-30 19:39:50 -04:00
Amar Sood (tekacs)
b4141c6537 Move enhanced context to the end, to help prompt caching 2025-04-30 19:39:50 -04:00
Amar Sood (tekacs)
209518b73f Remove some unnecessary code 2025-04-30 19:39:50 -04:00
Amar Sood (tekacs)
6b901b84ba feat: enhance context summary with additional context blocks and token counts 2025-04-30 19:39:50 -04:00
Amar Sood (tekacs)
da63acde22 Fix missing argument in ViewFilesMatching 2025-04-30 19:39:50 -04:00
Amar Sood (tekacs)
9f8fde2411 Add context_before and context_after arguments to Grep tool 2025-04-30 19:39:50 -04:00
Amar Sood (tekacs)
7c0765d7f8 Offer up Grep as an alternative to ViewFilesMatching 2025-04-30 19:39:50 -04:00
Amar Sood (tekacs)
dc2f8a9cf1 Add a Grep tool 2025-04-30 19:39:50 -04:00
Amar Sood (tekacs)
b3dbb79795 Disable granular editing by default, until tools stabilize 2025-04-30 19:39:50 -04:00
Amar Sood (tekacs)
4b6254c77d Split out NavigatorLegacyPrompts, to use until granular editing tools stabilize 2025-04-30 19:39:50 -04:00
Amar Sood (tekacs)
e9c0774f1f Fix some LLM-generated mixups 2025-04-30 19:39:50 -04:00
Amar Sood (tekacs)
9b56e1f099 refactor: Improve error handling and reporting in tool executions 2025-04-30 19:39:50 -04:00
Amar Sood (tekacs)
10d0f90cb5 More guidance/reminder around UndoChange 2025-04-30 19:39:50 -04:00
Amar Sood (tekacs)
29d2963f18 Remove some spurious comments 2025-04-30 19:39:50 -04:00
Amar Sood (tekacs)
9e347034fc More tweaks to try to get the LLM to reliably use granular tools 2025-04-30 19:39:50 -04:00
Amar Sood (tekacs)
26ec1c4f82 Fix ReplaceAll, using new git diff helper 2025-04-30 19:39:50 -04:00
Amar Sood (tekacs)
46b0bee184 Add some defensive coding to ChangeTracker 2025-04-30 19:39:50 -04:00
Amar Sood (tekacs)
8e964bf6e2 Add a regex parameter to ViewFilesMatching 2025-04-30 19:39:50 -04:00
Amar Sood (tekacs)
7676425d1f Remove no longer used diff helpers 2025-04-30 19:39:50 -04:00
Amar Sood (tekacs)
a4bcf4f938 Add more real Git-style diffs in command feedback 2025-04-30 19:39:50 -04:00
Amar Sood (tekacs)
b717384420 Put tool calls on multiple lines when a multi-line tool use is used 2025-04-30 19:39:50 -04:00
Amar Sood (tekacs)
4b2202cd26 Even more strident (and proximal) reminders to use tool-use editing 2025-04-30 19:39:50 -04:00
Amar Sood (tekacs)
1841d105fe Allow the user to confirm commands forever 2025-04-30 19:39:50 -04:00
Amar Sood (tekacs)
b51abd7fe7 Capture TreeSitter ranges for tools to use 2025-04-30 19:39:50 -04:00
Amar Sood (tekacs)
d6e58ce063 Emit more than 3 tool calls on separate lines 2025-04-30 19:39:50 -04:00
Amar Sood (tekacs)
e039543e15 Require a justification when using SEARCH/REPLACE 2025-04-30 19:39:50 -04:00
Amar Sood (tekacs)
123879fad5 Only process SEARCH/REPLACE blocks before the tool call separator 2025-04-30 19:39:50 -04:00
Amar Sood (tekacs)
5e81b6c1c4 Replace ShowNumberedContext for tool_utils 2025-04-30 19:39:50 -04:00
Amar Sood (tekacs)
18a942759c Make tools even more favored over SEARCH/REPLACE blocks 2025-04-30 19:39:50 -04:00
Amar Sood (tekacs)
7eac68e267 Refactor the indent lines function to use tool_utils 2025-04-30 19:39:50 -04:00
Amar Sood (tekacs)
c55d789c25 Try factoring out some common functionality. Incremental commit. 2025-04-30 19:39:50 -04:00
Amar Sood (tekacs)
551b357559 Be even more strident about line-number-based edits 2025-04-30 19:39:50 -04:00
Amar Sood (tekacs)
ee94452ffe Add DeleteLine{,s} tools 2025-04-30 19:39:50 -04:00
Amar Sood (tekacs)
17964f476c Rename ViewNumberedContext to ShowNumberedContext 2025-04-30 19:39:50 -04:00
Amar Sood (tekacs)
032a0e5d35 Fix find files with symbol 2025-04-30 19:39:50 -04:00
Amar Sood (tekacs)
646ed36527 Remind the LLM that it doesn't need to use View on files found by Discovery 2025-04-30 19:39:50 -04:00
Amar Sood (tekacs)
6691f626fa Prompt refinements, to try to guide the LLM's style more 2025-04-30 19:39:50 -04:00
Amar Sood (tekacs)
2b13763c9a Update guidance around granular tool edits. 2025-04-30 19:39:50 -04:00
Amar Sood (tekacs)
9e7ab846e5 Add the ability to view numbered context and guidance around line-editing. 2025-04-30 19:39:50 -04:00
Amar Sood (tekacs)
9cb0f5e203 Split tools out of NavigatorCoder. 2025-04-30 19:39:50 -04:00
Amar Sood (tekacs)
9275bbc92a Add a comment to IndentLines 2025-04-30 19:39:50 -04:00
Amar Sood (tekacs)
832f478b13 Add more guidance /to/ use granular tools and use-cases for each. 2025-04-30 19:39:50 -04:00
Amar Sood (tekacs)
1e01482be6 Include a tree-sitter based outline of open files for the LLM 2025-04-30 19:39:50 -04:00
Amar Sood (tekacs)
17f06c86b2 Accept SEARCH/REPLACE irrespective of tool calls. Separate tool calls, only after --- lines. 2025-04-30 19:39:50 -04:00
Amar Sood (tekacs)
24042e91d5 Rename UndoChange's file argument to file_path 2025-04-30 19:39:50 -04:00
Amar Sood (tekacs)
dfd248245c Add CommandInteractive tool 2025-04-30 19:39:50 -04:00
Amar Sood (tekacs)
9e1900a126 MakeEditable: Improve handling of file states and output 2025-04-30 19:39:50 -04:00
Amar Sood (tekacs)
bbc16ca60a Make it clearer that Add commands view, not adding 2025-04-30 19:39:50 -04:00