The cross-harness, self-improving memory layer for AI agents. Join our community: https://discord.com/invite/zdNChS2fBu
Go agent-ai-cliagent-harnessesagent-securitybrowser-extensionciclaude-codecloudcodexcursordetection-engineeringjevknowledge-basememorymobile-device-managementobservabilitysecuritysecurity-information-and-event-managementsecurity-toolstelemetrytraces
Merge main into this branch
Claudedca7162e6ca4
diff --cc cli/beacon/cmd/handoff_resume_test.goindex e976aea6,1830a9cd..1ff0151a--- a/cli/beacon/cmd/handoff_resume_test.go+++ b/cli/beacon/cmd/handoff_resume_test.go@@@ -254,9 -254,9 +254,9 @@@ func TestHandoffResumeErrors(t *testingfunc TestHandoffResumeFromTheRuntimeLogStartsANewSession(t *testing.T) {f := newResumeFixture(t)- logPath := handoffLog(t, "gemini_cli", "gemini-conv-1", "rename the module")- logPath := handoffLog(t, "cursor", "cursor-conv-1", "rename the module")++ logPath := handoffLog(t, "vscode_copilot", "gemini-conv-1", "rename the module")dir := t.TempDir()- _, _, err := runResume(t, f, "cursor-conv-1", "--log-path", logPath, "--agent", "claude", "--cwd", dir, "--yes")+ _, _, err := runResume(t, f, "gemini-conv-1", "--log-path", logPath, "--agent", "claude", "--cwd", dir, "--yes")if err != nil {t.Fatalf("resume: %v", err)}diff --cc cli/beacon/cmd/handoff_test.goindex a79aca8c,b75663e5..41d72ad2--- a/cli/beacon/cmd/handoff_test.go+++ b/cli/beacon/cmd/handoff_test.go@@@ -411,8 -411,8 +411,8 @@@ func TestHandoffExportDefaultsUnderTheBfunc TestHandoffExportFallsBackToTheRuntimeLog(t *testing.T) {stubHandoffClock(t)stubHandoffSources(t, stubHandoffSource{harness: handoff.HarnessClaude})- logPath := handoffLog(t, "gemini_cli", "gemini-conv-1", "rename the module")- logPath := handoffLog(t, "cursor", "cursor-conv-1", "rename the module")- out, stderr, err := runHandoff(t, "export", "cursor-conv-1", "--log-path", logPath, "--output-dir", t.TempDir())++ logPath := handoffLog(t, "vscode_copilot", "gemini-conv-1", "rename the module")+ out, stderr, err := runHandoff(t, "export", "gemini-conv-1", "--log-path", logPath, "--output-dir", t.TempDir())if err != nil {t.Fatalf("export: %v", err)}@@@ -423,19 -423,9 +423,19 @@@if !strings.Contains(string(data), "rename the module") || !strings.Contains(string(data), "comes from Beacon's runtime log") {t.Fatalf("log brief:\n%s", data)}- if !strings.Contains(stderr, "beacon handoff does not read gemini_cli session stores") {- if !strings.Contains(stderr, "beacon handoff does not read cursor session stores") {++ if !strings.Contains(stderr, "beacon handoff does not read vscode_copilot session stores") {t.Fatalf("stderr should say why the brief came from the log: %q", stderr)}++ // A runtime whose store Beacon reads, but which no longer has the session, says so instead.+ cursorLog := handoffLog(t, "cursor", "cursor-conv-1", "rename the module")+ _, stderr, err = runHandoff(t, "export", "cursor-conv-1", "--log-path", cursorLog, "--output-dir", t.TempDir())+ if err != nil {+ t.Fatalf("export: %v", err)+ }+ if !strings.Contains(stderr, "cursor session cursor-conv-1 is no longer in its runtime's store") {+ t.Fatalf("stderr should say the store lost the session: %q", stderr)+ }}func TestHandoffExportRefusesTheLogWhenTheSessionsStoreIsUnreadable(t *testing.T) {@@@ -448,8 -438,8 +448,8 @@@}// Another runtime's session in the log is unaffected by the unreadable Claude store.- geminiLog := handoffLog(t, "gemini_cli", "gemini-conv-1", "rename the module")- cursorLog := handoffLog(t, "cursor", "cursor-conv-1", "rename the module")- out, _, err := runHandoff(t, "export", "cursor-conv-1", "--print", "--log-path", cursorLog)++ geminiLog := handoffLog(t, "vscode_copilot", "gemini-conv-1", "rename the module")+ out, _, err := runHandoff(t, "export", "gemini-conv-1", "--print", "--log-path", geminiLog)if err != nil || !strings.Contains(out, "rename the module") {t.Fatalf("export = %v\n%s", err, out)}@@@ -496,8 -486,8 +496,8 @@@ func TestHandoffExportErrors(t *testingt.Fatalf("unknown session err = %v", err)}- logPath := handoffLog(t, "gemini_cli", "gemini-conv-1", "x")- logPath := handoffLog(t, "cursor", "cursor-conv-1", "x")- if _, _, err := runHandoff(t, "export", "cursor-conv-1", "--harness", "codex", "--log-path", logPath); !errors.Is(err, handoff.ErrNotFound) {++ logPath := handoffLog(t, "vscode_copilot", "gemini-conv-1", "x")+ if _, _, err := runHandoff(t, "export", "gemini-conv-1", "--harness", "codex", "--log-path", logPath); !errors.Is(err, handoff.ErrNotFound) {t.Fatalf("--harness must also scope the log fallback, got %v", err)}@@@ -538,3 -528,15 +538,15 @@@ func TestDescribeHandoffPlanShowsTheEnvt.Fatalf("a plan with no overrides shows no env line: %q", out.String())}}++ func TestHandoffLogReasonNamesRuntimesWithoutAStore(t *testing.T) {+ gone := handoffLogReason(handoff.Session{Harness: handoff.HarnessClaude, ID: "c-1"})+ if !strings.Contains(gone, "no longer in its runtime's store") {+ t.Fatalf("store-backed runtime: %q", gone)+ }- for _, harness := range []string{handoff.HarnessGoose, "cursor"} {++ for _, harness := range []string{handoff.HarnessGoose, "vscode_copilot"} {+ if got := handoffLogReason(handoff.Session{Harness: harness, ID: "s-1"}); !strings.Contains(got, "does not read "+harness+" session stores") {+ t.Fatalf("%s: %q", harness, got)+ }+ }+ }diff --cc cli/beacon/internal/handoff/brief_test.goindex a5fee14f,1e13c264..a0518b44--- a/cli/beacon/internal/handoff/brief_test.go+++ b/cli/beacon/internal/handoff/brief_test.go@@@ -335,7 -335,7 +335,7 @@@ func TestEventsForASessionThatIsGone(tif _, err := Events(sources, session); err == nil || !strings.Contains(err.Error(), "no longer in its store") {t.Fatalf("err = %v", err)}- if _, err := Events(sources, Session{Harness: "gemini_cli"}); err == nil {- if _, err := Events(sources, Session{Harness: "cursor"}); err == nil {++ if _, err := Events(sources, Session{Harness: "vscode_copilot"}); err == nil {t.Fatal("an unsupported runtime must be an error")}if _, err := Events([]Source{fakeSource{harness: HarnessClaude}}, Session{Harness: HarnessClaude}); err == nil {@@@ -354,8 -354,8 +354,8 @@@ func actionList(events []schema.Event)func TestLogSession(t *testing.T) {logPath := filepath.Join(t.TempDir(), "runtime.jsonl")lines := []string{- `{"timestamp":"2026-09-25T09:00:00Z","vendor":"beacon","product":"endpoint-agent","schema_version":"1.0","event":{"kind":"agent_runtime","action":"prompt.submitted","category":"prompt"},"severity":"info","endpoint":{"hostname":"h","os":"linux"},"harness":{"name":"gemini_cli"},"session":{"id":"cur-1","working_directory":"/work/x"},"branch":"dev","prompt":{"text":"rename the module"}}`,- `{"timestamp":"2026-09-25T09:05:00Z","vendor":"beacon","product":"endpoint-agent","schema_version":"1.0","event":{"kind":"agent_runtime","action":"prompt.submitted","category":"prompt"},"severity":"info","endpoint":{"hostname":"h","os":"linux"},"harness":{"name":"gemini_cli"},"session":{"id":"other"},"prompt":{"text":"unrelated"}}`,- `{"timestamp":"2026-09-25T09:00:00Z","vendor":"beacon","product":"endpoint-agent","schema_version":"1.0","event":{"kind":"agent_runtime","action":"prompt.submitted","category":"prompt"},"severity":"info","endpoint":{"hostname":"h","os":"linux"},"harness":{"name":"cursor"},"session":{"id":"cur-1","working_directory":"/work/x"},"branch":"dev","prompt":{"text":"rename the module"}}`,- `{"timestamp":"2026-09-25T09:05:00Z","vendor":"beacon","product":"endpoint-agent","schema_version":"1.0","event":{"kind":"agent_runtime","action":"prompt.submitted","category":"prompt"},"severity":"info","endpoint":{"hostname":"h","os":"linux"},"harness":{"name":"cursor"},"session":{"id":"other"},"prompt":{"text":"unrelated"}}`,++ `{"timestamp":"2026-09-25T09:00:00Z","vendor":"beacon","product":"endpoint-agent","schema_version":"1.0","event":{"kind":"agent_runtime","action":"prompt.submitted","category":"prompt"},"severity":"info","endpoint":{"hostname":"h","os":"linux"},"harness":{"name":"vscode_copilot"},"session":{"id":"cur-1","working_directory":"/work/x"},"branch":"dev","prompt":{"text":"rename the module"}}`,++ `{"timestamp":"2026-09-25T09:05:00Z","vendor":"beacon","product":"endpoint-agent","schema_version":"1.0","event":{"kind":"agent_runtime","action":"prompt.submitted","category":"prompt"},"severity":"info","endpoint":{"hostname":"h","os":"linux"},"harness":{"name":"vscode_copilot"},"session":{"id":"other"},"prompt":{"text":"unrelated"}}`,}writeFixture(t, logPath, strings.Join(lines, "\n")+"\n")@@@ -363,14 -363,14 +363,14 @@@if err != nil || !found {t.Fatalf("LogSession = %v, %v", found, err)}- if session.Harness != "gemini_cli" || session.Directory != "/work/x" || session.Branch != "dev" || len(events) != 1 {- if session.Harness != "cursor" || session.Directory != "/work/x" || session.Branch != "dev" || len(events) != 1 {++ if session.Harness != "vscode_copilot" || session.Directory != "/work/x" || session.Branch != "dev" || len(events) != 1 {t.Fatalf("session = %+v, %d events", session, len(events))}if !session.UpdatedAt.Equal(time.Date(2026, 9, 25, 9, 0, 0, 0, time.UTC)) {t.Fatalf("updated = %s", session.UpdatedAt)}brief := BuildBrief(session, events, FromRuntimeLog, briefNow)- if brief.FirstRequest != "rename the module" || !strings.Contains(brief.Render(), "a gemini_cli session") {- if brief.FirstRequest != "rename the module" || !strings.Contains(brief.Render(), "a cursor session") {++ if brief.FirstRequest != "rename the module" || !strings.Contains(brief.Render(), "a vscode_copilot session") {t.Fatalf("log brief = %+v", brief)}if _, _, found, err := LogSession(logPath, "missing", ""); found || err != nil {diff --cc cli/beacon/internal/handoff/resume_test.goindex 625b4930,f5afcc5b..d62e5474--- a/cli/beacon/internal/handoff/resume_test.go+++ b/cli/beacon/internal/handoff/resume_test.go@@@ -24,7 -24,8 +24,7 @@@ func installed(names ...string) func(st}}- var allRuntimes = installed("claude", "codex", "opencode", "cline", "pi", "prime-agent", "cursor-agent")-var allRuntimes = installed("claude", "codex", "opencode", "cline", "pi", "prime-agent",- "omp", "gemini", "qwen", "kiro-cli", "agy", "devin", "muse", "openhands", "goose")++var allRuntimes = installed("claude", "codex", "opencode", "cline", "pi", "prime-agent", "omp", "gemini", "qwen", "kiro-cli", "agy", "devin", "muse", "openhands", "goose", "cursor-agent")// resumableSession is a session whose directory and session file both exist.func resumableSession(t *testing.T, harness, id string) Session {@@@ -80,7 -81,15 +80,16 @@@ func TestPlanResumeStartsANewSessionInE{HarnessCline, "cline", []string{"--tui", "--auto-approve", "false"}},{HarnessPi, "pi", []string{"--"}},{HarnessPrime, "prime-agent", []string{"--"}},+ {HarnessCursor, "cursor-agent", nil},+ {HarnessOhMyPi, "omp", []string{"--approval-mode=always-ask"}},+ {HarnessGemini, "gemini", []string{"--approval-mode", "default", "--prompt-interactive"}},+ {HarnessQwen, "qwen", []string{"--approval-mode", "default", "--prompt-interactive"}},+ {HarnessKiro, "kiro-cli", []string{"chat"}},+ {HarnessAntigravity, "agy", []string{"--prompt-interactive"}},+ {HarnessDevin, "devin", []string{"--permission-mode", "auto", "--"}},+ {HarnessMuse, "muse", []string{"--approval-mode", "on-request"}},+ {HarnessOpenHands, "openhands", []string{"--task"}},+ {HarnessGoose, "goose", []string{"run", "--interactive", "--text"}},} {t.Run(tc.target, func(t *testing.T) {source := HarnessCodex@@@ -205,10 -214,10 +214,10 @@@ func TestPlanResumeErrors(t *testing.Tif _, err := PlanResume(session, PlanOptions{Target: HarnessCodex, BriefPath: filepath.Join(t.TempDir(), "b.md"), LookPath: installed("claude")}); !errors.Is(err, ErrRuntimeNotInstalled) {t.Fatalf("missing target runtime err = %v", err)}- if _, err := PlanResume(session, PlanOptions{Target: "gemini_cli", LookPath: allRuntimes}); err == nil || !strings.Contains(err.Error(), "cannot be started") {- if _, err := PlanResume(session, PlanOptions{Target: "cursor", LookPath: allRuntimes}); err == nil || !strings.Contains(err.Error(), "cannot be started") {++ if _, err := PlanResume(session, PlanOptions{Target: "vscode_copilot", LookPath: allRuntimes}); err == nil || !strings.Contains(err.Error(), "cannot be started") {t.Fatalf("unsupported target err = %v", err)}- if _, err := PlanResume(Session{Harness: "gemini_cli", ID: "x", Directory: t.TempDir()}, PlanOptions{LookPath: allRuntimes}); err == nil {- if _, err := PlanResume(Session{Harness: "cursor", ID: "x", Directory: t.TempDir()}, PlanOptions{LookPath: allRuntimes}); err == nil {++ if _, err := PlanResume(Session{Harness: "vscode_copilot", ID: "x", Directory: t.TempDir()}, PlanOptions{LookPath: allRuntimes}); err == nil {t.Fatal("a session from an unsupported runtime needs --agent")}if _, err := PlanResume(session, PlanOptions{ForceNew: true, LookPath: allRuntimes}); err == nil || !strings.Contains(err.Error(), "brief path") {diff --cc cli/beacon/internal/handoff/runtimes.goindex 814bd483,c23c418d..c648323c--- a/cli/beacon/internal/handoff/runtimes.go+++ b/cli/beacon/internal/handoff/runtimes.go@@@ -57,7 -53,17 +57,18 @@@ constHarnessCline = clinesession.HarnessHarnessPi = pisession.HarnessHarnessPrime = primesession.Harness+ HarnessCursor = cursorsession.Harness++ // Runtimes Beacon starts but whose sessions it reads only from the runtime log.+ HarnessOhMyPi = "omp"+ HarnessGemini = "gemini_cli"+ HarnessQwen = "qwen_code"+ HarnessKiro = "kiro"+ HarnessAntigravity = "antigravity_cli"+ HarnessDevin = "devin-cli"+ HarnessMuse = "muse_code"+ HarnessOpenHands = "openhands"+ HarnessGoose = "goose")// runtimes lists every runtime handoff supports, in display order.@@@ -154,26 -160,103 +165,123 @@@ var runtimes = []RuntimeNewSession: func(prompt string) []string { return []string{"--", prompt} },},},+ {+ Harness: HarnessCursor,+ Label: "Cursor",+ NewSource: func(dir string) Source { return &cursorSource{dir: dir} },+ // cursor-agent asks before running commands unless given --force; Beacon never passes it.+ Command: &runtimeCommand{+ Executable: "cursor-agent",+ Resume: func(s Session) ([]string, bool) {+ // --resume takes a CLI chat id. IDE conversations and subagent transcripts are not+ // chats the CLI can load.+ if !cursorCLIChat(s) {+ return nil, false+ }+ return []string{"--resume", s.ID}, true+ },+ NewSession: func(prompt string) []string { return []string{prompt} },+ // cursor-agent looks a chat id up under a hash of the directory it is started in.+ ResumesInSessionDir: true,+ },+ },++ // The runtimes below keep no session store Beacon reads. Their sessions come from Beacon's+ // runtime log, so they always continue from a brief; each can also be the runtime another+ // session continues in. Where a CLI lets its approval mode be set, the command pins the mode+ // that asks, so a user or project setting that approves everything does not carry over to a+ // session Beacon starts.+ {+ Harness: HarnessOhMyPi,+ Label: "Oh My Pi",+ Aliases: []string{"oh-my-pi"},+ // Oh My Pi approves every tool call by default (tools.approvalMode "yolo").+ Command: &runtimeCommand{+ Executable: "omp",+ NewSession: func(prompt string) []string { return []string{"--approval-mode=always-ask", prompt} },+ },+ },+ {+ Harness: HarnessGemini,+ Label: "Gemini CLI",+ Aliases: []string{"gemini", "gemini-cli"},+ Command: &runtimeCommand{+ Executable: "gemini",+ NewSession: func(prompt string) []string {+ return []string{"--approval-mode", "default", "--prompt-interactive", prompt}+ },+ },+ },+ {+ Harness: HarnessQwen,+ Label: "Qwen Code",+ Aliases: []string{"qwen", "qwen-code"},+ // A positional prompt is one-shot in Qwen Code; --prompt-interactive keeps the session open.+ Command: &runtimeCommand{+ Executable: "qwen",+ NewSession: func(prompt string) []string {+ return []string{"--approval-mode", "default", "--prompt-interactive", prompt}+ },+ },+ },+ {+ Harness: HarnessKiro,+ Label: "Kiro",+ Aliases: []string{"kiro-cli"},+ Command: &runtimeCommand{+ Executable: "kiro-cli",+ NewSession: func(prompt string) []string { return []string{"chat", prompt} },+ },+ },+ {+ Harness: HarnessAntigravity,+ Label: "Antigravity CLI",+ Aliases: []string{"antigravity", "agy"},+ Command: &runtimeCommand{+ Executable: "agy",+ NewSession: func(prompt string) []string { return []string{"--prompt-interactive", prompt} },+ },+ },+ {+ Harness: HarnessDevin,+ Label: "Devin CLI",+ // Beacon's Devin CLI hooks record "devin-cli"; hooks written by older versions recorded+ // "devin", which reaches this entry through its alias.+ Aliases: []string{"devin"},+ // DEVIN_PERMISSION_MODE can hold "dangerous", which approves every tool; the flag wins over+ // it. Devin reads a bare argument as a path to open, so the prompt follows --.+ Command: &runtimeCommand{+ Executable: "devin",+ NewSession: func(prompt string) []string { return []string{"--permission-mode", "auto", "--", prompt} },+ },+ },+ {+ Harness: HarnessMuse,+ Label: "Muse Code",+ Aliases: []string{"muse", "muse-code"},+ Command: &runtimeCommand{+ Executable: "muse",+ NewSession: func(prompt string) []string { return []string{"--approval-mode", "on-request", prompt} },+ },+ },+ {+ Harness: HarnessOpenHands,+ Label: "OpenHands",+ Command: &runtimeCommand{+ Executable: "openhands",+ NewSession: func(prompt string) []string { return []string{"--task", prompt} },+ },+ },+ {+ Harness: HarnessGoose,+ Label: "goose",+ // goose approves every tool call by default and has no flag for its mode, only GOOSE_MODE.+ Command: &runtimeCommand{+ Executable: "goose",+ NewSession: func(prompt string) []string { return []string{"run", "--interactive", "--text", prompt} },+ Env: map[string]string{"GOOSE_MODE": "approve"},+ },+ },}// Harnesses lists the runtimes handoff supports, in display order.diff --cc docs/cli/handoff.mdxindex 3c29a5d7,26095a20..9e232417--- a/docs/cli/handoff.mdx+++ b/docs/cli/handoff.mdx@@@ -25,12 -25,29 +25,30 @@@ Sessions come from each runtime's own l| Cline | `~/.cline/data` | `cline` || Pi | `~/.pi/agent/sessions` (or under `PI_CODING_AGENT_DIR`) | `pi` || Prime Agent | `~/.prime/agent`, both `sessions` and `session-artifacts` (or `PRIME_AGENT_CODING_AGENT_DIR`) | `prime` |+| Cursor | `~/.cursor/projects` (agent transcripts) and Cursor's global storage `state.vscdb` (Composer conversations) | `cursor` |-When a Codex thread has more than one rollout file, `beacon handoff` lists it once, under its newest file. Cline can hold the same task both as a CLI session and in its older task history; the CLI session is the copy that is listed. Cline kanban cards are not sessions and are not listed. Prime Agent subagent transcripts, under `session-artifacts`, are listed as subagents of the session that started them.+When a Codex thread has more than one rollout file, `beacon handoff` lists it once, under its newest file. Cline can hold the same task both as a CLI session and in its older task history; the CLI session is the copy that is listed. Cline kanban cards are not sessions and are not listed. Prime Agent subagent transcripts, under `session-artifacts`, are listed as subagents of the session that started them. A Cursor conversation can be stored both as a transcript and as a Composer record under one id; it is listed once, as the transcript when `cursor-agent` can reopen it and as the Composer record otherwise. Cursor subagent transcripts are listed as subagents of the conversation that started them.-`--store-dir <runtime>=<path>` takes the location in the table: for Pi its sessions directory, as `beacon endpoint pi sync --sessions-dir` does, and for Prime Agent the agent directory holding both of its roots.+`--store-dir <runtime>=<path>` takes the location in the table: for Pi its sessions directory, as `beacon endpoint pi sync --sessions-dir` does, for Prime Agent the agent directory holding both of its roots, and for Cursor the projects directory, as `beacon endpoint cursor sync --projects-dir` does. Cursor's global storage database is always read from its default location.+ ### Runtimes Beacon starts but does not read++ Beacon keeps no reader for these runtimes' own session stores, so `list` does not show their sessions. `export` and `resume` still find one by id in Beacon's runtime log, and they can be the runtime another session continues in (`--agent`):++ | Runtime | `--agent` |+ |---------|-----------|+ | Oh My Pi | `omp` |+ | Gemini CLI | `gemini` |+ | Qwen Code | `qwen` |+ | Kiro | `kiro` |+ | Antigravity CLI | `agy` |+ | Devin CLI | `devin` |+ | Muse Code | `muse` |+ | OpenHands | `openhands` |+ | goose | `goose` |++ Kimi Code can only take a prompt non-interactively, and Senpi (`omo`) moves Pi's agent directory into its own the first time it runs, so Beacon does not start them.+## `beacon handoff list`Lists resumable sessions, newest first.@@@ -123,16 -139,24 +141,27 @@@ There are two ways to resume| Cline | `cline --tui --auto-approve false "<prompt>"` || Pi | `pi -- "<prompt>"` || Prime Agent | `prime-agent -- "<prompt>"` |+ | Cursor | `cursor-agent "<prompt>"` |+ | Oh My Pi | `omp --approval-mode=always-ask "<prompt>"` |+ | Gemini CLI | `gemini --approval-mode default --prompt-interactive "<prompt>"` |+ | Qwen Code | `qwen --approval-mode default --prompt-interactive "<prompt>"` |+ | Kiro | `kiro-cli chat "<prompt>"` |+ | Antigravity CLI | `agy --prompt-interactive "<prompt>"` |+ | Devin CLI | `devin --permission-mode auto -- "<prompt>"` |+ | Muse Code | `muse --approval-mode on-request "<prompt>"` |+ | OpenHands | `openhands --task "<prompt>"` |+ | goose | `GOOSE_MODE=approve goose run --interactive --text "<prompt>"` |The prompt names the brief by its path and asks the agent to read it, then confirm the task before changing anything. The brief is never inlined into the command line, because a command line is visible to every local user through the process table. The prompt ends with a handoff marker (see below).Claude Code, Cline and Prime Agent subagent sessions, and Cline's older task history, can't be reopened by their CLIs, so they always continue from a brief. A session known only from Beacon's runtime log also continues from a brief, and it needs `--agent` if its own runtime isn't one Beacon can start.+`cursor-agent --resume` reopens only chats the CLI itself started, which it keeps under `~/.cursor/chats` (or `CURSOR_CONFIG_DIR`, or `$XDG_CONFIG_HOME/cursor`) keyed by the directory the chat ran in. Beacon reopens a Cursor session natively only when that chat store exists for the session's recorded directory, and only from that directory: with `--cwd` pointing elsewhere, it continues from a brief. Conversations from the Cursor IDE, Composer records, and subagent transcripts continue from a brief. Beacon never passes `--force` or `--yolo`, so `cursor-agent` still asks before running commands.+Cline approves every tool call by default. Beacon always passes `--auto-approve false`, so a session Beacon starts never gets auto-approval on Beacon's say-so. You can still turn it on inside the Cline TUI.+ The same holds for every runtime Beacon starts. Oh My Pi and goose approve every tool call by default, so Beacon passes `--approval-mode=always-ask` to Oh My Pi and sets `GOOSE_MODE=approve` for goose. Where a CLI takes an approval mode, Beacon names the mode that asks (Gemini CLI, Qwen Code, Muse Code, and Devin CLI, whose `DEVIN_PERMISSION_MODE` could otherwise hold `dangerous`), so a user or project setting that approves everything does not carry over. Beacon never passes a flag that turns approvals off.+The runtime runs in this terminal, in the session's recorded directory. If that directory no longer exists, Beacon stops rather than starting somewhere else; pass `--cwd` to choose a directory. Beacon prints the plan and asks `Continue? [Y/n]` before launching. Without a terminal, it launches only with `--yes`. `beacon handoff resume` exits with the runtime's own exit code.| Flag | Description |