Repository navigation
✨ agentsmd: 32 KiB default AGENTS.md cap with per-repo override and status - #18498
Conversation
…status Raise the default AGENTS.md injection cap from 8 KiB to 32 KiB so a 13 KB file reaches the kick in full. Add repos.<repo>.agents_md_max_bytes as a per-repo override over project.agents_md_max_bytes, an env default (HIVE_AGENTS_MD_MAX_BYTES) and a 256 KiB hard ceiling. Log the truncation warning once per file content and cap instead of every kick, and expose each repo's file size, effective cap and dropped sections in the /api/status repos payload. Fixes #18495 Signed-off-by: Andy Anderson <andy@clubanderson.com>
|
Hive status — updated in place; edits do not notify. Full history is in the Activity Monitor. @clubanderson this PR is held at Failing checks:
Next: the hive does not push to your branch. Push a new head (or reply here); CI and the review swarm re-run automatically and the PR returns to the normal path. |
Signed-off-by: Andy Anderson <andy@clubanderson.com>
Open PR overlap checkBase branch: Conflicts are checked with every PR merged onto the current tip of
|
Mutation testing2 mutant(s) in changed files are not reached by any test (NOT COVERED). A maintainer may apply the
ℹ️ 2 mutant(s) on added lines were SKIPPED because gremlins v0.6.0 only honours the first
Verdict: |
Signed-off-by: Andy Anderson <andy@clubanderson.com>
|
[APPROVALNOTIFIER] This PR is APPROVED Approval requirements bypassed by manually added approval. This pull-request has been approved by: The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
cc @joerunde: this is part of the hive changes for the spyre-inference deps agent and sandboxed reviewer setup. |
Summary
Hosted spokes capped a managed repo's AGENTS.md at 8 KiB, so real files (one current example is 13 KB) silently lost whole sections. This raises and per-repo-ifies the cap.
agentsmd.DefaultMaxInjectionBytes = 32 * 1024). A 13 KB AGENTS.md is now included in full with no warning.repos.<repo>.agents_md_max_bytes(new top-levelrepos:map, keyed by bare name orowner/repo, case-insensitive) overproject.agents_md_max_bytes.HIVE_AGENTS_MD_MAX_BYTESwhen no config key sets a cap.agentsmd.MaxInjectionBytesCeiling = 256 KiB, applied to every source; the 2048 floor is unchanged./api/statusrepos[]entry gains anagentsMdobject (sourceBytes,capBytes,renderedBytes,truncated,wholeFile,omittedSections,omittedBytes,updatedAt) once a kick has read the file.src/docs/agents-md.md,src/docs/operator-reference/README.md,src/docs/agent-knowledge-and-memory.md. Changelog fragment added. Settings parity allowlist entry for the new key.Tests
crux/agentsmd: 13 KB file renders in full by default; env override, invalid env values, ceiling clamp; status registry round-trip and copy safety.pkg/config: per-repo lookup (bare/qualified/case-folded/inherit) and YAML parsing.pkg/scheduler: 13 KB in full end to end with recorded status; per-repo override applies to that repo only; warning logged once per content change.pkg/dashboard:buildReposcarries the recorded status.Fixes #18495
🤖 Generated with Claude Code