SIN-Deploy-Bot
Deploy via automated script [skip ci]
f3cdcbc
A2A-SIN-Code-tool Agent - Standard Card
Agent ID: a2a-sin-code-tool
Version: 1.0.0
Status: β
Production Ready
Team: Team - Coder
Manager: SIN-Zeus
π Core Identity
| Field |
Value |
| Name |
A2A-SIN-Code-tool Agent |
| Description |
Autonomous Cloud Coder for Reusable utility functions and libraries |
| Purpose |
Execute code generation tasks via opencode CLI |
| Usage |
Deployed on Hugging Face Spaces, receives A2A tasks from SIN-Zeus |
| CIMD |
https://delqhi-a2a-sin-code-tool.hf.space |
| SEP-991 |
https://delqhi-a2a-sin-code-tool.hf.space/.well-known/oauth-client.json |
π’ Team & Infrastructure
π§ AI Stack
| Component |
Model |
Purpose |
| Primary |
opencode/qwen3.6-plus-free |
Code generation via Antigravity |
| Fallback |
opencode/minimax-m2.5-free |
Uptime guarantee |
π οΈ Capabilities
Core Skills
- β
Code Generation: Uses opencode CLI to generate code based on A2A task descriptions
- β
GitHub Operations: Automatic commits, branch management, PR creation (via GitHub CLI)
- β
Issue Resolution: Parses issue titles and descriptions to determine context and requirements
- β
Testing: Basic validation of generated code structure
- β
Self-Correction: Can iterate on feedback via A2A message threads
A2A Commands
sin.code.tool.create - Create new files/modules
sin.code.tool.modify - Modify existing code
sin.code.tool.test - Run tests on generated code
sin.code.tool.deploy - Prepare code for deployment
sin.code.tool.status - Get current task status
sin.code.tool.health - Agent health check
π‘ Interfaces
π Runtime Contract
| Requirement |
Status |
| A2A Compliance |
β
Full A2A protocol support |
| CLI Interface |
β
Uses opencode CLI exclusively |
| Agent Card |
β
This file |
| CIMD/SEP-991 |
β
OAuth client JSON |
| Team Manager |
β
SIN-Zeus registered |
| Docs Tab |
β
Synced to Google Docs |
| HF Space |
β³ Pending deployment (CPU-Basic) |
| Cloudflare |
β³ Not configured yet |
π Performance Metrics
| Metric |
Target |
Actual |
| Task Success Rate |
>80% |
Baseline (pre-deploy) |
| Avg Generation Time |
<60s |
TBD |
| Code Quality |
>85% |
TBD |
| Uptime |
24/7 |
HF Space (cpu-basic) |
π§ Environment Variables
| Variable |
Required |
Description |
OPENCODE_API_KEY |
Yes |
OpenCode API key for LLM calls |
GITHUB_TOKEN |
Yes |
GitHub personal access token |
HF_TOKEN |
No |
Hugging Face token (for deployment) |
TELEGRAM_TOKEN |
No |
Telegram bot for notifications |
N8N_URL |
No |
OCI n8n instance URL |
N8N_API_KEY |
No |
n8n API key |
π File Structure
.
βββ app.py # Gradio UI + A2A JSON-RPC endpoint
βββ requirements.txt # Python dependencies
βββ README.md # HF Space config (YAML header)
βββ agent.json # Agent metadata
βββ A2A-CARD.md # This file
βββ Dockerfile # Container build for HF Space
βββ start.sh # Startup script
βββ .well-known/
β βββ agent-card.json # Auto-generated A2A card
β βββ agent.json # Auto-generated agent identity
β βββ oauth-client.json # CIMD/SEP-991 OAuth config
βββ app/
βββ coder_agent.py # Main agent logic (opencode integration)
βββ github_ops.py # GitHub commit/PR operations
βββ prompt_templates.py # tool-specific prompts
βββ utils/
βββ logger.py # Structured logging
βββ validators.py # Code validation
π Deployment
Hugging Face Space (CPU-Basic)
pip install -U huggingface_hub
huggingface-cli login
huggingface-cli repo create delqhi-a2a-sin-code-tool --type space --space-sdk docker
huggingface-cli variable set OPENCODE_API_KEY "$OPENCODE_API_KEY" --repo delqhi-a2a-sin-code-tool --type space
huggingface-cli variable set GITHUB_TOKEN "$GITHUB_TOKEN" --repo delqhi-a2a-sin-code-tool --type space
git init
git remote add origin https://huggingface.co/spaces/delqhi/delqhi-a2a-sin-code-tool
git add .
git commit -m "Deploy A2A-SIN-Code-tool Agent v1.0.0"
git push --force origin main
Hardware Configuration
CRITICAL: Must be set to cpu-basic (free, unlimited). Never use GPU/ZeroGPU.
huggingface-cli variable set HF_HARDWARE "cpu-basic" --repo delqhi-a2a-sin-code-tool --type space
π Monitoring
π‘οΈ Security
- API Keys: Stored as HF Space secrets, never hardcoded
- GitHub Token: Scoped to repository access only
- No Persistent Storage: Ephemeral filesystem (use HF Datasets for persistence if needed)
- A2A Auth: Requires X-API-Key header for agent-card access
π Support
π License
Proprietary - OpenSIN-AI
Last Updated: 2026-04-07
Agent: A2A-SIN-Code-tool v1.0.0
Owner: Team - Coder / SIN-Zeus