feat(#2089): additive claude.md pointer to in-container docs
This commit is contained in:
parent
5d597d92ea
commit
6267bf56d0
3 changed files with 56 additions and 14 deletions
|
|
@ -708,10 +708,12 @@ async fn run_claude(prompt: &str, files: &TurnFiles, bus: &Bus) -> Result<(bool,
|
|||
.arg("--allowedTools")
|
||||
.arg(mcp::allowed_tools_arg());
|
||||
// hyperhive.docs.enable wires HIVE_DOCS_DIR to the in-container
|
||||
// reference-docs tree. Expose it to claude as an additional
|
||||
// directory so the docs are readable; the agent is NOT pointed at
|
||||
// them (no CLAUDE.md autoload) — surfacing a pointer is the open
|
||||
// follow-up. Unset (docs disabled) → the flag is not passed.
|
||||
// reference-docs tree (with a generic CLAUDE.md pointer at its root).
|
||||
// Expose it to claude as an additional directory so the docs are
|
||||
// readable; harness-base.nix also sets
|
||||
// CLAUDE_CODE_ADDITIONAL_DIRECTORIES_CLAUDE_MD=1 so claude loads that
|
||||
// pointer additively (never replacing the agent's own CLAUDE.md).
|
||||
// Unset (docs disabled) → the flag is not passed.
|
||||
if let Some(docs_dir) = std::env::var_os("HIVE_DOCS_DIR")
|
||||
&& !docs_dir.is_empty()
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue