Agents Guide
Comprehensive guide to all LyDos agents and how to use them.
What is an Agent?
A LyDos agent is an autonomous system that performs specialized tasks using AI, planning, and execution engines. Agents combine:
- Multi-step task planning and execution
- Tool invocation (file I/O, web search, API calls, etc.)
- Context awareness and memory
- Error recovery and retry strategies
- Human-in-the-loop feedback mechanisms
LyDos manages 109 agents across 12 categories, each optimized for specific use cases. You can run any agent via the SDK, CLI, or API.
Agent Categories
Security & Vulnerability Detection (28 agents)
Security agents perform vulnerability scanning, dependency auditing, penetration testing, and compliance checks.
security-scannerGuvenlik Tarayici
Full vulnerability top-10 and CVE scanning of codebases
vulnerability-hunterVulnerability Hunter
Zero-day and pattern-based vulnerability detection
dependency-auditorDependency Auditor
Supply chain risk analysis and package scanning
penetration-testerDelgic
Authorized pen test simulation and exploit validation
owasp-top10-checkerVulnerability Checker
Security compliance verification and remediation guidance
secrets-detectorSecrets Detector
Hardcoded credentials, API keys, and token scanning
Deep Research & Analysis (24 agents)
Research agents gather information from web, academic sources, and trends to synthesize comprehensive reports.
deep-researchArastirmaci
Multi-source web + academic paper research synthesis
market-analystMarket Analyst
Competitive landscape, market size, and trend analysis
trend-forecasterTrend Forecaster
Emerging trend identification and impact prediction
academic-researcherAcademic Researcher
ArXiv, PubMed, and academic paper synthesis
competitive-analysisCompetitive Analysis
Competitor benchmarking and feature comparison
industry-insightsIndustry Insights
Industry reports, regulations, and best practices
Code Quality & Optimization (31 agents)
Code agents provide review, refactoring, testing, documentation, and performance optimization.
code-reviewerKod Denetci
PR review with context awareness and best practices
refactoring-expertRefactoring Expert
Dead code detection and complexity reduction
test-generatorTest Generator
Unit, integration, and E2E test generation
documentation-writerDocumentation Writer
Inline docs, README, and API documentation
type-safety-checkerType Safety Checker
TypeScript and Python type annotation issues
performance-optimizerPerformance Optimizer
Algorithm, caching, and query optimization
Data Science & Analytics (19 agents)
Data agents handle exploratory analysis, SQL optimization, pipeline design, and statistical modeling.
data-scientistCifci
Exploratory analysis, visualization, and modeling
sql-optimizerSQL Optimizer
Query performance tuning and indexing strategies
pipeline-architectPipeline Architect
ETL design, data flow, and orchestration
statistical-analystStatistical Analyst
Hypothesis testing and statistical validation
data-engineerAkarsu
Data infrastructure and warehouse design
ml-specialistML Specialist
Model selection, training, and deployment guidance
DevOps & Infrastructure (22 agents)
DevOps agents manage Kubernetes, Terraform, CI/CD pipelines, and container operations.
k8s-specialistKovan
Manifest optimization, scaling, and troubleshooting
terraform-engineerKalipci
IaC best practices and cloud infrastructure design
ci-optimizerCI/CD Optimizer
Pipeline speed improvements and parallelization
docker-expertKapsul
Container hardening and image optimization
monitoring-architectMonitoring Architect
Observability setup and alerting strategies
security-opsSecurity Ops
Secrets management and compliance automation
Running Agents
Via Python SDK
from lydos import LyDos
client = LyDos(api_key="lyd_sk_your_key_here")
# Run agent and get immediate response
result = client.agents.run(
"security-scanner",
task="Scan ./src for vulnerabilities",
params={"depth": "comprehensive", "include_deps": True}
)
print(f"Task ID: {result.task_id}")
print(f"Status: {result.status}")
# Poll for completion
import time
while True:
task = client.tasks.get(result.task_id)
if task.status in ["completed", "failed"]:
print(f"Result: {task.result}")
break
time.sleep(2)Via TypeScript SDK
import { LyDos } from '@lydos/sdk';
const client = new LyDos({ apiKey: process.env.LYDOS_API_KEY! });
// Run agent
const result = await client.agents.run('deep-research', {
task: 'Research the latest AI agent frameworks',
params: { depth: 'comprehensive', sources: ['web', 'arxiv'] }
});
console.log(`Task: ${result.task_id}`);
// Poll for result
let task = await client.tasks.get(result.task_id);
while (task.status === 'running' || task.status === 'pending') {
await new Promise(r => setTimeout(r, 2000));
task = await client.tasks.get(result.task_id);
}
console.log('Result:', task.result);Via CLI
# List available agents lydos agents list # Get agent details lydos agents get security-scanner # Run agent lydos agent run security-scanner \ --task "Scan ./src for vulnerabilities" \ --param depth=comprehensive \ --param include_deps=true # Stream results lydos agent run deep-research \ --task "Research AI trends" \ --stream
Via API
curl -X POST https://lydos.ailydian.com/v1/agents/run \
-H "Authorization: Bearer lyd_sk_your_key_here" \
-H "Content-Type: application/json" \
-d '{
"agent_id": "security-scanner",
"task": "Scan ./src for vulnerabilities",
"parameters": {
"depth": "comprehensive",
"include_deps": true
}
}'Understanding Agent Parameters
Each agent has specific parameters that control its behavior. Parameters are passed when running the agent.
Common Parameters
pathstring
File or directory path to scan/analyze
depthstring
Analysis depth: fast, standard, comprehensive
sourcesarray
Data sources: web, arxiv, pubmed, github, etc.
timeout_secondsnumber
Maximum execution time (default: 300)
max_resultsnumber
Limit result count (default: 100)
formatstring
Output format: json, markdown, html, plain
Getting Agent Specifications
Before running an agent, check its parameter requirements:
# Get agent details and parameters
agent = client.agents.get("security-scanner")
print(f"Parameters: {agent.parameters}")
print(f"Capabilities: {agent.capabilities}")
# Example output:
# Parameters: {
# 'path': {'type': 'string', 'required': True},
# 'depth': {'type': 'string', 'enum': ['fast', 'standard', 'comprehensive']},
# 'include_deps': {'type': 'boolean', 'default': True}
# }Polling for Task Results
Agents run asynchronously. Use the task ID to poll for results.
Task Lifecycle
Polling Pattern
import time
# Run agent
result = client.agents.run("deep-research", task="Research X")
task_id = result.task_id
# Poll until completion
max_wait = 600 # 10 minutes
poll_interval = 2 # 2 seconds
elapsed = 0
while elapsed < max_wait:
task = client.tasks.get(task_id)
if task.status == "completed":
print(f"Success! Result: {task.result}")
break
elif task.status == "failed":
print(f"Failed: {task.error_message}")
break
print(f"Status: {task.status} ({task.elapsed_seconds}s)")
time.sleep(poll_interval)
elapsed += poll_interval
else:
print("Timeout waiting for task completion")
client.tasks.cancel(task_id)Best Practices
Agent Selection
- Choose the most specific agent for your task (security-scanner vs. general code-reviewer)
- Check agent capabilities to ensure they match your requirements
- Review required vs. optional parameters before running
Error Handling
- Always check task.status for failures before using results
- Implement timeout logic to avoid indefinite polling
- Log task IDs for debugging and task recovery
Performance
- Use "fast" depth for quick scans, "comprehensive" for thorough analysis
- Set reasonable timeout_seconds based on task complexity
- Batch similar tasks to reduce API overhead
More Resources
Learn about agents and see them in action:
- Real-world use cases showing agents in production
- API reference for agent endpoints
- Documentation home for all guides and references