Terminal-based AI coding agent with interactive TUI for autonomous code generation.

Features:
  - Interactive TUI with React/Ink
  - Autonomous agent with tool calls (bash, read, write, edit, glob, grep)
  - Permission system with pattern-based rules
  - Session management with auto-compaction
  - Dual providers: GitHub Copilot and Ollama
  - MCP server integration
  - Todo panel and theme system
  - Streaming responses
  - GitHub-compatible project context
This commit is contained in:
2026-01-27 23:33:06 -05:00
commit 0062e5d9d9
521 changed files with 66418 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
/**
* Agent Options Interface
*/
import type { ProviderName } from "@/types/providers";
import type { ToolCall, ToolResult } from "@tools/index";
export interface AgentOptions {
provider: ProviderName;
model?: string;
maxIterations?: number;
onToolCall?: (call: ToolCall) => void;
onToolResult?: (callId: string, result: ToolResult) => void;
onText?: (text: string) => void;
onThinking?: (text: string) => void;
onError?: (error: string) => void;
onWarning?: (warning: string) => void;
verbose?: boolean;
autoApprove?: boolean;
/** Chat mode - only read-only tools, no file modifications */
chatMode?: boolean;
}