How sapirrior/code-edith-old works
Code-Edith is a privacy-focused CLI agent: users enter prompts and commands, the CLI configures an OpenAI-compatible client, and the chat runtime streams model replies and dispatches requested tools before returning results. The documented tools cover web search, local files and directories, OS information, and date/time. The runtime also supports session-only conversation memory and readline prompt history. Tool dispatch is visible in the sampled chat implementation; relationships among individual tools are not implied beyond dynamic discovery.
Main entry points: chat.py Chat orchestration · index.py CLI session · banner.py Welcome banner · web_search.py Web search
Components 16
CLI session
- CLI session
index.py - Environment setup
index.py - Prompt history
index.py - Welcome banner
bin/helper/banner.py
Agent runtime
- Chat orchestration
bin/chat.py - API client
bin/chat.py - Prompt and tool config
bin/chat.py - Stream rendering
bin/chat.py - Tool dispatch
bin/chat.py
Agent tools
- Web search
bin/tool/web_search.py - Read file
bin/tool/read_file.py - List directory
bin/tool/list_dir.py - OS information
bin/tool/get_os_info.py - Date and time
bin/tool/data_time.py
Other components
- CLI user
- Compatible model API
Connections 19
- CLI user → CLI session: enters prompts
index.py - CLI session → Environment setup: loads settings
index.py - CLI session → Prompt history: loads and saves
index.py - CLI session → Welcome banner: displays
index.py - CLI session → API client: authenticates
index.py - API client → Compatible model API: connects to
bin/chat.py - CLI session → Chat orchestration: submits prompt
index.py - Chat orchestration → Prompt and tool config: loads
bin/chat.py - Chat orchestration → API client: requests completion
bin/chat.py - Compatible model API → Chat orchestration: streams response
- Chat orchestration → Stream rendering: renders stream
bin/chat.py - Chat orchestration → Tool dispatch: dispatches calls
bin/chat.py - Tool dispatch → Web search: runs tool
bin/chat.py - Tool dispatch → Read file: runs tool
bin/chat.py - Tool dispatch → List directory: runs tool
bin/chat.py - Tool dispatch → OS information: runs tool
bin/chat.py - Tool dispatch → Date and time: runs tool
bin/chat.py - Tool dispatch → Chat orchestration: returns tool results
bin/chat.py - Chat orchestration → CLI session: returns interactions
index.py