Ejentum Integration Examples

May 23, 2026 · View on GitHub

Runnable code examples for integrating Ejentum's Logic API into your agent, framework, or workflow.

The Logic API retrieves engineered cognitive operations and returns structured cognitive injections. One POST request. These examples show how to make that call from every major environment.


Quick Start

curl -X POST "https://ejentum-main-ab125c3.zuplo.app/logicv1/" \
  -H "Authorization: Bearer YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{"query": "Why did deployment fail after the config change?", "mode": "reasoning"}'

7 modes: reasoning, reasoning-multi, code, code-multi, anti-deception, memory, memory-multi

Get your free API key (100 calls, no card): ejentum.com/dashboard


Examples by Environment

Language Basics

FileWhat it does
python/basic.pyMinimal POST, parse response, print injection
python/inject_into_agent.pyFull flow: get injection, prepend to system prompt, call LLM
typescript/basic.tsFetch-based minimal example
curl/single.shSingle-mode one-liner (reasoning, code, anti-deception, or memory)
curl/multi.shMulti-mode one-liner (reasoning-multi, code-multi, or memory-multi)
python/graceful_degradation.pyProduction pattern: timeout, retry, fallback

Agent Frameworks

FileFrameworkWhat it does
python/langchain_tool.pyLangChain / LangGraph@tool decorator wrapping Logic API call
python/openai_agents_tool.pyOpenAI Agents SDKFunction tool for the Responses API
python/openai_agents_streamable_http.pyOpenAI Agents SDK + MCPSame SDK, streamable-HTTP MCP transport with bearer auth
python/claude_agent_sdk.pyAnthropic Claude SDKtool_use definition for Claude agents
python/crewai_tool.pyCrewAIBaseTool subclass for multi-agent crews
python/pydantic_ai_tool.pyPydantic AIType-safe tool with async support
python/google_adk_tool.pyGoogle ADKFunctionTool for Gemini agents
typescript/vercel_ai_tool.tsVercel AI SDKtool() with Zod schema validation

IDEs (via MCP or Skill File)

FileEnvironmentWhat it does
mcp/ejentum_server.pyAll MCP clients (Cursor, Claude Code, Windsurf, Continue, Cline, Copilot)MCP server exposing Logic API as a tool. One server, all IDEs.
skill-files/ejentum_logic_api.mdCursor, Windsurf, Claude Code, CodexUnified skill file: all 4 harnesses, autonomous routing
skill-files/skill_reasoning.mdAny agentReasoning-only skill file (311 abilities, 6 dimensions)
skill-files/skill_code.mdAny agentCode-only skill file (128 abilities, 13 disciplines)
skill-files/skill_anti_deception.mdAny agentAnti-Deception-only skill file (139 abilities)
skill-files/skill_memory.mdAny agentMemory-only skill file (101 abilities, two-pass protocol)
skill-files/.cursorrulesCursorCursor-specific condensed rules file

The MCP server above is a Python reference example you can host yourself. If you prefer a packaged version that installs with one command, the published ejentum-mcp (npm ejentum-mcp) is the same shape: npx -y ejentum-mcp plus EJENTUM_API_KEY and the four harnesses appear as MCP tools.

No-Code

FilePlatformWhat it does
n8n/ejentum_workflow.jsonn8nImportable workflow with HTTP Request + AI Agent nodes
make-com/Make.comStep-by-step HTTP module setup guide
zapier/ZapierWebhooks by Zapier POST setup guide

How It Works

  1. Your agent sends a task description to the Logic API
  2. The API returns a structured cognitive injection (~400-900 tokens)
  3. You inject it into your agent's context window BEFORE the task
  4. The agent reasons with suppression signals active, blocking cognitive shortcuts
[REASONING CONTEXT]
{injection from Logic API}
[END REASONING CONTEXT]

{your agent's actual task}

Four product layers: Reasoning (311 abilities), Code (128), Anti-Deception (139), Memory (101). Choose the mode that matches your task.


Skill Files

Skill files teach an agent how to call the Logic API autonomously. Drop one into your IDE or agent and it handles mode selection, injection, and multi-turn drift monitoring.


Builder's Field Notes

28 screenshots from real work sessions. Full guide with images at ejentum/builders_playbook.


License

MIT