agentty 0.1.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.gitignore +2 -0
- package/CHANGELOG.md +265 -0
- package/LICENSE +201 -0
- package/README.md +101 -0
- package/binary-install.js +212 -0
- package/binary.js +126 -0
- package/install.js +4 -0
- package/npm-shrinkwrap.json +519 -0
- package/package.json +71 -0
- package/run-agentty.js +4 -0
package/.gitignore
ADDED
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,265 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
All notable changes to this project will be documented in this file.
|
|
4
|
+
|
|
5
|
+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
|
|
6
|
+
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
|
+
|
|
8
|
+
## [v0.1.12] - 2026-02-19
|
|
9
|
+
|
|
10
|
+
### Added
|
|
11
|
+
- **Session UX:** Added a delete confirmation mode with selectable actions for session deletion.
|
|
12
|
+
- **Output Streaming:** Added a live single-line progress indicator in chat and spacing before the first streamed response chunk.
|
|
13
|
+
- **Agent Runtime:** Added Codex output streaming during non-interactive runs and follow-up actions for plan mode replies.
|
|
14
|
+
|
|
15
|
+
### Changed
|
|
16
|
+
- **Git Runtime:** Completed async `git` module transition to `spawn_blocking` and updated call sites.
|
|
17
|
+
- **Session Model:** Refactored sessions to derive `AgentKind` from `AgentModel`, removed the session `agent` column, and migrated legacy PR statuses to `Review`.
|
|
18
|
+
- **Merge/Rebase:** Improved merge and rebase robustness by auto-committing pending changes before merge/rebase and broadening auto-commit assistance handling.
|
|
19
|
+
- **UI:** Improved session list layout with minimum-width columns and title truncation, and added spacing around user input in session chat output.
|
|
20
|
+
- **Automation:** Split pre-commit workflow into separate autofix and validation phases.
|
|
21
|
+
- **Config:** Removed `npm-scope` from `dist-workspace.toml`.
|
|
22
|
+
|
|
23
|
+
### Removed
|
|
24
|
+
- **Pull Requests:** Removed pull request functionality.
|
|
25
|
+
- **UI Cleanup:** Removed delete confirmation bottom hints.
|
|
26
|
+
|
|
27
|
+
### Contributors
|
|
28
|
+
- @andagaev
|
|
29
|
+
- @minev-dev
|
|
30
|
+
|
|
31
|
+
## [v0.1.11] - 2026-02-16
|
|
32
|
+
|
|
33
|
+
### Added
|
|
34
|
+
- **Permissions:** Add per-session permission mode toggle and `Plan` permission mode with denial-gated response parsing.
|
|
35
|
+
- **Session Control:** Add `Ctrl+c` to stop running agent sessions.
|
|
36
|
+
- **Prompt History:** Implement prompt history navigation with up/down arrows.
|
|
37
|
+
- **Stats Page:** Add project and model columns to the stats page.
|
|
38
|
+
- **Session Size:** Compute session size from diff and display it in the session list.
|
|
39
|
+
- **File Listing:** Include directories in `@` mention dropdown with trailing slash.
|
|
40
|
+
- **Session Status:** Add `Rebasing` status to session lifecycle.
|
|
41
|
+
- **Terminal Summaries:** Persist terminal summaries for session outcomes.
|
|
42
|
+
|
|
43
|
+
### Changed
|
|
44
|
+
- **Architecture:** Refactor app into manager composition with event-driven session state updates and reducer-based routing for git status, PR control, and session mutations.
|
|
45
|
+
- **Architecture:** Split session module and centralize lookups; separate session snapshots from runtime handles.
|
|
46
|
+
- **Session Defaults:** New sessions inherit the latest session's agent, model, and permission mode.
|
|
47
|
+
- **File Listing:** Include non-ignored dotfiles in file listing.
|
|
48
|
+
- **Merge Flow:** Run session merges asynchronously, harden merge messaging, and increase merge commit message timeout.
|
|
49
|
+
- **Rebase Flow:** Improve assisted rebase continuation flow and auto-commit pending changes before rebasing.
|
|
50
|
+
- **Auto-Commit:** Improve auto-commit recovery with agent assistance.
|
|
51
|
+
- **Session Summary:** Backfill and use session summary for finished sessions.
|
|
52
|
+
- **UI:** Move open worktree keybinding to chat view and update session size color palette.
|
|
53
|
+
- **Docs:** Document app module architecture and public API docs; add cargo install instructions to README.
|
|
54
|
+
|
|
55
|
+
### Removed
|
|
56
|
+
- **Health Module:** Remove health check module and wiring.
|
|
57
|
+
|
|
58
|
+
### Contributors
|
|
59
|
+
- @andagaev
|
|
60
|
+
- @minev-dev
|
|
61
|
+
|
|
62
|
+
## [v0.1.10] - 2026-02-15
|
|
63
|
+
|
|
64
|
+
### Added
|
|
65
|
+
- **Review Workflow:** Added an explicit `Merging` session status and a review-session rebase action.
|
|
66
|
+
- **Session UX:** Added read-only controls for done sessions and a `/clear` slash command.
|
|
67
|
+
- **Help UI:** Added a `?` keybinding with an updated overlay and descriptive slash-command menu.
|
|
68
|
+
|
|
69
|
+
### Changed
|
|
70
|
+
- **Session List:** Split session metadata into `Project`, `Model`, and `Status` columns with dynamic width sizing.
|
|
71
|
+
- **Runtime:** Run session commands through per-session workers and restore interrupted sessions into `Review`.
|
|
72
|
+
- **Stats:** Accumulate token usage over time and preserve stats after `/clear`.
|
|
73
|
+
- **Merge Flow:** Enforce merge commit message formatting and normalize co-author trailer handling.
|
|
74
|
+
- **UI Cleanup:** Removed agent labels from session list rows and session chat titles.
|
|
75
|
+
|
|
76
|
+
### Contributors
|
|
77
|
+
- @andagaev
|
|
78
|
+
- @dependabot[bot]
|
|
79
|
+
- @minev-dev
|
|
80
|
+
|
|
81
|
+
## [v0.1.9] - 2026-02-13
|
|
82
|
+
|
|
83
|
+
### Added
|
|
84
|
+
- **Diff View:** Added diff content wrapping to render long changed lines without truncation.
|
|
85
|
+
- **Diff View:** Added structured parsing with line-number gutters (`old│new`) for unified diffs.
|
|
86
|
+
- **Docs:** Added a demo GIF to the README and documented GIF generation with VHS.
|
|
87
|
+
|
|
88
|
+
### Changed
|
|
89
|
+
- **Diff View:** Compare against each session's base branch so review shows all accumulated changes.
|
|
90
|
+
- **Workflow:** Simplified commit flow by auto-committing after agent iterations and removing manual commit mode.
|
|
91
|
+
- **Release Docs:** Added contributor-list requirements and examples to the release workflow documentation.
|
|
92
|
+
|
|
93
|
+
### Contributors
|
|
94
|
+
- @minev-dev
|
|
95
|
+
|
|
96
|
+
## [v0.1.8] - 2026-02-13
|
|
97
|
+
|
|
98
|
+
### Added
|
|
99
|
+
- **Onboarding:** Added a full-screen onboarding page shown when no sessions exist.
|
|
100
|
+
- **Tests:** Added onboarding behavior coverage for app state, list mode `Enter` handling, and UI rendering conditions.
|
|
101
|
+
|
|
102
|
+
### Changed
|
|
103
|
+
- **UX:** Pressing `Enter` from the onboarding view now creates a new session and opens prompt mode directly.
|
|
104
|
+
- **Error Handling:** Session creation errors in list mode are now surfaced instead of being silently ignored.
|
|
105
|
+
- **UI:** Kept the footer visible during onboarding and simplified session list rendering to consistently use the table layout.
|
|
106
|
+
|
|
107
|
+
### Contributors
|
|
108
|
+
- @minev-dev
|
|
109
|
+
|
|
110
|
+
## [v0.1.7] - 2026-02-12
|
|
111
|
+
|
|
112
|
+
### Added
|
|
113
|
+
- **UI:** Show session worktree path and branch in the footer bar for better context awareness.
|
|
114
|
+
- **UI:** Display commit count in the session chat title.
|
|
115
|
+
- **Stats:** Add session token usage statistics to the Stats page.
|
|
116
|
+
|
|
117
|
+
### Changed
|
|
118
|
+
- **Persistence:** Moved application data directory from `/var/tmp/.agentty` to `~/.agentty` for better persistence and standard compliance.
|
|
119
|
+
- **UX:** Renamed "Roadmap" tab to "Stats" to better reflect its content.
|
|
120
|
+
- **UX:** Use shortened 8-character UUIDs for session folders and git branches to reduce clutter.
|
|
121
|
+
- **Internal:** Standardized session ID variable naming across the codebase.
|
|
122
|
+
|
|
123
|
+
### Contributors
|
|
124
|
+
- @andagaev
|
|
125
|
+
- @minev-dev
|
|
126
|
+
|
|
127
|
+
## [v0.1.6] - 2026-02-10
|
|
128
|
+
|
|
129
|
+
### Added
|
|
130
|
+
- **Session Status:** Added a `Committing` status to make commit progress explicit in the session lifecycle.
|
|
131
|
+
|
|
132
|
+
### Changed
|
|
133
|
+
- **Persistence:** Persist session prompt/output history in SQLite and load it on startup so chat history survives app reloads.
|
|
134
|
+
- **Session Output:** Parse agent JSON output and display only the response message in session output.
|
|
135
|
+
- **GitHub Integration:** Parse GitHub PR responses using typed serde structs and move GitHub CLI logic into a dedicated `gh` module.
|
|
136
|
+
- **PR Workflow:** Treat closed pull requests as canceled sessions and show a loader while PR creation is in flight.
|
|
137
|
+
- **Commit Flow:** Improve asynchronous session commit handling and remove placeholder commit output in view mode.
|
|
138
|
+
- **Documentation:** Extract git commit guidance into the shared skills documentation.
|
|
139
|
+
|
|
140
|
+
### Fixed
|
|
141
|
+
- **Tests:** Stabilized merge cleanup testing to avoid environment-dependent blocking during release verification.
|
|
142
|
+
|
|
143
|
+
### Contributors
|
|
144
|
+
- @andagaev
|
|
145
|
+
- @minev-dev
|
|
146
|
+
|
|
147
|
+
## [v0.1.5] - 2026-02-08
|
|
148
|
+
|
|
149
|
+
### Added
|
|
150
|
+
- **Tests:** Added runtime mode handler coverage tests.
|
|
151
|
+
- **Documentation:** Added local `AGENTS.md` files and enforced folder index checks.
|
|
152
|
+
- **Documentation:** Added Context7-first rule for retrieving latest tool info.
|
|
153
|
+
- **Documentation:** Documented dependency injection testability guidance.
|
|
154
|
+
|
|
155
|
+
### Changed
|
|
156
|
+
- **Architecture:** Modularized app and runtime into focused modules (`app/` and `runtime/`).
|
|
157
|
+
- **Runtime:** Injected event source into the runtime event loop for better testability.
|
|
158
|
+
- **Session:** Made agent and model configurations session-scoped.
|
|
159
|
+
- **Linting:** Refined clippy lint configuration, tightening policies and re-enabling pedantic rules.
|
|
160
|
+
- **Skills:** Symlinked the entire skills directory for agents and refactored release skill.
|
|
161
|
+
- **Refactor:** Refactored long handlers to enforce clippy line limits.
|
|
162
|
+
|
|
163
|
+
### Contributors
|
|
164
|
+
- @minev-dev
|
|
165
|
+
|
|
166
|
+
## [v0.1.4] - 2026-02-08
|
|
167
|
+
|
|
168
|
+
### Added
|
|
169
|
+
- **Session Identity:** Migrated session IDs to UUIDs for stable identification.
|
|
170
|
+
- **Session Management:** Added a forward-only migration system for schema changes.
|
|
171
|
+
- **UI:** Added nullable title support to sessions.
|
|
172
|
+
- **UI:** Improved chat input with indentation preservation on wrapped lines.
|
|
173
|
+
|
|
174
|
+
### Changed
|
|
175
|
+
- **Session Ordering:** Sessions are now strictly ordered by `updated_at` (latest first).
|
|
176
|
+
- **Performance:** Implemented incremental session state refresh to reduce database load.
|
|
177
|
+
- **UX:** Moved prompt cursor by visual wrapped lines for better navigation.
|
|
178
|
+
- **Internal:** Use `String` directly for session IDs in `AppMode` and command flows.
|
|
179
|
+
- **Internal:** Refactored health checks into flat pass/fail checks.
|
|
180
|
+
- **Database:** Manage session timestamps directly in SQLite.
|
|
181
|
+
- **Database:** Use multiline SQL strings for better query readability.
|
|
182
|
+
|
|
183
|
+
### Removed
|
|
184
|
+
- Removed project-filtered session loader.
|
|
185
|
+
- Removed git worktree suffix from initial session prompt.
|
|
186
|
+
- Removed Reply mode; unified into session chat page.
|
|
187
|
+
|
|
188
|
+
### Contributors
|
|
189
|
+
- @minev-dev
|
|
190
|
+
|
|
191
|
+
## [v0.1.3] - 2026-02-08
|
|
192
|
+
|
|
193
|
+
### Added
|
|
194
|
+
- **Backends:** Added Codex backend support.
|
|
195
|
+
- **Project Management:** Added project switching with automatic sibling discovery.
|
|
196
|
+
- **Diff View:** Show all file changes in diff view.
|
|
197
|
+
- **Status:** Show status as text in session list and chat title.
|
|
198
|
+
- **Health:** Added version normalization for agent checks.
|
|
199
|
+
- **Testing:** Added `pr-testing` directory to root index.
|
|
200
|
+
|
|
201
|
+
### Changed
|
|
202
|
+
- **Concurrency:** Converted event loop to async to fix TUI freezing on macOS.
|
|
203
|
+
- **Input:** Improved multiline input editing.
|
|
204
|
+
- **Workflow:** Enforced review-based session status transitions.
|
|
205
|
+
- **Performance:** Reduced tick rate to 50ms for smoother output.
|
|
206
|
+
- **Locking:** Replaced `fs2` with `std` file locking.
|
|
207
|
+
- **Formatting:** Added code formatting rules and applied to `ag-xtask`.
|
|
208
|
+
|
|
209
|
+
### Fixed
|
|
210
|
+
- Fixed UI freezing on macOS during agent execution.
|
|
211
|
+
- Clarified git worktree requirements in README.
|
|
212
|
+
|
|
213
|
+
### Contributors
|
|
214
|
+
- @andagaev
|
|
215
|
+
- @minev-dev
|
|
216
|
+
|
|
217
|
+
## [v0.1.2] - 2026-02-08
|
|
218
|
+
|
|
219
|
+
### Added
|
|
220
|
+
- **GitHub Integration:** Added 'p' command to create GitHub Pull Requests (draft by default).
|
|
221
|
+
- **GitHub Integration:** Added GitHub CLI health check with nested auth sub-check.
|
|
222
|
+
- **UI:** Centralized icons into a reusable `Icon` enum.
|
|
223
|
+
- **UI:** Improve command palette with arrow navigation and auto-select.
|
|
224
|
+
- **Database:** Persist session status to the database.
|
|
225
|
+
|
|
226
|
+
### Changed
|
|
227
|
+
- **UX:** Use `/` selector in command palette dropdowns.
|
|
228
|
+
- **UX:** Ensure exactly one blank line before the spinner in chat view.
|
|
229
|
+
- **Health:** Rename Claude health check label to Claude Code.
|
|
230
|
+
- **Internal:** Refactor PR creation logic and tests.
|
|
231
|
+
- **Internal:** Optimize quality gates for AI agents.
|
|
232
|
+
|
|
233
|
+
### Removed
|
|
234
|
+
- Remove custom Gemini configuration creation.
|
|
235
|
+
|
|
236
|
+
### Contributors
|
|
237
|
+
- @minev-dev
|
|
238
|
+
|
|
239
|
+
## [v0.1.1] - 2026-02-08
|
|
240
|
+
|
|
241
|
+
### Added
|
|
242
|
+
- **Database:** Introduce SQLite via SQLx for session metadata.
|
|
243
|
+
- **UI:** Add command palette with agents selection.
|
|
244
|
+
- **UI:** Add health check splash screen via `/health` command.
|
|
245
|
+
- **UI:** Add git status indicator to footer bar.
|
|
246
|
+
- **Docs:** Add installation guide to README.
|
|
247
|
+
|
|
248
|
+
### Changed
|
|
249
|
+
- **Async:** Convert sync DB wrapper and thread spawns to native async.
|
|
250
|
+
- **Tooling:** Replace `cargo-machete` with `cargo-shear` in quality gates.
|
|
251
|
+
- **UI:** Use tilde for home directory in footer.
|
|
252
|
+
- **Internal:** Reorder struct fields by visibility and name.
|
|
253
|
+
|
|
254
|
+
### Contributors
|
|
255
|
+
- @andagaev
|
|
256
|
+
- @minev-dev
|
|
257
|
+
|
|
258
|
+
## [v0.1.0] - 2026-02-08
|
|
259
|
+
|
|
260
|
+
- Initial release.
|
|
261
|
+
|
|
262
|
+
### Contributors
|
|
263
|
+
- @andagaev
|
|
264
|
+
- @dependabot[bot]
|
|
265
|
+
- @minev-dev
|
package/LICENSE
ADDED
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
+
|
|
180
|
+
To apply the Apache License to your work, attach the following
|
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
182
|
+
replaced with your own identifying information. (Don't include
|
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
+
comment syntax for the file format. We also recommend that a
|
|
185
|
+
file or class name and description of purpose be included on the
|
|
186
|
+
same "printed page" as the copyright notice for easier
|
|
187
|
+
identification within third-party archives.
|
|
188
|
+
|
|
189
|
+
Copyright [yyyy] [name of copyright owner]
|
|
190
|
+
|
|
191
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
+
you may not use this file except in compliance with the License.
|
|
193
|
+
You may obtain a copy of the License at
|
|
194
|
+
|
|
195
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
196
|
+
|
|
197
|
+
Unless required by applicable law or agreed to in writing, software
|
|
198
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
200
|
+
See the License for the specific language governing permissions and
|
|
201
|
+
limitations under the License.
|
package/README.md
ADDED
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
# Agentty
|
|
2
|
+
|
|
3
|
+

|
|
4
|
+
|
|
5
|
+
A terminal UI tool for managing agents, built with Rust and [Ratatui](https://ratatui.rs).
|
|
6
|
+
|
|
7
|
+

|
|
8
|
+
|
|
9
|
+
## Installation
|
|
10
|
+
|
|
11
|
+
### Shell
|
|
12
|
+
|
|
13
|
+
```sh
|
|
14
|
+
curl --proto '=https' --tlsv1.2 -LsSf https://github.com/opencloudtool/agentty/releases/latest/download/agentty-installer.sh | sh
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
### Cargo
|
|
18
|
+
|
|
19
|
+
```sh
|
|
20
|
+
cargo install agentty
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
### npm
|
|
24
|
+
|
|
25
|
+
```sh
|
|
26
|
+
npm install -g @opencloudtool/agentty
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
### npx
|
|
30
|
+
|
|
31
|
+
Run without installing:
|
|
32
|
+
|
|
33
|
+
```sh
|
|
34
|
+
npx @opencloudtool/agentty
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
## Prerequisites
|
|
38
|
+
|
|
39
|
+
- Rust nightly toolchain (configured via `rust-toolchain.toml`)
|
|
40
|
+
- Git (required for session worktree integration)
|
|
41
|
+
- One supported agent CLI installed: `gemini`, `claude`, or `codex`
|
|
42
|
+
|
|
43
|
+
## Session Agent, Model, and Permission Mode
|
|
44
|
+
|
|
45
|
+
Agent, model, and permission mode are configured per session, and the latest
|
|
46
|
+
selection becomes the default for newly created sessions.
|
|
47
|
+
|
|
48
|
+
- New sessions start with the most recently used `agent` + `model` +
|
|
49
|
+
`permission_mode`.
|
|
50
|
+
- On a fresh setup (no previous session changes), defaults are `gemini` +
|
|
51
|
+
`gemini-3-flash-preview` + `auto_edit`.
|
|
52
|
+
- In prompt mode, type `/model` as the first input token to open the multistep picker:
|
|
53
|
+
- choose agent (`gemini`, `codex`, `claude`)
|
|
54
|
+
- choose model from that agent's curated model list
|
|
55
|
+
- In prompt mode, press `Up` / `Down` to iterate previously sent messages for the active session and quickly resend/edit them.
|
|
56
|
+
- Press `Shift+Tab` in chat view or prompt mode to toggle permission mode for the current session.
|
|
57
|
+
- Permission modes:
|
|
58
|
+
- `auto_edit` (default): runs with standard edit permissions.
|
|
59
|
+
- `autonomous`: runs with elevated autonomy (backend-specific flags such as `--yolo` or skipping permission prompts).
|
|
60
|
+
- `plan`: asks the agent for a detailed plan instead of implementation.
|
|
61
|
+
- After a plan response in chat view, an inline action bar appears:
|
|
62
|
+
- `Implement the plan`: switches that session to `auto_edit` and sends an implementation prompt.
|
|
63
|
+
- `Type feedback`: opens prompt input so you can send feedback while keeping `plan` mode.
|
|
64
|
+
- Use `Left` / `Right` arrows to choose and `Enter` to confirm.
|
|
65
|
+
- The active mode is shown in the session chat title.
|
|
66
|
+
- Changes are persisted for that session and used as defaults for future sessions.
|
|
67
|
+
|
|
68
|
+
## Features
|
|
69
|
+
|
|
70
|
+
### Git Worktree Integration
|
|
71
|
+
|
|
72
|
+
Agentty creates isolated worktrees for each session:
|
|
73
|
+
|
|
74
|
+
- **Isolated Branches:** Each session gets its own branch named `agentty/<hash>` based on your current branch
|
|
75
|
+
- **Separate Working Directory:** Sessions work in isolated directories under `~/.agentty/wt/`
|
|
76
|
+
- **Diff View:** Press `d` in the chat view to see real-time changes made by the agent
|
|
77
|
+
- **Rebase Action:** Press `r` in the chat view to rebase the session branch onto its base branch
|
|
78
|
+
- **Automatic Cleanup:** Worktrees and branches are automatically removed when sessions are deleted
|
|
79
|
+
|
|
80
|
+
This allows agents to work on code changes without affecting your main working directory.
|
|
81
|
+
|
|
82
|
+
## Quickstart
|
|
83
|
+
|
|
84
|
+
```sh
|
|
85
|
+
git clone <repo-url>
|
|
86
|
+
cd agentty
|
|
87
|
+
cargo run # Builds and runs the 'agentty' binary
|
|
88
|
+
```
|
|
89
|
+
|
|
90
|
+
## Development
|
|
91
|
+
|
|
92
|
+
```sh
|
|
93
|
+
cargo test
|
|
94
|
+
cargo clippy -- -D warnings
|
|
95
|
+
cargo fmt --all -- --check
|
|
96
|
+
cargo shear
|
|
97
|
+
```
|
|
98
|
+
|
|
99
|
+
## License
|
|
100
|
+
|
|
101
|
+
Apache-2.0
|