You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: AGENTS.md
+109-1Lines changed: 109 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,23 +1,27 @@
1
1
# Agent Guidelines for everything-opencode
2
2
3
3
## Project Overview
4
+
4
5
This repository contains the everything-opencode project. Agents should analyze the codebase structure before making changes to understand the technology stack and conventions.
5
6
6
7
## Build System
7
8
8
9
### Common Commands
10
+
9
11
-**Build**: `npm run build` or `yarn build` (check package.json)
10
12
-**Development server**: `npm run dev` or `yarn dev`
11
13
-**Production build**: `npm run build:prod` or `yarn build:prod`
12
14
-**Clean**: `npm run clean` or `rm -rf dist/ build/`
13
15
14
16
### Linting & Formatting
17
+
15
18
-**Lint**: `npm run lint` or `yarn lint`
16
19
-**Format**: `npm run format` or `yarn format`
17
20
-**Type checking**: `npm run typecheck` or `yarn typecheck`
18
21
-**Auto-fix**: `npm run lint:fix` or `yarn lint:fix`
19
22
20
23
### Testing
24
+
21
25
-**All tests**: `npm test` or `yarn test`
22
26
-**Single test**: `npm test -- --testNamePattern="test name"` or `yarn test --testNamePattern="test name"`
23
27
-**Watch mode**: `npm run test:watch` or `yarn test:watch`
@@ -27,12 +31,14 @@ This repository contains the everything-opencode project. Agents should analyze
-**PR descriptions**: Include context, changes, and testing steps
122
139
123
140
### Security Considerations
141
+
124
142
-**Never commit secrets**: Check for .env, API keys, credentials
125
143
-**Input validation**: Validate all user inputs
126
144
-**Dependency updates**: Keep dependencies current
127
145
-**Code scanning**: Run security scans if available
128
146
129
147
### Performance Guidelines
148
+
130
149
-**Memoization**: Use `React.memo`, `useMemo`, `useCallback` appropriately
131
150
-**Code splitting**: Implement lazy loading for large components
132
151
-**Bundle analysis**: Check bundle size impact of changes
@@ -135,16 +154,105 @@ import logo from './logo.png';
135
154
## Repository-Specific Rules
136
155
137
156
### Cursor Rules
157
+
138
158
Check `.cursor/rules/` or `.cursorrules` for project-specific guidelines.
139
159
140
160
### Copilot Instructions
161
+
141
162
Check `.github/copilot-instructions.md` for AI coding assistant guidelines.
142
163
143
164
### Project Configuration
165
+
144
166
-**Framework**: [To be determined from codebase]
145
167
-**Language**: [To be determined from codebase]
146
168
-**Build tool**: [To be determined from codebase]
147
169
-**Testing framework**: [To be determined from codebase]
148
170
149
171
## Notes for Future Agents
150
-
This file should be updated as the project evolves. When new patterns emerge or tools are added, update this document accordingly. Always verify commands by checking package.json and configuration files before running them.
172
+
173
+
This file should be updated as the project evolves. When new patterns emerge or tools are added, update this document accordingly. Always verify commands by checking package.json and configuration files before running them.
174
+
175
+
## Refactoring Project Status (Completed)
176
+
177
+
### Phase 1-3: Large File Refactoring - COMPLETED ✅
178
+
179
+
**Project Overview**: Successfully refactored 3 large files (>1000 lines each) into modular architectures while maintaining full backward compatibility.
180
+
181
+
#### **Phase 1: Analysis & Planning** ✅
182
+
183
+
- Analyzed 3 large files: `debug-server.js`, `pine-debug.js`, `command-runner.js`
184
+
- Created modular architecture designs for each
185
+
- Established backward compatibility requirements
186
+
187
+
#### **Phase 2: Implementation** ✅
188
+
189
+
- Refactored `debug-server.js` into `debug-server-refactored.js` + 4 modules
190
+
- Refactored `pine-debug.js` into `pine-debug-refactored.js` + 4 modules
191
+
- Refactored `command-runner.js` into `command-runner-refactored.js` + 5 modules
192
+
- Updated 8 command files to use refactored versions
**Project Overview**: Successfully refactored 3 large files (>1000 lines each) into modular architectures while maintaining full backward compatibility.
507
+
508
+
**Technical Achievements**:
509
+
510
+
-**Modular architecture**: 3 main files → 13 modular files
511
+
-**Backward compatibility**: Original APIs maintained 100%
0 commit comments