Add installable OpenShell agent runner - #40
Draft
johnnygreco wants to merge 6 commits into
Draft
Conversation
johnnygreco
force-pushed
the
johnny/repository-agent-profiles
branch
from
August 13, 2026 21:21
aaa48fb to
c148567
Compare
johnnygreco
marked this pull request as ready for review
August 13, 2026 21:22
johnnygreco
force-pushed
the
johnny/repository-agent-profiles
branch
from
August 13, 2026 21:32
c148567 to
faa7536
Compare
johnnygreco
marked this pull request as draft
August 13, 2026 21:35
johnnygreco
force-pushed
the
johnny/repository-agent-profiles
branch
from
August 17, 2026 03:10
faa7536 to
50bc933
Compare
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
openshell-agent-runner, an installable Python package that exposes theoarCLIvalidate,run, and read-onlydoctorcommands, including arun --dry-runpreview of every generated OpenShell commandDocumentReviewartifact.github/openshell-agentsApproach
The earlier PR implementation was a repository-specific shell runner under
dev-tools/agents. This revision replaces that approach with a small package that can be installed and invoked withuvxwhile remaining the implementation used by this repository's CI.OAR is deliberately an orchestrator rather than an agent framework. Each profile is a directory containing
profile.yaml; that file explicitly identifies the policy, prompts, skills, and extensions within the same directory. YAML and invocation-specific CLI options determine what OpenShell uploads and runs. The sandboxed agent owns repository inspection, Git operations, tool use, analysis, and conclusions. OAR does not create or modify gateways, providers, inference routes, or source-control state.The runner uses native OpenShell CLI operations for sandbox creation, file transfer, execution, ownership inspection, and deletion. This keeps
--dry-runtransparent and avoids duplicating OpenShell configuration behavior in the runner. Only the declared artifact is downloaded; it is validated with Pydantic and atomically published on the host.User impact
Profiles can be checked and run locally with:
The repository workflow intentionally performs credential-free validation, packaging, command preview, and image build. Live inference remains an authenticated local or self-hosted CI operation.
Validation
uvxvalidationgit diff --checkA bounded live OpenShell run was also completed during development using a three-file repository fixture. Pi produced a valid
DocumentReview, host validation passed, and ownership-checked sandbox deletion was confirmed. Live inference is not executed by the GitHub-hosted workflow.