loveuer
dabf5bfecc
compact: retain newest ~20% of context; refactor startup into internal/app
...
- Replace fixed 6-message compact retention with ratio-based logic:
retain ~20% of compactable estimated tokens, with a 6-message floor
and user-turn boundary alignment
- Add compactRetainedTokenBudget, compactRecentStart, compactTurnBoundary
helpers in internal/agent/agent.go
- Add TestAgentCompactKeepsTwentyPercentRecentContext
- Move startup/session/repl/bootstrap logic from root into internal/app
so main.go is a thin binary entry point (15 lines)
- Update /compact docs in README.md
2026-06-24 23:59:21 -07:00
loveuer
9abd5c3b5f
feat(tui): implement dark mode with runtime /theme switching
...
- Paint dark background at app shell level via appStyle() helper
- Add /theme slash command for runtime light/dark switching
- Add comprehensive dark-mode style tests
- Document --theme dark in README Quick Start
2026-06-24 20:45:06 -07:00
loveuer
3d403bd685
feat: Phase 1 code-agent capabilities — file_edit, git tools, parallel execution, tool output preview
...
New tools:
- file_edit: surgical line-range or pattern edits (yolo only)
- git_status: show changed files (read-only)
- git_diff: show unstaged/staged diff (read-only)
- git_log: show recent commits (read-only)
Agent improvements:
- parallel execution for independent read-only tool calls
- mutating tools (file_write, file_edit, shell_run) run sequentially
- tool output preview in logs with [output] marker
TUI improvements:
- tool cards now show truncated output preview (up to 8 lines)
- mergeToolLog updates placeholder cards with results
- toolStatusText keeps activity bar single-line
Documentation:
- README updated with git tools and file_edit descriptions
2026-06-24 19:47:14 -07:00
loveuer
f235b8ce90
refactor: restructure project layout — main.go to root, llm+config to pkg/
...
- Move cmd/agentu/main.go → main.go (project root)
- Move internal/llm/ → pkg/llm/ (leaf package, no internal deps)
- Move internal/config/ → pkg/config/ (leaf package, no internal deps)
- Update all import paths: agentu/internal/llm → agentu/pkg/llm (14 files)
- Update all import paths: agentu/internal/config → agentu/pkg/config (3 files)
- Update README: build/run commands, CLI flags section
- agent/session/tools/tui stay in internal/ (app-specific business logic)
Build: go build . | Test: go test ./... | Vet: go vet ./...
2026-06-24 07:06:26 -07:00
loveuer
950c63adaa
v0.0.5: context compaction, minimal config, retry/search/code symbols/diff/status/test commands
2026-06-24 02:20:19 -07:00
loveuer
8dbcb1147f
v0.0.3: add built-in web tools
...
Add no-key web_search and web_fetch tools.
Fetch pages with net/http and parse HTML content.
Document built-in web capabilities.
2026-06-23 09:59:24 +08:00
loveuer
a431d1ec95
v0.0.1: agentu mvp
...
Add OpenAI-compatible providers, TUI, slash commands, and model switching.
Add local file tools plus optional yolo shell execution.
Document config, usage, and development workflow.
2026-06-22 22:40:38 +08:00