By DJJ & Dannielee
Codelf is a powerful AI-assisted coding tool that provides better code understanding and modification capabilities for AI agents through the Model Context Protocol (MCP).
add mcp settings
{
"mcpServers": {
"codelf": {
"command": "npx",
"args": ["codelf"]
}
}
}
- Initialize codelf in Cursor/Windsurf agent mode by sending the command:
do init-codelf and follow the instructions
-
In most cases, prompts will be automatically assembled by codelf
-
After the agent completes writing, you can prompt:
do update-project-info
- goto
Settings
->Rules
->User Rules
- add Content
Before responding or modifying the code, one should first obtain comprehensive information via `get-project-info` before making any decisions.
Everytime you finish editing code, you must call `update-project-info` and follow the instructions from the response
- if you are in windows, add
I am currently under the Windows system. Use like "C:\Users\..." to send Path
- goto
Settings
->cascade
->Memories and Rules
->Global rules
- add Content
Before responding or modifying the code, one should first obtain comprehensive information via `get-project-info` before making any decisions.
Everytime you finish editing code, you must call `update-project-info` and follow the instructions from the response
- if you are in windows, add
I am currently under the Windows system. Use like "C:\\Users\\..." to send Path
- Automatically analyzes project language/structure/purpose
- Reads code blocks in Edit/Agent mode
- Records each LLM request for traceability
- Comprehensive project structure
- Complete code standards
- File tree
- Project structure changes
- Code standard validation