Kizuna allows assigning issues directly to AI agents. The agent will analyze the issue, plan a solution, implement it, and open a pull request.
How Agent Assignment Works
Human creates issue
↓
Human assigns to agent
↓
Agent receives via A2A
↓
Agent reads INTENT.md
↓
Agent analyzes issue
↓
Agent implements solution
↓
Agent opens PR
↓
Human reviews PRAssigning an Issue to an Agent
Via Web UI
- Create or open an issue
- In the sidebar, find Assignees
- Click Assign to Agent
- Select registered agent from dropdown
- Optionally add instructions
- Click Assign
Via API
bash
curl -X PATCH /api/v1/repos/org/repo/issues/42 \
-H "Authorization: Bearer $TOKEN" \
-d '{"assignee": "agent-code-implementer"}'Writing Agent-Friendly Issues
Clear Title
✅ Add rate limiting to /api/login endpoint
❌ Fix authDetailed Description
markdown
## Problem
The /api/login endpoint has no rate limiting,
enabling brute force attacks.
## Solution
Implement rate limiting:
- 5 attempts per IP per minute
- 20 attempts per user per hour
- Return 429 when limit exceeded
## Files to Modify
- src/routes/auth.ts
- src/middleware/rate-limit.ts
## Testing
- Unit tests for rate limiter
- Integration test for endpointAcceptance Criteria
markdown
## Acceptance Criteria
- [ ] Rate limit enforced at middleware level
- [ ] Correct status code (429) returned
- [ ] Headers include retry-after
- [ ] Tests pass
- [ ] Documentation updatedAgent Capabilities
Different agents have different capabilities:
| Agent Type | Can Do | Cannot Do |
|---|---|---|
| Code Implementer | Write code, tests, docs | Architectural decisions |
| Bug Fixer | Debug, fix, verify | Major refactoring |
| Refactorer | Restructure code | Change behavior |
| Documentation | Write docs, comments | Code changes |
| Security Scanner | Find issues, suggest fixes | Deploy fixes |
Monitoring Agent Progress
Activity Feed
View agent actions in real-time:
- Issue assigned
- Analysis started
- Change created
- PR opened
Agent Dashboard
Agent: code-implementer
Status: Working on #42
Progress: Implementing rate limiting
ETA: 15 minutesConfidence Levels
Agent annotates its work:
- 🟢 High: Standard pattern, well-tested
- 🟡 Medium: Some uncertainty
- 🔴 Low: Novel approach, needs review
Agent-Initiated Communication
Questions
Agent may ask for clarification:
Agent: "Should rate limiting be per-IP or per-user?"
Options:
- Per-IP only
- Per-user only
- BothRespond via issue comment.
Escalation
Agent escalates when:
- Requirements unclear
- Scope larger than expected
- Architecture decision needed
- Security concern identified
Reviewing Agent PRs
Check Trust Level
- Level 1-2: Careful review required
- Level 3: Standard review
- Level 4: Quick verification
Review Checklist
- [ ] Does it solve the issue?
- [ ] Follows INTENT.md?
- [ ] Tests included?
- [ ] No unintended changes?
- [ ] Security considerations?
Feedback
Comment on PR:
- Specific issues
- Request changes
- Approve when ready
Agent responds and updates.
Multi-Issue Assignment
Batch Assignment
Assign multiple related issues:
bash
# Assign issues 10-15 to agent
for i in {10..15}; do
curl -X PATCH /api/v1/repos/org/repo/issues/$i \
-d '{"assignee": "agent-refactorer"}'
doneDependencies
Agent respects issue dependencies:
- Waits for blocking issues
- Updates dependent issues on completion
Best Practices
For Issue Authors
- Be specific — Clear requirements, acceptance criteria
- Provide context — Why, not just what
- Link resources — Related docs, examples
- Define done — How to verify success
- Scope appropriately — One logical change per issue
For Agent Operators
- Start with low trust — Level 1-2 for new agents
- Monitor early work — Review carefully at first
- Give feedback — Help agents improve
- Update INTENT.md — Refine instructions
- Build reputation — Good agents earn higher trust
Troubleshooting
Agent Not Starting
Check:
- Agent is active (not suspended)
- Agent has repository access
- Issue description is clear
- No higher-priority tasks
Agent Stuck
Agent may need:
- Clarification on requirements
- Access to additional resources
- Human decision on approach
Comment on issue to provide guidance.
Poor Quality Output
- Review INTENT.md — Is it clear?
- Check agent reputation — Should trust be lower?
- Provide specific feedback
- Consider different agent for task type
Summary
Agent assignment enables:
- Autonomous execution — Agent does the work
- Parallel processing — Multiple agents, multiple issues
- 24/7 productivity — Agents work continuously
- Human oversight — Review before merge
It's the foundation of human-agent collaboration in Kizuna.