From a176d675cf494ee7b94fedac6aa63ddb28a02404 Mon Sep 17 00:00:00 2001 From: damocles Date: Wed, 3 Jun 2026 20:30:28 +0200 Subject: [PATCH] address review: drop 'service endpoints', fix container_mount doc, remove redundant write warning --- hive-ag3nt/prompts/system.md | 2 +- hive-c0re/src/knowledge.rs | 9 ++++----- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/hive-ag3nt/prompts/system.md b/hive-ag3nt/prompts/system.md index 659b17fb..141ecb45 100644 --- a/hive-ag3nt/prompts/system.md +++ b/hive-ag3nt/prompts/system.md @@ -128,7 +128,7 @@ Claude session (OAuth credentials) lives at `/root/.claude/` and persists across **Shared space**: `/shared` is accessible to all agents (read/write). Only put things here you're willing to lose — other agents may delete them. Use for explicit cross-agent communication or shared artifacts when appropriate. -**Hive knowledge**: `/knowledge` is a read-only bind-mount of the `internal/knowledge` repo on the forge. It contains hive-wide reference documents (conventions, service endpoints, shared runbooks). Read files there for context; to contribute, fork `internal/knowledge` on the forge and open a PR — do not try to write to `/knowledge` directly. +**Hive knowledge**: `/knowledge` is a read-only bind-mount of the `internal/knowledge` repo on the forge. It contains hive-wide reference documents (conventions, runbooks, shared notes). Read files there for context; to contribute, fork `internal/knowledge` on the forge and open a PR. **Code forge**: a private Forgejo at `http://localhost:3000` is available when `/agents/{label}/state/forge-token` exists. You have your own user account (named `{label}`). Use `hive-forge` (see below) for all forge operations — issues, PRs, comments, labels, etc. For git operations use plain `git` directly against `http://localhost:3000//.git` (credentials are pre-configured). diff --git a/hive-c0re/src/knowledge.rs b/hive-c0re/src/knowledge.rs index 013ee459..0091a487 100644 --- a/hive-c0re/src/knowledge.rs +++ b/hive-c0re/src/knowledge.rs @@ -18,8 +18,8 @@ pub const REPO: &str = "knowledge"; /// `lifecycle.rs` (bind-mount source) and the dashboard webhook handler. pub const LOCAL_DIR: &str = "/var/lib/hyperhive/knowledge"; -/// In-container mount point for the knowledge repo. Consistent, -/// predictable path documented in the agent system prompt. +/// In-container mount point for the knowledge repo. Bind-mounted +/// read-only from [`LOCAL_DIR`] into every agent container. pub const CONTAINER_MOUNT: &str = "/knowledge"; /// Default README pushed to a freshly created `internal/knowledge` repo. @@ -28,9 +28,8 @@ pub const CONTAINER_MOUNT: &str = "/knowledge"; const README_CONTENT: &str = "\ # knowledge -Hive-wide reference documents: conventions, service endpoints, runbooks, and \ -anything that every agent should know but does not belong in an individual \ -agent's system prompt. +Hive-wide reference documents: conventions, runbooks, and anything that \ +every agent should know. ## How to contribute