Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
aba1a36
chore(deps): bump cogito to v0.11 ahead of the nib harness
mudler Aug 1, 2026
1381fc3
feat(chat): resolve and seed the agent state directory
mudler Aug 1, 2026
b42d95e
fix(chat): write the agent config atomically and tighten its modes
mudler Aug 1, 2026
b622df7
feat(chat): probe the endpoint and classify failures
mudler Aug 1, 2026
88f9b0d
feat(chat): resolve the model from flag, config, or the server
mudler Aug 1, 2026
449eee7
test(chat): pin that model resolution sorts a copy of the caller's slice
mudler Aug 1, 2026
126ef4f
feat(chat): offer to start a server when none is reachable
mudler Aug 1, 2026
c1e3462
fix(chat): bound the server wait and pin readiness and stop semantics
mudler Aug 1, 2026
1660bfc
refactor(chat): drive Stop through one process interface, hide exec p…
mudler Aug 1, 2026
aad5609
feat(chat): replace the REPL with the built-in agent
mudler Aug 1, 2026
a59672e
refactor(chat): split the pre-agent phase out of Run and pin it
mudler Aug 1, 2026
5252e13
fix(chat): bound each server check with a deadline
mudler Aug 1, 2026
7217b38
fix(chat): tell the user when their model choice cannot be saved
mudler Aug 1, 2026
e3e70c9
fix(chat): stop a session's server when the process is signalled
mudler Aug 1, 2026
7e6b30c
fix(chat): only skip the server checks for work that stays local
mudler Aug 1, 2026
c35f14d
fix(chat): exit with the agent's status instead of reporting it twice
mudler Aug 1, 2026
70165fc
style(chat): route interactive chatter through one writer helper
mudler Aug 1, 2026
b658b42
docs(chat): record why the agent gets this process' streams
mudler Aug 1, 2026
a34e008
fix(chat): stop the session's server on cancellation, not on the way out
mudler Aug 1, 2026
01e189a
chore(chat): bump nib to v0.5.1
mudler Aug 2, 2026
d6ddab8
fix(chat): let nib own stdout, so the Ctrl+Space widget works
mudler Aug 2, 2026
00e416c
docs(chat): say what the stream refusal actually keys on
mudler Aug 2, 2026
fc556fb
docs: local-ai chat is now the built-in terminal agent
mudler Aug 2, 2026
bebc22f
website: the agent is in the binary, not a second install
mudler Aug 2, 2026
eac2bb4
website: fix the exit keys, the plugin warning, and the redirect gap
mudler Aug 2, 2026
d4b1f12
fix(chat): make the CLI flags outrank the agent config file
mudler Aug 2, 2026
9800038
fix(chat): document intentional config file read
localai-org-maint-bot Aug 2, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ local-ai run https://gist.githubusercontent.com/.../phi-2.yaml
local-ai run oci://localai/phi-2:latest
```

To test a running LocalAI server from the terminal, open an interactive chat session from another shell. Inside the prompt, `/models` lists installed models and `/model <name>` switches between them.
To work with a running LocalAI server from the terminal, start the built-in agent from another shell. It answers questions, reads your files and runs commands on your machine, asking you to approve anything that changes state. Inside a session, `/models` lists installed models and `/model <name>` switches between them. See the [Terminal agent](https://localai.io/docs/features/terminal-agent/) docs.

```bash
# Terminal 1
Expand Down
8 changes: 8 additions & 0 deletions cmd/local-ai/main.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package main

import (
"errors"
"os"
"path/filepath"

Expand Down Expand Up @@ -107,6 +108,13 @@ For documentation and support:
// Run the thing!
err = ctx.Run(&cli.CLI.Context)
if err != nil {
// A command that has already told the user what went wrong returns
// only a status. Logging it as well would print a bare "exit status 1"
// underneath the explanation they just read.
var reported cli.ExitCodeError
if errors.As(err, &reported) {
os.Exit(reported.Code)
}
xlog.Fatal("Error running the application", "error", err)
}
}
30 changes: 0 additions & 30 deletions core/cli/chat/chat.go

This file was deleted.

172 changes: 0 additions & 172 deletions core/cli/chat/chat_test.go

This file was deleted.

114 changes: 0 additions & 114 deletions core/cli/chat/client.go

This file was deleted.

17 changes: 0 additions & 17 deletions core/cli/chat/models.go

This file was deleted.

Loading
Loading