Sico
Copilot instructions273 starsChanged 6 months agoMITView on GitHub
Sico is a multi-service AI agent platform: - backend/ — Go (Gin + GORM + Wire DI), HTTP APIs and persistence - core/ — Python 3.13 (asyncio + betterproto2), LLM/chat orchestration - frontend/ — packaged/deployment assets only in this public checkout; React source is provided separately - sandbox/emulator/ — Android emulator sandbox (Python) Backend ↔ Core communicate via gRPC (:50053). Core calls back to the backend via a reverse gRPC server the backend exposes on :50054 (proto files named reverse_rpc.proto).
In this repository9 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- frontend/CLAUDE.mdCLAUDE.md
- frontend/packages/app/CLAUDE.mdCLAUDE.md
- frontend/packages/config/CLAUDE.mdCLAUDE.md
- frontend/packages/shared/CLAUDE.mdCLAUDE.md
- frontend/packages/ui/CLAUDE.mdCLAUDE.md
- android-testerSkill
- add-agentSkill
- add-benchmarkSkill
The file
We split this copilot-instructions.md into the rules it gives an agent
9 rules. About 0 are common, 3 are distinctive, and 6 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
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
- could be automatic: a setting could enforce it
- Very specific: line 15
Every new source/config file (.go, .py, .proto, .yaml, shell scripts, etc.) must start with the standard 19-line MIT header from LICENSE — …
- Distinctive: line 17
Do not strip the header when editing existing files.
- Very specific: line 27
Regenerate Wire: after editing wire.go: cd backend/internal/di && wire.
- Distinctive: line 36
Use betterproto2 for protobuf code.
- Very specific: line 42
Only run frontend pnpm commands from a separate frontend source checkout that includes frontend/package.json.
- Very specific: line 48
After editing any .proto, run bash gen.sh in proto/ and commit the regenerated files.
- Distinctive: line 52
Always run the appropriate subset before claiming a change is complete:
- Very specific: line 58
Frontend build/lint: when frontend source changed and frontend/package.json exists: cd frontend && pnpm build && pnpm lint.
- Very specific: line 64
When handling secrets, use constant-time comparisons (hmac.Equal / crypto/subtle).
≈ “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
Repository overview
Sico is a multi-service AI agent platform:
backend/— Go (Gin + GORM + Wire DI), HTTP APIs and persistencecore/— Python 3.13 (asyncio + betterproto2), LLM/chat orchestrationfrontend/— packaged/deployment assets only in this public checkout; React source is provided separatelysandbox/emulator/— Android emulator sandbox (Python)
Backend ↔ Core communicate via gRPC (:50053). Core calls back to the backend via a reverse gRPC server the backend exposes on :50054 (proto files named reverse_rpc.proto).
See CLAUDE.md for the full architecture and coding-style reference.
Source file conventions
- Every new source/config file (
.go,.py,.proto,.yaml, shell scripts, etc.) must start with the standard 19-line MIT header fromLICENSE—# Copyright (c) 2026 Sico Authorsfor#-comment languages,// Copyright (c) 2026 Sico Authorsfor//-comment languages. - The
addlicensepre-commit hook (.pre-commit-config.yaml) inserts/refreshes the header automatically; runpre-commit run addlicense --all-files(orpre-commit run --files <new-file>) before committing new files. - Do not strip the header when editing existing files.
Backend (Go) guidelines
- Do not edit generated files:
backend/internal/transport/grpc/pb/— gRPC stubsbackend/internal/transport/reverse_grpc/pb/— reverse gRPC stubsbackend/internal/transport/http/dto/— HTTP DTOs (then annotated byprotoc-go-inject-tag)backend/internal/di/wire_gen.go— Wire-generated
- Regenerate proto from
proto/usingbash gen.sh(or specific targets:backend-grpc,backend-http,backend-reverse,core). On Windows use Git Bash. - Regenerate Wire after editing
wire.go:cd backend/internal/di && wire. - DB migrations live at
backend/configs/migrations/NNNNNN_name.{up,down}.sql(golang-migrateformat). The server auto-runs migrations on startup. - Layered architecture:
transport/→biz/<domain>/→store/<domain>/→infra/. Each biz domain hasServiceinterface at root,impl/subdir, and a WireProviderSetininit.go. - Function-signature wrapping (mechanical): one line if ≤2 params AND ≤130 cols; otherwise each param on its own line with
)and return type on their own lines. Group same-type params asa, b string. SeeCLAUDE.md § Code Style.
Core (Python) guidelines
- Python ≥3.13, dependency management via
uv(not pip):cd core && uv sync. - Do not edit
core/app/pb/— regenerate viabash gen.sh coreunderproto/. - Use betterproto2 for protobuf code.
- Lint/format with
ruff(uv run ruff check .,uv run ruff format .). Line length is 130.
Frontend guidelines
- Frontend source code is currently not published in this repository. In the public checkout,
frontend/package.jsondoes not exist;frontend/contains packaged/deployment assets only. - Only run frontend
pnpmcommands from a separate frontend source checkout that includesfrontend/package.json.
Proto guidelines
- All
.protofiles live underproto/, organized by domain (agent/,chat/,conversation/,sandbox/,rbac/,llmhubs/, …). - Per domain you may see:
rpc.proto(backend↔core),reverse_rpc.proto(core→backend callback),restful.proto(HTTP DTO). - After editing any
.proto, runbash gen.shinproto/and commit the regenerated files.
Validation after changes
Always run the appropriate subset before claiming a change is complete:
- Lint:
./scripts/lint.sh(or--backend/--core). - Backend tests:
cd backend && go test ./.... - Backend build:
cd backend && go build ./.... - Core tests:
cd core && uv run pytest. - Frontend build/lint when frontend source changed and
frontend/package.jsonexists:cd frontend && pnpm build && pnpm lint.
Authentication & security notes
- User/admin HTTP APIs use JWT + Casbin RBAC.
- Sandbox client endpoints use a separate HMAC middleware reading
X-Sico-*headers; per-client secrets come from env varSANDBOX_CLIENT_SECRET_<CLIENT_ID>(CLIENT_ID uppercased,-→_). - When handling secrets, use constant-time comparisons (
hmac.Equal/crypto/subtle). Never log secrets or tokens.
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.

