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

29
src/constants/read.ts Normal file
View File

@@ -0,0 +1,29 @@
/**
* Read tool constants
*/
export const READ_DEFAULTS = {
MAX_LINES: 2000,
MAX_LINE_LENGTH: 2000,
MAX_BYTES: 100000,
LINE_NUMBER_PAD: 6,
} as const;
export const READ_MESSAGES = {
PERMISSION_DENIED: "Permission denied by user",
} as const;
export const READ_TITLES = {
DENIED: (path: string) => `Read denied: ${path}`,
FAILED: (path: string) => `Read failed: ${path}`,
READING: (name: string) => `Reading ${name}`,
DIRECTORY: (path: string) => `Listed directory: ${path}`,
} as const;
export const READ_DESCRIPTION = `Read the contents of a file. Returns the file content with line numbers.
Guidelines:
- Use absolute paths
- By default reads up to 2000 lines
- Long lines are truncated at 2000 characters
- Use offset and limit for large files`;