Skip to content

carverauto/guided

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

28 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Guided.dev

Screenshot 2025-10-26 at 10 09 55β€―PM

A Protocol and Service for Building Great and Secure Software with AI Agents

Guided.dev provides the missing link between AI coding assistants and best-practice software development: a curated knowledge graph of secure coding patterns, vulnerabilities, and architectural guidance, accessible via a standardized protocol.

What is Guided.dev?

Guided.dev consists of two key innovations:

  1. A Curated Knowledge Graph: A security-first knowledge base built on PostgreSQL with Apache AGE, containing:

    • Technologies and frameworks
    • Security vulnerabilities (OWASP Top 10)
    • Best practices and secure coding patterns
    • Deployment strategies
    • Architectural guidance
  2. The AGENTS.md Protocol: A machine-readable specification that tells AI agents how to discover and interact with our guidance service, enabling structured, secure, and expert-informed development.

Current Status

Phase 0 (Foundation & Setup) - Complete βœ“ Phase 1 (Admin CRUD Interface) - Complete βœ“ Phase 2 (MCP Server) - Complete βœ“

Completed

  • βœ“ PostgreSQL with Apache AGE graph database
  • βœ“ Graph query interface (Guided.Graph)
  • βœ“ Initial knowledge base (24 nodes, 24 relationships)
  • βœ“ Custom mix tasks for setup and seeding
  • βœ“ Admin CRUD interface with Phoenix LiveView
  • βœ“ Knowledge graph management UI
  • βœ“ MCP Server with three core tools:
    • tech_stack_recommendation - Get tech stack advice for use cases
    • secure_coding_pattern - Retrieve secure code patterns
    • deployment_guidance - Get deployment recommendations
  • βœ“ AGENTS.md protocol specification

Quick Start

Knowledge Graph Dashboard

Prerequisites: Erlang/OTP 28+, Elixir 1.19.1+, Docker

# Clone the repository
git clone https://github.com/carverauto/guided.git
cd guided

# Run the automated setup script
./scripts/dev_setup.sh

# Start the Phoenix server
mix phx.server

Visit localhost:4000 from your browser.

For detailed setup instructions and manual installation, see docs/DEVELOPMENT.md.

Using with Claude Desktop

Connect Claude Desktop to guided.dev to get AI-powered secure coding guidance in your conversations!

Quick Setup:

  1. Start the server: mix phx.server
  2. Add to your claude_desktop_config.json:
    {
      "mcpServers": {
        "guided-dev": {
          "command": "npx",
          "args": ["mcp-remote", "http://localhost:4000/mcp"]
        }
      }
    }
  3. Restart Claude Desktop
  4. Ask Claude: "Do you have access to guided.dev?"

What you get:

  • πŸ”’ Security-first recommendations with OWASP Top 10 advisories
  • πŸ’» Secure code patterns with real examples
  • πŸš€ Deployment guidance for your tech stack

πŸ“– Full guide: CLAUDE_DESKTOP_SETUP.md

Project Vision

The Problem

LLMs are powerful code generators but they operate in a vacuum. They often produce code that is functional but naive in its architecture, security, and scalability. There's no standardized way for AI agents to discover and consume curated best-practice knowledge.

The Solution

Guided.dev provides:

  • A trusted source of security-first, opinionated guidance
  • A clear protocol (AGENTS.md) for AI agents to consume this guidance
  • A graph-based knowledge model for complex relationships between technologies, vulnerabilities, and mitigations

Example Use Case

An AI agent building a Python web app:

  1. Discovers the project's AGENTS.md file
  2. Queries guided.dev's MCP server for tech stack recommendations
  3. Receives guidance on Streamlit + SQLite with security advisories
  4. Queries for secure coding patterns specific to those technologies
  5. Generates code using parameterized queries and proper input validation

Tech Stack

  • Backend: Elixir / Phoenix Framework
  • Database: PostgreSQL with Apache AGE extension (graph database)
  • Frontend: Phoenix LiveView
  • Query Language: openCypher
  • API: Model Context Protocol (MCP)

Features

Completed

Phase 0 (Foundation):

  • βœ“ PostgreSQL with Apache AGE graph database
  • βœ“ openCypher query interface
  • βœ“ Initial knowledge base covering:
    • Python, Streamlit, SQLite, FastAPI
    • OWASP Top 10 vulnerabilities
    • Security controls and mitigations
    • Best practices and deployment patterns

Phase 1 (Admin Interface):

  • βœ“ LiveView-based admin CRUD interface
  • βœ“ Node and relationship management
  • βœ“ Knowledge graph dashboard
  • βœ“ Graph visualization

Phase 2 (MCP Server):

  • βœ“ Public-facing MCP API at /mcp endpoint
  • βœ“ Three core tools (capabilities):
    • tech_stack_recommendation - Opinionated tech stack advice with security advisories
    • secure_coding_pattern - Secure code snippets and best practices
    • deployment_guidance - Deployment pattern recommendations
  • βœ“ AGENTS.md protocol specification for AI agent discovery
  • βœ“ Integration with Hermes MCP library
  • βœ“ Streamable HTTP transport

Future Roadmap

  • Expanded knowledge domains (JavaScript, Go, Rust, etc.)
  • Community contribution system
  • IDE integrations
  • Advanced graph analytics and insights

Development

For detailed setup instructions, see docs/DEVELOPMENT.md.

Quick Commands

# Run tests
mix test

# Format code
mix format

# Full pre-commit check (compile, format, test)
mix precommit

# Reset database and graph
mix ecto.reset
mix graph.setup
mix graph.seed

# Start Phoenix server
mix phx.server

# Start with IEx (interactive Elixir)
iex -S mix phx.server

Testing the Graph

# In IEx
iex> Guided.Graph.query("MATCH (t:Technology) RETURN t.name")
{:ok, [["Python"], ["Streamlit"], ["SQLite"], ["FastAPI"]]}

iex> Guided.Graph.query("""
  MATCH (t:Technology {name: 'Streamlit'})-[:HAS_VULNERABILITY]->(v:Vulnerability)
  RETURN v.name, v.severity
  """)
{:ok, [["Cross-Site Scripting (XSS)", "high"], ["Path Traversal", "high"]]}

Contributing

We welcome contributors! To get started:

  1. Read the Development Setup Guide
  2. Check out GitHub Issue #1 for the full PRD
  3. Review docs/implementation_plan.md for the roadmap
  4. Look for issues labeled good-first-issue

See CONTRIBUTING.md for detailed contribution guidelines.

Development Workflow

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/amazing-feature)
  3. Make your changes and add tests
  4. Run mix precommit to ensure quality
  5. Commit your changes (git commit -m 'Add amazing feature')
  6. Push to your branch (git push origin feature/amazing-feature)
  7. Open a Pull Request

Documentation

Architecture

guided/
β”œβ”€β”€ lib/
β”‚   β”œβ”€β”€ guided/
β”‚   β”‚   β”œβ”€β”€ graph.ex           # Graph database interface
β”‚   β”‚   └── repo.ex            # Ecto repository
β”‚   β”œβ”€β”€ guided_web/            # Phoenix web interface
β”‚   └── mix/tasks/             # Custom mix tasks
β”œβ”€β”€ priv/repo/                 # Database migrations
β”œβ”€β”€ config/                    # Configuration files
β”œβ”€β”€ docs/                      # Documentation
└── scripts/                   # Setup and utility scripts

Learn More

License

Apache 2.0

Contact


Built with ❀️ by the Guided.dev team

About

Opinionated Developer Guides for LLMs

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors