contextweaver
Copilot instructions9 starsChanged 5 months agoApache-2.0View on GitHub
AGENTS.md is the single source of truth for shared rules, conventions, and module layout. This file contains review-critical rules that must be visible in GitHub and Copilot-specific guidance. Do not treat this file as a standalone reference. - Review code and agent docs together. When a PR changes behavior that agent-facing docs describe (pipeline stages, public API, conventions, module layout), review the code change and the doc update as a unit. If the PR has no doc update, flag it.…
In this repository4 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .claude/CLAUDE.mdCLAUDE.md
- llms-full.txtllms.txt
- llms.txtllms.txt
The file
We split this copilot-instructions.md into the rules it gives an agent
8 rules. About 0 are common, 2 are distinctive, and 6 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
6
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 9
Review code and agent docs together: When a PR changes behavior that agent-facing docs describe (pipeline stages, public API, conventions, …
- Very specific: line 16
Check docs/agent-context/invariants.md before proposing structural changes.
- Very specific: line 17
Do not invent conventions: All conventions must be grounded in AGENTS.md, docs/agent-context/, or verifiable repository evidence.
- Very specific: line 20
Use authoritative commands: Run make ci (not make test alone) as the validation gate.
- Distinctive: line 22
Surface contradictions: If you find conflicting guidance between docs, or between docs and code, flag the contradiction explicitly.
- Very specific: line 29
No
print()in library code: Use hooks or logging. __main__.py (CLI) is exempt. - Very specific: line 30
No business logic in
__init__.py: Only re-exports allowed. - Very specific: line 48
Never weaken defaults. See .github/instructions/sensitivity.instructions.md.
≈ “Common” is an estimate: at least 1 in 5 of the 1,644 Copilot instructions files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
contextweaver — Copilot Instructions
AGENTS.mdis the single source of truth for shared rules, conventions, and module layout. This file contains review-critical rules that must be visible in GitHub and Copilot-specific guidance. Do not treat this file as a standalone reference.
Review-Critical Rules
- Review code and agent docs together. When a PR changes behavior that agent-facing docs describe (pipeline stages, public API, conventions, module layout), review the code change and the doc update as a unit. If the PR has no doc update, flag it.
- PRs that change any of these must trigger doc review:
workflows, invariants, architecture intent, review rules, path-specific conventions,
or the module map. Expect a corresponding update to
AGENTS.mdordocs/agent-context/. - Invariants take priority over cleanup, simplification, or local refactors.
Check
docs/agent-context/invariants.mdbefore proposing structural changes. - Do not invent conventions. All conventions must be grounded in
AGENTS.md,docs/agent-context/, or verifiable repository evidence. If you cannot find a rule, it does not exist — do not assume one. - Use authoritative commands. Run
make ci(notmake testalone) as the validation gate. SeeAGENTS.mdfor the full command reference. - Surface contradictions. If you find conflicting guidance between docs, or between docs and code, flag the contradiction explicitly. Do not silently pick one side.
Hard Rules (auto-reject)
These cause automatic rejection in review. No exceptions.
- No
print()in library code. Use hooks or logging.__main__.py(CLI) is exempt. - No business logic in
__init__.py. Only re-exports allowed.
Copilot-Specific Guidance
Understand system-level intent before making changes. contextweaver has deliberate architectural boundaries (async context vs sync routing, protocol-based stores, 8-stage pipeline, complementary serialization layers). Changes that are locally correct but violate these boundaries will be rejected. Before modifying code, check:
AGENTS.md→ module map, conventions, "things that must not be simplified"docs/agent-context/architecture.md→ design boundaries and tradeoffsdocs/agent-context/invariants.md→ hard constraints and forbidden shortcuts
Architecture (minimal orientation)
- Context Engine — async-first, 8-stage pipeline. See
AGENTS.mdfor the stage list. - Routing Engine — sync-only, pure computation. Do not make async.
- Sensitivity enforcement (
context/sensitivity.py) — security-grade code. Never weaken defaults. See.github/instructions/sensitivity.instructions.md. - Minimal core runtime deps. Core install:
tiktoken,PyYAML,rank-bm25. Heavy or runtime-specific packages live under optional extras ([otel],[retrieval],[fastmcp],[langchain]) and use guarded imports. New core deps require broad ecosystem use + small wheel + a default the library would otherwise approximate.
Canonical References
| Topic | File |
| Shared rules, conventions, module map | AGENTS.md |
| Architecture detail and tradeoffs | docs/agent-context/architecture.md |
| Hard constraints and forbidden shortcuts | docs/agent-context/invariants.md |
| Authoritative commands and workflows | docs/agent-context/workflows.md |
| Recurring lessons | docs/agent-context/lessons-learned.md |
| Review checklist | docs/agent-context/review-checklist.md |
| Core concepts glossary | docs/concepts.md |
| Full pipeline and module detail | docs/architecture.md |
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

