Alephのロゴ

Aleph

コミュニティ
Hmbown
aleph

/aleph - External memory workflow for large local data.

概要

公開者Hmbown
リポジトリaleph
スキル名aleph
スター
218
フォーク
25
同梱ファイル
指示のみ
ライセンスMIT
リンク
  • Markdown形式の指示

    モデルが必要に応じて読み込むSKILL.mdファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 指示だけで完結

    モデルに必要なものはすべて指示に含まれているため、別途同期するファイルはありません。

  • オープンソース

    HmbownがGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキルAlephをTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/Hmbown/aleph/tree/main/plugins/aleph/skills/aleph
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをそのAIエージェントのスキルディレクトリにコピーしてください。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/Hmbown/aleph.git /tmp/aleph
mkdir -p .claude/skills
cp -r /tmp/aleph/plugins/aleph/skills/aleph .claude/skills/aleph
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

TypingMindのチャットでAlephを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあると、モデルが自動的にAlephを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、Alephは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、未使用のスキルにはコストがかかりません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じSKILL.mdを読み込みます。

スキルの指示

モデルが読み込むSKILL.mdの内容です。スキルはモデルが従う指示なので、インストールする前に確認してください。

/aleph - External Memory Workflow

Core rule: keep whole contexts out of the prompt. Return only focused slices or compact derived results.

This plugin bundles the Aleph MCP launcher, /aleph skill, aleph-expert agent, and an install-check hook. It assumes the aleph executable is already installed and available on PATH.

Note: tool names may appear as mcp__aleph__load_workspace_manifest in some clients.

The 5-Phase Loop

1. Load

Pick the correct front door:

  • Large repo or codebase: load_workspace_manifest(...)
  • Single large file: load_file(...)
  • Inline or generated content: load_context(...)

Repo-scale default:

text
load_workspace_manifest(paths=["src", "tests"], context_id="repo")
rg_search(
  pattern="FastAPI|APIRouter|router\\.",
  paths=["src", "tests"],
  load_context_id="routes"
)
load_file(path="pyproject.toml", context_id="pyproject")

Single-file default:

text
load_file(path="/absolute/path/to/large.log", context_id="log")
search_context(pattern="ERROR|WARN", context_id="log")
peek_context(context_id="log", start=1, end=60, unit="lines")

Do not start repo work by reading files one by one when load_workspace_manifest(...) is the right first move.

2. Orient

  • Use search_context(...) to find relevant regions
  • Use peek_context(...) to inspect small ranges
  • Use semantic_search(...) for meaning-based lookup
  • Use chunk_context(...) when navigability matters
  • Use rg_search(...) to sweep repo trees quickly

Search before peeking. Pull only the slices you need.

3. Compute

  • Use exec_python(...) for heavier analysis with ctx bound in the sandbox
  • Aleph defaults to output_feedback="full"; exec_python(...) is not print-only
  • In full mode Aleph can return stdout, stderr, error text, and a rendered return value
  • If output volume becomes distracting, optionally use configure(output_feedback="metadata")
  • Use built-in helpers such as search, peek, lines, chunk, extract_*, semantic_search, and cite
  • Store compact derived values in variables like summary, counts, matches, or result
  • Retrieve only those derived values with get_variable(...)
  • Treat get_variable("ctx") as blocked for plugin workflows; use bounded slices or compact derived variables instead

Example:

text
exec_python(code="""
matches = search(r"ERROR|WARN")
counts = {"matches": len(matches)}
summary = f"{counts['matches']} matching lines"
""", context_id="log")
get_variable(name="summary", context_id="log")

4. Recurse

Real recursion helper signatures:

text
sub_query(prompt, context_slice=None)
sub_query_batch(prompt, context_slices, limit=None)
sub_query_map(prompts, context_slices=None, limit=None, parallel=True)
sub_aleph(query, context=None)

Runtime guidance:

  • Use sub_query_batch(...) for one prompt over many slices
  • Use sub_query_map(...) for distinct prompts, keeping parallel=True unless you need sequential execution
  • Use configure(sub_query_share_session=true) when nested agents need access to parent contexts
  • For depth 3+, use configure(sub_query_timeout=300, sandbox_timeout=300)

5. Converge

  • Use evaluate_progress(...) when the answer is not yet stable
  • Loop back through orient and compute when confidence is low
  • Use summarize_so_far(...) if the trajectory is getting long
  • Use finalize(answer=..., confidence=..., context_id=...) when done

Depth Invocation

Users can request a specific recursion depth with /aleph N target.

InvocationDepthStrategy
/aleph file.py1Direct file analysis with load_file, search_context, peek_context, exec_python
/aleph repo/1Repo analysis with load_workspace_manifest, rg_search, targeted load_file, exec_python
/aleph 2 file.py2Fan-out with sub_query_batch or sub_query_map
/aleph 3 file.py3Recursive sub_aleph with longer timeouts
/aleph 4 file.py4Deep recursion with explicit timeout tuning

Escalation rule:

  • Start at depth 1
  • Move to depth 2 when the answer needs chunk-level fan-out
  • Move to depth 3 or 4 only when nested structure or recursive synthesis is required

Repo vs File Workflow

When the user points at a repo, codebase, or project tree:

  • Start with load_workspace_manifest(...)
  • Use rg_search(...) to locate candidate files
  • Load only the files you actually need with load_file(...)
  • Compute inside Aleph instead of pasting file contents into the prompt

When the user points at one large file:

  • Start with load_file(...)
  • Search, peek, and compute inside Aleph
  • Pull back only the answer, a small slice, or a compact derived value

Anti-Patterns

  • Using read_file(...) as the default entry point for large files or repos
  • Loading a whole repo file-by-file when load_workspace_manifest(...) is the better first step
  • Treating get_variable("ctx") as a valid plugin workflow
  • Pasting raw file or repo content into the prompt when Aleph can search or compute instead
  • Claiming that exec_python(...) only returns print() output
  • Pinning a nested API backend in the checked-in plugin wrapper

よくある質問

AIスキル「Aleph」では何ができますか?

/aleph - External memory workflow for large local data.

TypingMindでAlephを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。Alephはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにAlephをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/Hmbown/aleph/tree/main/plugins/aleph/skills/alephを貼り付けてください。TypingMindがSKILL.mdを読み込み、チャットごとに有効にできるスキルとしてインストールします。

Alephを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストが合致したときにこのスキルを読み込めます。

Alephは何個のAIモデルで使えますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもAlephを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「Aleph」は無料ですか?

はい。HmbownがGitHubでMITライセンスの下で公開しています。支払いが必要なのは、利用したトークンに対する、ご自身が契約するAIプロバイダーへの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇