siclaw
AGENTS.md235 starsChanged 6 months agoApache-2.0View on GitHub
This file is the project-level Codex guide for siclaw_dp_cleanup. Keep it limited to stable Siclaw facts and constraints. General collaboration style belongs in ~/.codex/AGENTS.md; CLAUDE.md is the larger legacy reference when deeper background is needed. Siclaw is an AI-powered SRE copilot for Kubernetes diagnostics. One agent core supports three runtime shapes: - Preserve user changes and unrelated dirty work. - For security, tool execution, database, Portal snapshot, guards, memory, Docker, Helm, or K8s behavior, read the nearby code plus relevant…
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.
Of the AGENTS.md files we read, the 11,773 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository30 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- kbc/CLAUDE.mdCLAUDE.md
- cluster-eventsSkill
- deployment-rollout-debugSkill
- dns-debugSkill
- gateway-diagnosticsSkill
- hpa-debugSkill
- http-log-statsSkill
- image-pull-debugSkill
- ingress-debugSkill
- job-debugSkill
- networkpolicy-debugSkill
- node-health-checkSkill
- node-logsSkill
- pod-crash-debugSkill
- pod-pending-debugSkill
- pvc-debugSkill
- quota-debugSkill
- service-debugSkill
- statefulset-debugSkill
- volcano-diagnose-podSkill
- volcano-gang-schedulingSkill
- volcano-job-diagnoseSkill
- volcano-node-resourcesSkill
- volcano-queue-diagnoseSkill
- volcano-resource-insufficientSkill
- volcano-scheduler-configSkill
- volcano-scheduler-logsSkill
- manage-skillSkill
- skill-authoringSkill
The file
We split this AGENTS.md into the rules it gives an agent
6 rules. About 0 are common, 4 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 26
Ask before editing src/core/prompt.ts.
- Distinctive: line 28
Do not add production dependencies unless explicitly requested.
- Distinctive: line 32
Use targeted checks first, then broaden when touching shared behavior:
- Distinctive: line 78
Use named exports; avoid default exports.
- Very specific: line 82
Follow CONTRIBUTING.md for PR format.
- Distinctive: line 86
Commit messages should explain why.
≈ “Common” is an estimate: at least 1 in 5 of the 16,595 AGENTS.md 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
Siclaw Project Instructions
This file is the project-level Codex guide for siclaw_dp_cleanup. Keep it
limited to stable Siclaw facts and constraints. General collaboration style
belongs in ~/.codex/AGENTS.md; CLAUDE.md is the larger legacy reference when
deeper background is needed.
Project Shape
Siclaw is an AI-powered SRE copilot for Kubernetes diagnostics.
One agent core supports three runtime shapes:
Headless CLI: non-interactive diagnostic invocation, optionally paired with local Portal
Gateway + LocalSpawner: local multi-user dev, one process/shared filesystem
Gateway + K8sSpawner: production, one isolated pod per userBefore Risky Edits
- Preserve user changes and unrelated dirty work.
- For security, tool execution, database, Portal snapshot, guards, memory,
Docker, Helm, or K8s behavior, read the nearby code plus relevant
docs/design/*orCLAUDE.mdbefore editing. - Ask before editing
src/core/prompt.ts; it affects core agent behavior and product tone. - Do not add production dependencies unless explicitly requested.
Verification
Use targeted checks first, then broaden when touching shared behavior:
npm test
npx tsc --noEmit
npm run buildBroaden verification for database schema, tool execution, guards, Portal snapshot, K8s/Docker/Helm, or user-facing workflows.
Stable Boundaries
LocalSpawnerruns all local AgentBox instances in one process with a shared filesystem. Local skill sync must stay user-scoped and must not wipe shared skill directories such as global/skillset/user trees.- Core skills are baked into the Docker image. Workspace skill bundles should include only selected global/dev/personal skills.
- Headless CLI uses local Portal as a read-only snapshot source. Unscoped invocations tolerate unavailable snapshot access; a selected agent must load successfully. Snapshot caches are private to each invocation, including empty resource sets, and cleanup must never touch another invocation.
- Shell execution security is layered: OS-level isolation first, whitelist-only command validation second, plus pre/post execution sanitization.
- Portal/Gateway DB and Memory DB are separate persistence domains. Do not mix user/session config with embedding/chunk/investigation storage.
- AgentBox and Runtime are separate processes in K8s mode. Code under
src/agentbox/**must not import Gateway or Portal persistence modules such assrc/gateway/chat-repo.ts; LocalSpawner's shared process can hide this. AgentBox background work should call Runtime internal APIs throughGatewayClient, with Runtime owning Portal RPC and database persistence. src/portal/migrate.tsmust stay compatible with both MySQL and SQLite.- mTLS is for K8s mode only; do not pull mTLS requirements into local mode.
Stack And Local Conventions
Runtime: Node.js >= 22.19.0, ESM-only
Language: TypeScript 5.9 strict, .js imports
Tests: vitest
Frontend: React + Vite + Tailwind
Agent: @mariozechner/pi-coding-agent
Gateway DB: mysql2 / node:sqlite raw SQL
Memory DB: node:sqlite + FTS5 + sqlite-vec- Use named exports; avoid default exports.
- Siclaw is English-first and open-source-oriented. User-facing UI labels, prompts, docs, and PR text should default to clear English unless localization is explicitly requested.
- Follow
CONTRIBUTING.mdfor PR format.
Commit Notes
Commit messages should explain why. Add trailers only when they carry useful context:
Constraint: <external constraint>
Rejected: <alternative> | <reason>
Confidence: <low|medium|high>
Scope-risk: <narrow|moderate|broad>
Directive: <future warning>
Tested: <what was verified>
Not-tested: <known gaps>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.

