bytedance / bytedance/trae-agent
need smart and robust support for jupyter notebooks / .ipynb files
- Dominant language
- Python
- Stars
- 12.1k
- Forks
- 1.3k
- PR merge metrics
- No merged PRs in 30d
Description
### What feature would you like to be added or updated?
1. read codes in cell only and read the cell output if needed to save context window length
2. robust version of file_edit tools for jupyter notebook.
### Why do you need this feature?
Currently builder mode in trae treat jupyter notebooks as json instead of python codes.
1. this is not smart . It reads the python codes and cell output(which may be too large in some cases) so it may call read_file tool too many times. and this is a waste of context window. Everytime i use this, i have to convert .ipynb to .py file manually and apply the improved .py file by trae agents back to .ipynb manually. Can tare agent read the code only and check the cell output if it needs more context (like the error bug) ?
2. file_write tool is not robust for jupyter notebooks. i can see this many times
print("
PRINT_CONTENT") # cause error
instead of:
print("PRINT_CONTEXT") # expected. the same as #30
### Additional information that you believe is relevant to this feature request
_No response_
Contributor guide
Assessment
This issue has not been assessed yet.