Class: AgentHarness::Providers::Kilocode

Inherits:
Base
  • Object
show all
Defined in:
lib/agent_harness/providers/kilocode.rb

Overview

Kilocode CLI provider

Provides integration with the Kilocode CLI tool.

Instance Attribute Summary

Attributes inherited from Base

#config, #executor, #logger

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Base

#configure, #initialize, #send_message

Methods included from Adapter

#dangerous_mode_flags, #error_patterns, #fetch_mcp_servers, #health_status, included, #send_message, #session_flags, #supports_dangerous_mode?, #supports_mcp?, #supports_sessions?, #validate_config

Constructor Details

This class inherits a constructor from AgentHarness::Providers::Base

Class Method Details

.available?Boolean

Returns:

  • (Boolean)


18
19
20
21
# File 'lib/agent_harness/providers/kilocode.rb', line 18

def available?
  executor = AgentHarness.configuration.command_executor
  !!executor.which(binary_name)
end

.binary_nameObject



14
15
16
# File 'lib/agent_harness/providers/kilocode.rb', line 14

def binary_name
  "kilocode"
end

.discover_modelsObject



34
35
36
37
# File 'lib/agent_harness/providers/kilocode.rb', line 34

def discover_models
  return [] unless available?
  []
end

.firewall_requirementsObject



23
24
25
26
27
28
# File 'lib/agent_harness/providers/kilocode.rb', line 23

def firewall_requirements
  {
    domains: [],
    ip_ranges: []
  }
end

.instruction_file_pathsObject



30
31
32
# File 'lib/agent_harness/providers/kilocode.rb', line 30

def instruction_file_paths
  []
end

.provider_nameObject



10
11
12
# File 'lib/agent_harness/providers/kilocode.rb', line 10

def provider_name
  :kilocode
end

Instance Method Details

#capabilitiesObject



48
49
50
51
52
53
54
55
56
57
58
# File 'lib/agent_harness/providers/kilocode.rb', line 48

def capabilities
  {
    streaming: false,
    file_upload: false,
    vision: false,
    tool_use: false,
    json_mode: false,
    mcp: false,
    dangerous_mode: false
  }
end

#display_nameObject



44
45
46
# File 'lib/agent_harness/providers/kilocode.rb', line 44

def display_name
  "Kilocode CLI"
end

#nameObject



40
41
42
# File 'lib/agent_harness/providers/kilocode.rb', line 40

def name
  "kilocode"
end