Repository navigation
🤖 Bootstrap agent context infrastructure - #867
Merged
Merged
Conversation
This patch establishes the entry-point chain `CLAUDE.md` -> `AGENTS.md` -> `.agents-ctx/HOUSE_RULES.md`, along with `.agents-ctx/HOUSE_STYLE.md` and a `.gitignore` that restricts `.agents-ctx/` to Markdown files. Together these form the initial scaffolding for the house-style/tribal-knowledge memory that Claude Code and other agentic tools load when working in this repo. In this patch, `HOUSE_STYLE.md` documents the only rule so far: no new `@`-mention imports below `AGENTS.md`. `@`-syntax loads eagerly at the start of every session regardless of relevance, so letting it spread would pollute the context window; everything past `HOUSE_RULES.md` links out with plain Markdown instead, to be pulled in on demand. This mirrors the approach outlined in [1]. The `.gitignore` also gains a `CLAUDE.local.md` entry, matching how `ansible/ansible` keeps that personal override file untracked. The naming and idea behind `HOUSE_STYLE.md` come from Bernát Gábor (@gaborbernat), as discussed in the PR thread linked below [2]. [1] https://www.humanlayer.dev/blog/writing-a-good-claude-md [2] tox-dev/turbohtml#482 (comment)
There was a problem hiding this comment.
Pull request overview
This PR bootstraps an agent-context “entrypoint chain” for the repository by adding CLAUDE.md → AGENTS.md → .agents-ctx/HOUSE_RULES.md, plus initial “house rules/style” documents and ignore rules intended to keep .agents-ctx/ Markdown-only and to keep CLAUDE.local.md untracked.
Changes:
- Add
CLAUDE.mdandAGENTS.mdas the agent context entrypoints. - Introduce
.agents-ctx/scaffolding withHOUSE_RULES.md,HOUSE_STYLE.md, and a README. - Update ignore rules for agent-local overrides and
.agents-ctx/contents.
Reviewed changes
Copilot reviewed 6 out of 7 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
CLAUDE.md |
Adds the top-level agent context import chain entrypoint. |
AGENTS.md |
Adds a “load first” instruction pointing to house rules. |
.gitignore |
Ignores a local override file intended to remain untracked. |
.agents-ctx/README.md |
Adds a short pointer to house rules within the agent context directory. |
.agents-ctx/HOUSE_STYLE.md |
Documents the project’s agent-context import style constraints. |
.agents-ctx/HOUSE_RULES.md |
Establishes the initial “house rules” document and links to style. |
.agents-ctx/.gitignore |
Attempts to restrict .agents-ctx/ to Markdown-only tracked files. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Comment on lines
+1
to
+4
| @~/.claude/ansible/context.md | ||
| @~/.claude/ansible/pylibssh/context.md | ||
| @AGENTS.md | ||
| @CLAUDE.local.md |
Comment on lines
+5
to
+8
| Do not introduce additional Claude `@`-mention/import syntax inside | ||
| any file under `.agents-ctx/`. The existing chain (`CLAUDE.md` -> | ||
| `AGENTS.md` -> `.agents-ctx/HOUSE_RULES.md`) is the only sanctioned | ||
| use of `@`-imports. |
Comment on lines
+1
to
+3
| * | ||
| !.gitignore | ||
| !*.md |
This comment was marked as off-topic.
This comment was marked as off-topic.
Merged
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
webknjaz
marked this pull request as ready for review
August 15, 2026 01:08
This was referenced Aug 15, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
SUMMARY
This patch establishes the entry-point chain
CLAUDE.md->AGENTS.md->.agents-ctx/HOUSE_RULES.md, along with.agents-ctx/HOUSE_STYLE.mdand a.gitignorethat restricts.agents-ctx/to Markdown files. Together these form the initial scaffolding for the house-style/tribal-knowledge memory that Claude Code and other agentic tools load when working in this repo.In this patch,
HOUSE_STYLE.mddocuments the only rule so far: no new@-mention imports belowAGENTS.md.@-syntax loads eagerly at the start of every session regardless of relevance, so letting it spread would pollute the context window; everything pastHOUSE_RULES.mdlinks out with plain Markdown instead, to be pulled in on demand. This mirrors the approach outlined in [1].The
.gitignorealso gains aCLAUDE.local.mdentry, matching howansible/ansiblekeeps that personal override file untracked.The naming and idea behind
HOUSE_STYLE.mdcome from Bernát Gábor (@gaborbernat), as discussed in the PR thread linked below [2].[1] https://www.humanlayer.dev/blog/writing-a-good-claude-md
[2] tox-dev/turbohtml#482 (comment)
ISSUE TYPE
ADDITIONAL INFORMATION
N/A