hinacode 0.3.0-alpha.1 → 0.3.0-alpha.11
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/README.md +14 -11
- package/out/server/chunks/{remote-CwGJoiQN.js → remote-bP8M4Xnc.js} +2125 -893
- package/out/server/chunks/sdk-DZclv7I1.js +33693 -0
- package/out/server/cli.js +104 -30
- package/out/server/daemon.js +30301 -26068
- package/package.json +1 -1
- package/out/server/chunks/sdk-BjcPK2t_.js +0 -30502
package/README.md
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
**Run many agents. Know which one needs you.**
|
|
8
8
|
|
|
9
|
-
A delightful workstation for running Claude Code, Codex, Muse Code, and
|
|
9
|
+
A delightful workstation for running Claude Code, Codex, Muse Code, opencode, and magpie in parallel, each in its own worktree, each visible at a glance.
|
|
10
10
|
|
|
11
11
|
[](https://github.com/hinadev-ai/hinacode/actions/workflows/ci.yml)
|
|
12
12
|
[](https://github.com/hinadev-ai/hinacode/actions/workflows/build.yml)
|
|
@@ -49,7 +49,7 @@ HinaCode is a **delightful workstation for coding agents**. It handles the work
|
|
|
49
49
|
## Features
|
|
50
50
|
|
|
51
51
|
- **A worktree per thread.** Branch from `main`, any branch, or an open pull request. Your setup script runs before the agent starts.
|
|
52
|
-
- **
|
|
52
|
+
- **Five agents, one sidebar.** Pick Claude Code, Codex, Muse Code, opencode, or magpie per thread, and switch mid-thread.
|
|
53
53
|
- **Inbox.** Every active thread in one list, with approvals and questions marked.
|
|
54
54
|
- **Inline approvals and questions.** Allow, deny with a note, or answer without leaving the thread.
|
|
55
55
|
- **Steer or queue.** Change the agent's course mid-turn, or queue the next task behind it.
|
|
@@ -57,9 +57,10 @@ HinaCode is a **delightful workstation for coding agents**. It handles the work
|
|
|
57
57
|
- **Browser, terminal, and ports.** Open the dev server, a shell, and the ports an agent left open beside the thread. Mention a terminal with `@` or send its selected output to the thread, and the agent reads it.
|
|
58
58
|
- **Linked pull requests.** See checks and review state next to the thread. HinaCode tells the agent when checks fail or a review lands.
|
|
59
59
|
- **Merge and clean up.** Squash and merge from the thread, and HinaCode removes the worktree.
|
|
60
|
-
- **
|
|
60
|
+
- **Routines.** Run a prompt on a schedule, from a webhook, or from the CLI, in the project folder or a new worktree.
|
|
61
61
|
- **Built-in MCP server.** Agents can ask you for secrets, hand work to other threads, drive a disposable VM or mobile simulators, and use Linear.
|
|
62
62
|
- **Remote machines and your phone.** Run `npx hinacode serve` on another machine, then approve, steer, and merge from the phone app.
|
|
63
|
+
- **Other apps.** Add your machine's URL to a chat app or agent harness that speaks remote MCP, approve it with a one-time code, then start, read, and steer threads from there.
|
|
63
64
|
|
|
64
65
|
---
|
|
65
66
|
|
|
@@ -67,12 +68,13 @@ HinaCode is a **delightful workstation for coding agents**. It handles the work
|
|
|
67
68
|
|
|
68
69
|
Install each CLI you want to use, sign in, and keep it on your `PATH`. HinaCode never sits between you and the provider.
|
|
69
70
|
|
|
70
|
-
| Agent | CLI | Sign in | Protocol
|
|
71
|
-
| ----------------------------------------------------- | ---------- | -------------------------------- |
|
|
72
|
-
| [Claude Code](https://claude.com/product/claude-code) | `claude` | `claude` (follow the login flow) | Agent SDK
|
|
73
|
-
| [Codex](https://openai.com/codex/) | `codex` | `codex` (follow the login flow) | App-server protocol
|
|
74
|
-
| Muse Code | `muse` | `muse login` | MSP
|
|
75
|
-
| [opencode](https://opencode.ai) | `opencode` | `opencode auth login` | Agent Client Protocol (ACP)
|
|
71
|
+
| Agent | CLI | Sign in | Protocol |
|
|
72
|
+
| ----------------------------------------------------- | ---------- | -------------------------------- | ----------------------------- |
|
|
73
|
+
| [Claude Code](https://claude.com/product/claude-code) | `claude` | `claude` (follow the login flow) | Agent SDK |
|
|
74
|
+
| [Codex](https://openai.com/codex/) | `codex` | `codex` (follow the login flow) | App-server protocol |
|
|
75
|
+
| Muse Code | `muse` | `muse login` | MSP |
|
|
76
|
+
| [opencode](https://opencode.ai) | `opencode` | `opencode auth login` | Agent Client Protocol (ACP) |
|
|
77
|
+
| [magpie](https://usemagpie.ai) | `claude` | run magpie | Agent SDK through the gateway |
|
|
76
78
|
|
|
77
79
|
Adding a backend takes one `AgentProvider` implementation in `src/main/agents/` plus registration in the runner. See the [agent provider guide](docs/agent-providers.md).
|
|
78
80
|
|
|
@@ -241,7 +243,8 @@ HinaCode runs agents that execute code on your machine, so a few boundaries are
|
|
|
241
243
|
|
|
242
244
|
- The renderer is sandboxed, and only the top-level app frame may call `rpc`.
|
|
243
245
|
- `shell.openExternal` only opens `http(s)` URLs.
|
|
244
|
-
- The MCP server listens on loopback only, and its credential scopes each call to one thread.
|
|
246
|
+
- The MCP server for agents listens on loopback only, and its credential scopes each call to one thread.
|
|
247
|
+
- The MCP server for apps you connect is reachable only through your relay hostname, only after you approve the app with a one-time code, and only offers project and thread tools.
|
|
245
248
|
- Webhooks require an HMAC signature, checked with `timingSafeEqual`.
|
|
246
249
|
- The attachment protocol refuses paths outside its root.
|
|
247
250
|
- Secrets go through `services/Secrets.ts`, sealed by the OS keyring. They are never logged, put in a URL, or sent to the renderer.
|
|
@@ -257,7 +260,7 @@ Several designs in HinaCode follow [T3 Code](https://github.com/pingdotgg/t3code
|
|
|
257
260
|
- Effect services as `Context.Service` classes with a `make` effect and a `layer` export, and migrations registered through `Migrator.fromRecord`.
|
|
258
261
|
- The MCP server design: Effect's `McpServer.layerHttp` behind a bearer credential, one random credential per thread, injected into the agent's MCP config. The pull request tools (`link_pull_request`, `unlink_pull_request`, `list_thread_pull_requests`) and `request_secret` share T3 Code's names.
|
|
259
262
|
- The pull request checks rollup: `null` when a PR has no checks, failing before pending before passing, and `workflow / name` as the check label.
|
|
260
|
-
-
|
|
263
|
+
- Routine webhooks verified with a `sha256=` HMAC in `x-hub-signature-256`.
|
|
261
264
|
- Remote browser tabs run headless Chromium on the thread's host and send screencasts to the client. We compared Orca's local network proxy and server streaming before choosing this design for the Node daemon. See [the remote browser design](docs/features/2026-10-26-remote-browser.md).
|
|
262
265
|
|
|
263
266
|
---
|