Repository navigation
Add standalone headless skill command - #1093
Merged
Merged
Conversation
Implement #965 with exact skill lookup, isolated sessions and retained local work.
JacobStephens2
marked this pull request as ready for review
October 22, 2026 20:16
Lookup follows a committed skill path and skips it when the file or its skill directory resolves outside the worktree. An outside name no longer shadows a Factory shorthand or starts a session.
A foreign Issue URL used to create the skill worktree and reach gh before the command failed. The command now stops on the same Origin match as a Run, before any work.
Preserve standalone skill execution alongside upstream CLI, Trial and sign-in changes. Adapt skill sessions to the streaming deadline interface and host resource admission, with regression coverage and regenerated documentation.
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds CLI help and manual documentation. Repository skills resolve by directory
name under
.agents/skills/or.claude/skills/; unknown names list availableskills without starting a session. Uncommitted checkout changes stay outside the
session. Standalone skills create no Command record or Session log.
Closes #965.
Evidence
a_codex_stream_ending_before_turn_completion_is_not_successregression failed: a zero-exit Codex stream without
turn.completedprinted“I will run validation now.” and returned
0despite unfinished work.After: the exact regression passes; partial Muse and OpenCode messages also
fail with an early-ending cause and empty stdout.
tests, and 11 release-summary tests. These cover exact-name/shorthand lookup,
one-session execution, configured Harness settings, issue handoff, checkout
isolation, worktree retention/removal, failure causes, and CLI help.
CARGO_TARGET_DIR=/home/jacob/repos/thirdshift/target /usr/bin/time -p scripts/affected-tests mainpassed on
29963ff6: 2,366 Rust tests (57 skipped) and 36 browser tests.Total wall time: 1,150.34s, including browser checks and 21.76s of incremental
Rust compilation. Nextest was unavailable, so the selector used
cargo test.cargo clippy --all-targets -- -D warningsandcargo fmt --checkpassed.Test seams
thirdshift skillCLI with real Git repositories and fake Harnessexecutables: skill lookup, prompts/final output, checkout isolation, worktree
retention, session completion, and failures.
release-summary interfaces provide regression coverage.
Review
read-only worktree cleanliness predicate while retaining caller-specific
ownership checks and Git execution.
resumed Claude root turn without its next result). Both exact
regressions failed as reported, remain in the suite, and pass after the fixes.
site/docs/index.html. No changed file was left unread and no generated outputwas excluded. Standards covered the amendments through
9af4d969; the Specreviewer also inspected the final Claude resume correction in
29963ff6.Reports and
summary.jsonare retained with this Session trace.Unaddressed findings
Standards
None.
Spec
None.
Security
None.
Security review outcome
No unaddressed introduced findings.
Merge Danger
Door: two-way
Blast Radius: CLI
Adds standalone skill execution through the existing Harness adapters. Terminal
completion checks also apply to release summaries; regular Run completion policy
is unchanged. Worktree cleanup shares the existing cleanliness and ownership
checks.
Built with codex codex-cli 0.164.0 · gpt-6.1-sol · xhigh