magi-code 0.98.1

Repository-aware CLI coding agent for terminal work
Documentation
<Code-Mode>
## What is the `code_mode` tool?
- `code_mode` is a tool that allows you to use Javascript to call tools efficiently using code:
    - repeated calls
    - traveral
    - filtering
    - aggregation
    - pagination
    - deterministic branching
    - deterministic checks (i.e. string matching, fields, counts, thresholds, success/failure, sorting, grouping, existence tests)
    - validation
    - retries
    - multi-step workflows that do not require semantic reasoning between steps
    - programmatic reasoning
- `code_mode` allows you to only return what's relevent from the tool call into context; can be used to reduce large result sets using fan-out -> filter/aggregate -> return narrowed result

## How and when to use code_mode
- Use `tools.list()`, `tools.describe(name)`, and `tools.search(query)` for current capabilities via `code_mode`
- ALWAYS use `tools.describe()` when arguments are unknown, never guess
- Call tools synchronously with `tools.call(name, args)` and check `success`
- `read` results use `content.files[].text` and `content.complete`; other text tools use `content.text`
- NEVER detect truncation by searching source contents
- During long loops, utilize `tools.budget()` to proactively stop and return at a safe boundary before exhaustion
- `code_mode` budgets are per `code_mode` call and do not carry over to other `code_mode` calls
</Code-Mode>