Compare commits
6
Commits
v0.1.16
...
37ebf96108
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
37ebf96108 | ||
|
|
47e184738a | ||
|
|
800bae97d7 | ||
|
|
1f4f8aa081 | ||
|
|
061649cb07 | ||
|
|
9d8b7dfbd8 |
No files matched your search
@@ -15,6 +15,12 @@ hx -r # pick a session to resume
|
|||||||
hx -r parser # resume the session whose title best matches "parser"
|
hx -r parser # resume the session whose title best matches "parser"
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## Dependencies
|
||||||
|
|
||||||
|
- Rust toolchain (to build from source; `cmake` and `perl` may be needed for the TLS stack).
|
||||||
|
- `git`.
|
||||||
|
- Linux: [`bubblewrap`](https://github.com/containers/bubblewrap) (`bwrap`) on `PATH` (`apt install bubblewrap`, `pacman -S bubblewrap`, `dnf install bubblewrap`). The Nix package wraps `hx` so it is provided automatically.
|
||||||
|
|
||||||
TUI: `enter` send, `shift-enter`/`alt-enter`/`ctrl-j` newline (or end a line with `\` and press enter), `esc` abort, `ctrl-o` expand tool output.
|
TUI: `enter` send, `shift-enter`/`alt-enter`/`ctrl-j` newline (or end a line with `\` and press enter), `esc` abort, `ctrl-o` expand tool output.
|
||||||
|
|
||||||
Shift-enter needs a terminal that reports it; hx turns on the kitty keyboard protocol when the terminal answers the probe. Works in ghostty, kitty, WezTerm (`enable_kitty_keyboard = true`), iTerm2, foot, Alacritty 0.13+, Windows Terminal (map shift-enter to `\u001b[13;2u`) and zellij 0.41+. tmux 3.2+ needs `set -g extended-keys on` and `set -g extended-keys-format csi-u`. Elsewhere use `alt-enter`, `ctrl-j` or a trailing `\`. `/keys` prints every key as hx receives it, to see what a terminal or multiplexer (e.g. herdr) passes through. Long input lines wrap; the box grows up to 10 rows.
|
Shift-enter needs a terminal that reports it; hx turns on the kitty keyboard protocol when the terminal answers the probe. Works in ghostty, kitty, WezTerm (`enable_kitty_keyboard = true`), iTerm2, foot, Alacritty 0.13+, Windows Terminal (map shift-enter to `\u001b[13;2u`) and zellij 0.41+. tmux 3.2+ needs `set -g extended-keys on` and `set -g extended-keys-format csi-u`. Elsewhere use `alt-enter`, `ctrl-j` or a trailing `\`. `/keys` prints every key as hx receives it, to see what a terminal or multiplexer (e.g. herdr) passes through. Long input lines wrap; the box grows up to 10 rows.
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"version": "0.1.15",
|
"version": "0.2.2",
|
||||||
"sha256": {
|
"sha256": {
|
||||||
"aarch64-apple-darwin": "763590cc23353a10e673d2dd6e1a6c30c62dc7a9f5d02a7c293ad1dd72ac5c90",
|
"aarch64-apple-darwin": "84b1789847d5e3b94f903ef5f9cf67336b7b5a2d8801fe9fde68656e5a9167cc",
|
||||||
"x86_64-unknown-linux-musl": "4a6ad16c85e69fb3aa616ccf23aaafdb5ae6966cbee7de00b4b67bcfb9363a8e"
|
"x86_64-unknown-linux-musl": "ccff5a974df795a044853a66594424e3176eb9c4a8ef2315176ef2ab3ed95dfc"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -333,6 +333,8 @@ fn claude_extra(bin: &str) -> hx_core::sandbox::Extra {
|
|||||||
home.join(".claude"),
|
home.join(".claude"),
|
||||||
home.join(".claude.json"),
|
home.join(".claude.json"),
|
||||||
home.join(".config/claude"),
|
home.join(".config/claude"),
|
||||||
|
// macOS keeps claude's login in the login keychain; without it claude says "Not logged in"
|
||||||
|
home.join("Library/Keychains"),
|
||||||
hx_core::approve::sock_path(),
|
hx_core::approve::sock_path(),
|
||||||
],
|
],
|
||||||
network: true,
|
network: true,
|
||||||
|
|||||||
+1
-1
@@ -11,7 +11,7 @@
|
|||||||
packages = [
|
packages = [
|
||||||
pkgs.git
|
pkgs.git
|
||||||
pkgs.stdenv.cc
|
pkgs.stdenv.cc
|
||||||
];
|
] ++ lib.optional pkgs.stdenv.hostPlatform.isLinux pkgs.bubblewrap;
|
||||||
|
|
||||||
languages.rust.enable = true;
|
languages.rust.enable = true;
|
||||||
}
|
}
|
||||||
@@ -31,8 +31,12 @@
|
|||||||
# ponytail: tests skipped (need git/network); enable when hermetic.
|
# ponytail: tests skipped (need git/network); enable when hermetic.
|
||||||
doCheck = false;
|
doCheck = false;
|
||||||
# rustls may build aws-lc-sys (cmake) depending on feature set.
|
# rustls may build aws-lc-sys (cmake) depending on feature set.
|
||||||
nativeBuildInputs = [ pkgs.cmake pkgs.perl ];
|
nativeBuildInputs = [ pkgs.cmake pkgs.perl ] ++ pkgs.lib.optionals pkgs.stdenv.hostPlatform.isLinux [ pkgs.makeWrapper ];
|
||||||
dontUseCmakeConfigure = true;
|
dontUseCmakeConfigure = true;
|
||||||
|
# bubblewrap sandbox runtime dependency (Linux only).
|
||||||
|
postInstall = pkgs.lib.optionalString pkgs.stdenv.hostPlatform.isLinux ''
|
||||||
|
wrapProgram $out/bin/hx --suffix PATH : ${pkgs.lib.makeBinPath [ pkgs.bubblewrap ]}
|
||||||
|
'';
|
||||||
meta = {
|
meta = {
|
||||||
description = "Minimal Rust coding agent using existing subscriptions";
|
description = "Minimal Rust coding agent using existing subscriptions";
|
||||||
license = pkgs.lib.licenses.unlicense;
|
license = pkgs.lib.licenses.unlicense;
|
||||||
@@ -67,7 +71,7 @@
|
|||||||
|
|
||||||
devShells = forAll (pkgs: {
|
devShells = forAll (pkgs: {
|
||||||
default = pkgs.mkShell {
|
default = pkgs.mkShell {
|
||||||
packages = with pkgs; [ cargo rustc clippy rustfmt rust-analyzer git ];
|
packages = with pkgs; [ cargo rustc clippy rustfmt rust-analyzer git ] ++ pkgs.lib.optional pkgs.stdenv.hostPlatform.isLinux pkgs.bubblewrap;
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in new issue
Block a user