Skip to content

feat: Add standalone agent run mode inspired by LocalAGI#9056

Merged
mudler merged 1 commit intomudler:masterfrom
localai-bot:task-8960-standalone-agent-mode-v2
Mar 18, 2026
Merged

feat: Add standalone agent run mode inspired by LocalAGI#9056
mudler merged 1 commit intomudler:masterfrom
localai-bot:task-8960-standalone-agent-mode-v2

Conversation

@localai-bot
Copy link
Copy Markdown
Contributor

Implements issue #8960 - Add support for running agents standalone in LocalAI, similar to LocalAGI.

Changes

  • Added agent subcommand with run and list sub-commands
  • Support running agents by name from pool.json registry
  • Support running agents from JSON config files
  • Implement foreground mode with --prompt flag
  • Reuse AgentPoolService for consistent initialization
  • Added comprehensive unit tests

Usage

# List available agents
local-ai agent list

# Run an agent by name
local-ai agent run my-agent

# Run from config file
local-ai agent run --config agent.json

# Foreground mode with single prompt
local-ai agent run my-agent --prompt "Hello"

Fixes #8960

@netlify
Copy link
Copy Markdown

netlify Bot commented Mar 18, 2026

Deploy Preview for localai ready!

Name Link
🔨 Latest commit d7b429f
🔍 Latest deploy log https://app.netlify.com/projects/localai/deploys/69ba7ee6fda4b30008df821a
😎 Deploy Preview https://deploy-preview-9056--localai.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

- Add 'agent' subcommand with 'run' and 'list' sub-commands
- Support running agents by name from pool.json registry
- Support running agents from JSON config files
- Implement foreground mode with --prompt flag for single-turn interactions
- Reuse AgentPoolService for consistent agent initialization
- Add comprehensive unit tests for config loading and overrides

Fixes mudler#8960

Signed-off-by: localai-bot <localai-bot@users.noreply.github.com>
@localai-bot localai-bot force-pushed the task-8960-standalone-agent-mode-v2 branch from ae828c4 to d7b429f Compare March 18, 2026 10:30
@mudler mudler merged commit 8615ce2 into mudler:master Mar 18, 2026
34 checks passed
localai-bot added a commit to localai-bot/LocalAI that referenced this pull request Mar 20, 2026
- Add 'agent' subcommand with 'run' and 'list' sub-commands
- Support running agents by name from pool.json registry
- Support running agents from JSON config files
- Implement foreground mode with --prompt flag for single-turn interactions
- Reuse AgentPoolService for consistent agent initialization
- Add comprehensive unit tests for config loading and overrides

Fixes mudler#8960

Signed-off-by: localai-bot <localai-bot@users.noreply.github.com>
Co-authored-by: localai-bot <localai-bot@noreply.github.com>
Signed-off-by: localai-bot <bot@localai.com>
localai-bot added a commit to localai-bot/LocalAI that referenced this pull request Mar 20, 2026
- Add 'agent' subcommand with 'run' and 'list' sub-commands
- Support running agents by name from pool.json registry
- Support running agents from JSON config files
- Implement foreground mode with --prompt flag for single-turn interactions
- Reuse AgentPoolService for consistent agent initialization
- Add comprehensive unit tests for config loading and overrides

Fixes mudler#8960

Signed-off-by: localai-bot <localai-bot@users.noreply.github.com>
Co-authored-by: localai-bot <localai-bot@noreply.github.com>
Signed-off-by: localai-bot <bot@localai.com>

Signed-off-by: localai-bot <localai-bot@localai.io>
localai-bot added a commit to localai-bot/LocalAI that referenced this pull request Mar 20, 2026
- Add 'agent' subcommand with 'run' and 'list' sub-commands
- Support running agents by name from pool.json registry
- Support running agents from JSON config files
- Implement foreground mode with --prompt flag for single-turn interactions
- Reuse AgentPoolService for consistent agent initialization
- Add comprehensive unit tests for config loading and overrides

Fixes mudler#8960

Co-authored-by: localai-bot <localai-bot@noreply.github.com>


Signed-off-by: localai-bot <localai-bot@localai.io>
localai-bot added a commit to localai-bot/LocalAI that referenced this pull request Mar 20, 2026
- Add 'agent' subcommand with 'run' and 'list' sub-commands
- Support running agents by name from pool.json registry
- Support running agents from JSON config files
- Implement foreground mode with --prompt flag for single-turn interactions
- Reuse AgentPoolService for consistent agent initialization
- Add comprehensive unit tests for config loading and overrides

Fixes mudler#8960

Co-authored-by: localai-bot <localai-bot@noreply.github.com>



Signed-off-by: localai-bot <localai-bot@localai.io>
localai-bot added a commit to localai-bot/LocalAI that referenced this pull request Mar 25, 2026
- Add 'agent' subcommand with 'run' and 'list' sub-commands
- Support running agents by name from pool.json registry
- Support running agents from JSON config files
- Implement foreground mode with --prompt flag for single-turn interactions
- Reuse AgentPoolService for consistent agent initialization
- Add comprehensive unit tests for config loading and overrides

Fixes mudler#8960

Signed-off-by: localai-bot <localai-bot@users.noreply.github.com>
Co-authored-by: localai-bot <localai-bot@noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add standalone agent run mode inspired by LocalAGI

2 participants