codealive-context-engine

A code and documentation search tool for repositories indexed in CodeAlive. It can find related code or written guidance and help trace how functions connect across repositories.

In plain words
What is it for?
Use it to discover indexed repositories, search code by meaning, retrieve stored documentation, and investigate connections between functions across projects.
Why use it?
It reduces the need to search unfamiliar codebases and documentation manually. It requires a CodeAlive API key before its scripts can be used.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/codealive-ai/codealive-skills/codealive-context-engine
Any agent
npx skills add CodeAlive-AI/codealive-skills --skill codealive-context-engine
Clone the repo
git clone --depth 1 https://github.com/CodeAlive-AI/codealive-skills

Made for: Claude Code, Codex.

Per session 63 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,502 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00063 $0.04502
Opus 5 $0.00032 $0.02251
Sonnet 5 $0.00013 $0.00900
Haiku 4.5 $0.00006 $0.00450

Measured 2d ago against content hash c30ec2502ff5, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

codealive-context-engine scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

The scan reads SKILL.md. This mod also ships 15 executable files (scripts/chat.py, scripts/datasources.py, scripts/fetch.py, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/codealive-context-engine/SKILL.md · 405 lines

How it starts

The opening of the file, as written. The whole thing — 405 lines — stays where its author put it; the contents beside it link to each section on GitHub.

CodeAlive Context Engine

Semantic code intelligence across your entire code ecosystem — current project, organizational repos, dependencies, and any indexed codebase.

Authentication

All scripts require a CodeAlive API key. If any script fails with "API key not configured", help the user set it up:

Option 1 (recommended): Run the interactive setup and wait for the user to complete it:

python setup.py

Option 2 (not recommended — key visible in chat history): If the user pastes their API key directly in chat, save it via:

python setup.py --key THE_KEY

Do NOT retry the failed script until setup completes successfully.

Table of Contents

Tools Overview

Tool Script Speed Cost Best For
List Data Sources datasources.py Instant Free Discovering indexed repos and workspaces. With --query "task", runs an AI relevance filter (low cost, not instant) returning only the relevant sources
Semantic Search search.py Fast Low Default discovery — finds code by meaning (concepts, behavior, architecture)
Grep Search grep.py Fast Low Finds code containing a specific string or regex (identifiers, literals, patterns)
Repository Ontology ontology.py Fast Low High-level orientation for exactly one repository
File Tree tree.py Fast Free Bounded repository tree inspection
Read File read_file.py Fast Free Read one repository-relative file path, optionally with a line range
Fetch Artifacts fetch.py Fast Free Retrieve full content for search result identifiers
Artifact Relationships relationships.py Fast Free Full call graph, inheritance, or symbol references for one artifact
ArtifactQuery Schema schema.py Fast Free Inspect supported metadata query entities, fields, and examples
Artifact Metadata Query metadata.py Fast Low Read-only aggregate/query analytics across indexed repositories
Chat with Codebase chat.py Slow High Stateless synthesized Q&A. Call ONLY when the user explicitly asks.
Get Version get_version.py Instant Free Return the installed CodeAlive skill version as JSON; no API key or network call required

Read the full file on GitHub · 405 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 405 lines · 63 tokens per session scan A c30ec2502ff5

Subscribe to this mod's changes

codealive-context-engine is a skill published in the GitHub repository CodeAlive-AI/codealive-skills (14 stars, last pushed 27d ago), licensed MIT. It adds 63 tokens to every session and 4,502 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories