The Coding Agent automates code generation and PR submission from JIRA/GitHub issues.
# Install dependencies
cd python-agent
pip install -r requirements.txt
# Configure
export KEYCLOAK_BASE_URL=http://localhost:8180
export INTEGRATION_PROXY_URL=http://localhost:8080
export GITHUB_TOKEN_ID=1
# Run
python main.py coding --task-data '{
"operation": "handle_jira_issue",
"issue_key": "PROJECT-123",
"repo": "owner/repository"
}'python main.py coding --task-data '{
"operation": "handle_jira_issue",
"issue_key": "PROJECT-123",
"repo": "owner/repo"
}'python main.py coding --task-data '{
"operation": "handle_github_issue",
"repo": "owner/repo",
"issue_number": 456
}'python main.py coding --task-data '{
"operation": "create_pr",
"repo": "owner/repo",
"title": "Fix bug",
"description": "Description"
}'KEYCLOAK_BASE_URL # Keycloak server URL
KEYCLOAK_CLIENT_ID # Client ID (default: python-agents)
KEYCLOAK_CLIENT_SECRET # Client secret
INTEGRATION_PROXY_URL # Integration proxy URL
LLM_PROXY_URL # LLM proxy URL
GITHUB_TOKEN_ID # GitHub token IDLLM_MODEL # LLM model (default: gpt-4)
TEST_MODE # Test mode (default: false)JIRA Issue → Generate Code → Create PR → Update JIRA
GitHub Issue → Generate Code → Create PR
Code Changes → Create PR
./examples/jira-webhook-handler.sh PROJECT-123 owner/repo./examples/github-webhook-handler.sh owner/repo 456from examples.automation_example import CodingAgentAutomation
automation = CodingAgentAutomation()
automation.handle_jira_issue("PROJECT-123", "owner/repo")TEST_MODE=true python main.py coding --task-data '{...}'python -m unittest tests.test_coding_agent -vSolution: Verify Keycloak credentials and URL
Solution: Check Kubernetes cluster access and GitHub token
Solution: Verify LLM proxy is running and model is available
Solution: Check GitHub token permissions and repository access
Coding Agent
├── GitHub MCP Server (existing)
├── JIRA Proxy (existing)
├── LLM Proxy (existing)
├── Keycloak (existing)
└── Provenance System (existing)
agents/coding/coding_agent.py- Main agentcoding.yaml- Configurationagents/coding/README.md- Full documentationexamples/- Integration examplestests/test_coding_agent.py- Unit tests
- Full Guide:
agents/coding/README.md - Examples:
examples/README.md - Technical Details:
docs/coding-agent-implementation.md - This Guide: Quick reference
For issues: marc@sentrius.io