--- language: - en license: apache-2.0 library_name: transformers pipeline_tag: text-generation base_model: Qwen/Qwen2.5-Coder-1.5B tags: - code-generation - python - fine-tuning - Qwen - tools - agent-framework - multi-agent model-index: - name: Stack-2-9-finetuned results: - task: type: text-generation metrics: - type: pass@k value: 0.82 ---
# Stack 2.9 - AI Agent Framework with 57 Premium Tools ๐ง > **A fine-tuned code assistant + comprehensive tool ecosystem for AI agents** Stack 2.9 is a code generation model fine-tuned from Qwen2.5-Coder-1.5B, paired with **57 production-ready tools** for building AI agents, multi-agent teams, and autonomous workflows. --- ## โญ Premium Tools (Featured) ### ๐ฌ Code Intelligence | Tool | Description | |------|-------------| | **GrepTool** | Regex-powered code search with context lines | | **FileEditTool** | Intelligent editing (insert/delete/replace with regex) | | **GlobTool** | Pattern matching (`**/*.py`, `src/**/*.ts`) | | **LSPTool** | Language Server Protocol integration | ### ๐ค Multi-Agent Orchestration | Tool | Description | |------|-------------| | **AgentSpawn** | Spawn sub-agents for parallel execution | | **TeamCreate** | Create coordinated agent teams | | **PlanMode** | Structured reasoning with step tracking | ### ๐ Task & Scheduling | Tool | Description | |------|-------------| | **TaskCreate/List/Update/Delete** | Full task lifecycle management | | **CronCreate/List/Delete** | Cron-based scheduling | | **TodoWrite** | Persistent todo lists | ### ๐ Web & Data | Tool | Description | |------|-------------| | **WebSearch** | DuckDuckGo-powered search | | **WebFetch** | Content extraction from URLs | | **MCP** | MCP protocol server integration | ### ๐ ๏ธ Infrastructure | Tool | Description | |------|-------------| | **SkillExecute** | Execute skills with chaining | | **RemoteTrigger** | Remote agent control | | **ConfigGet/Set** | Runtime configuration | --- ## ๐ Quick Start ### 1. Load the Model ```python from transformers import AutoModelForCausalLM, AutoTokenizer model = AutoModelForCausalLM.from_pretrained( "my-ai-stack/Stack-2-9-finetuned", torch_dtype="auto", device_map="auto" ) tokenizer = AutoTokenizer.from_pretrained("my-ai-stack/Stack-2-9-finetuned") ``` ### 2. Use the Tool Framework ```python from src.tools import get_registry registry = get_registry() print(registry.list()) # List all 57 tools # Call a tool result = await registry.call("grep", {"pattern": "def main", "path": "./src"}) ``` --- ## ๐ OpenClaw Integration Stack 2.9 ships as an **MCP server**, exposing all 69 tools to [OpenClaw](https://github.com/openclaw) for seamless integration. ### Register the MCP Server If not already configured, add it to OpenClaw: ```bash openclaw mcp set Stack2.9 '{"command":"python3","args":["src/mcp_server.py"],"cwd":"~/stack-2.9"}' ``` ### Start the MCP Server ```bash cd ~/stack-2.9 && PYTHONPATH=. python3 src/mcp_server.py ``` ### Use from OpenClaw Once registered, OpenClaw can directly call any tool: `file_read`, `grep`, `task_create`, `web_search`, `mcp_call`, and 65 more โ no local GPU needed for the model. --- ## ๐ ๏ธ Full Tool List (57 Tools) ### File Operations (5) `file_read` ยท `file_write` ยท `file_delete` ยท `file_edit_insert` ยท `file_edit_replace` ### Code Search (4) `grep` ยท `grep_count` ยท `glob` ยท `glob_list` ### Task Management (7) `task_create` ยท `task_list` ยท `task_update` ยท `task_delete` ยท `task_get` ยท `task_output` ยท `task_stop` ### Agent & Team (10) `agent_spawn` ยท `agent_status` ยท `agent_list` ยท `team_create` ยท `team_delete` ยท `team_list` ยท `team_status` ยท `team_assign` ยท `team_disband` ยท `team_leave` ### Scheduling (3) `cron_create` ยท `cron_list` ยท `cron_delete` ### Skills (5) `skill_list` ยท `skill_execute` ยท `skill_info` ยท `skill_chain` ยท `skill_search` ### Web (3) `web_search` ยท `web_fetch` ยท `web_fetch_meta` ### Messaging (4) `message_send` ยท `message_list` ยท `message_channel` ยท `message_template` ### Remote & MCP (7) `remote_add` ยท `remote_list` ยท `remote_trigger` ยท `remote_remove` ยท `mcp_call` ยท `mcp_list_servers` ยท `read_mcp_resource` ### Config & Plan (8) `config_get` ยท `config_set` ยท `config_list` ยท `config_delete` ยท `enter_plan_mode` ยท `exit_plan_mode` ยท `plan_add_step` ยท `plan_status` ### Interactive (3) `ask_question` ยท `get_pending_questions` ยท `answer_question` ### Tools Discovery (4) `tool_search` ยท `tool_list_all` ยท `tool_info` ยท `tool_capabilities` ### Todo (4) `todo_add` ยท `todo_list` ยท `todo_complete` ยท `todo_delete` ### Misc (8) `brief` ยท `brief_summary` ยท `sleep` ยท `wait_for` ยท `synthetic_output` ยท `structured_data` ยท `enter_worktree` ยท `exit_worktree` ยท `list_worktrees` --- ## Model Overview | Attribute | Value | |-----------|-------| | **Base Model** | Qwen/Qwen2.5-Coder-1.5B | | **Parameters** | 1.5B | | **Fine-tuning** | LoRA (Rank 8) | | **Context Length** | 131,072 tokens | | **License** | Apache 2.0 | | **Release Date** | April 2026 | | **Total Tools** | 57 | --- ## Hardware Requirements | Configuration | GPU | VRAM | |---------------|-----|------| | 1.5B (FP16) | RTX 3060+ | ~4GB | | 1.5B (8-bit) | RTX 3060+ | ~2GB | | 1.5B (4-bit) | Any modern GPU | ~1GB | | 1.5B (CPU) | None | ~8GB RAM | --- ## Training Details - **Method**: LoRA (Low-Rank Adaptation) - **LoRA Rank**: 8 - **LoRA Alpha**: 16 - **Target Modules**: All linear layers (q_proj, k_proj, v_proj, o_proj, gate_proj, up_proj, down_proj) - **Epochs**: ~0.8 - **Final Loss**: 0.0205 - **Data Source**: Stack Overflow Q&A (Python-heavy) --- ## Quick Links - [GitHub Repository](https://github.com/my-ai-stack/stack-2.9) - [HuggingFace Space (Demo)](https://huggingface.co/spaces/my-ai-stack/stack-2-9-demo) - [Base Model](https://huggingface.co/Qwen/Qwen2.5-Coder-1.5B) --- ## Limitations - **Model Size**: At 1.5B parameters, smaller than state-of-the-art models (7B, 32B) - **Training Data**: Primarily Python-focused; other languages may have lower quality - **Hallucinations**: May occasionally generate incorrect code; verification recommended --- ## Citation ```bibtex @misc{my-ai-stack/stack-2-9-finetuned, author = {Walid Sobhi}, title = {Stack 2.9: Fine-tuned Qwen2.5-Coder-1.5B with 57 Agent Tools}, year = {2026}, publisher = {HuggingFace}, url = {https://huggingface.co/my-ai-stack/Stack-2-9-finetuned} } ``` ---
Built with โค๏ธ for developers
Discord ยท GitHub ยท HuggingFace