Skip to content
⌘K
Explore
Download
Docs
Sign in
Sign up
flagon-io
/
g1t
public
Star
0
Overview
Code
Issues
Pull requests
Workflows
Deployments
Insights
Files
Commits
Branches
Tags
Releases
Compare
Commit
g1t session start takes --harness claude_code, the name the API and the Claude Code plugin use, and still takes claude-code: the plugin's hook sent claude_code, which the CLI refused, so no Claude Code session was ever recorded.
syntaqx
committed
23h ago
Parent
aa4024f
Browse files
4e2c97d48d2b
3
files
+4
−2
0/3 viewed
Files
Collapse all
Unified
Split
apps/docs/src/content/docs/reference/cli.md
+1
−1
View
Blame
Viewed
759
759
| --- | --- |
760
760
| `-i, --issue <ISSUE>` | The issue it works on. |
761
761
| `-p, --pull <PULL>` | The pull request it works on. |
762
−
| `--harness <HARNESS>` | The harness running it. One of `claude-code`, `codex`, `cursor`, `copilot`, `other`. Default: `other`. |
762
+
| `--harness <HARNESS>` | The harness running it. One of `claude_code`, `codex`, `cursor`, `copilot`, `other`. Default: `other`. |
763
763
| `--harness-session-id <ID>` | The harness's own id for the run, which makes starting again return the same session. |
764
764
| `-t, --title <TITLE>` | |
765
765
| `-b, --branch <BRANCH>` | The branch it works on; the current one when left out. |
crates/g1t/src/cli.rs
+2
−0
View
Blame
Viewed
793
793
794
794
#[derive(Clone, Copy, Debug, PartialEq, Eq, ValueEnum)]
795
795
pub enum Harness {
796
+
// Spelled as the API spells it, which is what the plugin sends.
797
+
#[value(name = "claude_code", alias = "claude-code")]
796
798
ClaudeCode,
797
799
Codex,
798
800
Cursor,
crates/g1t/tests/cli.rs
+1
−1
View
Blame
Viewed
954
954
let out = g1t_with(
955
955
&mock,
956
956
&dir,
957
−
&["session", "start", "--harness", "claude-code", "--harness-session-id", "cc-9", "--issue", "12", "--json"],
957
+
&["session", "start", "--harness", "claude_code", "--harness-session-id", "cc-9", "--issue", "12", "--json"],
958
958
&[],
959
959
);
960
960
assert_eq!(out.code, 0, "{}", out.stderr);