NOW: GOALS: - Handle Step::err - We probably just want to skip rendering the step, and cater for retry in next_step - Make ActionStrategy::check a generic post hook - System prompt generation - Extract from dialects - ModelProvider::render -> new render abstraction - Claude text editor tool - Support all operations in State - Chat mode - Agent code editor mode - Context manager rewrite - Context store with persistent rendered assets - Menu of context items that can be requested by models - render - use render for logs as well? UX: - execute pre-checks before asking the user for input - audio cues for model responses and completion - Change the name of Config::step_limit (maybe iteration_limit? auto_step_limit?) - We don't capture user edits in the state history. This leads to some counter-intuitive behavior. - indicate tenx version clearly in manual - `tenx diff` for action Model response robustness: - When editing text, we frequently get patch errors from models. This is because flowing text doesn't always preserve wrapping from models. Have a more robust patch mode for this. - Allow write_file to create files - Ensure that newly created files are rolled back in rollback - A operation, which lets models break operations into batches - An operation, which lets a model signal when it can't continue - Ignore requests for files that are already being edited - Sometimes the models mix and requests. Make sure we do the right thing. - , and operations. Bugs: - No error is output if the user selects a non-existent model - If we issue a code command, and all the mode does is a view, we exit immediately - retry doesn't work with fix - retry doesn't work if the previous step had an error Features: - detailed dump for contexts - readonly: set a local file to be read-only - custom system prompt additions - graceful error handling for contexts, e.g. unfetchable urls - configurable modes with pre-defined models and contexts - token count estimation - cost estimation - reassess udiff format Internals: - Elicit user input with a UserInput event, shift logic into libtenx::Tenx - Extract a fileutils crate from State - Get rid of path normalization in config, only used in path contexts now