NeoGraph 0.16.0
A C++20 Graph Agent Engine Library — LangGraph for C++
Loading...
Searching...
No Matches
harness_host_agent.h
1#pragma once
2
4
5#include <chrono>
6#include <filesystem>
7#include <string>
8
9namespace neograph::mcp {
10
13 std::string host; // opencode, claude, or codex; never auto-select
14 std::string executable; // optional absolute override (also useful for fixture CLIs)
15 std::string model; // empty means the selected host's default
16 std::filesystem::path workspace;
17 std::chrono::milliseconds startup_timeout{10000};
18 std::chrono::milliseconds request_timeout{120000};
19 std::size_t max_prompt_bytes = 65536;
20 std::size_t max_output_bytes = 1048576;
21 std::size_t max_events = 4096;
22};
23
26 bool available = false;
27 std::string host;
28 std::string executable;
29 std::string version;
30 std::string model;
31 std::string detail;
32 bool openai_oauth = false; // OpenCode only: reported by `opencode auth list`.
33};
34
36NEOGRAPH_HARNESS_API HostAgentPreflight preflight_host_agent(const HostAgentExecutorConfig& config);
37NEOGRAPH_HARNESS_API HarnessWorkerExecutor make_host_agent_executor(HostAgentExecutorConfig config);
38
39} // namespace neograph::mcp
Compiler-backed subagent Harness service for the MCP server.
Local CLI delegation: authentication remains exclusively inside the installed host.
Non-secret status; detail is an actionable diagnostic, never host output or tokens.