Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ __pycache__/model_tools.cpython-310.pyc
__pycache__/web_tools.cpython-310.pyc
logs/
data/
# Local development artifacts (plans, drafts, design notes)
.hermes/
.pytest_cache/
test_durations.json
.pytest-cache/
Expand Down
54 changes: 54 additions & 0 deletions cli-config.yaml.example
Original file line number Diff line number Diff line change
Expand Up @@ -885,6 +885,60 @@ delegation:
# # Resolves full credentials (base_url, api_key) automatically.
# # Supported: openrouter, nous, zai, kimi-coding, minimax

# ---------------------------------------------------------------------------
# Named delegation profiles (delegation.profiles)
# ---------------------------------------------------------------------------
# Each profile defines a specialised subagent role with its own model,
# provider, toolsets, system_prompt, and optional constraints.
# Usage: delegate_task(goal="...", profile="coder")
# delegate_task(tasks=[{"goal": "...", "profile": "critic"}])
#
# Two routing modes — mutually exclusive per profile:
# API mode: model + provider (+ optional base_url / api_key / api_mode)
# ACP mode: acp_command (+ optional acp_args) — runs via terminal wrapper
#
# Toolset priority: explicit call arg > profile.toolsets > inherited from parent
# Proxy field is accepted but NOT applied in v1 (warning emitted); v2 will use it.
#
# profiles:
# coder:
# nickname: "👷 Coder" # shown in tool description (informational)
# summary: "Writes code, TDD" # shown to LLM orchestrator in the schema enum
# model: deepseek-v4-flash
# provider: deepseek
# toolsets: [terminal, file]
# max_iterations: 80 # override delegation.max_iterations for this profile (default: inherited)
# system_prompt: |
# You are a focused developer. Follow TDD strictly.
# constraints: |
# - No changes outside the assigned task scope
# - Tests before implementation
#
# critic:
# nickname: "🔍 Critic"
# summary: "Code review, bug hunting"
# model: claude-sonnet-4-20250514
# provider: custom
# base_url: https://api.anthropic.com/v1
# api_mode: anthropic_messages
# # proxy: http://localhost:8119 # v1: logged as warning, not applied
# toolsets: [file]
# system_prompt: |
# You are a code reviewer. Check for logic errors, security issues,
# and spec conformance.
# constraints: |
# - Do not write code
# - Return JSON: {passed, issues, summary}
#
# copilot-runner:
# nickname: "🤖 Copilot"
# summary: "Runs via Copilot CLI (ACP mode)"
# acp_command: copilot
# acp_args: ["--model", "claude-sonnet-4-5"]
# toolsets: [terminal, file]
# system_prompt: |
# You are a developer agent running via Copilot CLI.

# =============================================================================
# Honcho Integration (Cross-Session User Modeling)
# =============================================================================
Expand Down
6 changes: 5 additions & 1 deletion run_agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -2720,7 +2720,10 @@ def _is_openai_client_closed(client: Any) -> bool:
return False

@staticmethod
def _build_keepalive_http_client(base_url: str = "") -> Any:
def _build_keepalive_http_client(base_url: str = "", proxy: Optional[str] = None) -> Any:
# proxy param is a v2 stub. In v2, replace _get_proxy_for_base_url(base_url)
# with: proxy or _get_proxy_for_base_url(base_url)
# In v1 it is always None — existing env-based logic is unchanged.
try:
import httpx as _httpx
import socket as _socket
Expand Down Expand Up @@ -4280,6 +4283,7 @@ def _dispatch_delegate_task(self, function_args: dict) -> str:
acp_command=function_args.get("acp_command"),
acp_args=function_args.get("acp_args"),
role=function_args.get("role"),
profile=function_args.get("profile"),
parent_agent=self,
)

Expand Down
1 change: 1 addition & 0 deletions scripts/release.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@

# Auto-extracted from noreply emails + manual overrides
AUTHOR_MAP = {
"5999832+gutleib@users.noreply.github.com": "gutleib",
"9592417+adam91holt@users.noreply.github.com": "adam91holt",
"kchuang1015@users.noreply.github.com": "kchuang1015",
"45688690+fujinice@users.noreply.github.com": "fujinice",
Expand Down
Loading