qwen-safeagents-plugin for Harbor Tasks

Linkharness-hubTool

A safeagents and atif-scan plugin for training Qwen3.8-27B LoRA adapters with RL inside agent harnesses. It permits specific test scripts and debugging hooks while maintaining all other safety checks. It helps AI developers run Harbor tasks without false-positive blocks.

Key points

  1. Designed for training Qwen3.8-27B LoRA adapters using RL across agent harnesses such as pi, hermes, and opencode.
  2. Functions as an atif-scan task pack, keeping all standard built-in checks active.
  3. Allows test scripts targeting /solution files when explicitly requested by tasks, excluding paths under /tests/ or /logs/verifier/.
  4. Permits debugging exception hooks unless they or an exit hook force an exit status of 0.
  5. Executes as code within the safeagents process and supports commit pinning for reproducibility.

Why it matters

During agentic RL training, strict security filters can block legitimate debugging and testing routines; this plugin creates calibrated exceptions without disabling main safeguards.

Analysis

Purpose and Integration

The qwen-safeagents-plugin released by harness-hub is tailored for training Qwen3.8-27B LoRA adapters using reinforcement learning on Harbor tasks. It integrates with agent harnesses including pi, hermes, and opencode. Designed as an atif-scan task pack, it refines the default security constraints imposed by safeagents.

Granted Exceptions

The plugin excuses two specific patterns previously halted by built-in filters:

  • Solution testing: Execution of test scripts for /solution files is permitted when the task explicitly references /solution/ and the call avoids /tests/ or /logs/verifier/ paths.
  • Exception hooks: Hooks configured during debugging sessions are allowed, provided neither they nor an exit hook override the exit code to 0.

All other built-in blocks in safeagents and atif-scan remain enforced. The implementation and validation logic reside in atif_harbor.py. Because the plugin code executes inside the safeagents process, pinning specific commits is recommended for reproducible runs.

Found in

Summary generated by AI (Gemini 3.8 Flash, 25 November 2026). It may contain errors – the original source is authoritative.

Similar in content, found by the AI search.

  • Article:Younes B, Lysandre, Nathan Habib

    Harness Adapters: Safe RL for Efficient AI Agent Development

    Hugging Face researchers introduce Harness Adapters: compact LoRA adapters trained via reinforcement learning directly inside agent harnesses like pi, opencode, and hermes. Served from a single base model, they reduce tool calls while maintaining or improving accuracy. A proxy called safeagents blocks reward-hacking shortcuts.

    AI & LLMs· Announcement

  • Link:ybelkada

    Harness-Hub: LoRA Adapters Tuned for Coding Agent Frameworks

    Harness-Hub provides small LoRA adapters trained with reinforcement learning to specialise open models for specific agent harnesses such as Pi, OpenCode, and Hermes. This enables models to achieve high benchmark scores without reasoning modes while significantly cutting token usage and tool calls. It helps developers run fast, cost-effective coding agents locally or self-hosted.

    AI & LLMs· Tool

  • Video

    Video:CURT

    Harness Adapters: LoRA Fine-Tuning for Coding Agents

    Hugging Face introduced harness-specific LoRA adapters trained via reinforcement learning for individual coding agents. Using Qwen 3.8 27B inside the Pi agent, the approach delivers massive benchmark gains with substantially lower token and step counts. The video demonstrates how training works, how reward hacking is prevented, and where the limits lie.

    AI & LLMs· Demo

  • Link:harness-hub

    Qwen3.8-27B-pi-adapted: Efficient LoRA Adapter for Coding Agents

    A LoRA adapter trained with reinforcement learning optimises Qwen3.8-27B for the pi coding agent across software engineering and terminal tasks. Operating with thinking disabled, it approaches maximum-effort reasoning accuracy while cutting token generation by approximately 4.5×, making local agent execution significantly faster and lighter.

    AI & LLMs· Tool

  • Article:Shuai Shao, Kangning Zhang, Qingyao Li, Shijian Wang, Hao Wang, Wenxiang Jiao, Yuan Lu, Yi Guo, Weiwen Liu, Weinan Zhang

    Harness-R1: Learning to Edit Executable Runtime Harnesses from Agent Failure Trajectories

    Researchers introduce Harness-R1, a framework that trains a dedicated agent to adapt and patch the runtime harness of LLM agents based on failure logs. Using online reinforcement learning, a separate 9B model learns to generate executable patches for context handling, tool mediation, and error recovery to directly improve task completion.

    AI & LLMs· Research

Let's talk about your project

Locations

  • Mattersburg
    Johann Nepomuk Bergerstraße 7/2/14
    7210 Mattersburg, Austria
  • Vienna
    Ungargasse 64-66/3/404
    1030 Wien, Austria

Parts of this content were created with the assistance of AI.