harnest-authoring
Build, modify, test, or review Harnest agents and source, including folders, APIs, frameworks, resources, extensions, plugins, lifecycle, MCP, skills, evals, compilation, running, and serving.
- License 许可
- Apache-2.0
- 所属仓库
- Usefused/harnest
- 最近更新
- 2026-11-14
- Stars
- ★ 3
- Forks
- 1
01 前言 Front Matter
- name
- harnest-authoring
- description
- Build, modify, test, or review Harnest agents and source, including folders, APIs, frameworks, resources, extensions, plugins, lifecycle, MCP, skills, evals, compilation, running, and serving.
02 资源文件 9
- 参考文档agents/openai.yaml267 B
- 参考文档references/deployment.md6.1 KB
- 参考文档references/folder-edits.md13.1 KB
- 参考文档references/frameworks.md8.7 KB
- 参考文档references/layout.md14.2 KB
- 参考文档references/python-api.md45.1 KB
- 参考文档references/quality.md1.8 KB
- 参考文档references/runtime-features.md6.4 KB
- 参考文档references/workflows.md15.9 KB
03 SKILL.md 正文
Harnest authoring
Produce agents. Never edit .harnest/.
Modify safely
- Preserve unrelated changes. Inspect
harnest upgrade AGENT_DIRfor legacy projects. Never runinitover existing work. Use--minimalfor core files or--examplefor samples. Preferharnest add tool|subagent|task|lifecycle|context NAMEfrom the agent root when adding one supported resource. - Preserve framework, mode, and
Agent.historyunless migration is requested. Preserve session/checkpoint authorities; readdocs/checkpoints.mdbefore changing checkpoint ownership. - Put capabilities beside their owning
agent.py. Managed discovery handles tools, MCP clients, Agent Plugins, skills, and subagents; do not import or register them manually. Use extension public APIs without registration. Nested agents do not inherit parent resources. - Keep imports side-effect free. Put Pydantic contracts in root
models/and shared code in rootlib/; import viaharnest.models.*andharnest.lib.*. Publish values with@context.provider. Inline media is transient;Stored(...)requires named storage and an async@tool. - Import authoring symbols from canonical
harnest.*APIs. - Match path/export contracts. MCP
client()factories take no arguments;@client_toolstubs run in callers, never the agent server. Decorate lifecycle listeners with@lifecycle.*; tool/HTTP interceptors returncontext.next(...)orcontext.finish(...). Keep helpers ignored. Put MCP approval on remote tools. Describe each tool argument's semantic role; expose pagination and ordering as typed arguments rather than prompt hints. Invalid resources fail. - Put agent dependencies in root
pyproject.toml; Harnest Extensions may own a matching PEP 621 project but never add Harnest/framework packages. Put agent and optionalserversettings inconfig.yaml; use exact${NAME}references for startup environment values. Put public identity inagent-card.yaml. Runharnest env sync; commit used locks. Upgrade Harnest.
Load guidance
- Read references/folder-edits.md before changing structure or capability ownership.
- Read references/layout.md for path contracts.
- Read references/python-api.md for Python APIs.
- Use
$harnest-authenticationfor auth or credential changes. - Read references/frameworks.md for graphs, frameworks, modes, models, and subagents.
- Read references/workflows.md for installation, migration, tests, evals, compilation, and serving.
- Read references/quality.md when contributing to Harnest source.
- Read references/deployment.md for deployment.
Finish with evidence
Run focused tests, then harnest test AGENT_DIR; compile after structural
changes. Use strict evals for exact tool calls and smoke only for authorized
live calls. Report framework/mode, checks, live calls, and remaining
requirements.
04 同仓库更多 Skills
company-support
Help employees resolve support requests using approved services.
company-builder
Build agents using the company support catalog and native Harnest contracts.
incident-triage
Triage customer-reported service incidents when production impact, errors, authentication failures, or integrations are mentioned.
harnest-studio
Configure Harnest Studio workspaces, loaded packs, company distributions, and builder model, endpoint, credential references, budgets, or CA settings. Use for Studio launch and pack configuration; use harnest-studio-ui for visual customization.
harnest-studio-ui
Customize Harnest Studio through UI packs: themes, layouts, isolated views, trusted modules, or shell replacements. Use for Studio styling, Tailwind or Panda CSS builds, section swaps, and UI recovery; not agent runtime configuration.
harnest-authentication
Implement or review Harnest request authentication, AuthPrincipal propagation, browser-token pass-through or exchange, CredentialProvider policy, and trusted tool or library credential use. Use for auth extensions and downstream authorization flows; not for model-provider API keys configured directly on model connectors.