{"id":51558427,"url":"https://github.com/krablante/pitlane-codex-plugin","last_synced_at":"2026-07-10T08:01:13.508Z","repository":{"id":358360772,"uuid":"1240238067","full_name":"Krablante/pitlane-codex-plugin","owner":"Krablante","description":"Pitlane PreToolUse hook for token-efficient Codex code navigation","archived":false,"fork":false,"pushed_at":"2026-06-17T21:04:45.000Z","size":40,"stargazers_count":2,"open_issues_count":1,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-06-17T23:08:19.408Z","etag":null,"topics":["code-navigation","codex","codex-plugin","developer-tools","pitlane"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Krablante.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-05-15T23:03:38.000Z","updated_at":"2026-06-17T21:04:51.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/Krablante/pitlane-codex-plugin","commit_stats":null,"previous_names":["krablante/pitlane-codex-plugin"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Krablante/pitlane-codex-plugin","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Krablante%2Fpitlane-codex-plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Krablante%2Fpitlane-codex-plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Krablante%2Fpitlane-codex-plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Krablante%2Fpitlane-codex-plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Krablante","download_url":"https://codeload.github.com/Krablante/pitlane-codex-plugin/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Krablante%2Fpitlane-codex-plugin/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35325188,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-10T02:00:06.465Z","response_time":60,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["code-navigation","codex","codex-plugin","developer-tools","pitlane"],"created_at":"2026-07-10T08:01:12.104Z","updated_at":"2026-07-10T08:01:13.476Z","avatar_url":"https://github.com/Krablante.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003epitlane-codex-plugin\u003c/h1\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003cstrong\u003eKeep Codex code navigation compact by routing safe source reads through Pitlane.\u003c/strong\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  A small Codex-compatible \u003ccode\u003ePreToolUse\u003c/code\u003e plugin for token-efficient source browsing, symbol search, and repo outlines.\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"./docs/install.md\"\u003eInstall\u003c/a\u003e\n  ·\n  \u003ca href=\"./docs/compatibility.md\"\u003eCompatibility\u003c/a\u003e\n  ·\n  \u003ca href=\"./docs/stack.md\"\u003eStack Fit\u003c/a\u003e\n\u003c/p\u003e\n\n`pitlane-codex-plugin` adds a code-navigation `PreToolUse` hook for\nCodex-compatible runtimes. It rewrites only narrow, safe shell reads into\nhost-local `pitlane` CLI calls:\n\n- source `cat`, `head`, and simple `sed -n A,Bp` reads become `pitlane lines`;\n- simple symbol-looking `rg`, recursive `grep`, `ls -R`, and `tree` commands\n  become Pitlane search or outline calls when the project has a Pitlane index,\n  with a cheap auto-index attempt for safe local worktrees;\n- missed source-navigation opportunities, including broad `find` and\n  `git grep` shapes, can emit a small hint while leaving the original command\n  unchanged; compact telemetry for these misses is opt-in;\n- exact-output, regex-like search, machine-readable, build, test, Docker, SSH,\n  data, and shell-control commands pass through unchanged.\n\nThere is no sidecar, container, SSH, wrapper, or gateway fallback path. If a\nhost-local `pitlane` executable is not available, the hook silently leaves the\noriginal shell command alone.\n\n## Part of the Codez stack\n\nThe Codez stack is modular. Each layer can be used on its own unless a higher\nlayer explicitly opts into it.\n\n| Layer | Public surface | Responsibility | Dependency |\n| --- | --- | --- | --- |\n| [Codez](https://github.com/Krablante/codez) | Codex-compatible runtime | App Server v2, goal RPC, long-session hardening, prompt pruning, and plugin hooks | Does not require Teledex |\n| [RTK Codex Plugin](https://github.com/Krablante/rtk-codex-plugin) | Optional Codex plugin | Shell/token safety through `rtk rewrite` and bounded output guarding | Requires a Codex-compatible plugin-hook runtime; does not require Teledex |\n| [Pitlane Codex Plugin](https://github.com/Krablante/pitlane-codex-plugin) | Optional Codex plugin | Code-navigation/token-saving rewrites through a host-local `pitlane` CLI | Requires a Codex-compatible plugin-hook runtime and local `pitlane`; does not require Teledex |\n| [Teledex](https://github.com/Krablante/teledex) | Telegram gateway/session layer | Topics, queues, live steer, `/goal` UX, and delivery/recovery around durable agent sessions | Full mode is optimized for Codez App Server v2; upstream `codex exec --json` is legacy compatibility only |\n\nWhen RTK and Pitlane are both enabled, load RTK before Pitlane. RTK handles\ngeneral shell-output safety; Pitlane then wins only for the narrow\ncode-navigation commands it accepts.\n\n## Why People Use It\n\n- avoid dumping large source files into the model context for routine browsing\n- replace broad source reads with bounded `pitlane lines`\n- turn simple symbol and listing exploration into indexed Pitlane navigation\n- keep exact output intact for tests, builds, JSON, Docker, SSH, and automation\n- install as a small plugin instead of changing shell habits by hand\n\n## Quick Start\n\nClone the plugin into the plugin cache used by your Codex-compatible runtime.\nOne common GitHub cache layout looks like this:\n\n```bash\ncodex_home=\"${CODEX_HOME:-$HOME/.codex}\"\ngit clone https://github.com/Krablante/pitlane-codex-plugin \\\n  \"$codex_home/plugins/cache/github/pitlane-codex-plugin/local\"\n```\n\nEnable plugin hooks and the plugin key that matches your install location:\n\n```toml\n[features]\nplugins = true\nplugin_hooks = true\n\n[plugins.\"pitlane-codex-plugin@github\"]\nenabled = true\n```\n\nPut `pitlane` in `PATH`, index a project, and run the focused test suite:\n\n```bash\npitlane --version\npitlane index /path/to/project\nmake test\n```\n\nRead next:\n\n- [Install](./docs/install.md)\n- [Compatibility](./docs/compatibility.md)\n- [Stack Fit](./docs/stack.md)\n\n## Notes\n\n- `pitlane` is required for rewrites; without it, the hook passes through.\n- symbol and outline rewrites require a ready Pitlane index; safe local\n  worktrees can be auto-indexed with a short timeout.\n- the plugin is intentionally shell-hook-only; gateway/session behavior belongs\n  in higher-level tools.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkrablante%2Fpitlane-codex-plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkrablante%2Fpitlane-codex-plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkrablante%2Fpitlane-codex-plugin/lists"}