Compare commits
1 Commits
950c63adaa
..
v0.1.0
| Author | SHA1 | Date | |
|---|---|---|---|
| f235b8ce90 |
@@ -20,13 +20,13 @@ model/provider switching, and local tools.
|
|||||||
mkdir -p ~/.agentu
|
mkdir -p ~/.agentu
|
||||||
cp agentu.example.yaml ~/.agentu/config.yaml
|
cp agentu.example.yaml ~/.agentu/config.yaml
|
||||||
export AGENTU_API_KEY='your-api-key'
|
export AGENTU_API_KEY='your-api-key'
|
||||||
go run ./cmd/agentu
|
go run .
|
||||||
```
|
```
|
||||||
|
|
||||||
Use `--yolo` only when you want agentu to write files or run shell commands:
|
Use `--yolo` only when you want agentu to write files or run shell commands:
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
go run ./cmd/agentu --yolo
|
go run . --yolo
|
||||||
```
|
```
|
||||||
|
|
||||||
## Config
|
## Config
|
||||||
@@ -82,7 +82,7 @@ top-level OpenAI-compatible request field named `thinking`.
|
|||||||
## CLI Flags
|
## CLI Flags
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
go run ./cmd/agentu [flags]
|
go run . [flags]
|
||||||
```
|
```
|
||||||
|
|
||||||
- `--config <path>` loads a YAML config file. Default: `~/.agentu/config.yaml`.
|
- `--config <path>` loads a YAML config file. Default: `~/.agentu/config.yaml`.
|
||||||
@@ -150,7 +150,7 @@ Run the verification suite:
|
|||||||
```sh
|
```sh
|
||||||
go test ./...
|
go test ./...
|
||||||
go vet ./...
|
go vet ./...
|
||||||
go build ./cmd/agentu
|
go build .
|
||||||
```
|
```
|
||||||
|
|
||||||
Local config and build outputs are intentionally ignored by git.
|
Local config and build outputs are intentionally ignored by git.
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"agentu/internal/llm"
|
"agentu/pkg/llm"
|
||||||
"agentu/internal/tools"
|
"agentu/internal/tools"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"agentu/internal/llm"
|
"agentu/pkg/llm"
|
||||||
"agentu/internal/tools"
|
"agentu/internal/tools"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -8,8 +8,8 @@ import (
|
|||||||
"time"
|
"time"
|
||||||
|
|
||||||
"agentu/internal/agent"
|
"agentu/internal/agent"
|
||||||
"agentu/internal/config"
|
"agentu/pkg/config"
|
||||||
"agentu/internal/llm"
|
"agentu/pkg/llm"
|
||||||
)
|
)
|
||||||
|
|
||||||
type Manager struct {
|
type Manager struct {
|
||||||
|
|||||||
@@ -7,8 +7,8 @@ import (
|
|||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"agentu/internal/agent"
|
"agentu/internal/agent"
|
||||||
"agentu/internal/config"
|
"agentu/pkg/config"
|
||||||
"agentu/internal/llm"
|
"agentu/pkg/llm"
|
||||||
)
|
)
|
||||||
|
|
||||||
type recordingProvider struct {
|
type recordingProvider struct {
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"agentu/internal/llm"
|
"agentu/pkg/llm"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Session represents a persisted conversation.
|
// Session represents a persisted conversation.
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ import (
|
|||||||
"path/filepath"
|
"path/filepath"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"agentu/internal/llm"
|
"agentu/pkg/llm"
|
||||||
)
|
)
|
||||||
|
|
||||||
func tempStore(t *testing.T) *Store {
|
func tempStore(t *testing.T) *Store {
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ import (
|
|||||||
"sort"
|
"sort"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"agentu/internal/llm"
|
"agentu/pkg/llm"
|
||||||
)
|
)
|
||||||
|
|
||||||
const defaultCodeSymbolFileLimit = 50
|
const defaultCodeSymbolFileLimit = 50
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ import (
|
|||||||
"sort"
|
"sort"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"agentu/internal/llm"
|
"agentu/pkg/llm"
|
||||||
)
|
)
|
||||||
|
|
||||||
type FileReadTool struct {
|
type FileReadTool struct {
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ import (
|
|||||||
"os/exec"
|
"os/exec"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"agentu/internal/llm"
|
"agentu/pkg/llm"
|
||||||
)
|
)
|
||||||
|
|
||||||
type ShellRunTool struct {
|
type ShellRunTool struct {
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ import (
|
|||||||
"sort"
|
"sort"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"agentu/internal/llm"
|
"agentu/pkg/llm"
|
||||||
)
|
)
|
||||||
|
|
||||||
const MaxToolOutputBytes = 64 * 1024
|
const MaxToolOutputBytes = 64 * 1024
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ import (
|
|||||||
"net/url"
|
"net/url"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"agentu/internal/llm"
|
"agentu/pkg/llm"
|
||||||
|
|
||||||
"golang.org/x/net/html"
|
"golang.org/x/net/html"
|
||||||
)
|
)
|
||||||
|
|||||||
+1
-1
@@ -9,7 +9,7 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"agentu/internal/agent"
|
"agentu/internal/agent"
|
||||||
"agentu/internal/llm"
|
"agentu/pkg/llm"
|
||||||
|
|
||||||
"github.com/charmbracelet/bubbles/spinner"
|
"github.com/charmbracelet/bubbles/spinner"
|
||||||
"github.com/charmbracelet/bubbles/textarea"
|
"github.com/charmbracelet/bubbles/textarea"
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ import (
|
|||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"agentu/internal/agent"
|
"agentu/internal/agent"
|
||||||
"agentu/internal/llm"
|
"agentu/pkg/llm"
|
||||||
|
|
||||||
tea "github.com/charmbracelet/bubbletea"
|
tea "github.com/charmbracelet/bubbletea"
|
||||||
"github.com/charmbracelet/lipgloss"
|
"github.com/charmbracelet/lipgloss"
|
||||||
|
|||||||
@@ -13,8 +13,8 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"agentu/internal/agent"
|
"agentu/internal/agent"
|
||||||
"agentu/internal/config"
|
"agentu/pkg/config"
|
||||||
"agentu/internal/llm"
|
"agentu/pkg/llm"
|
||||||
"agentu/internal/session"
|
"agentu/internal/session"
|
||||||
"agentu/internal/tools"
|
"agentu/internal/tools"
|
||||||
"agentu/internal/tui"
|
"agentu/internal/tui"
|
||||||
Reference in New Issue
Block a user