Metadata-Version: 2.4
Name: dummyindex
Version: 0.39.0b2
Summary: Claude Code and Codex skills that index any codebase into a navigable .context/ folder. Deterministic backbone (tree, symbols, graph, conventions) plus host-session LLM enrichment.
Author: Ahmed Mulla
License: MIT License
        
        Copyright (c) 2026 Ahmed Mulla
        
        Permission is hereby granted, free of charge, to any person obtaining a copy
        of this software and associated documentation files (the "Software"), to deal
        in the Software without restriction, including without limitation the rights
        to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
        copies of the Software, and to permit persons to whom the Software is
        furnished to do so, subject to the following conditions:
        
        The above copyright notice and this permission notice shall be included in all
        copies or substantial portions of the Software.
        
        THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
        IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
        FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
        AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
        LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
        OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
        SOFTWARE.
        
Project-URL: Homepage, https://github.com/MullaAhmed/dummyindex
Project-URL: Repository, https://github.com/MullaAhmed/dummyindex
Project-URL: Issues, https://github.com/MullaAhmed/dummyindex/issues
Project-URL: LinkedIn, https://www.linkedin.com/in/ahmed-mulla/
Keywords: claude,claude-code,codex,agent-skills,skill,context-engine,knowledge-graph,tree-sitter,leiden,llm
Requires-Python: <3.14,>=3.10
Description-Content-Type: text/markdown
License-File: LICENSE
License-File: NOTICE
Requires-Dist: networkx
Requires-Dist: tomli>=2; python_version < "3.11"
Requires-Dist: tree-sitter>=0.23.0
Requires-Dist: tree-sitter-python
Requires-Dist: tree-sitter-javascript
Requires-Dist: tree-sitter-typescript
Requires-Dist: tree-sitter-go
Requires-Dist: tree-sitter-rust
Requires-Dist: tree-sitter-java
Requires-Dist: tree-sitter-c
Requires-Dist: tree-sitter-cpp
Requires-Dist: tree-sitter-ruby
Requires-Dist: tree-sitter-c-sharp
Requires-Dist: tree-sitter-kotlin
Requires-Dist: tree-sitter-scala
Requires-Dist: tree-sitter-php
Requires-Dist: tree-sitter-swift
Requires-Dist: tree-sitter-lua
Requires-Dist: tree-sitter-zig
Requires-Dist: tree-sitter-powershell
Requires-Dist: tree-sitter-elixir
Requires-Dist: tree-sitter-julia
Requires-Dist: tree-sitter-verilog
Provides-Extra: leiden
Requires-Dist: graspologic; python_version < "3.13" and extra == "leiden"
Provides-Extra: dev
Requires-Dist: pytest>=7; extra == "dev"
Requires-Dist: ruff>=0.12; extra == "dev"
Provides-Extra: benchmark
Requires-Dist: datasets>=2.14; extra == "benchmark"
Requires-Dist: nltk>=3.8; extra == "benchmark"
Provides-Extra: all
Requires-Dist: graspologic; python_version < "3.13" and extra == "all"
Requires-Dist: pytest>=7; extra == "all"
Requires-Dist: ruff>=0.12; extra == "all"
Dynamic: license-file

<p align="center">
  <a href="https://github.com/MullaAhmed/dummyindex"><img src="https://raw.githubusercontent.com/MullaAhmed/dummyIndex/refs/heads/main/docs/logo-text.svg" width="260" alt="dummyIndex"/></a>
</p>

# dummyindex

The persistent context engine for a repo.
A Claude Code and OpenAI Codex skill family turns any codebase into a `.context/` folder.
Agents can navigate that folder without broad grepping.
The skill family uses deterministic AST extraction plus a multi-agent
council (dev, architect, critics) that fills in the judgment.

```bash
pip install --user dummyindex          # or: uv tool install dummyindex

dummyindex install                     # flagless = universal + linked: one real
                                        # .agents/skills tree, .claude/skills
                                        # symlinked to it — discoverable by
                                        # Claude Code, Codex, Cursor, Gemini CLI

cd /path/to/your/repo
# Claude Code: /dummyindex .
# Codex:       $dummyindex .
```

The bootstrap is the only time you need the terminal. After that, use slash
commands in Claude Code or `$skill-name` mentions in Codex.
The Python CLI is the deterministic backbone those skills invoke.

After the first run, both hosts receive durable instructions to consult
`.context/` before searching source broadly. Claude uses dummyindex-managed
hooks and `.claude/CLAUDE.md`. Codex uses the active project instruction file
(`AGENTS.override.md`, `AGENTS.md`, or a configured fallback). Codex also uses
native skill discovery.

Codex has its own hook surface, but dummyindex does not install into
it today. For fallback names and the byte limit, dummyindex reads Codex's
platform system config, then user config. Then it reads the root `.codex/config.toml`
only when the persistent user config explicitly trusts that project via
`[projects."<absolute-root>"].trust_level`. It cannot observe a session's
selected profile, `-c` overrides, or nested launch-directory config layers.

---

## What it is

dummyindex runs in two modes per repo. **Setup mode** (one-time) builds
`.context/` and writes host guidance. **Ongoing mode** plans, builds, remembers,
audits, and cleans generated context through the installed skill family.

The workflow bodies are shared. Installed Codex copies include a compatibility
header. The header maps Claude's Task/Agent vocabulary to Codex `explorer`,
`worker`, and `default` subagents. It maps skill calls to `$name`. It uses the
active Codex model through `--model current`. The core index, plan, build,
memory, audit, and GC workflows work without Claude state.

Both hosts prepare and use the same capability bodies under `.context/equipment/`,
registered in `equipment.json`.
Claude can add thin native discovery references with `equip apply --platform claude`.
Default preparation creates no new Claude setup.
Both hosts can delegate through native agents without a manifest and pass selected policy mandates to their workers.

On Claude, managed hooks add a PreToolUse document guard, SessionStart
drift/memory/GC signals, and a Stop reconcile nudge.
On Codex, durable active-instruction-file guidance and explicit `$dummyindex*` workflows provide the same core context lifecycle.
They do so without claiming that Claude hook definitions are active.

Core principle: dummyindex stays the spine.
Deterministic commands manage context and state, while the active host's dispatched agents do judgment and
production-code work.

---

## Install

User-global (one-time):

```bash
pip install --user dummyindex        # or: uv tool install dummyindex
dummyindex install                   # flagless = universal + linked (default)
```

Betas are cut from `development` and are opt-in:
`pip install --user --pre dummyindex` (or `uv tool install --prerelease allow dummyindex`).

A flagless install is **universal by default**.
It creates one real `.agents/skills` tree, plus one relative symlink per skill family on the Claude side.
A single install therefore works in Claude Code, Codex, Cursor, and Gemini CLI with no further flags.
`CLAUDE.md` and `AGENTS.md` are both written.

```
~/.agents/skills/dummyindex/          # real files — the portable rendering
~/.agents/skills/dummyindex-plan/     # ...and the other 6 sibling families
~/.claude/skills/dummyindex        -> ../../.agents/skills/dummyindex
~/.claude/skills/dummyindex-plan  -> ../../.agents/skills/dummyindex-plan
```

Links always point `.claude → .agents`, never the reverse.
`.agents` is the portable rendering.
Claude Code is the only host that reads *only* `.claude`.
So `.claude` is the one side that gets symlinked.

Narrow to one host with `--platform claude` or `--platform agents`.
Both sides get real trees, with no linking, because there is nothing to link to:

```bash
dummyindex install --platform claude # ~/.claude/skills/dummyindex*/
dummyindex install --platform agents # ~/.agents/skills/dummyindex*/
```

`--platform agents` is the platform-agnostic selector.
The same `.agents/skills` family is discoverable by Codex, Cursor, Copilot CLI,
OpenCode, Amp, Gemini CLI, Goose, Pi, and Cline.
Other Agent-Skills and `AGENTS.md` harnesses can discover it too.
`--platform codex` still works as a **deprecated alias**: it prints one deprecation warning and renders byte-identical skill trees.

Linking is a tri-state.
The default (no flag) is **AUTO**: link when possible, otherwise fall back to writing real, duplicated trees with a warning.
`--copy` opts out for one run.
It always writes real, duplicated trees under both `.claude/skills` and `.agents/skills`, exactly like every release before this one.

`--link` is the **strict** form.
It errors instead of silently falling back to copy when the Claude side cannot be symlinked.

**Updating dummyindex migrates duplicated repos automatically.** A plain `dummyindex install` runs the same command as `/dummyindex-update`.
It detects an existing duplicated layout (real trees under both `.claude/skills` and `.agents/skills`) or a claude-only layout.
It converts every proven Claude copy to a link in that same run.
It prints a `claude skill migrated -> ...` line per family the first time.

This happens even when both copies already carry the same version stamp.
Repair alone would leave those alone, but migration forces the conversion.
After that first run, the layout is already linked and reinstalls are quiet.

On a Windows checkout with `core.symlinks=false`, or without Developer Mode
enabled, AUTO falls back to copy mode with a warning. The install still succeeds
and both hosts still work.

A materialized-link placeholder is a plain file that stands in for the symlink.
That checkout produces this shape.
Recover it by running `git config core.symlinks true` and re-checking out the repo.
The next `dummyindex install` then replaces it with a real link.

Per-repo (no global state):

```bash
cd /path/to/your/repo
dummyindex install --scope project
# universal + linked, rooted at this repo instead of $HOME

dummyindex install --platform agents --scope project
# narrowed: writes only .agents/skills/dummyindex*/ and the active project
# instruction file
```

To remove:

```bash
dummyindex uninstall
# flagless = removes both hosts, mirroring a flagless install

dummyindex uninstall --platform agents
# add --scope project [--dir PATH], or use --platform both
```

Uninstall removes the whole named family directories it installed: the main
skill plus its 7 siblings.
They sit under `.claude/skills/` and/or `.agents/skills/`
at the target scope.
Do not store your own files inside
`.claude/skills/dummyindex*/` or `.agents/skills/dummyindex*/`.
Files stored there do not survive an uninstall.

Narrowing removal with `--platform agents` on a linked
layout also sweeps the now-dangling Claude-side links.
It also prints the exact
`dummyindex install --platform claude` command to restore that surface.
The reason: the Claude side was only ever links into the tree that command
removed.

Rerunning `install` also **repairs** stale copies an older dummyindex version left behind.
The repair covers stale preambles and stale managed guidance blocks, scoped to the
platform(s) and scope you selected.
Everything else is reported with the exact command to fix it.

A duplicate copy at both user and project scope is reported, never deleted,
unless you pass `--dedupe user|project`.
A copy stamped newer than the running package is left alone unless you pass
`--force-downgrade`.

A foreign symlinked family dir is always refused, since dummyindex did not create it.
A dummyindex-owned link, which is the linked layout itself, is recognized and left in place or healed.
It is never mistaken for a stray duplicate.
See [docs/COMMANDS.md](docs/COMMANDS.md#platform-selector-repair-on-reinstall-and-dedupe)
for the full contract.

Cursor already reads `.claude/agents/` natively, so a repo's
`context equip`-generated Claude agents work there with no extra rendering.

---

## Quickstart

The same workflows have host-native spellings:

| Workflow | Claude Code | Codex |
|---|---|---|
| Index / reconcile | `/dummyindex` | `$dummyindex` |
| Plan | `/dummyindex-plan` | `$dummyindex-plan` |
| Build | `/dummyindex-build` | `$dummyindex-build` |
| Equip | `/dummyindex-equip` | `$dummyindex-equip` |
| Remember | `/dummyindex-remember` | `$dummyindex-remember` |
| Audit | `/dummyindex-audit` | `$dummyindex-audit` |
| Context GC | `/dummyindex-gc` | `$dummyindex-gc` |
| Update | `/dummyindex-update` | `$dummyindex-update` |

In Codex you can also open `/skills` and select any installed dummyindex skill.
Because dummyindex installs Agent Skills rather than custom prompts, `$dummyindex-plan` is the supported equivalent of the Claude slash invocation.

CLI — the **agent's** deterministic backbone (no LLM cost).
The skill and council run these.
You do not type them by hand.
The only terminal commands a human runs are the `install` bootstrap above.
Shown here for transparency:

```bash
dummyindex ingest . --platform agents # build .context/ + active Codex/Cursor/etc. project guidance
dummyindex context query "how does auth work"   # ranked feature shortlist
dummyindex context rebuild --changed .          # quick deterministic backbone refresh
dummyindex context reconcile .                  # what drifted since the last reconcile (commit-anchored)
dummyindex context hooks status .              # Claude integration hook health
dummyindex context --help            # full command list
```

---

Token usage reads Claude Code transcripts and is therefore Claude-only. The
Claude install includes `/tokens`. A Codex-only install does not create it.
Codex already provides `/status` for current context/session tokens and
`/usage` for account usage.

```bash
dummyindex usage                     # current chat: context window + dedup session totals
dummyindex usage daily               # per-day totals across every project (also: session|monthly|blocks)
```

**Full command reference: [docs/COMMANDS.md](docs/COMMANDS.md)** — every slash command and CLI command in one place.

---

## Docs

- **[docs/COMMANDS.md](docs/COMMANDS.md)** — every command (slash + CLI) in one page
- **[docs/README.md](docs/README.md)** — docs index (guide + reference + internal)
- **[docs/guide/](docs/guide/)** — twelve conceptual docs: architecture, data model, CLI surface, lifecycle, retrieval model, and more

---

## License

MIT — see `LICENSE`.
