Modules§
- ask
- bash
- edit
- git
- lua
- mana
- memory
- multi_
edit - query
- Boolean query parser with stemming for code search.
- read
- scan
- Scan tool — extract code structure using tree-sitter AST parsing.
- session_
search - shell
- web
- Web tool — search the web and read pages.
- worktree
- write
Structs§
- Anchor
Store - Checkpoint
Record - Checkpoint
State - Shared session-scoped checkpoint state built on top of FileHistory.
- File
Cache - In-session file content cache. Avoids re-reading files that haven’t changed.
- File
History - Pre-edit file snapshots for rollback safety.
- File
Tracker - Tracks which files have been read in the current session and when.
- Line
Anchor - Tool
Context - Context provided to tools during execution.
- Tool
Output - Result of a tool execution.
- Tool
Registry - Registry of available tools.
- Tool
Update - Partial update from a running tool (for streaming output).
- Truncation
Result
Traits§
- Tool
- A tool that can be invoked by the agent.
Functions§
- generate_
diff - Generate a unified diff between old and new content.
- levenshtein
- Compute the Levenshtein edit distance between two strings.
- resolve_
path - Resolve a user-provided path: expands
~to home dir, resolves relative paths against cwd. - stable_
hash - suggest_
similar_ files - Search for files with names similar to the missing
targetpath. - truncate_
head - Truncate keeping the head (first N lines/bytes). When truncated, writes full output to a temp file.
- truncate_
line - Truncate a single line to max_bytes, appending “…” if truncated.
- truncate_
tail - Truncate keeping the tail (last N lines/bytes). When truncated, writes full output to a temp file.
- validate_
tool_ args - Validate tool arguments against a JSON Schema.
Type Aliases§
- LuaTool
Loader - Cloneable runtime hook for loading Lua extension tools into a registry.