This repository keeps agent guidance in a tool-neutral form. Treat this file as the entry point for all coding agents, including Cursor, Codex, Claude Code, Copilot, and Aider.
- Full project rules live in
docs/agent-guidelines/. - Tool-specific files such as
.cursor/rules/*.mdc,CLAUDE.md, and.github/copilot-instructions.mdare adapters only. - When adding or changing persistent rules, update
docs/agent-guidelines/first, then update tool adapters only if their metadata or pointers need to change. - Before working in an area covered by the Rule Index, read the relevant guideline file and follow it for the task.
- Prefer enforcing critical rules with tests, scripts, CI, or Makefile targets instead of relying only on agent memory.
- Keep local HTTP API changes in sync with
openapi/local-api.json; rungo test ./internal/serverafter API doc changes. - csghub-lite must work on macOS, Linux, and Windows. Use platform-aware path, binary, library, process, and environment handling.
- Do not commit or paste secrets. Load GitLab and OSS credentials only from
local/secrets.env. - Follow the repository network split: external sites such as GitHub need
source ~/.myshrc; internal GitLab access should be direct. - Use only
http://localhost:11435for local preview. Do not keep extra frontend preview servers running. - If frontend files change, build
web, syncweb/distintointernal/server/static, then restart the single backend preview. - Store all runtime files, including temporary files and subprocess temp output,
under the csghub-lite storage root, defaulting to
~/.csghub-lite. - Keep commit, PR, and release notes concise and focused on concrete user-facing changes.
- When syncing llama.cpp binaries: use official
ggml-org/llama.cppGitHub releases for upstream-published assets; build Ubuntu Linux CUDA packages only viascripts/llama-build/(seedocs/agent-guidelines/llama-cpp.md).
docs/agent-guidelines/api-swagger-sync.mddocs/agent-guidelines/app-installs.mddocs/agent-guidelines/ai-app-oss-mirror.mddocs/agent-guidelines/cross-platform.mddocs/agent-guidelines/frontend-i18n.mddocs/agent-guidelines/go-conventions.mddocs/agent-guidelines/llama-cpp.mddocs/agent-guidelines/local-preview.mddocs/agent-guidelines/model-source-routing.mddocs/agent-guidelines/network-and-secrets.mddocs/agent-guidelines/python.mddocs/agent-guidelines/release-notes.mddocs/agent-guidelines/storage.md