Cline rules
.clinerules/03-project.mdCline rules
Quality
73/100
Scores the file, not the repository.Length
453 words
10 headings · 1 code blocksRepository
1
— · pushed 256 days agoLast changed
3 days ago
First indexed 3 days ago.1# Project-Specific Rules (Computer Use Agent)23## Project Structure45This is a production-ready Python package using best practices architecture:67```8computer-use/9├── src/computer_use_agent/ # Main package10│ ├── actions/ # Action execution layer11│ ├── config/ # Configuration & prompts12│ ├── utils/ # Utilities (retry, response handling)13│ ├── agent.py # Core orchestrator14│ └── cli.py # CLI interface15├── autonomous_agent.py # Legacy PoC (maintained for compatibility)16├── pyproject.toml # Project metadata & dependencies17└── README.md # Documentation18```1920## File Organization Rules2122### Config Layer (`src/computer_use_agent/config/`)23- `settings.py`: Configuration dataclasses24- `prompts.py`: System prompts and instructions25- No business logic, only configuration2627### Actions Layer (`src/computer_use_agent/actions/`)28- `executor.py`: Action execution logic29- `screen.py`: Screen/coordinate management30- Each action handler is a private method31- No direct API calls, only desktop automation3233### Utils Layer (`src/computer_use_agent/utils/`)34- `response_handler.py`: Response processing utilities35- `retry.py`: Retry logic with exponential backoff36- `goal_rewriter.py`: Goal rewriting with inline context injection37- Pure functions where possible38- No application state3940### Core Layer41- `agent.py`: Main orchestrator, coordinates all components42- `cli.py`: Command-line interface only43- Minimal business logic in CLI4445## Architecture Decisions4647### Goal Rewriting with Inline Context Injection4849**Design Pattern**: Context is injected inline during goal rewriting, not in the main system prompt.5051**Rationale**:52- **Lean system prompt**: Keep main prompt generic and universally useful53- **Task-specific context**: Each goal gets exactly the contextual help it needs54- **Scalability**: Add new apps by updating goal rewriter only, not system prompt55- **Token efficiency**: Avoid bloating every API call with app-specific details5657**Implementation**:58- `goal_rewriter.py` uses Gemini 2.5 Pro to rewrite goals59- Detects apps involved (Slack, Linear, VSCode, Cline, etc.)60- Injects relevant shortcuts, tips, and workflow patterns INLINE at each step61- Example: "press command+k to open command palette, type 'ENG-123' to search for the issue (Linear issues use format like ENG-123), then press Return to open it"6263**What Goes in System Prompt**:64- Generic macOS keyboard shortcuts (command+c/v, command+tab)65- Keyboard-first interaction principles66- Input field submission patterns67- Cookie/privacy dialog handling68- Safety decision guidelines6970**What Goes in Goal Rewriter**:71- App-specific keyboard shortcuts (Linear's command+shift+., Slack's command+k)72- App-specific tips (Cline wait times, Slack search syntax)73- Workflow patterns (Linear → VSCode git branch creation)74- Context for specific actions being performed7576**Benefits**:77- Faster, cheaper API calls (less tokens in system prompt)78- Goals are enriched with exactly what's needed for that task79- Easy to add new apps without modifying core system prompt80- Context adapts to actual task, not generic coverage8182## Version Control8384- Keep `autonomous_agent.py` for backward compatibility85- Mark deprecated code with warnings86- Use semantic versioning (MAJOR.MINOR.PATCH)87- Update CHANGELOG for significant changes88
Also in behoss/computer-use
Diff this repo’s formatsOne repository carrying more than one format is the comparison this product exists for: does anyone actually write different content in each file, or is one a copy of the other?
| Repository | Format | Stack | Covers | Score | Changed |
|---|---|---|---|---|---|
| behoss/computer-use.clinerules/04-workflow.md · 1 | Cline rules | setuptestagent-behaviour | 56/100 | 3 days ago | |
| behoss/computer-use.clinerules/01-general.md · 1 | Cline rules | testlint-formatstyledo-not+1 | 67/100 | 3 days ago | |
| behoss/computer-use.clinerules/02-techstack.md · 1 | Cline rules | setupdo-not | 66/100 | 3 days ago |
Similar configs
Same format, overlapping stack, ranked by quality.
| Repository | Format | Stack | Covers | Score | Changed |
|---|---|---|---|---|---|
| u9401066/zotero-keeper.clinerules/50-pubmed-project.md · 6 | Cline rules | testlint-formatstylearch+1 | 94/100 | 3 days ago | |
| u9401066/zotero-keepervscode-extension/resources/repo-assets/pubmed-search-mcp/.clinerules/50-pubmed-project.md · 6 | Cline rules | testlint-formatstylearch+1 | 94/100 | 3 days ago | |
| u9401066/pubmed-search-mcp.clinerules/50-pubmed-project.md · 23 | Cline rules | testlint-formatstylearch+1 | 94/100 | 3 days ago | |
| ryok/python-boilerplate.clinerules/common-commands.md · 0 | Cline rules | setupbuildtestlint-format+3 | 90/100 | 2 days ago | |
| u9401066/pubmed-search-mcp.clinerules/60-pubmed-python.md · 23 | Cline rules | setuptestlint-formatstyle+2 | 86/100 | 3 days ago | |
| u9401066/zotero-keeper.clinerules/60-pubmed-python.md · 6 | Cline rules | setuptestlint-formatstyle+2 | 86/100 | 3 days ago | |
| u9401066/zotero-keepervscode-extension/resources/repo-assets/pubmed-search-mcp/.clinerules/60-pubmed-python.md · 6 | Cline rules | setuptestlint-formatstyle+2 | 86/100 | 3 days ago | |
| u9401066/pubmed-search-mcp.clinerules/00-project.md · 23 | Cline rules | testlint-formatstylearch+1 | 86/100 | 3 days ago |
