-
Notifications
You must be signed in to change notification settings - Fork 0
User Agent Harness
The Agent Harness is BLXCode’s built-in agent runtime: a slim system prompt, eleven core skills with full tool documentation, and server tools for environment detection, shell, Git, workspace search, and web research.
For subagents (parallel scout/review/security runs), see the dedicated guide Subagents.
This guide covers what you see in the UI and how the agent is expected to behave. For implementation detail, see Agent Harness (developer).
Open Settings from the command palette (center tab). Overview: Settings.
| Category | Harness-related content |
|---|---|
| API Keys | All LLM, search, fal.ai, and AWS Polly secrets |
| BLXCode Agent | Text provider/model/thinking, image provider, voice STT/TTS, web tools |
| App | STT language + push-to-talk (not full voice models) |
| Field | What it configures |
|---|---|
| Provider | OpenRouter, Anthropic, or OpenAI-compatible API |
| Model |
AgentModelPicker — catalog, pricing line, custom id |
| Thinking | Off / Low / Medium / High / Max |
API keys are not entered here. A muted hint links to Settings → API Keys; masked status shows configured / missing.
| Backend | Keyring account | Env fallback |
|---|---|---|
| Tavily | agent:web:tavily |
BLX_TAVILY_API_KEY |
| Brave | agent:web:brave |
BLX_BRAVE_API_KEY |
- Set Tavily and/or Brave keys under Settings → API Keys.
- Pick Tavily, Brave, or Disabled in BLXCode Agent.
- Click Save on the BLXCode Agent footer (with text provider settings).
Until a key is available, web_search and web_fetch are omitted from the agent tool catalog. The web core skill still appears in the Skills panel with availability disabled_no_key.
Previously, long tool documentation lived inside every API request. Better Harness moves that into core skills — built-in Markdown guides shipped inside the app.
| Kind | Where it lives | Editable? | Remove? |
|---|---|---|---|
| Core | Embedded in the binary (harness_skills/*.md) |
No (toggle enable only) | No |
| User | <workspace>/.agents/skills/<name>/SKILL.md |
Yes | Yes |
In the Skills panel, use the Core / User tabs:
-
Core —
file-access,memory,plans,tasks,rules-skills,harness,environment,shell,git,web,subagents - User — skills you install (git, npm, or local path)
The agent system prompt lists tool names only. For parameters and patterns, the agent calls skills_read on the relevant core skill (same as reading a user skill).
See Rules And Skills for install flow and the turn checklist.
The harness enforces this order in the system prompt:
-
Rules —
rules_list, thenrules_readon active rules that apply -
Skills —
skills_list, thenskills_readwhen a skill matches the task (including core skills above) -
Resume — on continuation phrases (continue, resume, weiter, fortsetzen, …):
task_list,activePlanPath,plan_readif needed - Memory / plans — as required by the task
- Execute — tools and a visible final reply
Trivial one-line chat may skip steps 1–2. Any file change or tool use should run the full checklist.
Before shell or Git tools run in a workspace session, the agent must call environment_detect once. That caches OS, default shell, path separator, and whether Git is available.
- Switching workspaces clears the cache; the next turn should detect again.
- If shell/Git is called too early, the tool returns an error asking for
environment_detect.
| Mechanism | Use for |
|---|---|
harness.* (client) |
Interactive CLIs in the workbench terminal grid, context handoff, reading pane output |
shell_exec (server) |
One-shot commands in the workspace directory (read-only by default; write requires coordinator shell_write group) |
Core skill harness documents terminal tools; shell documents shell_exec and allowlists.
Read-only Git inspection is available via dedicated tools (git_status, git_diff, git_log, …) and workspace helpers (workspace_git_status, workspace_diff, workspace_search). Mutating Git (git_add, git_commit, git_apply_patch) is coordinator-only and requires explicit git_write permission in subagent runs (subagents do not get write by default).
Core skill git has full parameter notes.
Poll-based: agent_submit_turn → agent_poll_events until Done. Client tools (harness terminals, context attach) round-trip via agent_submit_tool_result.
- Subagents — roles, timeline, tool groups, limits
- Agent Providers — providers, context, hooks, image mode
- Rules And Skills — rules, user skills, bootstrap
- Workspaces — terminals and handoff
- Troubleshooting — keys, web tools, environment errors
- User-Agent-Harness
- User-Agent-Providers
- User-Appearance-Themes
- User-Building
- User-File-Preview
- User-Getting-Started
- User-Image
- User-Keyboard-Shortcuts
- User-Language
- User-Memory-And-Tasks
- User-Plans
- User-Rules-And-Skills
- User-Settings
- User-Subagents
- User-Troubleshooting
- User-Voice
- User-Workspaces
- Developer-Agent-Harness
- Developer-Architecture
- Developer-Contributing
- Developer-I18n
- Developer-Setup
- Developer-Subagents
- Developer-Tauri-Ipc
- Developer-Themes
- Developer-Voice