Skip to content

Conversation

@itMrBoy
Copy link
Collaborator

@itMrBoy itMrBoy commented Jun 29, 2025

  1. 入参支持传入指定目录,如果不传入则使用项目根目录
do init-codelf and follow the instructions:/src
  1. 上下文描述文件从md改为yaml文件
  2. 增加related字段,扩充上下文能力
  3. 渐进式构想,init时仅生成文件树及简单description
  4. 调用update-project-info时,会补全以下信息
important_symbols:
  [
    "function_name": "what is this function?",
    "class_name": "what is this class?",
    "variable_name": "what is this variable?",
    "constant_name": "what is this constant?",
    "important_symbol_2": "what is this symbol?",
    "important_symbol_2": "what is this symbol?",
  ]
related: ["src/main/main.py"]

},
async ({ rootPath }: { rootPath: string }) => {
const temp = `
important_symbols:
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

如果已经基于Yaml, 我希望在update的时候,能够做更形式化的验证: 传入的参数应该包含要更改的内容.
而不是让LLM再次阅读yaml做更改.
形式化的验证能够帮助我们更好的节省上下文.

import * as path from "path";
import { generateProjectYaml, generateChangelogYaml } from '../utils/index.ts'

export const initCodelf = (server: any) => {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1.只保留了文件树和changelog. 我们不需要初始化的这么简单的渐进式
2. 至少要在init的时候, 保留项目的基本信息: 名称, 使用技术栈 ... 至少能够替代之前的Project.md的功能
3. 此前的attention.md 甚至可以作为提示词注入, 强行限制AI的行为, 例如返回语言等等, 可以提到类似于 cursorrules, windsurfrules 等等, 现在是不是已经变成了一个纯粹的为项目提供context的mcp?

@Disdjj
Copy link
Owner

Disdjj commented Jun 29, 2025

你的.codelf目录下, 至少要展示你这次PR的结果: projectInfo.yaml, changelog.yaml 而不是不负责任的删除掉之前的.codelf目录.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants