
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
An intelligent AI-powered command-line chat assistant with document processing, code review, and file management capabilities
English | 中文
一个智能的AI驱动命令行聊天助手,具备文档处理、代码审查和文件管理功能。
npm install -g linchat
ollama pull llama2安装完成后,您可以使用以下任一命令启动:
l
# 或者
link
# 或者
linchat
这将启动交互式AI聊天助手。
如果安装后无法识别 l 命令:
检查包是否已全局安装:
npm list -g linchat
检查npm全局bin目录:
npm config get prefix
确保npm全局bin目录在您的PATH中:
echo $PATH
如需要,将npm全局bin添加到PATH:
# 对于bash/zsh用户,添加到 ~/.bashrc 或 ~/.zshrc:
export PATH="$(npm config get prefix)/bin:$PATH"
重启终端或重新加载shell配置:
source ~/.bashrc # 或 ~/.zshrc
备选方案:使用其他命令名:
link
# 或者
linchat
l / link / linchat - 启动交互式聊天(默认)l config - 管理配置l models - 管理Ollama模型l history - 管理聊天历史l --help - 显示帮助信息/help - 显示可用命令/read <文件> - 读取文件内容/write <文件> <内容> - 将内容写入文件/edit <文件> - 编辑文件/delete <文件> - 删除文件(带备份)/doc read <文件> - 读取结构化文档/search <文件> <查询> - 在文档中搜索/convert <源> <目标> <格式> - 转换文档格式/sessions - 列出聊天会话/load <会话> - 加载特定会话/clear - 清除当前会话/exit - 退出应用# 启动聊天后输入:
cr example.js
# 系统将提供多种审查选项:
# 1. 深度代码审查 + 改进建议
# 2. 代码审查 + 重构方案
# 3. 安全性审查
# 4. 性能优化审查
# 修改现有文件:
修改 example.js
# 选择操作方案:
# 1. 改进现有代码
# 2. 修复问题
# 3. 添加新功能
# 4. 现代化代码
# 读取文档:
/doc read README.md
# 在文档中搜索:
/search config.json "database"
# 转换格式:
/convert data.json data.yaml yaml
# 创建新代码:
创建一个React组件
# 可选方案:
# 1. 从零开始创建
# 2. 使用模板创建
# 3. 创建示例代码
# 4. 基于现有文件创建
l config --list
l config --set model=llama2
l config --set temperature=0.7
l config --reset
l models --list
l models --pull codellama
l models --remove oldmodel
l history --list
l history --show session-id
l history --export session-id
l history --clear
系统智能分析您的请求并提供具体选项:
# 启动Ollama服务
ollama serve
# 如果没有可用模型,拉取一个
ollama pull llama2
# 在macOS/Linux上,您可能需要:
sudo npm install -g linchat
# 检查Node.js版本
node --version
# 应该是16.0.0或更高版本
MIT许可证 - 详见LICENSE文件。
欢迎贡献!请随时提交问题和拉取请求。
如有问题和疑问:
FAQs
An intelligent AI-powered command-line chat assistant with document processing, code review, and file management capabilities
We found that linchat demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.