feat: update readme & agent TUI reliability (#239)

This commit is contained in:
Carlos Florêncio
2026-02-17 22:59:53 +00:00
committed by GitHub
parent 1f4170da8b
commit 90bec9aaa0
47 changed files with 2129 additions and 911 deletions
@@ -9,8 +9,6 @@ import (
"errors"
"time"
"github.com/kandev/kandev/internal/agentctl/server/adapter"
"github.com/kandev/kandev/internal/common/logger"
"github.com/kandev/kandev/pkg/agent"
)
@@ -37,9 +35,6 @@ type Agent interface {
DefaultModel() string
ListModels(ctx context.Context) (*ModelList, error)
// --- Protocol ---
CreateAdapter(cfg *adapter.Config, log *logger.Logger) (adapter.AgentAdapter, error)
// --- Execution ---
BuildCommand(opts CommandOptions) Command
@@ -132,7 +127,6 @@ type RuntimeConfig struct {
RequiredEnv []string
Mounts []MountTemplate
ResourceLimits ResourceLimits
Capabilities []string
SessionConfig SessionConfig
Protocol agent.Protocol
ModelFlag Param // e.g. NewParam("--model", "{model}")
@@ -206,11 +200,6 @@ type PassthroughConfig struct {
// DefaultBufferMaxBytes is the default maximum buffer size for passthrough mode (2 MB).
const DefaultBufferMaxBytes int64 = 2 * 1024 * 1024
// DefaultCapabilities is the standard set of capabilities shared by most agents.
var DefaultCapabilities = []string{
"code_generation", "code_review", "refactoring", "testing", "shell_execution",
}
// DefaultResourceLimits is the standard resource limit set shared by most agents.
var DefaultResourceLimits = ResourceLimits{
MemoryMB: 4096, CPUCores: 2.0, Timeout: time.Hour,