kylon-cli 0.3.10 → 0.4.0-next.714

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 CHANGED
@@ -79,8 +79,8 @@ blocks scheduled tasks) the daemon runs in the foreground until `Ctrl+C`, and
79
79
  ### `kylon onboard`
80
80
 
81
81
  `kylon onboard` is the terminal-first way to start: it creates a **new**
82
- workspace from the Claude Code context already on this machine. Run it from
83
- your project directory, or install and onboard in one line:
82
+ workspace from the Claude Code or Codex context already on this machine. Run it
83
+ from your project directory, or install and onboard in one line:
84
84
 
85
85
  ```bash
86
86
  curl -fsSL https://api.kylon.io/install.sh | sh -s -- onboard
@@ -90,18 +90,71 @@ The installer hands `kylon onboard` the controlling terminal for its one local
90
90
  question; on a machine without one (CI, a headless box) it passes `--yes` and
91
91
  the browser confirmation is the only gate.
92
92
 
93
+ Which agent it builds from is decided first, and never by guessing twice:
94
+ `--provider claude-code|codex` decides outright; otherwise, when only one of
95
+ the two has anything on this machine, that one is used; when both do, you are
96
+ asked. A run that cannot ask — `--yes`, `--json`, or the hosted installer's
97
+ non-TTY pipe — uses Claude Code, which is what the command has always meant, and
98
+ says so when it passed over Codex.
99
+
93
100
  It detects, offline and read-only, the project (the nearest `.git` ancestor,
94
- whose directory name becomes the workspace name), the `CLAUDE.md` instruction
95
- files (project, `.claude/`, and user-level), the skill directories under
96
- `.claude/skills/` that carry a `SKILL.md`, and the project's Claude Code memory
97
- entries. Env files, credential-shaped content, binaries, empty files, oversized
98
- files, and symlinks are never uploaded. It prints what it found, asks once
99
- (Enter confirms), then opens your browser: you sign in or sign up, review the
100
- proposal, rename or untick anything, and press one button. The workspace, its
101
- Rooms, the agent, its persona, its skills, and its memory are created there;
102
- the terminal then connects this computer's agent and starts the local runtime.
103
- Nothing durable exists until you press that button — an abandoned run leaves
104
- only expiring server-side state.
101
+ named from its `origin` repository when available and otherwise from its
102
+ directory), the instruction files, and the skill packages each agent loads.
103
+
104
+ For **Claude Code** that is the `CLAUDE.md` instruction files (project,
105
+ `.claude/`, and user-level), the user's Claude Code skill directory, the
106
+ project's memory entries, and direct child skill packages under these exact
107
+ repository locations:
108
+
109
+ - `.claude/skills`
110
+ - `.agents/skills`
111
+ - `.github/skills`
112
+ - `agent_resources/skills`
113
+ - `skills`
114
+
115
+ For **Codex** it is `AGENTS.md`, walked the way Codex walks it:
116
+ `$CODEX_HOME/AGENTS.md` first, then one file in **every** directory from the
117
+ repository root down to the working directory, deepest last, because that is
118
+ the order Codex applies them in and the order the persona is joined in. Its
119
+ skills come from `.agents/skills` in every directory from the working directory
120
+ up to the repository root, plus `$CODEX_HOME/skills` and `$HOME/.agents/skills`;
121
+ the nearest directory wins a name contest, and Codex's own `.system` built-ins
122
+ are left alone. `AGENTS.override.md` is never uploaded, for the same reason
123
+ `CLAUDE.local.md` is not: Codex documents it as a temporary machine-local
124
+ override, removed to restore the shared guidance, so it is one machine's
125
+ private amendment rather than the instruction set a workspace should inherit.
126
+ When the instruction chain is longer than the five-file cap, the global layer,
127
+ the repository root, and the directories nearest the working directory are kept
128
+ and the dropped middle is reported. There is a length budget as well as a file
129
+ count: the agent's instructions are held to a character limit that the server
130
+ applies by trimming the *end* of the joined text, which for Codex is the most
131
+ specific layer. So when the combined files are too long, the broadest ones are
132
+ dropped here instead — and named — so the instructions closest to your working
133
+ directory are the ones that survive.
134
+
135
+ Each skill package must be a direct child directory with a top-level
136
+ `SKILL.md`. Discovery checks only the listed roots; it does not recursively
137
+ search the repository for directories named `skills`. Roots are processed in
138
+ the listed order, duplicate package names keep the first match, and an
139
+ unusually large root is skipped before any packages inside it are read.
140
+
141
+ Codex memory is **not** uploaded unless you pass `--include-memory`. Claude
142
+ Code keeps memory per project, so onboarding one project uploads only that
143
+ project's entries; Codex keeps a single store under `$CODEX_HOME/memories`
144
+ covering every repository the machine has worked on, and sending all of it to a
145
+ new workspace is a choice rather than a detail. With the flag, the entries and
146
+ the compact `memory_summary.md` are uploaded; the `MEMORY.md` routing index and
147
+ Codex's derived working state (`raw_memories.md`, `rollout_summaries/`) are not.
148
+
149
+ Env files, credential-shaped content, binaries, empty files, oversized files,
150
+ and symlinks are never uploaded. Its terminal summary shows the semantic
151
+ project name and its source separately from the physical checkout root. It then
152
+ asks once (Enter confirms) and opens your browser: you sign in or sign up,
153
+ review the proposal, rename or untick anything, and press one button. The
154
+ workspace, its Rooms, the agent, its persona, its skills, and its memory are
155
+ created there; the terminal then connects this computer's agent and starts the
156
+ local runtime. Nothing durable exists until you press that button — an
157
+ abandoned run leaves only expiring server-side state.
105
158
 
106
159
  It never attaches to an existing workspace. For that, use `kylon login` and
107
160
  create the agent in the Web UI.
@@ -129,9 +182,9 @@ also stops the run until it is repaired or discarded, and so does a damaged
129
182
  `computer-session.json`, which is read strictly at the one-connection check. One `kylon onboard` runs per computer at a time (a
130
183
  second concurrent run is refused up front; a run that was paused for minutes
131
184
  while another took its place stops rather than continuing), and a resumed run
132
- applies the same one-connection rule as a fresh one. `--json` never starts Claude Code's interactive sign-in; a
133
- signed-out Claude Code fails with the command to run, and stdout stays one JSON
134
- document. A workspace credential that cannot be saved locally is revoked
185
+ applies the same one-connection rule as a fresh one. `--json` never starts the
186
+ provider's interactive sign-in; a signed-out Claude Code or Codex fails with the
187
+ command to run, and stdout stays one JSON document. A workspace credential that cannot be saved locally is revoked
135
188
  server-side rather than left live.
136
189
 
137
190
  For agent-driven runs, `--yes` skips the local prompt and `--json` (which
@@ -139,7 +192,9 @@ requires `--yes`) prints
139
192
  `{ ok, server_url, workspace_id, workspace_name, agent_id, agent_name, room_id, workspace_url, credentials_path }`
140
193
  on stdout — never the API key or the link token — while the browser URL and
141
194
  user code go to stderr so a human can still complete the confirmation.
142
- `--workspace-name` and `--agent-name` override the detected names,
195
+ `--project-name` overrides the detected project and suggested Room name;
196
+ unless `--workspace-name` is also given, it becomes the workspace name too.
197
+ `--workspace-name` and `--agent-name` override those detected names,
143
198
  `--cwd <dir>` detects somewhere other than the working directory, `--no-start`
144
199
  connects without starting the runtime, and `--no-modify-path` leaves shell
145
200
  profiles untouched.
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.3.10",
3
- "fingerprint": "2ca7a16642dc49b8fb33d9906063da7af1fae3e86e5acdf00cf44962bb53d877",
4
- "source_commit": "c474eeb5ea80bff7f26c4c2d9ccbe27febe4ebe8"
2
+ "version": "0.4.0-next.714",
3
+ "fingerprint": "49f262687539d8324488ff754db6d893b6dcff0df84d5491f97ba4b88ab843e2",
4
+ "source_commit": "99b6d7826fe83cd409423ad77ac663cf444fdd70"
5
5
  }