-
Notifications
You must be signed in to change notification settings - Fork 0
docs: add Copilot + @claude agent configuration #127
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||
|---|---|---|---|---|
| @@ -0,0 +1,45 @@ | ||||
| # ShellForge — Copilot Instructions | ||||
|
|
||||
| > Copilot acts as **Tier C — Execution Workforce** in this repository. | ||||
| > Implement well-specified issues, open draft PRs, never merge or approve. | ||||
|
|
||||
| ## Project Overview | ||||
|
|
||||
| **ShellForge** is the execution harness for the Chitin platform — agent loop, LLM providers, tool-use, drift detection. | ||||
|
|
||||
| ## Tech Stack | ||||
|
|
||||
| - **Language**: Go 1.22+ | ||||
| - **Module**: `github.com/chitinhq/shellforge` | ||||
|
|
||||
| ## Build & Test | ||||
|
|
||||
| ```bash | ||||
| go build ./... | ||||
| go test ./... | ||||
| golangci-lint run | ||||
|
||||
| golangci-lint run |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,29 @@ | ||
| name: Claude Code Review | ||
|
|
||
| on: | ||
| pull_request: | ||
| types: [opened, synchronize, ready_for_review, reopened] | ||
|
|
||
| jobs: | ||
| claude-review: | ||
| runs-on: ubuntu-latest | ||
| permissions: | ||
| contents: read | ||
| pull-requests: read | ||
| issues: read | ||
| id-token: write | ||
|
|
||
| steps: | ||
| - name: Checkout repository | ||
| uses: actions/checkout@v4 | ||
| with: | ||
| fetch-depth: 1 | ||
|
|
||
| - name: Run Claude Code Review | ||
| id: claude-review | ||
| uses: anthropics/claude-code-action@v1 | ||
| with: | ||
| claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }} | ||
| plugin_marketplaces: 'https://github.com/anthropics/claude-code.git' | ||
| plugins: 'code-review@claude-code-plugins' | ||
| prompt: '/code-review:code-review ${{ github.repository }}/pull/${{ github.event.pull_request.number }}' |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,39 @@ | ||
| name: Claude Code | ||
|
|
||
| on: | ||
| issue_comment: | ||
| types: [created] | ||
| pull_request_review_comment: | ||
| types: [created] | ||
| issues: | ||
| types: [opened, assigned] | ||
| pull_request_review: | ||
| types: [submitted] | ||
|
|
||
| jobs: | ||
| claude: | ||
| if: | | ||
| (github.event_name == 'issue_comment' && contains(github.event.comment.body, '@claude')) || | ||
| (github.event_name == 'pull_request_review_comment' && contains(github.event.comment.body, '@claude')) || | ||
| (github.event_name == 'pull_request_review' && contains(github.event.review.body, '@claude')) || | ||
| (github.event_name == 'issues' && (contains(github.event.issue.body, '@claude') || contains(github.event.issue.title, '@claude'))) | ||
| runs-on: ubuntu-latest | ||
| permissions: | ||
| contents: read | ||
| pull-requests: read | ||
| issues: read | ||
| id-token: write | ||
| actions: read | ||
| steps: | ||
| - name: Checkout repository | ||
| uses: actions/checkout@v4 | ||
| with: | ||
| fetch-depth: 1 | ||
|
|
||
| - name: Run Claude Code | ||
| id: claude | ||
| uses: anthropics/claude-code-action@v1 | ||
| with: | ||
| claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }} | ||
| additional_permissions: | | ||
| actions: read |
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -0,0 +1,22 @@ | ||||||
| ## Agent Identity | ||||||
|
|
||||||
| At session start, if you see `[AgentGuard] No agent identity set`, ask the user: | ||||||
| 1. **Role**: developer / reviewer / ops / security / planner | ||||||
| 2. **Driver**: human / claude-code / copilot / ci | ||||||
|
|
||||||
| Then run: `scripts/write-persona.sh <driver> <role>` | ||||||
|
||||||
| Then run: `scripts/write-persona.sh <driver> <role>` | |
| Then record the selected `driver` and `role` as the session identity and continue with those values for the rest of the session. |
Copilot
AI
Apr 6, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The module path and Go version documented here don’t match the repository configuration: go.mod declares module github.com/AgentGuardHQ/shellforge and go 1.18, and CI currently sets up Go 1.21. Please align these values (or update go.mod/CI if the repo has actually moved to github.com/chitinhq/shellforge + Go 1.22+).
Copilot
AI
Apr 6, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The build instructions include golangci-lint run, but this repo doesn’t appear to have a .golangci.yml (or any other golangci-lint configuration/CI step). If linting is required, add the config + CI integration; otherwise remove it from the documented build steps to avoid misleading setup guidance.
| golangci-lint run |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The Go version and module path documented here don’t match the repo’s
go.mod(module github.com/AgentGuardHQ/shellforge,go 1.18) or CI (Go 1.21). Please align this doc with the actual module path/version, or update the codebase config if the intent is to move to Go 1.22+ and thegithub.com/chitinhq/shellforgemodule.