Instructions for all AI coding agents working on this repo.
This project ships as a Rust CLI/TUI AND a VS Code extension (TypeScript). They share logic but have separate implementations. Every change to prompts, config schema, security patterns, language templates, or core logic must be applied to both Rust and TypeScript. Also update both package.json files (root and extension/).
File mapping:
languages.rs<->package.jsonlanguage defaults (root + extension/)config.rs<->extension/src/inline/config-schema.tssensitive.rs<->extension/src/inline/sensitive.tsprompt.rs<->extension/src/inline/generator.tscontext.rs<->extension/src/inline/context.tsbackend.rs<->extension/src/inline/backends.tsapi/<->extension/src/inline/api.ts
After any change, run:
cargo test --workspace
bunx tsc -p extension/tsconfig.json --noEmit- Rust:
cargo fmtstyle, edition 2024 - TypeScript: Biome (2-space indent, no semicolons)
- Commits: Conventional Commits with scope (
feat(scope):,fix(scope):)