ultimate-pi 0.1.2 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.agents/skills/ck-search/SKILL.md +99 -0
- package/.agents/skills/defuddle/SKILL.md +90 -0
- package/.agents/skills/find-skills/SKILL.md +142 -0
- package/.agents/skills/firecrawl/SKILL.md +150 -0
- package/.agents/skills/firecrawl/rules/install.md +82 -0
- package/.agents/skills/firecrawl/rules/security.md +26 -0
- package/.agents/skills/firecrawl-agent/SKILL.md +57 -0
- package/.agents/skills/firecrawl-build-interact/SKILL.md +67 -0
- package/.agents/skills/firecrawl-build-onboarding/SKILL.md +102 -0
- package/.agents/skills/firecrawl-build-onboarding/references/auth-flow.md +39 -0
- package/.agents/skills/firecrawl-build-onboarding/references/project-setup.md +20 -0
- package/.agents/skills/firecrawl-build-onboarding/references/sdk-installation.md +17 -0
- package/.agents/skills/firecrawl-build-scrape/SKILL.md +68 -0
- package/.agents/skills/firecrawl-build-search/SKILL.md +68 -0
- package/.agents/skills/firecrawl-crawl/SKILL.md +58 -0
- package/.agents/skills/firecrawl-download/SKILL.md +69 -0
- package/.agents/skills/firecrawl-interact/SKILL.md +83 -0
- package/.agents/skills/firecrawl-map/SKILL.md +50 -0
- package/.agents/skills/firecrawl-parse/SKILL.md +61 -0
- package/.agents/skills/firecrawl-scrape/SKILL.md +68 -0
- package/.agents/skills/firecrawl-search/SKILL.md +59 -0
- package/.agents/skills/obsidian-bases/SKILL.md +299 -0
- package/.agents/skills/obsidian-markdown/SKILL.md +237 -0
- package/.agents/skills/posthog-analyst/SKILL.md +306 -0
- package/.agents/skills/posthog-analyst/evals/evals.json +23 -0
- package/.agents/skills/wiki/SKILL.md +215 -0
- package/.agents/skills/wiki/references/css-snippets.md +122 -0
- package/.agents/skills/wiki/references/frontmatter.md +107 -0
- package/.agents/skills/wiki/references/git-setup.md +58 -0
- package/.agents/skills/wiki/references/mcp-setup.md +149 -0
- package/.agents/skills/wiki/references/modes.md +259 -0
- package/.agents/skills/wiki/references/plugins.md +96 -0
- package/.agents/skills/wiki/references/rest-api.md +124 -0
- package/.agents/skills/wiki-autoresearch/SKILL.md +211 -0
- package/.agents/skills/wiki-autoresearch/references/program.md +75 -0
- package/.agents/skills/wiki-fold/SKILL.md +204 -0
- package/.agents/skills/wiki-fold/references/fold-template.md +133 -0
- package/.agents/skills/wiki-ingest/SKILL.md +288 -0
- package/.agents/skills/wiki-lint/SKILL.md +183 -0
- package/.agents/skills/wiki-query/SKILL.md +176 -0
- package/.agents/skills/wiki-save/SKILL.md +128 -0
- package/.ckignore +41 -0
- package/.env.example +9 -0
- package/.github/workflows/lint.yml +33 -0
- package/.github/workflows/publish-github-packages.yml +35 -0
- package/.github/workflows/publish-npm.yml +1 -1
- package/.pi/SYSTEM.md +107 -40
- package/.pi/agents/pi-pi/agent-expert.md +205 -0
- package/.pi/agents/pi-pi/cli-expert.md +47 -0
- package/.pi/agents/pi-pi/config-expert.md +67 -0
- package/.pi/agents/pi-pi/ext-expert.md +53 -0
- package/.pi/agents/pi-pi/keybinding-expert.md +123 -0
- package/.pi/agents/pi-pi/pi-orchestrator.md +103 -0
- package/.pi/agents/pi-pi/prompt-expert.md +83 -0
- package/.pi/agents/pi-pi/skill-expert.md +52 -0
- package/.pi/agents/pi-pi/theme-expert.md +46 -0
- package/.pi/agents/pi-pi/tui-expert.md +100 -0
- package/.pi/agents/rethink.md +140 -0
- package/.pi/agents/wiki-ingest.md +67 -0
- package/.pi/agents/wiki-lint.md +75 -0
- package/.pi/auto-commit.json +20 -0
- package/.pi/extensions/banner.png +0 -0
- package/.pi/extensions/ck-enforce.ts +216 -0
- package/.pi/extensions/custom-footer.ts +308 -0
- package/.pi/extensions/custom-header.ts +116 -0
- package/.pi/extensions/dotenv-loader.ts +170 -0
- package/.pi/internal/cursor-sdk-transcript-parser.ts +59 -0
- package/.pi/model-router.json +95 -0
- package/.pi/npm/.gitignore +2 -0
- package/.pi/prompts/git-sync.md +124 -0
- package/.pi/prompts/harness-setup.md +509 -0
- package/.pi/prompts/save.md +16 -0
- package/.pi/prompts/wiki-autoresearch.md +19 -0
- package/.pi/prompts/wiki.md +23 -0
- package/.pi/providers/cursor-sdk-provider.test.mjs +476 -0
- package/.pi/providers/cursor-sdk-provider.ts +1085 -0
- package/.pi/settings.json +14 -4
- package/.pi/skills/agent-router/SKILL.md +174 -0
- package/.pi/sounds/alert/1-kaching-track.mp3 +0 -0
- package/.pi/sounds/error/1-ksi-wth-track.mp3 +0 -0
- package/.pi/sounds/error/2-smash-track.mp3 +0 -0
- package/.pi/sounds/error/3-buzzer-track.mp3 +0 -0
- package/.pi/sounds/notification/1-soft-notification-track.mp3 +0 -0
- package/.pi/sounds/project-sounds.json +25 -0
- package/.pi/sounds/reminder/1-soft-notification-track.mp3 +0 -0
- package/.pi/sounds/success/1-tada-track.mp3 +0 -0
- package/.pi/sounds/success/2-jobs-done-track.mp3 +0 -0
- package/.pi/sounds/success/3-yay-track.mp3 +0 -0
- package/CONTRIBUTING.md +116 -0
- package/README.md +32 -39
- package/biome.json +34 -0
- package/firecrawl/.env.template +58 -0
- package/firecrawl/README.md +49 -0
- package/firecrawl/docker-compose.yaml +201 -0
- package/firecrawl/searxng/searxng.env +3 -0
- package/firecrawl/searxng/settings.yml +85 -0
- package/lefthook.yml +8 -0
- package/package.json +55 -24
- package/vault/AGENTS.md +37 -0
- package/vault/wiki/_templates/comparison.md +39 -0
- package/vault/wiki/_templates/concept.md +40 -0
- package/vault/wiki/_templates/decision.md +21 -0
- package/vault/wiki/_templates/entity.md +32 -0
- package/vault/wiki/_templates/flow.md +14 -0
- package/vault/wiki/_templates/module.md +18 -0
- package/vault/wiki/_templates/question.md +31 -0
- package/vault/wiki/_templates/source.md +39 -0
- package/vault/wiki/concepts/AST-Aware Code Chunking.md +44 -0
- package/vault/wiki/concepts/Build-Time Prompt Compilation.md +107 -0
- package/vault/wiki/concepts/Context Engine (AI Coding).md +47 -0
- package/vault/wiki/concepts/Context-Aware System Reminders.md +61 -0
- package/vault/wiki/concepts/Contextualized Text Embedding.md +42 -0
- package/vault/wiki/concepts/Contractor vs Employee AI Model.md +55 -0
- package/vault/wiki/concepts/Dual-Model Agent Architecture.md +65 -0
- package/vault/wiki/concepts/Late Chunking vs Early Chunking.md +43 -0
- package/vault/wiki/concepts/Majority Vote Ensembling.md +68 -0
- package/vault/wiki/concepts/Meta-Harness.md +16 -0
- package/vault/wiki/concepts/Multi-Agent AI Coding Architecture.md +75 -0
- package/vault/wiki/concepts/Prompt Enhancement.md +90 -0
- package/vault/wiki/concepts/Prompt Renderer.md +89 -0
- package/vault/wiki/concepts/Semantic Codebase Indexing.md +67 -0
- package/vault/wiki/concepts/additive-config-hierarchy.md +16 -0
- package/vault/wiki/concepts/agent-artifacts-verifiable-deliverables.md +71 -0
- package/vault/wiki/concepts/agent-browser-browser-automation.md +99 -0
- package/vault/wiki/concepts/agent-codebase-interface.md +43 -0
- package/vault/wiki/concepts/agent-harness-architecture.md +67 -0
- package/vault/wiki/concepts/agent-loop-detection-patterns.md +133 -0
- package/vault/wiki/concepts/agent-search-enforcement.md +126 -0
- package/vault/wiki/concepts/agent-skills-ecosystem.md +74 -0
- package/vault/wiki/concepts/agent-skills-pattern.md +68 -0
- package/vault/wiki/concepts/agentic-harness-context-enforcement.md +91 -0
- package/vault/wiki/concepts/agentic-harness.md +34 -0
- package/vault/wiki/concepts/agentic-orchestration-pipeline.md +56 -0
- package/vault/wiki/concepts/agentic-search-no-embeddings.md +18 -0
- package/vault/wiki/concepts/anthropic-context-engineering.md +13 -0
- package/vault/wiki/concepts/antigravity-agent-first-architecture.md +61 -0
- package/vault/wiki/concepts/ast-compression.md +19 -0
- package/vault/wiki/concepts/ast-truncation.md +66 -0
- package/vault/wiki/concepts/barrel-files.md +37 -0
- package/vault/wiki/concepts/browser-harness-agent.md +41 -0
- package/vault/wiki/concepts/browser-subagent-visual-verification.md +82 -0
- package/vault/wiki/concepts/codebase-intelligence-ecosystem-comparison.md +192 -0
- package/vault/wiki/concepts/codebase-intelligence-harness-integration.md +161 -0
- package/vault/wiki/concepts/codebase-to-context-ingestion.md +46 -0
- package/vault/wiki/concepts/codex-harness-innovations.md +147 -0
- package/vault/wiki/concepts/consensus-debate-flow.md +17 -0
- package/vault/wiki/concepts/consensus-debate.md +206 -0
- package/vault/wiki/concepts/content-addressed-spec-identity.md +166 -0
- package/vault/wiki/concepts/context-anxiety.md +57 -0
- package/vault/wiki/concepts/context-compression-techniques.md +19 -0
- package/vault/wiki/concepts/context-continuity.md +22 -0
- package/vault/wiki/concepts/context-drift-in-agents.md +106 -0
- package/vault/wiki/concepts/context-engineering.md +62 -0
- package/vault/wiki/concepts/context-folding.md +67 -0
- package/vault/wiki/concepts/context-mode.md +38 -0
- package/vault/wiki/concepts/cursor-harness-innovations.md +107 -0
- package/vault/wiki/concepts/deterministic-session-compaction.md +79 -0
- package/vault/wiki/concepts/drift-detection-unified.md +296 -0
- package/vault/wiki/concepts/execution-feedback-loop.md +46 -0
- package/vault/wiki/concepts/feedforward-feedback-harness.md +60 -0
- package/vault/wiki/concepts/five-root-cause-metrics-sentrux.md +40 -0
- package/vault/wiki/concepts/fork-safe-spec-storage.md +89 -0
- package/vault/wiki/concepts/fts5-sandbox.md +19 -0
- package/vault/wiki/concepts/fuzzy-edit-matching.md +71 -0
- package/vault/wiki/concepts/gemini-cli-architecture.md +104 -0
- package/vault/wiki/concepts/generator-evaluator-architecture.md +64 -0
- package/vault/wiki/concepts/guardian-agent-pattern.md +67 -0
- package/vault/wiki/concepts/harness-configuration-layers.md +89 -0
- package/vault/wiki/concepts/harness-control-frameworks.md +155 -0
- package/vault/wiki/concepts/harness-engineering-first-principles.md +90 -0
- package/vault/wiki/concepts/harness-h-formalism.md +53 -0
- package/vault/wiki/concepts/hybrid-code-search.md +61 -0
- package/vault/wiki/concepts/inline-post-edit-validation.md +112 -0
- package/vault/wiki/concepts/legendary-engineering-patterns-harness.md +110 -0
- package/vault/wiki/concepts/lifecycle-hooks.md +94 -0
- package/vault/wiki/concepts/mcp-tool-routing.md +102 -0
- package/vault/wiki/concepts/memory-system-of-record-vs-ephemeral-cache.md +47 -0
- package/vault/wiki/concepts/meta-agent-context-pruning.md +151 -0
- package/vault/wiki/concepts/model-adaptive-harness.md +122 -0
- package/vault/wiki/concepts/model-routing-agents.md +101 -0
- package/vault/wiki/concepts/monorepo-architecture.md +45 -0
- package/vault/wiki/concepts/multi-agent-specialization.md +61 -0
- package/vault/wiki/concepts/permission-subsystem.md +16 -0
- package/vault/wiki/concepts/pi-messenger-analysis.md +243 -0
- package/vault/wiki/concepts/pi-vscode-extension-landscape.md +37 -0
- package/vault/wiki/concepts/policy-engine-pattern.md +78 -0
- package/vault/wiki/concepts/progressive-disclosure-agents.md +53 -0
- package/vault/wiki/concepts/progressive-skill-disclosure.md +17 -0
- package/vault/wiki/concepts/provider-native-prompting.md +203 -0
- package/vault/wiki/concepts/quality-signal-sentrux.md +37 -0
- package/vault/wiki/concepts/repo-map-ranking.md +42 -0
- package/vault/wiki/concepts/result-monad-error-handling.md +47 -0
- package/vault/wiki/concepts/safety-defense-in-depth.md +83 -0
- package/vault/wiki/concepts/sandbox-os-enforcement.md +18 -0
- package/vault/wiki/concepts/selective-debate-routing.md +70 -0
- package/vault/wiki/concepts/self-evolving-harness.md +60 -0
- package/vault/wiki/concepts/sentrux-mcp-integration.md +36 -0
- package/vault/wiki/concepts/sentrux-rules-engine.md +49 -0
- package/vault/wiki/concepts/shell-pattern-compression.md +24 -0
- package/vault/wiki/concepts/skill-first-architecture.md +166 -0
- package/vault/wiki/concepts/structured-compaction.md +78 -0
- package/vault/wiki/concepts/subagent-orchestration.md +17 -0
- package/vault/wiki/concepts/subagent-worktree-isolation.md +68 -0
- package/vault/wiki/concepts/superpowers-methodology.md +78 -0
- package/vault/wiki/concepts/think-in-code.md +73 -0
- package/vault/wiki/concepts/ts-execution-layer.md +100 -0
- package/vault/wiki/concepts/typescript-strict-mode.md +37 -0
- package/vault/wiki/concepts/vcc-conversation-compaction-for-pi.md +51 -0
- package/vault/wiki/concepts/verification-drift-detection.md +19 -0
- package/vault/wiki/consensus/consensus-records.md +58 -0
- package/vault/wiki/decisions/2026-04-30-pi-lean-ctx-native.md +122 -0
- package/vault/wiki/decisions/adr-008.md +40 -0
- package/vault/wiki/decisions/adr-009.md +46 -0
- package/vault/wiki/decisions/adr-010.md +55 -0
- package/vault/wiki/decisions/adr-011.md +165 -0
- package/vault/wiki/decisions/adr-012.md +102 -0
- package/vault/wiki/decisions/adr-013.md +59 -0
- package/vault/wiki/decisions/adr-014.md +73 -0
- package/vault/wiki/decisions/adr-015.md +81 -0
- package/vault/wiki/decisions/adr-016.md +91 -0
- package/vault/wiki/decisions/adr-017.md +79 -0
- package/vault/wiki/decisions/adr-018.md +100 -0
- package/vault/wiki/decisions/adr-019.md +75 -0
- package/vault/wiki/decisions/adr-020.md +106 -0
- package/vault/wiki/decisions/adr-021.md +86 -0
- package/vault/wiki/decisions/adr-022.md +113 -0
- package/vault/wiki/decisions/adr-023.md +113 -0
- package/vault/wiki/decisions/adr-024.md +73 -0
- package/vault/wiki/decisions/adr-025.md +130 -0
- package/vault/wiki/decisions/adr-026.md +56 -0
- package/vault/wiki/decisions/colocate-wiki.md +34 -0
- package/vault/wiki/entities/Anders Hejlsberg.md +29 -0
- package/vault/wiki/entities/Anthropic.md +17 -0
- package/vault/wiki/entities/Augment Code.md +49 -0
- package/vault/wiki/entities/Bjarne Stroustrup.md +26 -0
- package/vault/wiki/entities/Bolt.new (StackBlitz).md +39 -0
- package/vault/wiki/entities/Boris Cherny.md +11 -0
- package/vault/wiki/entities/Claude Code.md +19 -0
- package/vault/wiki/entities/Dennis Ritchie.md +26 -0
- package/vault/wiki/entities/Emergent Labs.md +32 -0
- package/vault/wiki/entities/Google Cloud.md +16 -0
- package/vault/wiki/entities/Guido van Rossum.md +28 -0
- package/vault/wiki/entities/Ken Thompson.md +28 -0
- package/vault/wiki/entities/Lee et al.md +16 -0
- package/vault/wiki/entities/Linus Torvalds.md +28 -0
- package/vault/wiki/entities/Lovable (company).md +40 -0
- package/vault/wiki/entities/Martin Fowler.md +16 -0
- package/vault/wiki/entities/Meng et al.md +16 -0
- package/vault/wiki/entities/OpenAI.md +16 -0
- package/vault/wiki/entities/Rocket.new.md +38 -0
- package/vault/wiki/entities/VILA-Lab.md +15 -0
- package/vault/wiki/entities/autodev-codebase.md +18 -0
- package/vault/wiki/entities/ck-tool.md +59 -0
- package/vault/wiki/entities/codesearch.md +18 -0
- package/vault/wiki/entities/disler-indydevdan.md +33 -0
- package/vault/wiki/entities/gsd-get-shit-done.md +56 -0
- package/vault/wiki/entities/javascript-runtimes.md +48 -0
- package/vault/wiki/entities/jesse-vincent.md +38 -0
- package/vault/wiki/entities/lean-ctx.md +32 -0
- package/vault/wiki/entities/opendev.md +41 -0
- package/vault/wiki/entities/ops-codegraph-tool.md +18 -0
- package/vault/wiki/entities/pi-coding-agent.md +53 -0
- package/vault/wiki/entities/sentrux.md +54 -0
- package/vault/wiki/entities/vgrep-tool.md +57 -0
- package/vault/wiki/entities/vitest.md +41 -0
- package/vault/wiki/flows/harness-wiki-pipeline.md +204 -0
- package/vault/wiki/hot.md +932 -0
- package/vault/wiki/index.md +437 -0
- package/vault/wiki/log.md +418 -0
- package/vault/wiki/meta/dashboard.md +30 -0
- package/vault/wiki/meta/lint-report-2026-04-30.md +86 -0
- package/vault/wiki/meta/lint-report-2026-05-02.md +251 -0
- package/vault/wiki/meta/overview.canvas +43 -0
- package/vault/wiki/modules/adversarial-verification.md +57 -0
- package/vault/wiki/modules/automated-observability.md +54 -0
- package/vault/wiki/modules/bench.md +20 -0
- package/vault/wiki/modules/extensions.md +23 -0
- package/vault/wiki/modules/grounding-checkpoints.md +62 -0
- package/vault/wiki/modules/harness-implementation-plan.md +345 -0
- package/vault/wiki/modules/harness-wiki-skill-mapping.md +135 -0
- package/vault/wiki/modules/harness.md +86 -0
- package/vault/wiki/modules/persistent-memory.md +85 -0
- package/vault/wiki/modules/schema-orchestration.md +68 -0
- package/vault/wiki/modules/skills.md +27 -0
- package/vault/wiki/modules/spec-hardening.md +58 -0
- package/vault/wiki/modules/structured-planning.md +53 -0
- package/vault/wiki/modules/think-in-code-enforcement.md +153 -0
- package/vault/wiki/modules/wiki-query-interface.md +64 -0
- package/vault/wiki/overview.md +51 -0
- package/vault/wiki/questions/Research-pi-vs-claude-code-agentic-orchestration-pipeline.md +87 -0
- package/vault/wiki/questions/Research-sentrux-dev.md +123 -0
- package/vault/wiki/questions/Research-superpowers-skill-for-agentic-coding-agents.md +164 -0
- package/vault/wiki/questions/Research: Augment Code Context Engine.md +244 -0
- package/vault/wiki/questions/Research: Automating Software Engineering - Lovable, Bolt, Emergent, Rocket.md +112 -0
- package/vault/wiki/questions/Research: Claude Code State-of-the-Art Harness Improvements.md +209 -0
- package/vault/wiki/questions/Research: Codex State-of-the-Art Harness Improvements.md +99 -0
- package/vault/wiki/questions/Research: Engineering Workflows of Legendary Programmers and AI Harness Mapping.md +107 -0
- package/vault/wiki/questions/Research: Fallow Codebase Intelligence Harness Integration.md +72 -0
- package/vault/wiki/questions/Research: Gemini CLI SOTA Harness Integration.md +166 -0
- package/vault/wiki/questions/Research: GitHub Issues as Harness Spec Storage.md +188 -0
- package/vault/wiki/questions/Research: Google Antigravity Harness Integration.md +120 -0
- package/vault/wiki/questions/Research: Meta-Agent Context Drift Detection.md +236 -0
- package/vault/wiki/questions/Research: Model-Adaptive Agent Harness Design.md +95 -0
- package/vault/wiki/questions/Research: Model-Specific Prompting Guides.md +165 -0
- package/vault/wiki/questions/Research: Prompt Renderer for Multi-Model Agent Harness.md +216 -0
- package/vault/wiki/questions/Research: Skill-First Harness Architecture.md +91 -0
- package/vault/wiki/questions/Research: TypeScript Best Practices and Codebase Structure.md +88 -0
- package/vault/wiki/questions/Research: TypeScript Execution Layer for Agent Tool Calling.md +81 -0
- package/vault/wiki/questions/Research: claude-mem over Obsidian for Harness Layer.md +71 -0
- package/vault/wiki/questions/Research: claude-mem over obsidian wiki as the knowledge base for our agentic harness pipeline. think from first principles. does this replace or complement our current setup? no hard feelings about previous decisions. gimme accurate points.md +80 -0
- package/vault/wiki/questions/Research: context-mode vs lean-ctx.md +72 -0
- package/vault/wiki/questions/Research: cursor.sh Harness Innovations.md +92 -0
- package/vault/wiki/questions/Research: executor.sh Harness Integration.md +170 -0
- package/vault/wiki/questions/Research: how GSD fits into our coding harness setup.md +97 -0
- package/vault/wiki/questions/Research: how claude-mem fits into our workflow. and whether it should replace obsidian in the codebase. no hard feelings about previous actions, rethink from first principles always.md +80 -0
- package/vault/wiki/questions/Research: pi-vcc.md +113 -0
- package/vault/wiki/questions/Research: semantic code search tools.md +69 -0
- package/vault/wiki/questions/Research: vcc extension for pi coding agent.md +73 -0
- package/vault/wiki/questions/how-to-enable-semantic-code-search-now.md +111 -0
- package/vault/wiki/questions/mvp-implementation-blueprint.md +552 -0
- package/vault/wiki/questions/research-agent-first-codebase-exploration.md +199 -0
- package/vault/wiki/questions/research-agentic-coding-harness-latest-papers.md +142 -0
- package/vault/wiki/questions/research-gitingest-gitreverse-integration.md +100 -0
- package/vault/wiki/questions/research-wozcode-token-reduction.md +67 -0
- package/vault/wiki/questions/resolved-context-pruning-inplace-vs-restart.md +95 -0
- package/vault/wiki/questions/resolved-context-window-economics.md +167 -0
- package/vault/wiki/questions/resolved-imad-debate-gating-transfer.md +126 -0
- package/vault/wiki/questions/resolved-mcp-tool-preference.md +112 -0
- package/vault/wiki/questions/resolved-small-model-meta-agents.md +107 -0
- package/vault/wiki/questions/resolved-treesitter-dynamic-languages.md +95 -0
- package/vault/wiki/sources/Auggie Context MCP Server.md +63 -0
- package/vault/wiki/sources/Augment Code Codacy AI Giants.md +61 -0
- package/vault/wiki/sources/Augment Code MCP SiliconAngle.md +49 -0
- package/vault/wiki/sources/Augment Code WorkOS ERC 2025.md +55 -0
- package/vault/wiki/sources/Augment Context Engine Official.md +71 -0
- package/vault/wiki/sources/Augment SWE-bench Agent GitHub.md +74 -0
- package/vault/wiki/sources/Augment SWE-bench Pro Blog.md +58 -0
- package/vault/wiki/sources/Source: AgentBus Jinja2 Prompt Pipelines.md +75 -0
- package/vault/wiki/sources/Source: Arxiv /342/200/224 Don't Break the Cache.md" +85 -0
- package/vault/wiki/sources/Source: Augment - Harness Engineering for AI Coding Agents.md +58 -0
- package/vault/wiki/sources/Source: Blake Crosley Agent Architecture Guide.md +100 -0
- package/vault/wiki/sources/Source: Bolt.new Architecture & Case Study.md +75 -0
- package/vault/wiki/sources/Source: Build-Time Prompt Compilation Architecture.md +107 -0
- package/vault/wiki/sources/Source: Claude API Agent Skills Overview.md +70 -0
- package/vault/wiki/sources/Source: Gemini CLI Changelogs.md +88 -0
- package/vault/wiki/sources/Source: Google Blog - Gemini CLI Announcement.md +57 -0
- package/vault/wiki/sources/Source: Google Gemini CLI Architecture Docs.md +53 -0
- package/vault/wiki/sources/Source: LangChain - Anatomy of Agent Harness.md +65 -0
- package/vault/wiki/sources/Source: Lovable Architecture & Clone Analysis.md +83 -0
- package/vault/wiki/sources/Source: Martin Fowler - Harness Engineering.md +70 -0
- package/vault/wiki/sources/Source: OpenAI Harness Engineering Five Principles.md +58 -0
- package/vault/wiki/sources/Source: OpenAI Harness Engineering /342/200/224 0 Lines of Human Code.md" +101 -0
- package/vault/wiki/sources/Source: OpenDev /342/200/224 Building AI Coding Agents for the Terminal.md" +100 -0
- package/vault/wiki/sources/Source: Render AI Coding Agents Benchmark 2025.md +53 -0
- package/vault/wiki/sources/Source: Rocket.new /342/200/224 Vibe Solutioning Platform.md" +70 -0
- package/vault/wiki/sources/Source: SwirlAI Agent Skills Progressive Disclosure.md +71 -0
- package/vault/wiki/sources/Source: TianPan Prompt Caching Architecture.md +89 -0
- package/vault/wiki/sources/Source: Vercel Labs agent-browser.md +155 -0
- package/vault/wiki/sources/Source: browser-harness CDP Harness.md +126 -0
- package/vault/wiki/sources/agent-drift-academic-paper.md +79 -0
- package/vault/wiki/sources/aider-repomap-tree-sitter.md +42 -0
- package/vault/wiki/sources/anthropic-compaction-api.md +58 -0
- package/vault/wiki/sources/anthropic-effective-harnesses.md +42 -0
- package/vault/wiki/sources/anthropic-prompt-best-practices.md +100 -0
- package/vault/wiki/sources/anthropic2026-harness-design.md +63 -0
- package/vault/wiki/sources/barrel-files-tkdodo.md +38 -0
- package/vault/wiki/sources/birth-of-unix-kernighan-interview.md +57 -0
- package/vault/wiki/sources/bockeler2026-harness-engineering.md +69 -0
- package/vault/wiki/sources/cast-code-chunking-paper.md +50 -0
- package/vault/wiki/sources/ck-semantic-search.md +78 -0
- package/vault/wiki/sources/claude-code-architecture-karaxai-2026.md +71 -0
- package/vault/wiki/sources/claude-code-architecture-qubytes-2026.md +50 -0
- package/vault/wiki/sources/claude-code-architecture-vila-lab-2026.md +64 -0
- package/vault/wiki/sources/claude-code-security-architecture-penligent-2026.md +70 -0
- package/vault/wiki/sources/claude-context-editing-docs.md +13 -0
- package/vault/wiki/sources/cloudflare-codemode.md +63 -0
- package/vault/wiki/sources/code-chunk-library-supermemory.md +63 -0
- package/vault/wiki/sources/codeact-apple-2024.md +62 -0
- package/vault/wiki/sources/codex-dsc-rfc-8573.md +41 -0
- package/vault/wiki/sources/codex-open-source-agent-2026.md +110 -0
- package/vault/wiki/sources/coir-code-retrieval-benchmark.md +51 -0
- package/vault/wiki/sources/colinmcnamara-context-optimization-codemode.md +48 -0
- package/vault/wiki/sources/context-folding-paper.md +61 -0
- package/vault/wiki/sources/context-mode-website.md +63 -0
- package/vault/wiki/sources/cursor-agent-best-practices-2026.md +62 -0
- package/vault/wiki/sources/cursor-fork-29b-2025.md +50 -0
- package/vault/wiki/sources/cursor-harness-april-2026.md +76 -0
- package/vault/wiki/sources/cursor-instant-apply-2024.md +45 -0
- package/vault/wiki/sources/cursor-shadow-workspace-2024.md +52 -0
- package/vault/wiki/sources/cursor-shipped-coding-agent-2026.md +53 -0
- package/vault/wiki/sources/cursor-vs-antigravity-2026.md +51 -0
- package/vault/wiki/sources/disler-pi-vs-claude-code.md +69 -0
- package/vault/wiki/sources/distill-deterministic-context-compression.md +53 -0
- package/vault/wiki/sources/embedding-models-benchmark-supermemory-2025.md +48 -0
- package/vault/wiki/sources/executor-rhyssullivan.md +122 -0
- package/vault/wiki/sources/fallow-rs-codebase-intelligence.md +125 -0
- package/vault/wiki/sources/fan2025-imad.md +60 -0
- package/vault/wiki/sources/forgecode-gpt5-agent-improvements.md +63 -0
- package/vault/wiki/sources/gemini-3-prompting-guide.md +78 -0
- package/vault/wiki/sources/gh-cli-sub-issue-rfc.md +50 -0
- package/vault/wiki/sources/gh-sub-issue-extension.md +72 -0
- package/vault/wiki/sources/github-fork-issues-discussion.md +44 -0
- package/vault/wiki/sources/github-issue-dependencies-docs.md +49 -0
- package/vault/wiki/sources/github-sub-issues-docs.md +51 -0
- package/vault/wiki/sources/gitingest.md +91 -0
- package/vault/wiki/sources/gitreverse.md +63 -0
- package/vault/wiki/sources/google-antigravity-official-blog.md +47 -0
- package/vault/wiki/sources/google-antigravity-wikipedia.md +53 -0
- package/vault/wiki/sources/gsd-codecentric-deep-dive.md +57 -0
- package/vault/wiki/sources/gsd-github-repo.md +51 -0
- package/vault/wiki/sources/gsd-hn-discussion.md +59 -0
- package/vault/wiki/sources/guido-python-design-philosophy.md +56 -0
- package/vault/wiki/sources/hejlsberg-7-learnings.md +48 -0
- package/vault/wiki/sources/ironclaw-drift-monitor.md +80 -0
- package/vault/wiki/sources/langsight-loop-detection.md +80 -0
- package/vault/wiki/sources/leanctx-website.md +69 -0
- package/vault/wiki/sources/lee2026-meta-harness.md +59 -0
- package/vault/wiki/sources/linux-kernel-coding-workflow.md +50 -0
- package/vault/wiki/sources/lou2026-autoharness.md +53 -0
- package/vault/wiki/sources/martin-fowler-harness-engineering.md +73 -0
- package/vault/wiki/sources/mcp-architecture-docs.md +13 -0
- package/vault/wiki/sources/meng2026-agent-harness-survey.md +79 -0
- package/vault/wiki/sources/mindstudio-four-agent-types.md +68 -0
- package/vault/wiki/sources/ms-chat-history-management.md +13 -0
- package/vault/wiki/sources/openai-prompt-guidance.md +104 -0
- package/vault/wiki/sources/openclaw-session-pruning.md +13 -0
- package/vault/wiki/sources/opencode-dcp.md +13 -0
- package/vault/wiki/sources/opendev-arxiv-2603.05344v1.md +79 -0
- package/vault/wiki/sources/openhands-platform.md +39 -0
- package/vault/wiki/sources/oss-guide-codebase-exploration.md +53 -0
- package/vault/wiki/sources/pi-compaction-extensions-ecosystem.md +102 -0
- package/vault/wiki/sources/pi-context-prune-github-repo.md +38 -0
- package/vault/wiki/sources/pi-mono-compaction-docs.md +38 -0
- package/vault/wiki/sources/pi-omni-compact-github-repo.md +50 -0
- package/vault/wiki/sources/pi-rtk-optimizer-github-repo.md +45 -0
- package/vault/wiki/sources/pi-vcc-github-repo.md +69 -0
- package/vault/wiki/sources/pi-vscode-marketplace.md +41 -0
- package/vault/wiki/sources/pi-vscode-model-provider-marketplace.md +39 -0
- package/vault/wiki/sources/py-tree-sitter.md +13 -0
- package/vault/wiki/sources/sentrux-dev-landing.md +40 -0
- package/vault/wiki/sources/sentrux-docs-pro-architecture.md +75 -0
- package/vault/wiki/sources/sentrux-docs-quality-signal.md +46 -0
- package/vault/wiki/sources/sentrux-docs-root-cause-metrics.md +57 -0
- package/vault/wiki/sources/sentrux-docs-rules-engine.md +58 -0
- package/vault/wiki/sources/sentrux-github-repo.md +56 -0
- package/vault/wiki/sources/superpowers-github-repo.md +56 -0
- package/vault/wiki/sources/superpowers-release-blog.md +54 -0
- package/vault/wiki/sources/superpowers-termdock-analysis.md +45 -0
- package/vault/wiki/sources/swe-agent-aci.md +42 -0
- package/vault/wiki/sources/swe-bench.md +45 -0
- package/vault/wiki/sources/swe-pruner-context-pruning.md +13 -0
- package/vault/wiki/sources/think-in-code-blog.md +48 -0
- package/vault/wiki/sources/tree-sitter-docs.md +13 -0
- package/vault/wiki/sources/ts-best-practices-2025-devto.md +42 -0
- package/vault/wiki/sources/ts-folder-structure-mingyang.md +58 -0
- package/vault/wiki/sources/ts-monorepo-koerselman.md +44 -0
- package/vault/wiki/sources/ts-result-error-handling-kkalamarski.md +52 -0
- package/vault/wiki/sources/ts-runtimes-comparison-betterstack.md +42 -0
- package/vault/wiki/sources/ts-strict-mode-rishikc.md +43 -0
- package/vault/wiki/sources/unix-philosophy.md +48 -0
- package/vault/wiki/sources/vectara-chunking-vs-embedding-naacl2025.md +39 -0
- package/vault/wiki/sources/vectara-guardian-agents.md +79 -0
- package/vault/wiki/sources/vgrep-semantic-search.md +76 -0
- package/vault/wiki/sources/vitest-official.md +41 -0
- package/vault/wiki/sources/vscode-pi-community-extension.md +40 -0
- package/vault/wiki/sources/wozcode.md +79 -0
- package/.agents/skills/compress/SKILL.md +0 -111
- package/.agents/skills/compress/scripts/__init__.py +0 -9
- package/.agents/skills/compress/scripts/__main__.py +0 -3
- package/.agents/skills/compress/scripts/benchmark.py +0 -78
- package/.agents/skills/compress/scripts/cli.py +0 -73
- package/.agents/skills/compress/scripts/compress.py +0 -227
- package/.agents/skills/compress/scripts/detect.py +0 -121
- package/.agents/skills/compress/scripts/validate.py +0 -189
- package/.agents/skills/emil-design-eng/SKILL.md +0 -679
- package/.agents/skills/lean-ctx/SKILL.md +0 -149
- package/.agents/skills/lean-ctx/scripts/install.sh +0 -95
- package/.agents/skills/scrapling-official/LICENSE.txt +0 -28
- package/.agents/skills/scrapling-official/SKILL.md +0 -390
- package/.agents/skills/scrapling-official/examples/01_fetcher_session.py +0 -26
- package/.agents/skills/scrapling-official/examples/02_dynamic_session.py +0 -26
- package/.agents/skills/scrapling-official/examples/03_stealthy_session.py +0 -26
- package/.agents/skills/scrapling-official/examples/04_spider.py +0 -58
- package/.agents/skills/scrapling-official/examples/README.md +0 -45
- package/.agents/skills/scrapling-official/references/fetching/choosing.md +0 -78
- package/.agents/skills/scrapling-official/references/fetching/dynamic.md +0 -352
- package/.agents/skills/scrapling-official/references/fetching/static.md +0 -432
- package/.agents/skills/scrapling-official/references/fetching/stealthy.md +0 -255
- package/.agents/skills/scrapling-official/references/mcp-server.md +0 -214
- package/.agents/skills/scrapling-official/references/migrating_from_beautifulsoup.md +0 -86
- package/.agents/skills/scrapling-official/references/parsing/adaptive.md +0 -212
- package/.agents/skills/scrapling-official/references/parsing/main_classes.md +0 -586
- package/.agents/skills/scrapling-official/references/parsing/selection.md +0 -494
- package/.agents/skills/scrapling-official/references/spiders/advanced.md +0 -344
- package/.agents/skills/scrapling-official/references/spiders/architecture.md +0 -94
- package/.agents/skills/scrapling-official/references/spiders/getting-started.md +0 -164
- package/.agents/skills/scrapling-official/references/spiders/proxy-blocking.md +0 -235
- package/.agents/skills/scrapling-official/references/spiders/requests-responses.md +0 -196
- package/.agents/skills/scrapling-official/references/spiders/sessions.md +0 -205
- package/PLAN.md +0 -11
- package/extensions/lean-ctx-enforce.ts +0 -166
- package/skills-lock.json +0 -35
- package/wiki/README.md +0 -19
- package/wiki/decisions/0001-establish-project-wiki-and-decision-record-format.md +0 -25
- package/wiki/decisions/0002-add-project-banner-to-readme.md +0 -26
- package/wiki/decisions/0003-remove-redundant-readme-title-heading.md +0 -26
- package/wiki/decisions/0004-publish-package-to-npm-as-ultimate-pi.md +0 -26
- package/wiki/decisions/0005-automate-npm-publish-with-github-actions.md +0 -27
- package/wiki/decisions/0006-switch-to-npm-trusted-publishing.md +0 -26
- package/wiki/decisions/0007-use-absolute-banner-url-for-npm-readme-rendering.md +0 -26
- package/wiki/decisions/0008-rename-banner-asset-for-cache-busting.md +0 -26
- package/wiki/decisions/0009-force-oidc-path-by-clearing-node-auth-token-in-publish-step.md +0 -25
- package/wiki/decisions/0010-simplify-setup-node-for-npm-trusted-publishing.md +0 -26
- package/wiki/decisions/0011-add-noop-workflow-change-to-force-fresh-publish-run.md +0 -25
- package/wiki/decisions/0012-align-workflow-runtime-with-npm-trusted-publishing-requirements.md +0 -26
- package/wiki/decisions/0013-add-package-repository-url-for-provenance-validation.md +0 -25
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
---
|
|
2
|
+
type: concept
|
|
3
|
+
title: "browser-harness — Self-Healing CDP Harness"
|
|
4
|
+
status: developing
|
|
5
|
+
created: 2026-05-02
|
|
6
|
+
updated: 2026-05-02
|
|
7
|
+
tags:
|
|
8
|
+
- browser-automation
|
|
9
|
+
- cdp
|
|
10
|
+
- headless-browser
|
|
11
|
+
- browser-harness
|
|
12
|
+
aliases: ["browser-harness", "CDP harness"]
|
|
13
|
+
related:
|
|
14
|
+
- "[[browser-subagent-visual-verification]]"
|
|
15
|
+
- "[[harness-implementation-plan]]"
|
|
16
|
+
- "[[Source: browser-harness CDP Harness]]"
|
|
17
|
+
sources:
|
|
18
|
+
- "[[Source: browser-harness CDP Harness]]"
|
|
19
|
+
|
|
20
|
+
---# browser-harness — Self-Healing CDP Harness
|
|
21
|
+
|
|
22
|
+
Cutting-edge SOTA thin CDP harness by browser-use (9.4K GitHub stars, MIT, Python). Connects LLMs directly to Chrome via one WebSocket — nothing between. Self-healing: the agent writes missing helper functions mid-execution.
|
|
23
|
+
|
|
24
|
+
## Core Idea
|
|
25
|
+
|
|
26
|
+
No Puppeteer. No Playwright. No pre-baked helpers. Just raw Chrome DevTools Protocol over a WebSocket. The agent calls `session.Page.navigate()`, `session.Input.dispatchMouseEvent()` — exactly what CDP provides, nothing hidden.
|
|
27
|
+
|
|
28
|
+
When the agent encounters a missing interaction pattern, it writes the helper itself in `agent-workspace/agent_helpers.py`. The harness improves itself every run.
|
|
29
|
+
|
|
30
|
+
## Architecture
|
|
31
|
+
|
|
32
|
+
- **browser-harness** (Python, 9.4K stars): ~592 lines of core. Agent-editable workspace + domain skills.
|
|
33
|
+
- **browser-harness-js** (TypeScript, 428 stars): 652 typed CDP methods. Bun-native REPL. `npx skills add` install.
|
|
34
|
+
|
|
35
|
+
## Key Properties
|
|
36
|
+
|
|
37
|
+
- **Minimal**: ~592 lines of Python. One WebSocket to Chrome.
|
|
38
|
+
- **Self-healing**: Agent writes missing helpers mid-task.
|
|
39
|
+
- **CDP-native**: 56+ domains, 652+ methods — no wrappers, no abstraction.
|
|
40
|
+
- **Agent-editable**: `agent_helpers.py` and `domain-skills/` designed for agent modification.
|
|
41
|
+
- **No version drift**: Auto-generated from Chrome protocol JSON.
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
---
|
|
2
|
+
type: concept
|
|
3
|
+
title: "Browser Subagent for Visual Verification"
|
|
4
|
+
status: developing
|
|
5
|
+
created: 2026-05-01
|
|
6
|
+
updated: 2026-05-02
|
|
7
|
+
tags:
|
|
8
|
+
- antigravity
|
|
9
|
+
- browser-automation
|
|
10
|
+
- visual-verification
|
|
11
|
+
- tools
|
|
12
|
+
- agent-browser
|
|
13
|
+
aliases: ["headless browser agent", "visual verification subagent"]
|
|
14
|
+
related:
|
|
15
|
+
- "[[agentic-harness]]"
|
|
16
|
+
- "[[harness-implementation-plan]]"
|
|
17
|
+
- "[[grounding-checkpoints]]"
|
|
18
|
+
- "[[agent-browser-browser-automation]]"
|
|
19
|
+
sources:
|
|
20
|
+
- "[[cursor-vs-antigravity-2026]]"
|
|
21
|
+
- "[[google-antigravity-official-blog]]"
|
|
22
|
+
- "[[Source: Vercel Labs agent-browser]]"
|
|
23
|
+
---
|
|
24
|
+
|
|
25
|
+
# Browser Subagent for Visual Verification
|
|
26
|
+
|
|
27
|
+
Antigravity's most distinctive technical capability: an agent subprocess that drives a headless Chromium browser to visually verify UI changes.
|
|
28
|
+
|
|
29
|
+
## How It Works
|
|
30
|
+
|
|
31
|
+
1. Agent makes a code change (e.g., CSS fix)
|
|
32
|
+
2. Agent spins up local dev server
|
|
33
|
+
3. Browser subagent opens headless Chrome
|
|
34
|
+
4. Subagent navigates to the affected page
|
|
35
|
+
5. Takes before/after screenshots
|
|
36
|
+
6. Uses vision-optimized models to analyze pixel differences
|
|
37
|
+
7. Verifies the fix worked visually
|
|
38
|
+
8. Reports results with screenshot evidence
|
|
39
|
+
|
|
40
|
+
## Why This Is Revolutionary
|
|
41
|
+
|
|
42
|
+
Traditional coding agents are **blind**. They reason about code as text but cannot see what it produces. A CSS change that "looks right" to the model may look completely wrong in the browser. The browser subagent closes this loop.
|
|
43
|
+
|
|
44
|
+
## Use Cases
|
|
45
|
+
|
|
46
|
+
- **CSS/UI fixes**: Agent sees if padding/margins/layout actually work
|
|
47
|
+
- **Visual regression testing**: Before/after screenshots as verifiable artifacts
|
|
48
|
+
- **Cross-device verification**: Test at different viewport sizes
|
|
49
|
+
- **Form interaction testing**: Click buttons, fill forms, verify behavior
|
|
50
|
+
- **Login flow testing**: Automate auth flows end-to-end
|
|
51
|
+
|
|
52
|
+
## Gap in Our Harness
|
|
53
|
+
|
|
54
|
+
Our harness has **no browser control capability**. All verification is:
|
|
55
|
+
- **Syntax-level** (P11 inline validation, P20 lint/format)
|
|
56
|
+
- **Semantic-level** (L4 adversarial critic)
|
|
57
|
+
- **Observability-level** (L5 metrics)
|
|
58
|
+
|
|
59
|
+
None of this can verify that a UI change actually produced the correct visual result.
|
|
60
|
+
|
|
61
|
+
## Proposed Integration: Phase P30
|
|
62
|
+
|
|
63
|
+
Add a **Browser Subagent** to the tool registry:
|
|
64
|
+
- `lib/harness-browser.ts` — agent-browser driving headless Chrome via Rust daemon
|
|
65
|
+
- `extensions/harness-browser.ts` — Extension hook: after UI-related edits, optionally trigger visual verification
|
|
66
|
+
- Configurable: `.pi/harness/browser.json` — enable/disable, screenshot directories, viewport configs
|
|
67
|
+
|
|
68
|
+
The browser subagent operates as a specialized subagent (P25 router dispatches UI tasks to it). It reports results as artifacts (P31).
|
|
69
|
+
|
|
70
|
+
> [!update] May 2026: Replaced browser-harness (9.4K stars, Python) with **Vercel Labs agent-browser** (31.4K stars, Apache 2.0, Rust-native). agent-browser provides richer AI agent integration: snapshot + refs workflow, annotated screenshots, structured diff, React introspection, Web Vitals, batch mode, and built-in skills system. See [[agent-browser-browser-automation]] and [[Source: Vercel Labs agent-browser]].
|
|
71
|
+
|
|
72
|
+
### Why agent-browser over browser-harness
|
|
73
|
+
|
|
74
|
+
| Feature | browser-harness | agent-browser |
|
|
75
|
+
|---------|----------------|---------------|
|
|
76
|
+
| **Ecosystem** | 9.4K stars, Python | 31.4K stars, Rust-native binary |
|
|
77
|
+
| **Agent workflow** | Raw CDP — agent writes helpers | Snapshot + @eN refs — purpose-built |
|
|
78
|
+
| **Visual diff** | None | `diff screenshot --baseline before.png` |
|
|
79
|
+
| **Annotated screenshots** | None | `--annotate` with numbered labels |
|
|
80
|
+
| **Skills system** | None | `skills get core`, `npx skills add` |
|
|
81
|
+
| **Batch mode** | None | Multi-command single invocation |
|
|
82
|
+
| **Install** | `uv add browser-harness` (Python dep) | `npm install -g agent-browser` (single binary) |
|
|
@@ -0,0 +1,192 @@
|
|
|
1
|
+
---
|
|
2
|
+
type: concept
|
|
3
|
+
title: "Codebase Intelligence Ecosystem Comparison"
|
|
4
|
+
created: 2026-05-01
|
|
5
|
+
updated: 2026-05-01
|
|
6
|
+
status: developing
|
|
7
|
+
tags:
|
|
8
|
+
- harness
|
|
9
|
+
- codebase-intelligence
|
|
10
|
+
- static-analysis
|
|
11
|
+
- dead-code
|
|
12
|
+
- ecosystem
|
|
13
|
+
- comparison
|
|
14
|
+
related:
|
|
15
|
+
- "[[fallow-rs-codebase-intelligence]]"
|
|
16
|
+
- "[[Research: Fallow Codebase Intelligence Harness Integration]]"
|
|
17
|
+
- "[[codebase-intelligence-harness-integration]]"
|
|
18
|
+
- "[[harness-implementation-plan]]"
|
|
19
|
+
sources:
|
|
20
|
+
- "[[fallow-rs-codebase-intelligence]]"
|
|
21
|
+
|
|
22
|
+
---# Codebase Intelligence Ecosystem Comparison
|
|
23
|
+
|
|
24
|
+
Comparison of codebase intelligence tools across TypeScript/JavaScript, Python, Go, Rust, and Elixir ecosystems. Focus: tools that provide project-wide dead code detection, duplication analysis, complexity scoring, and architecture boundary enforcement — the capabilities a coding agent harness needs for deterministic quality gating.
|
|
25
|
+
|
|
26
|
+
## TypeScript / JavaScript
|
|
27
|
+
|
|
28
|
+
### Fallow (fallow-rs/fallow) — PRIMARY RECOMMENDED
|
|
29
|
+
- **Coverage**: Dead code, duplication, complexity, boundaries, runtime intelligence
|
|
30
|
+
- **Speed**: Sub-second (Rust-native)
|
|
31
|
+
- **Agent integration**: MCP server, JSON output with actions array, agent skill
|
|
32
|
+
- **Stars**: 1.7K
|
|
33
|
+
- **License**: MIT
|
|
34
|
+
- **Limitation**: Syntactic only (no type-level dead code). TS/JS only.
|
|
35
|
+
- **Status**: Adopted for P44 in harness implementation plan.
|
|
36
|
+
|
|
37
|
+
### knip (webpro-nl/knip)
|
|
38
|
+
- **Coverage**: Dead code detection (files, exports, dependencies, types)
|
|
39
|
+
- **Speed**: Slower than fallow (2-13x on benchmarks). v6 improved but still behind.
|
|
40
|
+
- **Agent integration**: JSON output, no MCP server
|
|
41
|
+
- **Stars**: ~7K
|
|
42
|
+
- **Status**: Legacy reference. fallow beats it on speed, features, and agent integration.
|
|
43
|
+
|
|
44
|
+
### ts-prune
|
|
45
|
+
- **Coverage**: Unused exports only
|
|
46
|
+
- **Speed**: Fast but narrow scope
|
|
47
|
+
- **Status**: Superseded by fallow/knip for comprehensive analysis.
|
|
48
|
+
|
|
49
|
+
### jscpd
|
|
50
|
+
- **Coverage**: Duplication detection
|
|
51
|
+
- **Speed**: 8-26x slower than fallow
|
|
52
|
+
- **Status**: Legacy reference.
|
|
53
|
+
|
|
54
|
+
## Python
|
|
55
|
+
|
|
56
|
+
### Vulture (jendrikseipp/vulture)
|
|
57
|
+
- **Coverage**: Dead code detection (unused functions, variables, classes, imports)
|
|
58
|
+
- **Method**: AST-based static analysis
|
|
59
|
+
- **Limitations**: Python's dynamic nature causes false positives. No cross-file import graph traversal. No duplication or complexity analysis.
|
|
60
|
+
- **Stars**: ~3.5K
|
|
61
|
+
- **Agent integration**: CLI only, JSON output available
|
|
62
|
+
- **Harness relevance**: Partial P44 coverage for Python projects. Combine with other tools.
|
|
63
|
+
|
|
64
|
+
### Skylos (duriantaco/skylos)
|
|
65
|
+
- **Coverage**: Multi-language SAST (Python, TS, JS, Go, Java, PHP, Rust)
|
|
66
|
+
- **Features**: Dead code, security scanning, secrets detection, AI code guardrails
|
|
67
|
+
- **Method**: CI/CD PR gate, local-first
|
|
68
|
+
- **Agent integration**: JSON output, VS Code extension
|
|
69
|
+
- **Harness relevance**: Most comprehensive Python dead code tool. Multi-language support valuable for harness.
|
|
70
|
+
|
|
71
|
+
### Ruff (astral-sh/ruff)
|
|
72
|
+
- **Coverage**: Linting + formatting (Rust-native)
|
|
73
|
+
- **Speed**: 10-100x faster than flake8
|
|
74
|
+
- **Limitations**: File-local only. No cross-file dead code detection. No duplication or boundaries.
|
|
75
|
+
- **Agent integration**: CLI, JSON output
|
|
76
|
+
- **Harness relevance**: Inline syntax validation (P11). Complements but doesn't replace fallow-equivalent.
|
|
77
|
+
|
|
78
|
+
### Py-spy (benfred/py-spy)
|
|
79
|
+
- **Coverage**: Sampling profiler for Python
|
|
80
|
+
- **Harness relevance**: Runtime intelligence equivalent of fallow runtime (hot path detection)
|
|
81
|
+
|
|
82
|
+
### pydeps (thebjorn/pydeps)
|
|
83
|
+
- **Coverage**: Module dependency graph visualization
|
|
84
|
+
- **Method**: Import graph traversal
|
|
85
|
+
- **Harness relevance**: Dead file detection via import graph. Graphical output, not structured JSON.
|
|
86
|
+
|
|
87
|
+
### Coverage.py + pytest-cov
|
|
88
|
+
- **Coverage**: Runtime test coverage
|
|
89
|
+
- **Harness relevance**: Runtime intelligence layer (akin to fallow's V8 coverage integration)
|
|
90
|
+
|
|
91
|
+
## Go
|
|
92
|
+
|
|
93
|
+
### deadcode (golang.org/x/tools/cmd/deadcode)
|
|
94
|
+
- **Coverage**: Unreachable function detection
|
|
95
|
+
- **Method**: Quick inspection of all packages in a Go program. Call graph analysis from main entry points.
|
|
96
|
+
- **Built by**: Alan Donovan (Go team), Dec 2023
|
|
97
|
+
- **Limitations**: Functions only. No exports check, no duplication, no complexity, no boundaries.
|
|
98
|
+
- **Agent integration**: CLI only
|
|
99
|
+
- **Harness relevance**: Official Go dead code tool. Narrow scope.
|
|
100
|
+
|
|
101
|
+
### Staticcheck (dominikh/go-tools)
|
|
102
|
+
- **Coverage**: Bugs, performance issues, simplifications, style rules, unused code
|
|
103
|
+
- **Method**: Static analysis. Most comprehensive Go linter.
|
|
104
|
+
- **Agent integration**: JSON output via golangci-lint wrapper
|
|
105
|
+
- **Stars**: ~7K (go-tools monorepo)
|
|
106
|
+
- **Harness relevance**: Best single Go static analysis tool. Covers dead code + quality.
|
|
107
|
+
|
|
108
|
+
### golangci-lint
|
|
109
|
+
- **Coverage**: Meta-linter wrapping 50+ Go linters
|
|
110
|
+
- **Includes**: staticcheck, unused, deadcode, errcheck, govet
|
|
111
|
+
- **Agent integration**: JSON, SARIF, GitHub annotations
|
|
112
|
+
- **Harness relevance**: One-command quality gate for Go projects.
|
|
113
|
+
|
|
114
|
+
### unused (dominikh)
|
|
115
|
+
- **Coverage**: Unused identifiers (constants, variables, functions, types, fields)
|
|
116
|
+
- **Method**: Part of staticcheck suite
|
|
117
|
+
- **Harness relevance**: Dead code detection for Go. Redundant if using golangci-lint with staticcheck.
|
|
118
|
+
|
|
119
|
+
## Rust
|
|
120
|
+
|
|
121
|
+
### cargo-udeps (est31/cargo-udeps)
|
|
122
|
+
- **Coverage**: Unused dependencies in Cargo.toml
|
|
123
|
+
- **Method**: Compiler-level analysis. Requires nightly.
|
|
124
|
+
- **Harness relevance**: Dedicated unused dep tool. Complements built-in rustc warnings.
|
|
125
|
+
|
|
126
|
+
### cargo-machete (bnjbvr/cargo-machete)
|
|
127
|
+
- **Coverage**: Unused dependencies (fast path)
|
|
128
|
+
- **Method**: Regex-based pre-check. Works on stable Rust.
|
|
129
|
+
- **Harness relevance**: Faster alternative to cargo-udeps. Pair with udeps for accuracy.
|
|
130
|
+
|
|
131
|
+
### Built-in Rust compiler warnings
|
|
132
|
+
- `#[warn(dead_code)]`, `#[warn(unused_imports)]`, `cargo clippy`
|
|
133
|
+
- **Coverage**: In-crate dead code. No cross-crate dependency checking.
|
|
134
|
+
- **Harness relevance**: Foundation layer. `cargo clippy -- -D warnings` as CI gate.
|
|
135
|
+
|
|
136
|
+
### cargo-deny (EmbarkStudios/cargo-deny)
|
|
137
|
+
- **Coverage**: License compliance, security advisories, duplicate dependencies
|
|
138
|
+
- **Harness relevance**: Dependency audit layer. Complements udeps/machete.
|
|
139
|
+
|
|
140
|
+
### rust-code-analysis (mozilla/rust-code-analysis)
|
|
141
|
+
- **Coverage**: Code complexity metrics (cyclomatic, cognitive, LOC, HALSTEAD)
|
|
142
|
+
- **Method**: Mozilla's tool. Supports Rust, C/C++, JS, Python.
|
|
143
|
+
- **Harness relevance**: Complexity analysis for Rust (fallow-equivalent health scores)
|
|
144
|
+
|
|
145
|
+
## Elixir
|
|
146
|
+
|
|
147
|
+
### Dialyzer (via dialyxir: jeremyjh/dialyxir)
|
|
148
|
+
- **Coverage**: Type errors, dead code, unreachable code, unnecessary tests
|
|
149
|
+
- **Method**: Static analysis of BEAM bytecode. Requires typespecs for best results.
|
|
150
|
+
- **Limitations**: Slow (bytecode analysis). Setup required. False positives on dynamic code patterns.
|
|
151
|
+
- **Harness relevance**: Primary Elixir dead code detection. Dialyxir adds Elixir-friendly interface.
|
|
152
|
+
|
|
153
|
+
### Credo (rrrene/credo)
|
|
154
|
+
- **Coverage**: Code smells, style issues, refactoring opportunities, consistency
|
|
155
|
+
- **Method**: AST-based static analysis. Teaching-focused.
|
|
156
|
+
- **Stars**: ~4.9K
|
|
157
|
+
- **Agent integration**: JSON output, check-style format
|
|
158
|
+
- **Harness relevance**: Linting + code smell detection. Complements Dialyzer for quality gating.
|
|
159
|
+
|
|
160
|
+
### Sobelow (nccgroup/sobelow)
|
|
161
|
+
- **Coverage**: Security-focused static analysis for Phoenix
|
|
162
|
+
- **Harness relevance**: Security layer for Elixir/Phoenix projects
|
|
163
|
+
|
|
164
|
+
### CodeScene
|
|
165
|
+
- **Coverage**: Behavioral code analysis (git history + complexity + social factors)
|
|
166
|
+
- **Harness relevance**: L5 observability (hotspots, bus factor). Not Elixir-specific.
|
|
167
|
+
|
|
168
|
+
## Gap Analysis: No Ecosystem Has a Fallow Equivalent
|
|
169
|
+
|
|
170
|
+
| Capability | TS/JS (fallow) | Python | Go | Rust | Elixir |
|
|
171
|
+
|---|---|---|---|---|---|
|
|
172
|
+
| Dead code (unused files) | ✅ | Vulture (partial) | deadcode (functions only) | cargo-udeps (deps only) | Dialyzer (unreachable) |
|
|
173
|
+
| Dead code (unused exports) | ✅ | ❌ No tool | ❌ No tool | ❌ No tool | ❌ No tool |
|
|
174
|
+
| Duplication detection | ✅ | ❌ No tool | ❌ No tool | ❌ No tool | ❌ No tool |
|
|
175
|
+
| Complexity scoring | ✅ | Radon/wily | gocyclo | rust-code-analysis | Credo (partial) |
|
|
176
|
+
| Architecture boundaries | ✅ | ❌ No tool | ❌ No tool | ❌ No tool | ❌ No tool |
|
|
177
|
+
| Runtime intelligence | ✅ (paid) | py-spy + coverage.py | pprof | perf/flamegraph | observer_cli |
|
|
178
|
+
| MCP server for agents | ✅ | ❌ | ❌ | ❌ | ❌ |
|
|
179
|
+
| Audit mode (changed files) | ✅ | ❌ | ❌ | ❌ | ❌ |
|
|
180
|
+
| Single unified tool | ✅ | ❌ | ❌ | ❌ | ❌ |
|
|
181
|
+
|
|
182
|
+
**Key finding**: Fallow is the ONLY codebase intelligence tool across all five ecosystems that provides dead code + duplication + complexity + boundaries in a single, fast, agent-integrated package. Every other ecosystem requires combining 3-5 separate tools to achieve similar coverage.
|
|
183
|
+
|
|
184
|
+
## Harness Multi-Language Strategy
|
|
185
|
+
|
|
186
|
+
For a multi-language harness, the approach is:
|
|
187
|
+
|
|
188
|
+
1. **TS/JS**: `fallow` — single-command comprehensive gate
|
|
189
|
+
2. **Python**: `skylos` (dead code + security) + `ruff` (lint) + `radon` (complexity) + `coverage.py` (runtime)
|
|
190
|
+
3. **Go**: `golangci-lint` (all-in-one lint + dead code) + `gocyclo` (complexity) + `deadcode` (unreachable functions)
|
|
191
|
+
4. **Rust**: `cargo clippy` (lint + dead code) + `cargo-udeps` (unused deps) + `rust-code-analysis` (complexity) + `cargo-deny` (audit)
|
|
192
|
+
5. **Elixir**: `mix test` + `credo` (lint) + `dialyxir` (dead code + types) + `sobelow` (security)
|
|
@@ -0,0 +1,161 @@
|
|
|
1
|
+
---
|
|
2
|
+
type: concept
|
|
3
|
+
title: "Codebase Intelligence Harness Integration"
|
|
4
|
+
created: 2026-05-01
|
|
5
|
+
updated: 2026-05-01
|
|
6
|
+
status: developing
|
|
7
|
+
tags:
|
|
8
|
+
- harness
|
|
9
|
+
- codebase-intelligence
|
|
10
|
+
- fallow
|
|
11
|
+
- quality-gate
|
|
12
|
+
- static-analysis
|
|
13
|
+
related:
|
|
14
|
+
- "[[fallow-rs-codebase-intelligence]]"
|
|
15
|
+
- "[[Research: Fallow Codebase Intelligence Harness Integration]]"
|
|
16
|
+
- "[[codebase-intelligence-ecosystem-comparison]]"
|
|
17
|
+
- "[[harness-implementation-plan]]"
|
|
18
|
+
- "[[adr-010]]"
|
|
19
|
+
sources:
|
|
20
|
+
- "[[fallow-rs-codebase-intelligence]]"
|
|
21
|
+
|
|
22
|
+
---# Codebase Intelligence Harness Integration
|
|
23
|
+
|
|
24
|
+
How deterministic codebase intelligence tools (primary: fallow for TS/JS) integrate into the ultimate-pi 8-layer agentic harness pipeline. Fallow is NOT an AI tool — it is the codebase truth layer the agent calls for deterministic quality signals.
|
|
25
|
+
|
|
26
|
+
## Integration Points
|
|
27
|
+
|
|
28
|
+
### 1. L3 Execution Layer — Agent Tool Calling (P44a)
|
|
29
|
+
|
|
30
|
+
During task execution, the agent calls fallow as an L3 tool for real-time feedback:
|
|
31
|
+
|
|
32
|
+
```
|
|
33
|
+
Agent: "I've finished editing files. Let me check quality."
|
|
34
|
+
→ npx fallow --format json
|
|
35
|
+
→ Parse: "2 new unused exports, 1 circular dependency introduced"
|
|
36
|
+
→ Agent: Fix before presenting result
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
Integration:
|
|
40
|
+
- MCP server bundled in fallow npm package
|
|
41
|
+
- Tool registration in harness MCP registry
|
|
42
|
+
- Agent skill for fallow workflow guidance (`fallow-skills`)
|
|
43
|
+
- JSON output with machine-actionable `actions` array per issue
|
|
44
|
+
|
|
45
|
+
Token cost: ~0 (deterministic CLI, no LLM tokens used).
|
|
46
|
+
|
|
47
|
+
### 2. P15b Pre-Verification Isolation Sandbox — Fallow Audit (P44b)
|
|
48
|
+
|
|
49
|
+
Before presenting L3 results to the agent (and before L4 adversarial verification), run fallow audit scoped to changed files:
|
|
50
|
+
|
|
51
|
+
```
|
|
52
|
+
npx fallow audit --base main --format json --changed-since main
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
Returns verdict: pass (exit 0), warn (exit 0 with findings), fail (exit 1).
|
|
56
|
+
|
|
57
|
+
Integration in P15b sandbox:
|
|
58
|
+
1. Checkout temp worktree (already done by P15b)
|
|
59
|
+
2. Run `fallow audit --gate all --format json`
|
|
60
|
+
3. If fail: surface findings to agent for fix loop
|
|
61
|
+
4. If pass/warn: proceed to L4 verification
|
|
62
|
+
5. Warm findings go into L4 critic context for adversarial review
|
|
63
|
+
|
|
64
|
+
Token cost: ~0 (deterministic). LLM tokens only on failure to describe findings to agent (~200).
|
|
65
|
+
|
|
66
|
+
### 3. Phase 16 Lint+Format Gate — Fallow as Gate (P44c)
|
|
67
|
+
|
|
68
|
+
Post-L4, pre-delivery deterministic gate. Non-negotiable pass/fail:
|
|
69
|
+
|
|
70
|
+
```
|
|
71
|
+
npx fallow audit --gate all
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
Verdict mapping:
|
|
75
|
+
- **pass**: continue to L5 observability
|
|
76
|
+
- **warn**: log findings, continue (warnings don't block delivery)
|
|
77
|
+
- **fail**: block delivery. Agent must fix before proceeding.
|
|
78
|
+
|
|
79
|
+
Baselines for legacy codebases:
|
|
80
|
+
```
|
|
81
|
+
npx fallow dead-code --save-baseline fallow-baselines/dead-code.json
|
|
82
|
+
npx fallow health --save-baseline fallow-baselines/health.json
|
|
83
|
+
npx fallow dupes --save-baseline fallow-baselines/dupes.json
|
|
84
|
+
npx fallow audit --dead-code-baseline fallow-baselines/dead-code.json ...
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
Token cost: 0 (deterministic). Part of Phase 16's existing 0-token budget.
|
|
88
|
+
|
|
89
|
+
### 4. L5 Observability — Health Trends + Keep Rate (P44d)
|
|
90
|
+
|
|
91
|
+
Fallow's health scoring system provides quantitative substrate for Keep Rate tracking and codebase health observability:
|
|
92
|
+
|
|
93
|
+
```
|
|
94
|
+
fallow health --score # 0-100 score with letter grade
|
|
95
|
+
fallow health --trend # Compare against saved snapshot
|
|
96
|
+
fallow health --runtime-coverage ./coverage # Hot/cold path evidence
|
|
97
|
+
```
|
|
98
|
+
|
|
99
|
+
Keep Rate proxy: `fallow health --score` snapshots stored at each delivery event. Track score over time to measure whether agent-generated code survives and maintains quality.
|
|
100
|
+
|
|
101
|
+
Integration:
|
|
102
|
+
- `lib/harness-observability.ts` adds `fallowHealthSnapshot()` method
|
|
103
|
+
- Snapshot stored in L6 persistent memory per delivery
|
|
104
|
+
- L5 dashboard surfaces health trend alongside Keep Rate
|
|
105
|
+
|
|
106
|
+
Token cost: ~0-100 (metadata annotation). Already budgeted in L5's ~2,000 tokens.
|
|
107
|
+
|
|
108
|
+
### 5. P29 Per-Tool Per-Model Error Classification (P44e)
|
|
109
|
+
|
|
110
|
+
Fallow's structured JSON output provides classification substrate:
|
|
111
|
+
|
|
112
|
+
Each finding has:
|
|
113
|
+
- `rule` (e.g., "unused-exports", "circular-dependencies")
|
|
114
|
+
- `severity` (error/warn)
|
|
115
|
+
- `introduced` (true/false — from audit diff)
|
|
116
|
+
- `actions` array (e.g., "remove_export", "restructure_deps")
|
|
117
|
+
- `auto_fixable` (boolean)
|
|
118
|
+
- File location, line numbers, CODEOWNERS
|
|
119
|
+
|
|
120
|
+
This maps to P29's error classification system:
|
|
121
|
+
- `rule` → error category
|
|
122
|
+
- `introduced` → distinguishes agent-introduced vs inherited
|
|
123
|
+
- `severity` → classification severity level
|
|
124
|
+
- `actions` → remediation taxonomy
|
|
125
|
+
- `auto_fixable` → auto-heal candidate flag
|
|
126
|
+
|
|
127
|
+
### 6. L6 Persistent Memory — Baseline Storage (P44f)
|
|
128
|
+
|
|
129
|
+
Fallow baselines stored in wiki-adjacent storage:
|
|
130
|
+
```
|
|
131
|
+
.fallow-baselines/
|
|
132
|
+
dead-code.json
|
|
133
|
+
health.json
|
|
134
|
+
dupes.json
|
|
135
|
+
```
|
|
136
|
+
|
|
137
|
+
These are git-committed (not in `.fallow/` cache directory). L6 persistent memory references baseline versions in health snapshots.
|
|
138
|
+
|
|
139
|
+
### 7. P42 Scheduled Agent Automations — Periodic Health Sweeps (P44g)
|
|
140
|
+
|
|
141
|
+
Cron-style harness-initiated fallow runs:
|
|
142
|
+
- Weekly: `fallow health --trend` → surface regressions
|
|
143
|
+
- Daily: `fallow dead-code --format json` → flag new dead code
|
|
144
|
+
- Per-PR: `fallow audit` (already in CI)
|
|
145
|
+
|
|
146
|
+
## What Fallow Does NOT Cover
|
|
147
|
+
|
|
148
|
+
- **Functional correctness**: Not a test runner. Phase 16 only checks code quality, not behavior. F2 (Behaviour Harness) remains unsolved.
|
|
149
|
+
- **Type-level dead code**: Fallow is syntactic only. TypeScript's `tsc --noEmit` handles type checking separately (already in P20 gate).
|
|
150
|
+
- **Non-TS/JS ecosystems**: See [[codebase-intelligence-ecosystem-comparison]] for multi-language strategy.
|
|
151
|
+
- **Test coverage**: Fallow health can ingest Istanbul coverage data for CRAP scoring, but does not run tests.
|
|
152
|
+
|
|
153
|
+
## Integration Order
|
|
154
|
+
|
|
155
|
+
1. **P44c**: Phase 16 gate integration (easiest, highest impact, 0 tokens). Add `fallow audit --gate all` to `lib/harness-polish.ts`.
|
|
156
|
+
2. **P44b**: P15b pre-verification sandbox integration. Add `fallow audit --changed-since main` to sandbox script.
|
|
157
|
+
3. **P44a**: L3 MCP tool registration. Add fallow to MCP tool registry.
|
|
158
|
+
4. **P44d**: L5 health snapshot collection. Add to `lib/harness-observability.ts`.
|
|
159
|
+
5. **P44e**: P29 error classification mapping. Add fallow rule taxonomy to `lib/harness-errors.ts`.
|
|
160
|
+
6. **P44f**: L6 baseline storage. Create `.fallow-baselines/` config.
|
|
161
|
+
7. **P44g**: P42 automation schedule. Add to cron-style harness jobs.
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
---
|
|
2
|
+
type: concept
|
|
3
|
+
title: "Codebase-to-Context Ingestion"
|
|
4
|
+
created: 2026-04-30
|
|
5
|
+
updated: 2026-04-30
|
|
6
|
+
tags:
|
|
7
|
+
- codebase-processing
|
|
8
|
+
- llm-context
|
|
9
|
+
- ingestion
|
|
10
|
+
status: developing
|
|
11
|
+
related:
|
|
12
|
+
- "[[gitingest]]"
|
|
13
|
+
|
|
14
|
+
---# Codebase-to-Context Ingestion
|
|
15
|
+
|
|
16
|
+
## Definition
|
|
17
|
+
|
|
18
|
+
The process of converting an entire codebase (local directory or remote Git repository) into a structured plaintext format suitable for feeding into an LLM's context window.
|
|
19
|
+
|
|
20
|
+
## Why It Matters
|
|
21
|
+
|
|
22
|
+
AI coding agents operate on context. When an agent needs to understand an external dependency, library, or reference implementation, it must ingest that codebase efficiently. Individual file-by-file reading is slow and fragments understanding.
|
|
23
|
+
|
|
24
|
+
## Key Properties
|
|
25
|
+
|
|
26
|
+
- **Structured output**: Clear file boundaries, directory hierarchy preserved
|
|
27
|
+
- **Filterable**: Pattern-based include/exclude, file size limits
|
|
28
|
+
- **Deterministic**: Same input → same output, no LLM hallucination risk
|
|
29
|
+
- **Compressible**: Output can be further compressed by context runtimes like lean-ctx
|
|
30
|
+
|
|
31
|
+
## Tools
|
|
32
|
+
|
|
33
|
+
| Tool | Method | LLM Required | Reads Code |
|
|
34
|
+
|------|--------|-------------|------------|
|
|
35
|
+
| [[gitingest]] | Clone + structure | No | Yes |
|
|
36
|
+
| [[gitreverse]] | Metadata → LLM prompt | Yes | No |
|
|
37
|
+
| lean-ctx (built-in) | AST-based selective reading | No | Yes (selective) |
|
|
38
|
+
|
|
39
|
+
## Relationship to ultimate-pi Harness
|
|
40
|
+
|
|
41
|
+
The harness currently uses its built-in lean-ctx tool for file-by-file reading. Codebase-to-context ingestion complements this by enabling bulk ingestion of entire external repositories. This is useful when:
|
|
42
|
+
|
|
43
|
+
1. Researching how a library or tool works
|
|
44
|
+
2. Understanding a reference implementation
|
|
45
|
+
3. Ingesting documentation repos into wiki
|
|
46
|
+
4. Cross-referencing code patterns across projects
|
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
---
|
|
2
|
+
type: concept
|
|
3
|
+
title: "Codex Harness Innovations (OpenAI)"
|
|
4
|
+
aliases: ["codex innovations", "openai codex agent architecture"]
|
|
5
|
+
created: 2026-05-01
|
|
6
|
+
updated: 2026-05-01
|
|
7
|
+
tags: [concept, harness, codex, openai, research, agent-architecture]
|
|
8
|
+
status: active
|
|
9
|
+
related:
|
|
10
|
+
- "[[model-adaptive-harness]]"
|
|
11
|
+
- "[[harness-implementation-plan]]"
|
|
12
|
+
- "[[agentic-harness-context-enforcement]]"
|
|
13
|
+
- "[[feedforward-feedback-harness]]"
|
|
14
|
+
- "[[cursor-harness-innovations]]"
|
|
15
|
+
- "[[antigravity-agent-first-architecture]]"
|
|
16
|
+
- "[[lifecycle-hooks]]"
|
|
17
|
+
- "[[provider-native-prompting]]"
|
|
18
|
+
- "[[self-evolving-harness]]"
|
|
19
|
+
sources:
|
|
20
|
+
- "[[codex-open-source-agent-2026]]"
|
|
21
|
+
---
|
|
22
|
+
|
|
23
|
+
# Codex Harness Innovations
|
|
24
|
+
|
|
25
|
+
Codex (OpenAI, open-source, 79.2K+ GitHub stars, Apache 2.0) is a Rust-based coding agent that runs as CLI, IDE extension, Desktop App, and Web. Research across the open-source repository (`github.com/openai/codex`), official docs (`developers.openai.com/codex`), and the AGENTS.md engineering conventions reveals 10 major innovations.
|
|
26
|
+
|
|
27
|
+
This is the fourth major production agent analyzed (after Cursor, Antigravity, Claude Code). Codex is uniquely valuable because it is **fully open-source**, so we can study its architecture directly rather than reverse-engineering.
|
|
28
|
+
|
|
29
|
+
## 10 Key Innovations
|
|
30
|
+
|
|
31
|
+
### 1. Rust-Native Implementation (96.3% Rust)
|
|
32
|
+
|
|
33
|
+
**What**: Compiled binary. Zero Node.js dependency. Platform-optimized sandbox integration via OS APIs.
|
|
34
|
+
|
|
35
|
+
**Why it matters**: Better performance, simpler deployment, lower memory. Direct access to OS sandbox APIs (Seatbelt, bubblewrap). This is a first-principles choice: if you're building a local-first agent, use a systems language.
|
|
36
|
+
|
|
37
|
+
**Our gap**: Our harness is TypeScript (like Claude Code). A Rust core would give zero-dependency install and tighter sandbox integration. Consider as long-term architectural direction (post-v1).
|
|
38
|
+
|
|
39
|
+
### 2. Multi-Surface Agent Architecture
|
|
40
|
+
|
|
41
|
+
**What**: Single agent logic runs across CLI, IDE extension, Desktop App, and Web. App Server (local HTTP/WebSocket) bridges agent core to IDE extensions. App-server protocol v2 with typed RPC, TypeScript codegen from Rust structs.
|
|
42
|
+
|
|
43
|
+
**Why it matters**: "One agent for everywhere you code." Architectural separation of agent core from presentation layer via app-server protocol.
|
|
44
|
+
|
|
45
|
+
**Our gap**: We are CLI-only. The App Server pattern is a potential future path for IDE integration.
|
|
46
|
+
|
|
47
|
+
### 3. Platform-Native Sandboxing (3-Tier)
|
|
48
|
+
|
|
49
|
+
**What**: OS-level enforcement using Seatbelt (macOS), bubblewrap (Linux), Windows Sandbox. Three tiers: read-only, workspace-write, danger-full-access. Approval policies: untrusted, on-request, never. Writable roots for multi-directory work. Permission profiles with per-domain rules.
|
|
50
|
+
|
|
51
|
+
**Why it matters**: Enforced limits, not polite requests. The sandbox is a technical boundary; approvals are a policy layer on top. This separation is architecturally clean.
|
|
52
|
+
|
|
53
|
+
**Our gap**: We have P35 (permission subsystem from Claude Code) but no OS-level sandbox integration. For a CLI harness that runs on user machines, OS sandboxing is the correct foundation.
|
|
54
|
+
|
|
55
|
+
### 4. Bidirectional MCP (Client AND Server)
|
|
56
|
+
|
|
57
|
+
**What**: Codex connects to MCP servers as a client. It also exposes itself as an MCP server (`codex mcp-server`) — other agents can use Codex as a tool.
|
|
58
|
+
|
|
59
|
+
**Why it matters**: This is architecturally unique. No other production agent can BE an MCP tool for other agents. It enables agent-to-agent composition.
|
|
60
|
+
|
|
61
|
+
**Our gap**: No equivalent. Our harness is an MCP consumer only. Exposing the harness as an MCP server would enable external agents to invoke harness pipeline stages. This is a design pattern worth considering for P25 (subagent specialization).
|
|
62
|
+
|
|
63
|
+
### 5. Memories System with Chronicle
|
|
64
|
+
|
|
65
|
+
**What**: Opt-in cross-thread persistent memory. Stored under `~/.codex/memories/`. Chronicle captures screen context to bootstrap memories. Background generation (idle-thread-based, rate-limit-aware). Secret redaction. Per-thread controls. Configurable extraction and consolidation models.
|
|
66
|
+
|
|
67
|
+
**Why it matters**: Automated cross-session learning — not just explicit wiki pages. Chronicle is the missing piece: it captures what the USER was doing (screen context) to give the agent situational awareness.
|
|
68
|
+
|
|
69
|
+
**Our gap**: Our L6 persistent memory is wiki-based (explicit, human-authored). Codex's approach is automatic, implicit, screen-capture-based. Different philosophy. The Chronicle approach could complement our wiki for rapid context recovery after interruptions.
|
|
70
|
+
|
|
71
|
+
### 6. Hooks Framework (6 Events)
|
|
72
|
+
|
|
73
|
+
**What**: JSON-configurable lifecycle hooks at 6 events: SessionStart, PreToolUse, PermissionRequest, PostToolUse, UserPromptSubmit, Stop. Exit-code semantics (0=continue, 2=block). JSON stdin/stdout contracts. Multiple matching hooks run concurrently. Regex matchers for tool-name filtering. Managed hooks via `requirements.toml`.
|
|
74
|
+
|
|
75
|
+
**Why it matters**: Hooks are deterministic policy enforcement. This validates our P33 lifecycle hooks (from Claude Code analysis) — but Codex's hook framework is implemented differently (concurrent execution, JSON contracts, separate hooks.json file).
|
|
76
|
+
|
|
77
|
+
**Our gap**: We planned P33 hooks from Claude Code. Codex independently validates the hook pattern but with different implementation choices. We should compare both implementations before building.
|
|
78
|
+
|
|
79
|
+
### 7. Subagent Workflows (Parallel Dispatch)
|
|
80
|
+
|
|
81
|
+
**What**: Explicit parallel agent dispatch with per-agent model selection. Addresses "context pollution" and "context rot." Subagents return summaries. Model selection per agent: gpt-5.5 for demanding work, gpt-5.4-mini for fast scans, gpt-5.3-codex-spark for near-instant text-only.
|
|
82
|
+
|
|
83
|
+
**Why it matters**: Validates our P25 subagent specialization. But Codex's model-per-agent selection is more granular than our "cost router" approach — they optimize for task type, not just cost.
|
|
84
|
+
|
|
85
|
+
**Our gap**: No equivalent to context pollution/rot terminology. Our P25 should adopt explicit context isolation with summary returns, not just cost-based routing.
|
|
86
|
+
|
|
87
|
+
### 8. Git Worktrees
|
|
88
|
+
|
|
89
|
+
**What**: Isolated git worktrees for parallel branch work. Multiple agents can work on different branches without conflicts.
|
|
90
|
+
|
|
91
|
+
**Why it matters**: Directly solves the subagent isolation problem. Validates our P25b (subagent worktree isolation from Claude Code).
|
|
92
|
+
|
|
93
|
+
**Our gap**: P25b planned from Claude Code. Codex independently validates.
|
|
94
|
+
|
|
95
|
+
### 9. Skills System (agentskills.io Standard)
|
|
96
|
+
|
|
97
|
+
**What**: Follows open `agentskills.io` standard. Progressive disclosure (name+description → full SKILL.md). 2% context budget cap. Built-in `$skill-creator` and `$skill-installer`. Scopes: REPO, USER, ADMIN, SYSTEM. Plugins for distribution.
|
|
98
|
+
|
|
99
|
+
**Why it matters**: Our `.pi/skills/` system is nearly identical. Codex independently validates the skills pattern at massive scale. The standard (`agentskills.io`) means we could interoperate.
|
|
100
|
+
|
|
101
|
+
**Our gap**: No `$skill-creator` or `$skill-installer` tools. No agentskills.io standard compliance. Our skills don't have the `agents/openai.yaml` metadata layer. These are polish gaps, not architectural gaps.
|
|
102
|
+
|
|
103
|
+
### 10. Automations (Scheduled Agent Tasks)
|
|
104
|
+
|
|
105
|
+
**What**: Scheduled recurring agent tasks — CI-like but agent-driven. No equivalent in Claude Code or Cursor.
|
|
106
|
+
|
|
107
|
+
**Why it matters**: A new category of agent capability. The agent doesn't just respond to user prompts — it runs on schedules.
|
|
108
|
+
|
|
109
|
+
**Our gap**: No equivalent in our plan. Consider as future phase: scheduled harness runs for maintenance tasks (wiki lint, dependency updates, test suite health checks).
|
|
110
|
+
|
|
111
|
+
## What This Means From First Principles
|
|
112
|
+
|
|
113
|
+
### FP #1 (Harness > Model): VALIDATED
|
|
114
|
+
|
|
115
|
+
Codex has GPT-5.x models available but chose to build a 510K-line-equivalent Rust scaffold around them. The open-source nature proves: the harness is the product, the model is the infrastructure. Codex runs on GPT-5.5, GPT-5.4, GPT-5.4-mini, and GPT-5.3-codex-spark — model-adaptive by design.
|
|
116
|
+
|
|
117
|
+
### New First Principle: Sandbox > Permissions
|
|
118
|
+
|
|
119
|
+
Codex's architecture separates sandbox (technical boundary, OS-enforced) from approvals (policy layer, user-facing). This is cleaner than our approach of mixing permissions and enforcement. FP #12 (hooks > prompts) should be extended: **"Enforce boundaries with OS-level sandboxing. Use permissions for policy decisions."**
|
|
120
|
+
|
|
121
|
+
### New First Principle: Agent as MCP Tool
|
|
122
|
+
|
|
123
|
+
Codex's bidirectional MCP (it can BE a tool) suggests a new design pattern: harness pipeline stages should be exposable as MCP tools. External agents could invoke L1 spec hardening, L4 adversarial verification, or L7 orchestration as composable services.
|
|
124
|
+
|
|
125
|
+
### New First Principle: Implicit Memory Matters
|
|
126
|
+
|
|
127
|
+
Our wiki-based explicit memory (L6) is necessary but not sufficient. Codex's Chronicle + Memories shows that implicit, automatic, screen-capture-based memory fills a gap: the agent should remember what the user was doing without the user having to document it. Consider Chronicle-style context capture as a complement to wiki.
|
|
128
|
+
|
|
129
|
+
## Comparison With Other Agents
|
|
130
|
+
|
|
131
|
+
| Feature | Codex (OpenAI) | Claude Code | Cursor | Antigravity | Our Harness |
|
|
132
|
+
|---|---|---|---|---|---|
|
|
133
|
+
| Language | Rust | TypeScript | TypeScript | TypeScript | TypeScript |
|
|
134
|
+
| Open Source | YES (Apache 2.0) | Leaked (no license) | No | No | Planned |
|
|
135
|
+
| Sandbox | OS-level (Seatbelt/bubblewrap/Win) | Seatbelt/bubblewrap | Shadow Workspace | Browser sandbox | P35 planned |
|
|
136
|
+
| Skills | agentskills.io standard | SKILL.md (built-in) | Rules/Skills | SKILL.md | `.pi/skills/` |
|
|
137
|
+
| MCP server | Yes | No | No | Limited | No |
|
|
138
|
+
| Memories | Yes (automatic) | Limited (transcript) | No | Knowledge base | Wiki (explicit) |
|
|
139
|
+
| Hooks | 6 events, JSON I/O | 30+ events | Basic | Limited | P33 planned |
|
|
140
|
+
| Subagents | Parallel + model-per-agent | Fork + summarize | Task-type router | Manager View | P25 planned |
|
|
141
|
+
| Worktrees | Yes | Yes | No | Local envs | P25b planned |
|
|
142
|
+
| Automations | Yes | No | No | No | No |
|
|
143
|
+
| Multi-surface | CLI+IDE+App+Web | CLI+SDK | IDE only | IDE only | CLI only |
|
|
144
|
+
|
|
145
|
+
## Sources
|
|
146
|
+
|
|
147
|
+
- [[codex-open-source-agent-2026]] — GitHub repo + official docs, 2026
|