Skip to content

Seed the agent knowledge base#18253

Open
c2thorn wants to merge 6 commits into
GoogleCloudPlatform:mainfrom
c2thorn:agentic-knowledge-seed-v2
Open

Seed the agent knowledge base#18253
c2thorn wants to merge 6 commits into
GoogleCloudPlatform:mainfrom
c2thorn:agentic-knowledge-seed-v2

Conversation

@c2thorn

@c2thorn c2thorn commented Jul 10, 2026

Copy link
Copy Markdown
Member
  • .agents/knowledge/: an index routing to existing docs plus agent-only entries for judgment the docs don't cover.
  • First agent-only entry: Enum-vs-String guidance (promoted from the existing schema-review stub skill, which now references it).
  • BACKLOG.md lists candidate entries by docs-coverage.
  • AGENTS.md and all existing workflows point agents at the index.

.agents/knowledge/: an index routing to the contributor docs plus agent-only
entries for judgment the docs don't cover. First entry: the Enum-vs-String
trade-off (promoted from schema-review, which now references it). BACKLOG.md
lists candidate entries by docs-coverage. AGENTS.md and the three workflows
point agents at the index.
@modular-magician

This comment was marked as outdated.

@@ -0,0 +1,36 @@
---

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Entries in .agents/knowledge/ are intended to cover decision points or otherwise tacit knowledge that the contributor documentation does not cover.

A question that we'll need to ask ourselves: should this exist as an agent-only knowledge entry, or promoted to the contributor documentation?

I would say in most new cases, it'll be more efficient to have new topics/decision points exist as new entries outside of the contributor documentation. These entries are intended to be optimized for LLM ingestion and also fed by future session learnings.

Over time, I expect the % of documentation readers to lean towards mostly agents, whether initiated by a human author or not.

@@ -0,0 +1,27 @@
# Knowledge backlog

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

An initial scan of potentially missing knowledge entries seeded from my own personal agentic sessions and some initial PR investigations.

Each entry would be codifying potentially ambiguous or stylistic decision-making, and should be reviewed/discussed individually. I believe it to be the most important tool our team has in curbing the last ~20% of scenarios the base models+harnesses cannot do alone.

@@ -0,0 +1,56 @@
# Knowledge index

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lightweight index for agents to deliberately read so they are aware of all existing documentation available to them.

The intention is that it performs better than the agent sporadically deciding to grep for existing documentation via specific terms or phrases.

It could still decide to NOT consult any documentation (without more forceful guardrails), but this should cover awareness at the very least.

@c2thorn c2thorn requested review from rileykarson and slevenick July 10, 2026 19:57
@modular-magician

Copy link
Copy Markdown
Collaborator

Hi there, I'm the Modular magician. I've detected the following information about your changes for commit 315dc75:

Diff report

Your PR hasn't generated any diffs, but I'll let you know if a future commit does.


## Entry format

One Markdown file, one topic, ≤120 lines, YAML frontmatter:

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is the frontmatter a well-known format or did you define it? Will agents do progressive disclosure with the format if it's custom?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is the frontmatter a well-known format

Having YAML frontmatter is a well-known format. Gemini skills/rules use it (name+description), and so does the GCP Open Knowledge Format. The exact contents of the frontmatter were my invention, but can be fairly flexible if we find it's better to add or remove parts

Will agents do progressive disclosure with the format if it's custom?

Progressive disclosure doesn't depend on the frontmatter at all in these files. Right now frontmatter-driven loading only applies to skills + rules, and those are both location and frontmatter dependent.

Right now the mechanism is driven by a harness-level rule to read the index.

If Antigravity adopts an official shared knowledge system (not just local memories), we could switch to whatever that format is. They'll likely reuse name+description. The rest of the custom fields are mostly for record keeping.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

By well-known format I mean like OKF or skills i.e. https://agentskills.io/specification#frontmatter!

Right now the mechanism is driven by a harness-level rule to read the index.

So we expect the agent to proactively read the index into context, and then choose to follow the index for those topics on-demand?

Comment thread .agents/knowledge/field/enums-vs-strings.md Outdated
Comment thread .agents/knowledge/BACKLOG.md Outdated
@modular-magician

Copy link
Copy Markdown
Collaborator

Hi there, I'm the Modular magician. I've detected the following information about your changes for commit a2c2734:

Diff report

Your PR hasn't generated any diffs, but I'll let you know if a future commit does.

@modular-magician

Copy link
Copy Markdown
Collaborator

Hi there, I'm the Modular magician. I've detected the following information about your changes for commit dced8a6:

Diff report

Your PR hasn't generated any diffs, but I'll let you know if a future commit does.

@modular-magician

Copy link
Copy Markdown
Collaborator

Hi there, I'm the Modular magician. I've detected the following information about your changes for commit 9d1ab63:

Diff report

Your PR hasn't generated any diffs, but I'll let you know if a future commit does.

@modular-magician

Copy link
Copy Markdown
Collaborator

Hi there, I'm the Modular magician. I've detected the following information about your changes for commit 0093f6d:

Diff report

Your PR hasn't generated any diffs, but I'll let you know if a future commit does.

@@ -0,0 +1,29 @@
# Knowledge backlog

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe .BACKLOG.md or __BACKLOG.md if we don't intend agents to read this, but may not matter.

## Not in the docs

- **casing-and-pluralization** — how API names map to Terraform names; when `api_name` is required.
- **pr-mined-lessons** — recurring review catches and per-service quirks surfaced from merged PRs.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- **pr-mined-lessons** — recurring review catches and per-service quirks surfaced from merged PRs.

(up to you) IMO cut as we'd use historical analysis to determine new rules of this type to cover, rather than the outputs of historical analysis being a single rule.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants