Bind Cline to the shared AI context through global rules

Add dotfiles/common/.cline/rules/ai-context.md as an always-on global rule that
Cline auto-loads from ~/.cline/rules/ and deploy it through ai_agents_dotfiles
behind cline_deploy_enabled. The rule points at the deployed bootstrap.md,
safety directives, task dispatcher, and the distilled ChatGPT knowledge under
memory/chatgpt/, keeping ~/.config/ai/ the single source of truth. Also add
cline to the AI common config agent list so the shared context is deployed
for Cline-only hosts as well.

Co-Authored-By: Cline <noreply@anthropic.com>
This commit is contained in:
2026-11-12 23:05:53 +01:00
parent 94eb555ff3
commit 4df3067c38
4 changed files with 37 additions and 3 deletions

View File

@@ -0,0 +1,23 @@
# Deployed global AI context
The standing AI context for this user is deployed by the Ansible-managed
dotfiles under `~/.config/ai/` and is maintained in the infrastructure
repository. Cline binds to it automatically in every project through this
global rule.
- Operating context: read `~/.config/ai/bootstrap.md` first. It carries the
persistent mental model: core principles, system and infrastructure models,
and agent behavior.
- Safety directives: apply `~/.config/ai/rules/safety.md`.
- Task-specific loading: follow the dispatcher `~/.config/ai/AGENTS.md` and
read only the files relevant to the current task from `knowledge/`, `rules/`,
and `patterns/`. Do not preemptively load all task-specific files.
- Distilled knowledge: for prior decisions, history, and stable preferences,
start from `~/.config/ai/memory/chatgpt/INDEX.md` and read the matching
topic file under `~/.config/ai/memory/chatgpt/knowledge/`. When that is not
enough, search the full transcripts with
`rg -i "<keyword>" ~/.config/ai/memory/chatgpt/transcripts/`.
These deployed files are managed state: never record session-specific notes in
them. Update them in the source infrastructure repository instead, so the next
playbook run converges the change everywhere.