Skip to content

Implement subagent-start knowledge-tree snapshot injection (Option B) #17

Description

@ivklgn

Problem

Every sub-agent invocation currently spends two live tool calls (list_documents + list_relations) bootstrapping its view of the knowledge base via the preamble in plugins/archcore/agents/archcore-{assistant,auditor}.md (Option A, shipped and test-enforced). As the knowledge base grows, that per-invocation cost becomes measurable.

Expected result

Option B: precompute a knowledge-tree snapshot (the same payload as session-start) and prepend it at Task-dispatch time via a new archcore hooks <host> subagent-start subcommand, eliminating the per-invocation bootstrap calls.

Impact

Removes repeated bootstrap overhead for sub-agents, keeping delegated work fast as the documentation base scales.

Blocked

Claude Code exposes no documented sub-agent-start hook surface, so this needs host-side plumbing plus a new CLI subcommand. The adopted design (.archcore/plugin/subagent-knowledge-tree-bootstrap.adr.md) defers Option B until such a lifecycle hook exists on at least one host; revisit trigger is roughly 10x knowledge-base growth. Track as a blocked epic.

Proposed approach

  • (When unblocked) add the subagent-start CLI subcommand and per-host injection plumbing.

References

Design rationale: .archcore/plugin/subagent-knowledge-tree-preload.idea.md (Option B) and subagent-knowledge-tree-bootstrap.adr.md. The empirical hook-coverage probe (separate issue) is what could re-open this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:skillsIntent skills and agentsblockedBlocked on an external capabilitypriority:P3Optional / roadmapsize:LMulti-day / needs a spike

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions