GitHub Issues ↔ Agent System Integration Guide
Two-Way Sync Between GitHub Projects and Agent Tasks
This integration ensures that GitHub Issues remain the single source of truth for the project while the Agent System handles the autonomous execution and verification.
The Integration Flow
- GitHub Issues: Define tasks using the "Agent Task" template.
- Sync: Run
pnpm agent:syncto pull issues into.agent-tasks/as YAML. - Execution: Run
pnpm agent:runto execute the tasks. - Auto-Commit: The system commits results with "Closes #number" tags.
- Auto-Close: Pushing the commits automatically closes the GitHub issues and updates the Project board.
Setup
- Install GitHub CLI:
brew install ghor follow cli.github.com. - Authenticate:
gh auth login. - Verify Access:
gh issue list --repo hashpass-tech/JACK.
Daily Workflow
1. Create/Label Issues
Ensure your issues have the appropriate labels (e.g., day-1, agent-task).
2. Sync to YAML
pnpm agent:sync day-1
This generates .agent-tasks/day-1.yaml from open GitHub issues.
3. Execute
pnpm agent:run .agent-tasks/day-1.yaml
4. Push Results
git push
GitHub will automatically close the linked issues.
Structure of GitHub Agent Issues
To ensure the sync works correctly, follow the "Agent Task" template:
- Title: Should contain the task ID if preferred, but not required.
- Body:
- Output File:
path/to/file - Workspace (optional):
contracts | sdk | ui | general(otherwise inferred from output path) - Requirement: Description of work.
- Context (optional): bullet list of relevant files/paths
- Acceptance Criteria: List starting with
- [ ]. - Verify Commands (optional): a
bashcode block or bullet list of commands
- Output File:
Verification
To verify your environment is ready:
pnpm agent:verify-gh