Back to list
5dlabs

octocode

by 5dlabs

Cognitive Task Orchestrator - GitOps on Bare Metal or Cloud for AI Agents

2🍴 1📅 Jan 25, 2026

SKILL.md


name: octocode description: Semantic code research across GitHub repositories for finding implementations, patterns, and conducting PR/security reviews. agents: [morgan, cleo, cipher, rex, nova, blaze, grizz, tap, spark, bolt, vex] triggers: [code search, find implementation, how does X work, pattern, review PR, security audit, real code, production examples]

OctoCode (Semantic Code Research)

Use OctoCode to search across GitHub repositories for real implementations, patterns, and to conduct code/security reviews. Unlike Context7 (documentation lookup), OctoCode finds actual production code.

Tools

ToolPurpose
octocode_githubSearchCodeSearch code across repositories by content or path
octocode_githubSearchRepositoriesDiscover repositories by topics, keywords, stars
octocode_githubViewRepoStructureExplore repository directory structure
octocode_githubGetFileContentRead files with pattern matching and line ranges
octocode_githubSearchPullRequestsSearch PRs with discussions, diffs, and metadata
octocode_packageSearchSearch npm and PyPI packages

When to Use OctoCode vs Context7

NeedToolWhy
Library API documentationContext7Curated, version-specific docs
Find real implementationsOctoCodeSearches actual codebases
How does React do X?OctoCodeSearch React's source code
Axum middleware examplesOctoCodeFind production patterns
PR review with evidenceOctoCode/review_pull_request command
Security vulnerability patternsOctoCode/review_security command

Common Workflows

1. Research Implementation Patterns

# Find OAuth implementations in Rust
octocode_githubSearchCode({
  query: "oauth axum",
  language: "rust",
  stars: ">100"
})

# Then explore the top result
octocode_githubViewRepoStructure({
  owner: "found-org",
  repo: "found-repo",
  path: "src/auth"
})

# Read the specific implementation
octocode_githubGetFileContent({
  owner: "found-org",
  repo: "found-repo",
  path: "src/auth/oauth.rs"
})

2. PR Review (Cleo)

For code quality reviews, use OctoCode to find canonical implementations for comparison:

# Find how top projects handle the same pattern
octocode_githubSearchCode({
  query: "error handling middleware",
  language: "typescript",
  stars: ">1000"
})

3. Security Analysis (Cipher)

For security reviews, search for vulnerability patterns and fixes:

# Find how security issues were fixed
octocode_githubSearchPullRequests({
  query: "CVE fix authentication",
  state: "merged",
  repo: "relevant/repo"
})

4. Research for Task Generation (Morgan)

Before generating implementation tasks, research existing patterns:

# How do multi-agent platforms handle task decomposition?
octocode_githubSearchCode({
  query: "task decomposition agent",
  language: "rust OR python",
  stars: ">500"
})

OctoCode Commands (Prompts)

OctoCode provides specialized prompt commands for complex research:

CommandPurposeUse Case
/researchDeep code discovery and pattern analysisFinding implementations before coding
/planResearch-backed implementation planningPlanning complex features
/review_pull_requestDefects-first PR analysisQuality reviews with evidence
/review_securitySecurity audit with validationSecurity analysis with citations

Using /research

/research How does React's useState hook work internally?
/research Compare state management: Redux vs Zustand vs Jotai
/research Find authentication patterns in axum Rust projects

Using /review_pull_request

/review_pull_request prUrl: https://github.com/5dlabs/cto/pull/123

This provides:

  • Defects & Bugs: Logic errors, edge cases, race conditions
  • Security Issues: Injection vulnerabilities, auth bypasses
  • Performance: N+1 queries, memory leaks
  • Code Quality: Complexity, maintainability

Using /review_security

/review_security repoUrl: https://github.com/5dlabs/cto

This provides:

  • Authentication & Authorization: Auth flows, session management
  • Input Validation: Injection points, sanitization
  • Secrets Management: Hardcoded credentials, API keys
  • Dependencies: Known vulnerabilities, supply chain risks

Best Practices

  1. Use both tools together - Context7 for docs, OctoCode for implementations
  2. Be specific with searches - "axum middleware error handling" not "error handling"
  3. Filter by stars - stars:>100 for quality code
  4. Cite your sources - Include GitHub links in research findings
  5. Check recent PRs - For understanding how issues were solved

Integration with Deep Research

OctoCode complements Firecrawl for comprehensive research:

Research TypePrimary ToolSecondary Tool
Competitive analysisFirecrawl AgentOctoCode (open source competitors)
Implementation patternsOctoCodeContext7 (docs for libraries used)
Best practicesFirecrawlOctoCode (real code examples)
Bug investigationOctoCodeGitHub MCP (internal PRs)

Example: Research-Backed Task Generation

When Morgan processes a PRD mentioning "implement OAuth like Auth0":

1. Use OctoCode to search for OAuth implementations:
   octocode_githubSearchCode({ query: "oauth2 refresh token rotation rust" })

2. Analyze how top projects structure auth:
   octocode_githubViewRepoStructure({ owner: "top-project", repo: "auth" })

3. Extract patterns from implementations:
   octocode_githubGetFileContent({ 
     owner: "top-project", 
     repo: "auth", 
     path: "src/oauth.rs",
     matchString: "refresh_token"
   })

4. Embed findings in task details for implementation agents

Score

Total Score

65/100

Based on repository quality metrics

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

+10
説明文

100文字以上の説明がある

0/10
人気

GitHub Stars 100以上

0/15
最近の活動

1ヶ月以内に更新

+10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

+5

Reviews

💬

Reviews coming soon