Agent Fusion is a local RAG semantic search engine that gives AI agents instant access to your code, documentation (Markdown, Word, PDF). Query your codebase from code agents without hallucinations. Runs 100% locally, includes a lightweight embedding model, and optional multi-agent task orchestration. Deploy with a single JAR
git clone https://github.com/krokozyab/Agent-Fusion.gitAgent Fusion is a local RAG semantic search engine that gives AI agents instant access to your code, documentation (Markdown, Word, PDF). Query your codebase from code agents without hallucinations. Runs 100% locally, includes a lightweight embedding model, and optional multi-agent task orchestration. Deploy with a single JAR
1. **Deploy Agent-Fusion**: Download the JAR file and run it locally with `java -jar agent-fusion.jar --path /path/to/your/codebase`. Wait for the embedding model to process your files (takes 1-5 minutes depending on size). 2. **Query Your Codebase**: Use the prompt template above in your AI agent or terminal. Replace [QUERY] with your specific need (e.g., 'Find all database queries in the user service') and [CONTEXT] with additional details (e.g., 'Focus on MongoDB operations'). 3. **Refine Results**: If results are too broad, add more context to [QUERY] (e.g., 'Only show code using async/await'). For large codebases, use [CONTEXT] to specify directories (e.g., 'Limit search to /src/services'). 4. **Integrate with Agents**: Pipe Agent-Fusion results into your multi-agent system for task automation. For example, use the output to generate pull request descriptions or debug issues without hallucinations. 5. **Update Index**: Re-run Agent-Fusion after major code changes to keep the semantic search accurate. Use `java -jar agent-fusion.jar --update /path/to/updated/files`.
No install command available. Check the GitHub repository for manual installation instructions.
git clone https://github.com/krokozyab/Agent-FusionCopy the install command above and run it in your terminal.
Launch Claude Code, Cursor, or your preferred AI coding agent.
Use the prompt template or examples below to test the skill.
Adapt the skill to your specific use case and workflow.
Act as an Agent-Fusion local RAG semantic search engine. Query the following codebase for [QUERY] and return only relevant code snippets, documentation excerpts, or configuration files. Use [CONTEXT] to refine the search. If no exact matches exist, provide the closest available references. Format results as: ```[FILE_PATH] [CODE/DOCUMENTATION] ```. Example query: 'Find all API endpoints handling user authentication in the /backend/src directory.'
```/backend/src/routes/auth.js
// POST /api/v1/auth/login - Authenticates user credentials
async function login(req, res) {
const { email, password } = req.body;
const user = await User.findOne({ email });
if (!user) return res.status(401).json({ error: 'Invalid credentials' });
const isValid = await bcrypt.compare(password, user.password);
if (!isValid) return res.status(401).json({ error: 'Invalid credentials' });
const token = jwt.sign({ userId: user._id }, process.env.JWT_SECRET);
res.json({ token });
}
// POST /api/v1/auth/refresh - Refreshes JWT token
async function refreshToken(req, res) {
const { token } = req.body;
try {
const decoded = jwt.verify(token, process.env.JWT_SECRET);
const newToken = jwt.sign({ userId: decoded.userId }, process.env.JWT_SECRET);
res.json({ token: newToken });
} catch (err) {
res.status(401).json({ error: 'Invalid token' });
}
}
```
```/backend/docs/authentication.md
# Authentication Flow
The system uses JWT tokens for stateless authentication. Tokens expire after 1 hour and can be refreshed via `/api/v1/auth/refresh`.
## Security Considerations
- Always use HTTPS in production
- Store JWT_SECRET in environment variables
- Rate limit `/api/v1/auth/login` to prevent brute force attacks
```
```/backend/config/auth.config.js
module.exports = {
jwt: {
secret: process.env.JWT_SECRET || 'default-secret-change-in-production',
expiresIn: '1h',
refreshExpiresIn: '7d'
}
};
```Unlock data insights with interactive dashboards and collaborative analytics capabilities.
A proxy. An Envoy controller. An out-of-process SDK. Power.
AI sales agent for lead generation and follow-up
AI-assisted web application security testing
Enterprise workflow automation and service management platform
Automate your spreadsheet tasks with AI power
Take a free 3-minute scan and get personalized AI skill recommendations.
Take free scan