Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Document the built-in Harper Agent (`agent:` config, `agent_prompt` ops, `harper agent` CLI)

オープン
#674 コメント 0 件 リアクション 0 件 担当者 1 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

@DavidCockerill がすでに取り組んでいます。

2026年9月18日 から。

評価

この issue はまだ評価されていません。

説明

content

Problem

Harper 5.1+ ships an in-process agent component (Built-in Harper Agent Component, landed in feat(agent): scaffold built-in Harper Agent component, first release tag v5.1.0). Nothing on docs.harper.fast describes it. The two pages that mention agents cover different things:

Zero hits in the repo (all branches) for agent_prompt, hdb_agent, agent.enabled, or harper agent.

What to document

A new reference page under AI & Models (reference/models/agent.md or similar), plus a short pointer from the getting-started agents page distinguishing the two agents.

Source of truth, all in HarperFast/harper main:

  • Config — the agent block in config-root.schema.json (~L694): enabled (default false, off to avoid surprise LLM cost), provider, model, maxTurns (default 50), maxCostUsd, autoApprove, allowDestructive, user (default hdb_agent, created at startup), componentsScope, systemPromptAppend. Requires a models.generative entry for the model it uses.
  • Operations API — agent/operations.ts: agent_prompt, get_agent_session, list_agent_sessions, approve_agent_action, set_agent_config. Grantable to a non-super_user role via operations: ['agent'].
  • CLI — bin/agentCli.ts: harper agent [message] (alias harper chat), one-shot and REPL modes, --target/--session/--json/--once, local UDS or remote ops API, approval prompts on awaiting_approval.
  • Toolset and safety posture — agent/toolset.ts, agent/tools/: read-only by default (read/list/grep/tail files, http_fetch, inspector attach + CPU profile, best-practices lookup, schedule_followup); allowDestructive: true adds write_file scoped to components; operations-profile tools follow the mcp.operations.allow list and the agent user's permissions. Document what it can and cannot do out of the box so nobody expects self-deploy.
  • Lifecycle — component edits need a restart to take effect (no hot class reload); session continuation.

Suggested outline: What it is (vs. harper-agent CLI, vs. toolMode: 'auto') → Enable (config, generative model, cost guard) → Talk to it (CLI, ops API) → Tools and permissions → Approval flow → Limits.

Out of scope

  • Fabric provisioning does not enable the agent on instances; that is central-manager#457. The page should state the agent is off by default and link nowhere Fabric-specific until that lands.
  • models.* cannot be set via set_configuration (harper#2267). Mention as a known limit, do not work around it in the docs.

Acceptance

  • Reference page live under AI & Models, listed in sidebarsReference.ts.
  • Every config key, operation, and CLI flag above is covered and verified against harper main at time of writing (note the SHA in the source comment, as tool-calling.md does).
  • Getting-started agents page gains a two-sentence pointer: external harper-agent CLI vs. in-process built-in agent.
  • Searching the site for agent_prompt or harper agent finds the page.
主要言語
MDX
スター
9
フォーク
9
平均マージ
2日 3時間
マージ済み PR(30日)
30

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

HarperFast/documentation のほかの issue

HarperFast/documentation の issue をすべて見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。