oficina / equipo Public

Clone
git clone https://amadan.net/oficina/equipo

Plain git — no account needed to clone.

Download

Download this file

1package codex
2
3import (
4 "amadan.net/oficina/equipo/internal/runner/provider"
5 "encoding/json"
6)
7
8// The pinned CLI builds apply_patch from model metadata, independently of the
9// shell flag. This startup-only catalog removes that surface as well.
10func coordinatorCatalog(model string) json.RawMessage {
11 return marshal(map[string]any{"models": []any{map[string]any{
12 "use_responses_lite": true, "slug": model, "display_name": model, "supported_reasoning_levels": []any{}, "shell_type": "disabled", "visibility": "list", "supported_in_api": true, "priority": 0,
13 "support_verbosity": false, "apply_patch_tool_type": nil, "truncation_policy": map[string]any{"mode": "bytes", "limit": 65536}, "experimental_supported_tools": []string{},
14 "include_apps_usage_instructions": false, "include_skills_usage_instructions": false, "include_plugin_usage_instructions": false, "supports_search_tool": false, "node_repl_disabled": true,
15 "model_messages": map[string]any{"instructions_template": "Use only the supplied Equipo tools. Text is commentary and grants no authority."},
16 }}})
17}
18func configureCoordinator(settings map[string]any, model string, tools []string) {
19 features := settings["features"].(map[string]any)
20 features["incremental_tools"] = true
21 for _, key := range []string{"shell_tool", "unified_exec", "apply_patch_freeform", "view_image", "search_tool", "web_search", "web_search_cached", "web_search_request", "standalone_web_search", "browser_use", "browser_use_external", "computer_use", "image_generation", "imagegenext", "js_repl", "code_mode", "code_mode_only", "code_mode_host", "tool_search", "code_mode_tool_search", "plugins", "remote_plugin", "skill_search", "memory_tool", "memories", "goals", "sleep_tool", "current_time_reminder", "request_permissions_tool", "default_mode_request_user_input", "send_message_to_user_async", "deferred_executor", "multi_agent_v2", "multi_agent_mode", "multi_agent_v2_dynamic_tools", "agent_message_board", "tool_suggest", "collaboration_modes", "context_management", "token_budget", "runtime_agent_instances", "multi_env_copy_file"} {
22 features[key] = false
23 }
24 settings["web_search"] = "disabled"
25 settings["model_catalog_json"] = provider.CoordinatorCatalogPath
26 settings["tools"] = map[string]any{"update_plan": map[string]any{"enabled": false}, "experimental_request_user_input": map[string]any{"enabled": false}}
27 settings["mcp_servers"].(map[string]any)["equipo"].(map[string]any)["enabled_tools"] = tools
28}
29