Context layer for autonomous software engineering

Agents that don’t start
from zero.

Every session, your coding agents rediscover the codebase and forget what they learned. ontlgy hands them a connected map of your code, docs and decisions, plus the lessons earlier sessions proved, in one call.

git clone https://github.com/ontlgy/ontlgy-deployments && bash ontlgy-deployments/docker-compose/install.sh

Self-hosted. Docker Compose or Kubernetes.

Works withClaude CodeCodexCursorAny MCP agent
task › Add idempotency keys to refund requests Illustration · sample repositories

Day zeroexploring

  1. grep -r "refund" . · 41 matches
  2. read api/refund_handler.go
  3. read jobs/retry_worker.go
  4. read pkg/retry/v1.go · removed last month
  5. read .cursorrules · 2 years old
  6. grep -r "CreateRefund" ..
  7. read ../ledger-sync/client/refunds.go
  8. ask “Which services consume refunds?”
  9. wait for a human …

With ontlgyready

  1. ontlgy locate("refund idempotency")
  2. ● 4 callers across 3 repositories
  3. ● ADR-014 “Refund writes are idempotent”
  4. ● Rule: wrap writes in TxRunner
  5. ● Lesson: reuse the key on retries · approved
  6. ○ legacy-retry-pattern · stale, skipped
  7. plan 4 edits, 3 repos. Pinned to a41f9c2.

01 The problem

Every session starts
at day zero.

Agents are capable. What they lack is your team’s context, and they rebuild it from scratch every time.

Rediscovers

Re-reads the same code every session.

Paying for it in tokens and minutes before writing a line.

→ One call to orient

Blind

Sees one repository.

Not the callers next door, the ADR in Confluence or the decision in Notion.

→ Connected context

Forgets

Loses what it proved.

The fix that passed on Tuesday is gone from Wednesday’s session.

→ Compounding memory

Drifts

Follows stale guidance.

Rules files and skills quietly outlive the code they describe.

→ Self-healing knowledge

02 How it works

Four layers between
your agents and day zero.

  1. One call returns the context pack.

    Pointers to the code, the rules that apply, approved lessons, and what to skip.

  2. Lessons from agent sessions.

    Kept only when a passing check or an accepted decision backs them.

  3. Everything linked, pinned to a commit.

    Symbols, calls and documents connected across repositories. Re-indexed on every push.

  4. The tools you already run.

    GitHub, Confluence and Notion today. Tickets and chat next.

03 Memory New

One agent learns it.
The next one already knows.

Follow one lesson from a Codex session to a Claude Code session a week later.

  1. Codex fixes a retry bug. Its test passes.

  2. Only the commit and the passing check travel. Transcripts stay on the machine.

  3. It becomes a lesson with scope, source and evidence.

  4. The owner sees it in Memories and approves it.

  5. Claude Code’s first call returns the code and the lesson together.

  6. Revoke the evidence and the lesson goes with it. Stale skills are flagged.

codex · payments-service

> Retries create duplicate refunds
  edit  jobs/retry_worker.go
  run   go test ./refunds/...
  ✓ ok   payments/refunds  0.41s

collector → ontlgy

POST /api/session-memory
{ "commit": "a41f9c2…",
  "outcomes": [{ "state": "passed",
    "summary": "Retry reuses the original key" }] }
← 200 { "state": "accepted" }

lesson package

lesson   Reuse the original idempotency key on retries
applies  payments-service · refunds/*
source   Codex CLI · a41f9c2
evidence ✓ go test ./refunds passed

ontlgy · Memories

Reuse the original idempotency key on retries

payments-service · from Codex CLI · 1 check

● ApprovedArchive

claude code · ledger-sync · a week later

ontlgy locate("refund idempotency")
→ payments-service/api/refund_handler.go:42
→ relevantLearnings[0]
  Reuse the original idempotency key on retries
  ● approved · from Codex CLI

skills_find(task, files)

→ idempotent-handlers      ● current
→ legacy-retry-pattern     ○ stale_refs
  RetryV1 no longer exists at a41f9c2

04 Deterministic by design

Fast because it’s exact.

Agents waste time on guesses. ontlgy answers from structure, so the same question gets the same answer.

head_commit a41f9c2 ● matches main

Pinned to a commit

Every answer says which commit it was read from.

api/refund_handler.go:42–61

Pointers, not pastes

Paths and line ranges. Agents read the source in their own checkout.

payments → ledger-sync → recon-job

A graph, not a guess

Callers and impact across repositories, not text similarity.

indexing no model in the loop

Deterministic indexing

Code is parsed, not summarised. Re-indexed on every push.

✓ check passed · cited

Evidence or it’s not kept

A lesson needs a passing check or an accepted decision behind it.

○ legacy-retry-pattern · stale

Stale is flagged

Skills that cite removed code are marked before agents follow them.

05 Compare

Built for agents, not for human search.

Most tools give agents a read-only view. ontlgy reads, remembers and stays true.

How ontlgy compares with the approaches teams use today
CapabilityRules files and RAGCLAUDE.md, .cursorrulesCode search and Q&ASourcegraph, Greptile, UnblockedEnterprise searchGleanAgent memoryMem0, Zepontlgy
Built for agents
Links across systems
Learns from agents at work
Stays true after a commit

YesPartlyNo

06 Integrations

Plugs into what
your team runs on.

All integrations
  • GitHub
  • Confluence
  • Notion
  • GitLabNext
  • JiraNext
  • LinearNext
  • SlackNext
  • SentryNext

07 FAQ

Questions engineers ask first.

Does ontlgy store our code?

No copy of it. The index holds structure: symbols, calls, files and line ranges. Agents read the source in their own checkout, and document pages are read live when needed.

Which agents does it work with?

Claude Code, Codex, Cursor and any agent that speaks MCP over HTTP. Each person connects with their own API key.

Where does it run?

In your infrastructure. One published image runs the app and worker, alongside Postgres and Neo4j, on Docker Compose or Kubernetes.

How do lessons get in?

A small collector sends a bounded summary of a finished session: the commit, short excerpts and the checks that passed. Raw transcripts and credentials stay on the host, and ontlgy redacts again before it distils a lesson.

How does it stay current?

Repositories re-index on every push through GitHub webhooks. Skills and rules that reference files, functions or scripts that no longer exist are flagged stale.

Who can see what?

An installation is one shared index for the people you invite. Memories are private to the engineer whose agents produced them. Per-repository and per-agent policies are next.

Work with us

Day zero ends here.

See ontlgy on your own repositories, or shape it as a design partner.