InnoClaw
AGENTS.md400 starsChanged 9 days agoApache-2.0View on GitHub
This file is the instruction set for changing the code. Cursor loads it into the coding agent on every turn. From-zero local setup, env, secrets, and deploy are in docs/开发说明.md (start at「从零开始:本地开发」). Command names live in package.json. Product name is InnoScale (innoscale in code, packages, Compose, cookies, CLI, and SSM). Do not reintroduce InnoBuddy / InnoClaw identifiers except in one-shot migration/compat paths. When those sources conflict, use them in this order: There is no staging environment. The online VM is…
- Reads credentials
1 other project uses a version of this.
Adopted by
Most recently taken up by
- SpectrAI-Initiative/InnoClawword for word, first seen Oct 8, 2026
Other versions1 project uses a version of this.
Word for word · 1
- SpectrAI-Initiative/InnoClaw★ 400100% same
Edited · 0
None found.
Wrote their own version · 0
None found.
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about code style.
Of the AGENTS.md files we read, the 33,398 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 repository224 other files it gives its agents.
- admet_druglikeness_reportSkill
- affinity_maturationSkill
- alanine_scanning_pipelineSkill
- aliphatic_ring_analysisSkill
- alphafold_structure_pipelineSkill
- antibody_drug_developmentSkill
- antibody_target_analysisSkill
- atc_drug_classificationSkill
- atmospheric-science-calculationsSkill
- binding_site_characterizationSkill
- bioassay_analysisSkill
- biomarker_discoverySkill
- biomedical-web-searchSkill
- biosample_genomicsSkill
- blast_protein_analysisSkill
- boltz2-binding-affinitySkill
- buoyancy-acceleration-calculationSkill
- cancer_therapy_designSkill
- capacitance-calculationSkill
- cas_compound_lookupSkill
- cell_line_assay_analysisSkill
- chembl-molecule-searchSkill
- chemical-mass-percent-calculationSkill
- chemical_patent_analysisSkill
- chemical_property_profilingSkill
- chemical_safety_assessmentSkill
- chemical-structure-analysisSkill
- chemical_structure_comparisonSkill
- chromosome_analysisSkill
- clinical_pharmacology_reportSkill
- clinical_trial_drug_profileSkill
- code_execution_analysisSkill
- combinatorial_chemistrySkill
- comparative_drug_analysisSkill
- compound_database_crossrefSkill
- compound-name-retrievalSkill
- compound_to_drug_pipelineSkill
- comprehensive-protein-analysisSkill
- comprehensive-variant-annotationSkill
- cross_species_genomicsSkill
- Daily Paper RoastSkill
- disease_compound_pipelineSkill
- disease_drug_landscapeSkill
- disease_knowledge_graphSkill
- disease_protein_profilingSkill
- disease-reversal-predictionSkill
- dna-rna-sequence-analysisSkill
- drug_indication_mappingSkill
- drug_interaction_checkerSkill
- drug_metabolism_studySkill
- drug_repurposing_screenSkill
- drug_safety_profileSkill
- drug-screening-dockingSkill
- drugsda-admetSkill
- drugsda-compound-retrieveSkill
- drugsda-data-validSkill
- drugsda-denovo-samplingSkill
- drugsda-dlepsSkill
- drugsda-drug-likenessSkill
- drugsda-esmfoldSkill
- The first 60 shown.
The file
We split this AGENTS.md into the rules it gives an agent
10 rules. About 0 are common, 5 are distinctive, and 5 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈5
Distinctive · estimate
This author's own choices. Worth a look.
5
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
- Distinctive: line 7
When those sources conflict, use them in this order:
- Very specific: line 20
Start scripts set COMPOSE_PROJECT_NAME=innoscale so image/container names stay on brand even if the host folder is still named something …
- Very specific: line 52
Do not commit secrets, .env.docker.local, .env.docker.online, .runtime/, or build output.
- Distinctive: line 56
Run git status --short before a large edit.
- Distinctive: line 58
Keep one change to one user-visible problem.
- Very specific: line 59
If setup, deploy, or an operator-facing env var changes, update docs/开发说明.md in the same change.
- Distinctive: line 83
Do not edit an already committed migration unless you are fixing unreleased local work and know which databases it will affect.
- Very specific: line 84
If seed data or migration helpers change, review src/lib/db/ and the startup path that uses them.
- Very specific: line 89
Put reusable logic in src/lib/ or src/core/.
- Distinctive: line 95
Keep prompts, provider wiring, tool registration, and orchestration out of UI components and route handlers.
≈ “Common” is an estimate: at least 1 in 5 of the 43,423 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
InnoScale Development Guidelines
This file is the instruction set for changing the code. Cursor loads it into the coding agent on every turn. From-zero local setup, env, secrets, and deploy are in docs/开发说明.md (start at「从零开始:本地开发」). Command names live in package.json.
Product name is InnoScale (innoscale in code, packages, Compose, cookies, CLI, and SSM). Do not reintroduce InnoBuddy / InnoClaw identifiers except in one-shot migration/compat paths.
When those sources conflict, use them in this order:
AGENTS.mdfor how to change the codepackage.jsonscriptsdocs/开发说明.mdfor running and deploying
There is no staging environment. The online VM is production. Do not run ./scripts/docker-up-online.sh, edit the online env file, or try migrations against the online container until the change has been verified in the local container. Do not start the app with npm run dev, npm run dev:no-auth, npm start, or PM2.
Node.js 24+ (package.json engines). Use npm. The database is MySQL 8 through Drizzle (DATABASE_URL=mysql://...); see docs/database.md.
Docker And Secrets
- App runs only via Docker. Local entry:
scripts/docker-up-local.ps1/scripts/docker-up-local.sh. Online entry:scripts/docker-up-online.sh. - Start scripts set
COMPOSE_PROJECT_NAME=innoscaleso image/container names stay on brand even if the host folder is still named something else. - App image builds from
DEPS_IMAGE(innoscale-deps, skipsnpm ci) thenBASE_IMAGE(innoscale-base) for builder/runner. Build deps withscripts/docker-build-deps.ps1/.sh(builds base if missing). Start scripts build base/deps when missing. Override withDEPS_IMAGE/BASE_IMAGE(orINNOSCALE_*). - Cloud topology: workstation/online CVM runs the
innoscaleapp container plus an Nginx gateway (same-origin/auth→ Keycloak). Business MySQL and Keycloak (plus Keycloak’s own MySQL) live on Tencent Cloud as separate daily / prod stacks. Architecture diagrams:docs/开发说明.md,docs/用户与部署说明.md. - App env sets
DATABASE_URL+AUTH_OIDC_*+COS_*(noKC_DB_*). Browser issuer is same-origin/auth/realms/...; token/jwks hit Keycloak upstream directly. Local → daily MySQL / daily Keycloak / COS 桶innoscale-agent-history-daily-*. Online → prod MySQL / prod Keycloak / COS 桶innoscale-agent-history-prod-*. Prod still may serve live data from databaseinnoclawuntil cutover to pre-createdinnoscale. Agent 会话正文在腾讯云 COS,按workspace.ownerUserId分前缀;桶名与 CAM 密钥经 SSM(innoscale-docker-local/innoscale-docker-online)物化,daily 与 prod 互不能写对方桶。MySQL 不存对话 blob。 docker-up-local/docker-up-onlinecallscripts/assert-mysql-url.py(and check upstream OIDC discovery) beforecompose upwith the gateway overlay. They do not start host MySQL or local Keycloak (keycloak-local.*is retired).- Sealed env files live in
config/secrets/. Secrets are Tencent Cloud SSM references (ssm:AUTH_SECRET, …). SSM secret names:innoscale-docker-local,innoscale-docker-online. Publish/materialize withscripts/ssm-env.ps1/scripts/ssm-env.sh. Never commit.env.docker.local/.env.docker.onlineor plaintext cloud API keys. - CLI plugin path is
plugins/innoscale-cli(bininnoscale). Auth cookies areINNOSCALE_session*.
Where Code Belongs
Product code and the runbook:
src/application codescripts/repository scriptsdrizzle/database migrationsdocs/开发说明.mdlocal and online runbookpublic/shipped static assetssite/homepage imagesDockerfile/Dockerfile.baseapp and reusable base imagesplugins/innoscale-cli/local CLI plugin
Scratch. Do not import these into shipped code:
reference/.worktrees/.superpowers/.venv-docs/batch-test-logs/test-results/tmp-playwright-review/.runtime/
Do not commit secrets, .env.docker.local, .env.docker.online, .runtime/, or build output.
Before Editing
- Run
git status --shortbefore a large edit. A dirty worktree is shared until you confirm otherwise. Do not overwrite or revert changes you did not make. - Name the shared contract you might touch: schema, env vars, route response shapes, tool names, persisted session keys, contributor-facing commands.
- Keep one change to one user-visible problem. Re-read a file before editing it if it may have changed.
- If setup, deploy, or an operator-facing env var changes, update
docs/开发说明.mdin the same change. If a new env var is read at startup, update the start scripts that generate.env.docker.localand.env.docker.online.
Validation
Before review:
npm run lint
npm test
npx tsc --noEmit
NEXT_TELEMETRY_DISABLED=1 npm run buildnpm run build runs npm run verify:standalone. The build fails if the standalone artifact is missing the compiled authentication proxy or contains runtime data, credentials, backups, repository source, tests, documentation, or local scratch. Keep new runtime paths outside the Docker build context. Change the verifier only when a shipped runtime asset is intentionally required.
npx tsc --noEmit is the fast type check. npm run build is the production check.
Database
src/lib/db/schema.tsis the schema source of truth.- Generate and commit the matching migration under
drizzle/. - Apply it locally with
npx drizzle-kit migratebefore review. - MySQL rules: index, key and foreign-key strings must be
varchar; free text islongtext; constraint names are at most 64 characters; tables useutf8mb4_bin, so uselikeIgnoreCasefor case-insensitiveLIKE; there is noRETURNING, so read the row back after writing. TEST_DATABASE_URLenables the MySQL integration tests; they are skipped without it.- Do not edit an already committed migration unless you are fixing unreleased local work and know which databases it will affect.
- If seed data or migration helpers change, review
src/lib/db/and the startup path that uses them.
API Routes
src/app/api/**/route.tshandles HTTP only: parsing, auth, validation, status codes, response shape.- Put reusable logic in
src/lib/orsrc/core/. - Return
4xxfor caller mistakes. Usesrc/lib/api-errors.tsfor non-streaming JSON errors. - Cover behavior changes in the colocated
route.test.ts.
Agent, Tools, And Deep Research
- Keep prompts, provider wiring, tool registration, and orchestration out of UI components and route handlers.
- Tool availability and privilege boundaries live in
src/lib/ai/tool-names.tsandsrc/lib/ai/tools/. - New tools default to least privilege. High-risk tools require an explicit opt-in, the same split as
ALL_TOOLSandK8S_TOOLS. - A new tool, mode, provider, or role needs a stable name, allow and deny tests, and a
docs/开发说明.mdnote only when an operator must configure it. - Validate workspace paths, tool inputs, and execution context through shared helpers. Do not add filesystem or exec access that skips workspace validation.
- Prompt, doctrine, and role text live in code-backed prompt files or registries, not inline UI strings. Update parsers, status names, and UI copy together.
- Streaming or resume changes must be reviewed across the API route,
src/lib/agent/agent-stream-manager.ts, and any localStorage or session-key consumer. - Deep-research roles, doctrine, workflow policy, and UI assumptions stay aligned across
src/lib/deep-research/,src/app/api/deep-research/, andsrc/components/deep-research/. - Remote execution and cluster operations stay auditable and behind an explicit config or approval gate.
- Surface failures. Do not add a silent fallback when provider or orchestration branching changes.
Layout And Tests
- Features live under
src/components/. Domain logic lives undersrc/lib/. - Tests sit next to the code as
*.test.tsor*.test.tsx.
Commits
Preferred branch prefixes: feature/, fix/, docs/, chore/.
<type>(<scope>): <summary>Examples: feat(agent): add runtime capability probe, fix(workspace): guard invalid root path.
Handoff
State what changed and why, which shared contracts are risky, the validation commands and their results, and any follow-up. Use Summary, Contracts, Validation, Follow-ups when that fits.
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.

