Flux-CLI

Features

Flux-CLI comes packed with features designed to make AI-assisted development powerful, safe, and extensible.

Agent Engine

The core of Flux-CLI is a sophisticated agent engine that orchestrates LLM interactions with tool execution.

Tool System

Flux-CLI ships with 11 built-in tools and supports unlimited custom tools.

11 Built-in Tools

ToolKindDescription
read_fileREADRead text files with line numbers, offset/limit, binary detection
write_fileWRITECreate/overwrite files with automatic parent directory creation
editWRITESurgical text replacement with uniqueness checks
shellSHELLCommand execution with timeout, blocked command safety, environment control
list_dirREADDirectory listing with hidden file toggle
grepREADRegex search across files with case-insensitive option
globREADFile pattern matching with recursive ** support
web_searchNETWORKDuckDuckGo web search integration
web_fetchNETWORKHTTP fetch with automatic fallback to proxy on 403/5xx
todosMEMORYSession-scoped task tracking (add/complete/list/clear)
memoryMEMORYPersistent user memory stored across sessions

Custom Tool Discovery

Drop a Python file in .flux-cli/tools/ and Flux-CLI automatically discovers and registers it. Any class that extends the Tools base class with a name, schema, and execute method works out of the box.

MCP Tools

Connect any MCP server via stdio or SSE transport and its tools become available to the agent automatically.

Safety & Approval System

Flux-CLI's safety system operates at multiple levels:

Lifecycle Hooks

Configure shell commands that trigger at 6 different points in the agent's lifecycle:

HookTrigger PointEnvironment Variables
before_agentBefore agent processingAI_AGENT_TRIGGER, AI_AGENT_CWD, AI_AGENT_USER_MESSAGE
after_agentAfter agent finishes+ AI_AGENT_RESPONSE
before_toolBefore tool execution+ AI_AGENT_TOOL_NAME, AI_AGENT_TOOL_PARAMS
after_toolAfter tool completes+ AI_AGENT_TOOL_RESULT
on_errorOn errors/exceptionsAI_AGENT_ERROR

Session Management

Context Management

MCP Integration

Sub-Agent System

Terminal UI

On this page