Skip to main content
Agentic mode gives LLMs tools to explore your codebase, then propose file edits with permission prompts — like Claude Code, but for any LLM.

Usage

The TUI runs in agentic mode by default. Just type your task:
Set the agent for your tasks:
See Model Selection to configure which model each agent uses.

Available Tools

Approval Modes

Control how permissions and file edits are handled with /approval-mode:

Permission Prompts

In Default and Plan modes, every tool call shows a permission prompt:
  • Allow — Execute this tool call
  • Allow from directory — Auto-approve reads from this directory
  • Allow all reads — Auto-approve all file reads
  • Allow all edits — Auto-approve all file writes for this session
  • Deny — Skip this tool call
  • Esc — Cancel entire operation
”Allow all edits” persists across messages in the same session — useful when you trust the agent to make multiple changes.

Trust Management

Pre-approve directories so the agent can read files without prompts:
Files in trusted directories are auto-approved for read operations.

Live Tool Activity

When the LLM uses tools, you see:
  • ● Green = completed
  • ● Yellow = running
  • ● Red = error
  • ● Gray = pending
Press Ctrl+S to expand/collapse full output.

How It Works

1

Describe the task

Type your request in the TUI
2

LLM explores

The LLM uses view, glob, grep to understand your codebase
3

Permission prompts

Each tool call shows a prompt — you approve or deny
4

LLM proposes edits

The LLM uses write/edit to propose changes
5

Review diff

You see a diff preview and approve or reject each change
6

Apply changes

Approved changes are written to disk

Consensus → Agentic Workflow

Run consensus first, then continue with the agent:
The consensus result is automatically injected as context.

Agent Support

Codex Safe Mode

Codex runs in “safe mode” by default. Since Codex’s exec mode writes files directly (bypassing our tool system), PuzldAI:
  1. Backs up source files before Codex runs
  2. Runs Codex with workspace-write sandbox
  3. Detects changes by comparing files after execution
  4. Applies approval mode:
    • Plan mode → rolls back all changes
    • Accept/YOLO → keeps changes
    • Default → shows notification, keeps changes
Codex changes are applied immediately, then rolled back if rejected. This differs from Claude/Ollama where you approve before changes are written.