How krish2312005/agent-termo works
Agent-Termo is a terminal-based AI coding agent. A user starts a project session, describes work in the terminal, and the main runtime coordinates model responses, tool execution, approval or diff review, and displayed results. Its documented capabilities also include specialist-agent delegation, custom agents and slash commands, model selection, and project memory and task continuity. The excerpts show several core calls and module references; some feature links rely on README descriptions, so unsampled implementation details are not inferred.
Main entry points: main.ts Agent runtime · ui/index.ts Terminal interface · tools/index.ts Tool executor · client.ts NIM client
Components 19
Session and interface
- CLI entry
src/cli.ts - Agent runtime
src/main.ts - Terminal interface
src/ui/index.ts - Screen and input
src/ui/screen.ts
Model integration
- NIM client
src/llm/client.ts - Model catalog
src/llm/models.ts
Workspace operations
- Tool executor
src/tools/index.ts - Diff generation
src/diff/index.ts - Shell and Git
src/utils/shell.ts
Agents and continuity
- Custom agents
src/agents/index.ts - Agent discovery
src/runtime/agent-folder.ts - Delegation registry
src/runtime/subagents.ts - Subagent monitor
src/ui/subagent-view.ts - Project memory
src/memory/index.ts
Review and settings
- Permission policy
src/runtime/permissions.ts - Configuration
src/utils/config.ts
Other components
- Project user
- NVIDIA NIM
- Project workspace
Connections 20
- Project user → CLI entry: starts session
README.md - CLI entry → Agent runtime: launches
src/cli.ts - Agent runtime → Terminal interface: drives interface
src/main.ts - Terminal interface → Screen and input: uses layout
src/ui/index.ts - Agent runtime → NIM client: requests responses
src/main.ts - NIM client → Model catalog: merges model list
src/llm/client.ts - NIM client → NVIDIA NIM: calls API
README.md - Agent runtime → Tool executor: dispatches tools
src/main.ts - Tool executor → Project workspace: reads and modifies
src/tools/index.ts - Tool executor → Diff generation: proposes changes
src/tools/index.ts - Tool executor → Shell and Git: runs commands
src/tools/index.ts - Agent runtime → Permission policy: checks approvals
src/main.ts - Agent runtime → Agent discovery: loads agents
src/main.ts - Agent discovery → Custom agents: loads definitions
src/runtime/agent-folder.ts - Agent runtime → Delegation registry: tracks delegated runs
src/main.ts - Terminal interface → Delegation registry: lists activity
src/ui/index.ts - Screen and input → Subagent monitor: renders monitor
src/ui/screen.ts - Agent runtime → Project memory: maintains continuity
src/main.ts - Terminal interface → Project memory: displays memory
src/ui/index.ts - Agent runtime → Configuration: reads settings
src/main.ts