mirror of
https://github.com/fscotto/infra.git
synced 2026-11-26 05:39:52 +00:00
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>
1.2 KiB
1.2 KiB
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.mdfirst. 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.mdand read only the files relevant to the current task fromknowledge/,rules/, andpatterns/. Do not preemptively load all task-specific files. - Distilled knowledge: for prior decisions, history, and stable preferences,
start from
~/.config/ai/memory/chatgpt/INDEX.mdand read the matching topic file under~/.config/ai/memory/chatgpt/knowledge/. When that is not enough, search the full transcripts withrg -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.