
Security News
The Nightmare Before Deployment
Season’s greetings from Socket, and here’s to a calm end of year: clean dependencies, boring pipelines, no surprises.
A CLI tool that generates codebase context for LLMs and provides AI-powered development tools
A collection of tools that optimize your codebase for LLMs and agents
LLMify is made for LLMs by LLMs - a suite of powerful tools that transform your codebase into the perfect context for AI agents. Get started with a single command: npx llmify
.gitignore and auto-creates .llmignoreGetting the right context to an LLM is critical for quality results. LLMify solves this by:
npm install -g llmify
Grab the latest release for your platform.
Generate context for your current directory:
# Creates llm.txt in current directory
llmify
# Paste into your favorite LLM
cat llm.txt | pbcopy # macOS
cat llm.txt | xclip # Linux
type llm.txt | clip # Windows
Generate a commit message for staged changes:
# Stage your changes
git add .
# Generate and edit commit message
llmify commit
# Force commit without confirmation
llmify commit -f
# Update docs and commit
llmify commit --docs
# Specify a different project
llmify /path/to/project
# Only include a specific subdirectory
llmify -p src/components
# Custom output file
llmify -o context_for_llm.txt
# Limit directory depth for large projects
llmify -d 3
# Exclude specific files
llmify -e "*.test.js" -e "**/__mocks__/*"
# Include files that would otherwise be excluded
llmify -i "important-config.json"
# See what's happening (helpful for debugging)
llmify -v
# Generate commit message with default settings
llmify commit
# Skip confirmation prompt
llmify commit -f
# Update docs and commit
llmify commit --docs
# Disable editing commit message
llmify commit --no-edit
# Verbose output
llmify commit -v
# Set LLM timeout (in seconds)
llmify commit --llm-timeout 60
# Analyze staged changes for documentation updates
llmify docs
# Analyze the last 5 commits
llmify docs --commits 5
# Interactively select specific commits to analyze
llmify docs --interactive
# Specify a path to focus on
llmify docs --path src/
# Dry run without applying changes
llmify docs --dry-run
# Apply changes without confirmation
llmify docs --force
# Do not stage updated documentation files
llmify docs --no-stage
# Use a custom prompt for LLM
llmify docs --prompt "Focus on API changes."
# Refactor a specific file or directory
llmify refactor src/app.ts
# Provide a custom refactoring prompt
llmify refactor src/app.ts --prompt "Simplify arrow functions"
# Skip type checking
llmify refactor src/app.ts --no-check-types
# Display the proposed diff before applying changes
llmify refactor src/app.ts --show-diff
# Directly apply changes without confirmation
llmify refactor src/app.ts --apply --force
# Execute a dry run, showing proposed changes without applying them
llmify refactor src/app.ts --dry-run
LLMify can be configured via a .llmifyrc.yaml file in your project root or ~/.config/llmify/config.yaml:
# LLM Configuration
llm:
# The LLM provider to use (e.g., "openai", "anthropic", "ollama")
provider: "openai"
# The default model to use for general tasks
model: "gpt-4o"
# Provider-specific settings
ollama_base_url: "http://localhost:11434" # Only used for Ollama provider
# Commit-specific settings
commit:
# Optional: Override the default model for commit message generation
model: "gpt-4o"
# Documentation update settings
docs:
# Optional: Override the default model for documentation updates
model: "gpt-4o"
Environment variables can also be used:
LLMIFY_LLM_PROVIDER - Set the LLM providerLLMIFY_LLM_MODEL - Set the default modelOPENAI_API_KEY - OpenAI API keyANTHROPIC_API_KEY - Anthropic API key.llmignore - Control What's IncludedLLMify automatically creates a .llmignore file with sensible defaults. Customize it to exclude any files irrelevant to your LLM conversations:
# Example .llmignore
*.min.js
*.csv
node_modules/
dist/
coverage/
The generated file has a clean, LLM-friendly structure:
============================================================
Project Root: /path/to/your/project
Generated At: 2023-06-15T10:30:45Z
============================================================
## File Tree Structure
yourproject/ ├── .gitignore ├── main.go ├── utils.go └── docs/ ├── README.md └── usage.md
============================================================
## File Contents
### File: .gitignore
node_modules/ *.log dist/
---
### File: main.go
```go
package main
import (
"fmt"
)
func main() {
fmt.Println("Hello, world!")
}
</details>
## 💡 Pro Tips
- Include a `.llmignore` in your project templates
- Use with `--path` to focus on specific parts of your codebase
- Combine with project-specific prompts for best results
- For very large codebases, use `-d` to limit directory depth
- Use `llmify commit --docs` to keep documentation in sync
- Configure different models for different tasks in `.llmifyrc.yaml`
## 🤝 Contributing
Contributions are welcome! Feel free to:
- Report bugs
- Suggest features
- Submit pull requests
## 📝 License
[MIT](https://github.com/jakezegil/llmify/blob/main/LICENSE) © Jake Zegil
---
<p align="center">
Made with ❤️ for better LLM interactions
<br>
<a href="https://github.com/jakezegil/llmify">Star on GitHub</a> •
<a href="https://www.npmjs.com/package/llmify">View on npm</a>
</p>
FAQs
A CLI tool that generates codebase context for LLMs
The npm package llmify receives a total of 3 weekly downloads. As such, llmify popularity was classified as not popular.
We found that llmify 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
Season’s greetings from Socket, and here’s to a calm end of year: clean dependencies, boring pipelines, no surprises.

Research
/Security News
Impostor NuGet package Tracer.Fody.NLog typosquats Tracer.Fody and its author, using homoglyph tricks, and exfiltrates Stratis wallet JSON/passwords to a Russian IP address.

Security News
Deno 2.6 introduces deno audit with a new --socket flag that plugs directly into Socket to bring supply chain security checks into the Deno CLI.