ultimate-pi 0.1.0 → 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/banner-v2.png +0 -0
- package/.github/workflows/lint.yml +33 -0
- package/.github/workflows/publish-github-packages.yml +35 -0
- package/.github/workflows/publish-npm.yml +32 -0
- 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 +33 -40
- 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 -16
- 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/.github/banner.png +0 -0
- package/PLAN.md +0 -11
- package/extensions/lean-ctx-enforce.ts +0 -166
- package/skills-lock.json +0 -35
- package/wiki/README.md +0 -10
- 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
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
---
|
|
2
|
+
type: synthesis
|
|
3
|
+
title: "Research: context-mode vs lean-ctx"
|
|
4
|
+
created: 2026-04-30
|
|
5
|
+
updated: 2026-04-30
|
|
6
|
+
tags:
|
|
7
|
+
- research
|
|
8
|
+
- context-optimization
|
|
9
|
+
- agentic-harness
|
|
10
|
+
- tool-comparison
|
|
11
|
+
status: developing
|
|
12
|
+
related:
|
|
13
|
+
- "[[think-in-code]]"
|
|
14
|
+
- "[[context-mode]]"
|
|
15
|
+
- "[[lean-ctx]]"
|
|
16
|
+
- "[[agentic-harness-context-enforcement]]"
|
|
17
|
+
sources:
|
|
18
|
+
- "[[context-mode-website]]"
|
|
19
|
+
- "[[leanctx-website]]"
|
|
20
|
+
- "[[think-in-code-blog]]"
|
|
21
|
+
|
|
22
|
+
---# Research: context-mode vs lean-ctx
|
|
23
|
+
|
|
24
|
+
## Overview
|
|
25
|
+
|
|
26
|
+
Both context-mode and lean-ctx are MCP-based context optimization tools for AI coding agents. context-mode (11K+ GitHub stars, 48K npm downloads/month) intercepts tool output and sandboxes it into FTS5 with BM25 ranking. lean-ctx (924 stars, 3K crates.io downloads) compresses output intelligently via AST parsing and 90+ shell patterns. Both reduce token consumption by 60–99%. The key differentiator: context-mode mandates "Think in Code" as a paradigm shift; lean-ctx offers deeper agent governance (profiles, budgets, SLOs).
|
|
27
|
+
|
|
28
|
+
## Key Findings
|
|
29
|
+
|
|
30
|
+
- context-mode uses **intercept-and-sandbox** architecture: raw tool output never enters context. lean-ctx uses **compress-in-place**: output enters context but is intelligently stripped (Source: [[context-mode-website]], [[leanctx-website]])
|
|
31
|
+
- context-mode enforces **"Think in Code"** as a mandatory paradigm across all platforms: agents must write code to analyze data rather than reading raw data into context (Source: [[think-in-code-blog]])
|
|
32
|
+
- lean-ctx has **agent governance**: profiles, role-based budgets, token/cost SLOs, anomaly detection, 5 built-in roles (Source: [[leanctx-website]])
|
|
33
|
+
- lean-ctx offers **cross-session memory + multi-agent sharing** via CCP protocol and scratchpad messaging; context-mode has 26-event session continuity but no multi-agent features (Source: [[context-mode-website]], [[leanctx-website]])
|
|
34
|
+
- context-mode is TypeScript/Node.js (ELv2 license), lean-ctx is Rust/Apache 2.0 (Source: GitHub API)
|
|
35
|
+
- Both support 14+ platforms including Claude Code, Cursor, Copilot, Gemini CLI, Pi (Source: [[context-mode-website]], [[leanctx-website]])
|
|
36
|
+
- context-mode has stronger community validation: #1 on Hacker News (570+ points), 11,245 stars, claimed use at Microsoft/Google/Meta (Source: [[context-mode-website]])
|
|
37
|
+
|
|
38
|
+
## Key Entities
|
|
39
|
+
|
|
40
|
+
- [[context-mode]]: MCP plugin by B. Mert Köseoğlu. Sandboxes tool output into FTS5. ELv2 licensed. 11K stars.
|
|
41
|
+
- [[lean-ctx]]: Context Runtime by yvgude. Rust binary, Apache 2.0. 924 stars. 3-layer architecture (MCP server + shell hook + protocols).
|
|
42
|
+
|
|
43
|
+
## Key Concepts
|
|
44
|
+
|
|
45
|
+
- [[think-in-code]]: Paradigm where AI agents write code to process data instead of reading raw data into context. Reduces context consumption 200×. Mandatory in context-mode v1.0.64+.
|
|
46
|
+
- [[fts5-sandbox]]: context-mode's architecture — intercept tool calls, run in sandboxed subprocess, index output into SQLite FTS5 with BM25 ranking. Agent searches on demand.
|
|
47
|
+
- [[ast-compression]]: lean-ctx's approach — use tree-sitter to parse code (18 languages), extract only signatures/types/logic, strip comments/whitespace. 60–95% reduction.
|
|
48
|
+
- [[shell-pattern-compression]]: lean-ctx recognizes 90+ command patterns (git, npm, cargo, docker, kubectl) and compresses their output automatically.
|
|
49
|
+
- [[context-continuity]]: Both tools preserve session state across context compaction. context-mode captures 26 event types to SessionDB. lean-ctx uses CCP (Cross-session Continuity Protocol).
|
|
50
|
+
|
|
51
|
+
## Contradictions
|
|
52
|
+
|
|
53
|
+
- [[context-mode-website]] claims 99.5% reduction on Playwright output (56.2KB → 299B). [[leanctx-website]] claims 60–99% with 99% on cached re-reads. Both claims are plausible but measure different things: context-mode measures sandbox avoidance (output never enters context), lean-ctx measures compression ratio (output enters but is stripped). Neither is "wrong" — they solve the problem differently.
|
|
54
|
+
- [[context-mode-website]] lists 66,000+ users. NPM shows 48K downloads/month. Gap is likely cumulative installs vs monthly active. Not verified independently.
|
|
55
|
+
|
|
56
|
+
## Open Questions
|
|
57
|
+
|
|
58
|
+
- How does context-mode's FTS5 search quality compare to lean-ctx's semantic search (BM25 + TF-IDF)?
|
|
59
|
+
- Does "Think in Code" enforcement cause the agent to make more errors when writing analysis scripts? What's the error rate?
|
|
60
|
+
- For the ultimate-pi harness specifically: can both be used simultaneously? Would they conflict?
|
|
61
|
+
- lean-ctx's governance features (profiles, budgets, SLOs) — how practically useful are they vs. just setting AGENTS.md rules?
|
|
62
|
+
- context-mode's enterprise tier (Context as a Service, compliance reports) — is this a lock-in risk?
|
|
63
|
+
|
|
64
|
+
> [!gap] Independent benchmarks needed. All compression claims come from the tools' own websites. No third-party comparison exists.
|
|
65
|
+
> [!gap] No Reddit or community discussions found comparing context-mode vs lean-ctx directly. Tools are 1-2 months old each — comparison discourse hasn't emerged yet.
|
|
66
|
+
|
|
67
|
+
## Sources
|
|
68
|
+
|
|
69
|
+
- [[context-mode-website]]: context-mode.com landing page, 2026-04-30
|
|
70
|
+
- [[leanctx-website]]: leanctx.com landing page, 2026-04-30
|
|
71
|
+
- [[think-in-code-blog]]: "Think in Code" by B. Mert Köseoğlu, 2026
|
|
72
|
+
- GitHub API: both repos, 2026-04-30
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
---
|
|
2
|
+
type: synthesis
|
|
3
|
+
title: "Research: cursor.sh Harness Innovations"
|
|
4
|
+
created: 2026-05-01
|
|
5
|
+
updated: 2026-05-01
|
|
6
|
+
tags:
|
|
7
|
+
- research
|
|
8
|
+
- cursor
|
|
9
|
+
- agent-harness
|
|
10
|
+
- harness-design
|
|
11
|
+
status: developing
|
|
12
|
+
related:
|
|
13
|
+
- "[[cursor-harness-innovations]]"
|
|
14
|
+
- "[[harness-implementation-plan]]"
|
|
15
|
+
- "[[model-adaptive-harness]]"
|
|
16
|
+
- "[[agentic-harness-context-enforcement]]"
|
|
17
|
+
- "[[drift-detection-unified]]"
|
|
18
|
+
- "[[provider-native-prompting]]"
|
|
19
|
+
- "[[context-anxiety]]"
|
|
20
|
+
sources:
|
|
21
|
+
- "[[cursor-shadow-workspace-2024]]"
|
|
22
|
+
- "[[cursor-agent-best-practices-2026]]"
|
|
23
|
+
- "[[cursor-harness-april-2026]]"
|
|
24
|
+
- "[[cursor-shipped-coding-agent-2026]]"
|
|
25
|
+
- "[[cursor-instant-apply-2024]]"
|
|
26
|
+
- "[[cursor-fork-29b-2025]]"
|
|
27
|
+
|
|
28
|
+
---# Research: cursor.sh Harness Innovations
|
|
29
|
+
|
|
30
|
+
## Overview
|
|
31
|
+
|
|
32
|
+
Cursor (Anysphere, $29B valuation, $1B ARR) built the most successful production agent harness. Research across 7 primary sources (Cursor engineering blog, ByteByteGo, MMNTM) reveals 10 innovations and 6 first-principles lessons directly applicable to our harness implementation plan. Key finding: Cursor independently validated 5 of our planned features before we built them, and revealed 4 critical gaps we hadn't identified.
|
|
33
|
+
|
|
34
|
+
## Key Findings
|
|
35
|
+
|
|
36
|
+
### Validations (Cursor independently confirmed our designs)
|
|
37
|
+
|
|
38
|
+
- **Model-adaptive harness** (Source: [[cursor-harness-april-2026]]): Cursor provisions different tool formats per model (patches for OpenAI, string replace for Anthropic). Matches our provider-native prompting redesign.
|
|
39
|
+
- **Dynamic context over static context** (Source: [[cursor-harness-april-2026]]): Cursor removed pre-loaded context guardrails as models improved. Matches our wiki-query + lean-ctx approach.
|
|
40
|
+
- **Context anxiety** (Source: [[cursor-harness-april-2026]]): One model started refusing work as context filled. Matches our P27 Context Anxiety Guard exactly. Independent discovery validates the concern.
|
|
41
|
+
- **Continuous RL from user feedback** (Source: [[cursor-agent-best-practices-2026]]): 90-minute RL loop on accept/reject data. Matches our F1 Self-Evolving Harness concept.
|
|
42
|
+
- **Edit quality is the bottleneck** (Source: [[cursor-instant-apply-2024]], [[cursor-shipped-coding-agent-2026]]): "Diff Problem" is the hardest engineering challenge. Matches our P10 fuzzy edit matching investment.
|
|
43
|
+
|
|
44
|
+
### Critical Gaps (Things we're missing)
|
|
45
|
+
|
|
46
|
+
- **Pre-verification isolation** (Source: [[cursor-shadow-workspace-2024]]): We validate after edit (P11). Cursor validates before showing user. Missing: isolated pre-commit validation sandbox between L3 and L4.
|
|
47
|
+
- **Keep Rate metric** (Source: [[cursor-harness-april-2026]]): We have no post-hoc quality metric. Keep Rate (code persistence after 1hr/1day/1week) is the ultimate quality signal. Missing from L5.
|
|
48
|
+
- **Per-tool per-model error classification** (Source: [[cursor-harness-april-2026]]): We don't classify tool errors or track per-model baselines. This blocks automated harness self-healing.
|
|
49
|
+
- **Positive agent loops** (Source: [[cursor-agent-best-practices-2026]]): Our drift monitor only stops bad behavior. Cursor's hooks keep agent running until done. We need both.
|
|
50
|
+
|
|
51
|
+
### New Patterns to Adopt
|
|
52
|
+
|
|
53
|
+
- **Subagent specialization**: Dispatch by task type (planning/editing/debugging), not just cost. Fresh context per subagent. Evolves P25 Haiku Router.
|
|
54
|
+
- **LLM-as-Judge for satisfaction**: Semantic analysis of user responses to agent output as quality signal.
|
|
55
|
+
- **Search/replace tool training**: Search+replace is the hardest tool to teach. Training data needs high volume of tool-specific trajectories.
|
|
56
|
+
- **Sandbox as serving infra**: Treat execution environments as core infrastructure with custom scheduling, not just containers.
|
|
57
|
+
|
|
58
|
+
## Key Entities
|
|
59
|
+
|
|
60
|
+
- **Cursor / Anysphere**: Company behind Cursor IDE. $29B valuation. Built by Michael Truell, Sualeh Asif, Aman Sanger, Arvid Lunnemark.
|
|
61
|
+
- **Composer**: Cursor's custom MoE agentic coding model. 4x faster than similarly intelligent models.
|
|
62
|
+
- **Fireworks AI**: Inference provider for Cursor's custom models, including speculative edits support.
|
|
63
|
+
|
|
64
|
+
## Key Concepts
|
|
65
|
+
|
|
66
|
+
- [[cursor-harness-innovations]]: Full catalog of 10 innovations with first-principles analysis
|
|
67
|
+
- **Shadow Workspace**: Hidden Electron window for pre-verification with LSP feedback loop
|
|
68
|
+
- **Speculative Edits**: Deterministic speculation using existing code as draft tokens. 9-13x speedup
|
|
69
|
+
- **Keep Rate**: Fraction of agent code still in codebase after time intervals. Ultimate quality metric
|
|
70
|
+
- **Context Anxiety**: Model behavior where filling context window triggers work refusal. Cross-model phenomenon
|
|
71
|
+
|
|
72
|
+
## Contradictions
|
|
73
|
+
|
|
74
|
+
- [[cursor-instant-apply-2024]] says full-file rewrites are superior to diffs. Our P10 fuzzy edit matching uses search/replace. However, Cursor's finding is about model training, not tool design. Our edit tool can accept either format. No contradiction — we should support both full-file rewrite and search/replace modes.
|
|
75
|
+
- [[cursor-harness-april-2026]] says they removed guardrails as models improved. Our harness has mandatory verification (no-skip rule). These are different concerns: Cursor removed *context* guardrails (pre-loading files, limiting tool calls). We keep *quality* guardrails (verification is mandatory). Compatible: dynamic context + mandatory verification.
|
|
76
|
+
|
|
77
|
+
## Open Questions
|
|
78
|
+
|
|
79
|
+
- Can we implement pre-verification isolation without an IDE? Our harness runs in CLI/agent context — no Electron windows. Alternative: isolated temp directory with copy of relevant files, run compiler/linter, feed errors back. This is feasible.
|
|
80
|
+
- What is the right "keep rate" time interval for our use case? Cursor users edit continuously. Our agent does discrete tasks. Maybe: "was the change reverted within the same session?"
|
|
81
|
+
- How do we classify tool errors when our tools are MCP-based? We control fewer tools than Cursor. Classification would need to happen at the MCP bridge layer.
|
|
82
|
+
- Is the 90-minute RL loop feasible without user-facing UI? We don't have accept/reject signals. Could use: was commit reverted? was follow-up fix needed? did tests pass on first try?
|
|
83
|
+
- Should we adopt the subagent pattern for consensus debate? Currently P17-P19 uses pi-messenger transport. Subagent with fresh context might be simpler.
|
|
84
|
+
|
|
85
|
+
## Sources
|
|
86
|
+
|
|
87
|
+
- [[cursor-shadow-workspace-2024]]: Arvid Lunnemark, Sept 2024. Shadow workspace architecture.
|
|
88
|
+
- [[cursor-agent-best-practices-2026]]: Lee Robinson, Jan 2026. Agent best practices, hooks, skills.
|
|
89
|
+
- [[cursor-harness-april-2026]]: Stefan Heule & Jediah Katz, Apr 2026. Harness evolution, metrics, error classification.
|
|
90
|
+
- [[cursor-shipped-coding-agent-2026]]: Lee Robinson + ByteByteGo, Jan 2026. System architecture, production challenges.
|
|
91
|
+
- [[cursor-instant-apply-2024]]: Aman Sanger, May 2024. Speculative edits, fast apply model.
|
|
92
|
+
- [[cursor-fork-29b-2025]]: MMNTM Research, Dec 2025. Architectural strategy, vertical agent thesis.
|
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
---
|
|
2
|
+
type: synthesis
|
|
3
|
+
title: "Research: executor.sh Harness Integration"
|
|
4
|
+
created: 2026-05-01
|
|
5
|
+
updated: 2026-05-01
|
|
6
|
+
tags:
|
|
7
|
+
- research
|
|
8
|
+
- executor
|
|
9
|
+
- integration-layer
|
|
10
|
+
- harness
|
|
11
|
+
- tool-catalog
|
|
12
|
+
- policy-engine
|
|
13
|
+
- execution-layer
|
|
14
|
+
status: developing
|
|
15
|
+
related:
|
|
16
|
+
- "[[executor-rhyssullivan]]"
|
|
17
|
+
- "[[ts-execution-layer]]"
|
|
18
|
+
- "[[harness-implementation-plan]]"
|
|
19
|
+
- "[[Research: TypeScript Execution Layer for Agent Tool Calling]]"
|
|
20
|
+
- "[[Research: cursor.sh Harness Innovations]]"
|
|
21
|
+
- "[[Research: Codex State-of-the-Art Harness Improvements]]"
|
|
22
|
+
sources:
|
|
23
|
+
- "[[executor-rhyssullivan]]"
|
|
24
|
+
|
|
25
|
+
---# Research: executor.sh Harness Integration
|
|
26
|
+
|
|
27
|
+
## Overview
|
|
28
|
+
|
|
29
|
+
[executor.sh](https://executor.sh) is the product website for RhysSullivan/executor — an open-source (MIT, 1.3K stars) **integration layer** for AI agents. Research across 3 sources (executor.sh landing page, GitHub README, DeepWiki architecture analysis) reveals that Executor's scope is **broader than our P43 TypeScript Execution Layer** — it is a complete tool catalog + auth + policy + execution runtime. Our existing wiki classified Executor as a "TS execution layer" alongside CodeAct and Cloudflare Code Mode. This research finds that Executor belongs in a **separate category**: the agent integration/runtime layer.
|
|
30
|
+
|
|
31
|
+
## Key Findings
|
|
32
|
+
|
|
33
|
+
### executor.sh is NOT just a TS execution layer
|
|
34
|
+
|
|
35
|
+
Our existing wiki treats Executor as one of three TS execution layer implementations (alongside CodeAct and Cloudflare Code Mode). Executor.sh positions it as "The missing integration layer" — a broader category. The three-era framing reveals the product thesis:
|
|
36
|
+
|
|
37
|
+
| Era | Model | Executor's critique |
|
|
38
|
+
|-----|-------|-------------------|
|
|
39
|
+
| Era 1: Tool calling | Every tool schema dumped into context | Tokens wasted, poor performance |
|
|
40
|
+
| Era 2: Bash | Agent calls CLI directly | Poor permission model, dangerous |
|
|
41
|
+
| Era 3: Executor | Agent → executor → typed tools | Typed, sandboxed, cross-agent |
|
|
42
|
+
|
|
43
|
+
The TypeScript execution is the **mechanism**, not the **category**. The category is "agent integration layer" — a unified catalog that normalizes diverse tool sources into one typed runtime shared across agents.
|
|
44
|
+
|
|
45
|
+
### Five pillars absent from our P43 plan
|
|
46
|
+
|
|
47
|
+
(Source: [[executor-rhyssullivan]])
|
|
48
|
+
|
|
49
|
+
1. **Unified tool catalog with intent-based discovery**: Not just typed functions — a searchable, indexed catalog where agents call `tools.discover({ query: "github issues", limit: 5 })` instead of memorizing tool paths. Our P43 plans static type generation; Executor adds runtime discovery.
|
|
50
|
+
|
|
51
|
+
2. **Shared auth across agents**: Sign in once to GitHub/Slack/Stripe via OAuth → every agent (Cursor, Claude Code, custom) shares those credentials. OS keychain storage. Our harness has P35 (Permission Subsystem) but doesn't address cross-tool auth.
|
|
52
|
+
|
|
53
|
+
3. **Policy engine with approval workflows**: Auto-approve reads, pause on writes, wildcard rules. Human-in-the-loop for sensitive operations. Our P35 plans allow/deny/ask rules but lacks Executor's execution-pause-for-approval pattern.
|
|
54
|
+
|
|
55
|
+
4. **Execution lifecycle with pause/resume**: Stateful executions that enter `waiting_for_interaction` state when auth or approval is needed. Resumed via `executor resume --execution-id <id>`. Our P43 doesn't address this.
|
|
56
|
+
|
|
57
|
+
5. **Multi-source normalization**: OpenAPI, GraphQL, MCP, gRPC, custom JSON schema — all normalized into one namespace. Our P43 only targets harness-native L3 tools (read, bash, edit, grep, find).
|
|
58
|
+
|
|
59
|
+
### Technical architecture (from DeepWiki)
|
|
60
|
+
|
|
61
|
+
(Source: [[executor-rhyssullivan]])
|
|
62
|
+
|
|
63
|
+
- **Bun monorepo**: `apps/executor` (CLI/Server), `apps/web` (React UI), `packages/` (core SDKs), `plugins/` (source-specific)
|
|
64
|
+
- **Server**: Hono-based HTTP, `SqlControlPlaneRuntime` manages database + execution
|
|
65
|
+
- **Persistence**: PGlite or local Postgres (workspace state, execution history, secrets)
|
|
66
|
+
- **Sandbox**: SES (Secure EcmaScript) or Deno subprocesses
|
|
67
|
+
- **MCP bridge**: `executor mcp` exposes catalog as MCP endpoint
|
|
68
|
+
|
|
69
|
+
### Rhys Sullivan's design thesis (from Twitter/LinkedIn)
|
|
70
|
+
|
|
71
|
+
> "LLMs are in desperate need of an execution layer made for them to run tool calls in. A year ago LLMs were making direct calls to tools, we found that it flooded their context with irrelevant information. Then we discovered with coding agents that the less tools you give them, the better they perform."
|
|
72
|
+
|
|
73
|
+
This independently validates our First Principle #19 (Code is a better tool-calling interface than JSON) and our P43 investment. But Executor goes further: the execution layer should also handle auth, policies, and cross-agent sharing — not just sandboxed code execution.
|
|
74
|
+
|
|
75
|
+
> "Executor is a highly extended implementation of codemode, that supports adding multiple sources rather than just 1 and a better permissions model." (Source: unrollnow.com thread)
|
|
76
|
+
|
|
77
|
+
This clarifies the lineage: Cloudflare Code Mode → Executor. Executor extends Code Mode's single-source TS runtime into a multi-source integration layer.
|
|
78
|
+
|
|
79
|
+
### Roadmap signals (from executor.sh)
|
|
80
|
+
|
|
81
|
+
- **Now**: Core SDK/CLI, MCP bridge, Policy engine, Local web UI, Desktop app
|
|
82
|
+
- **Soon**: Team management/SaaS, Advanced approval workflows, Org-wide source catalog
|
|
83
|
+
- **Later**: Customer-managed integrations, Workflow primitives (webhooks, crons), Virtual filesystems & KV stores, npm ecosystem support
|
|
84
|
+
|
|
85
|
+
The "Soon" tier (team/SaaS) signals that Executor is evolving from a local developer tool into a team infrastructure product. This has implications for our integration strategy — we should integrate at the local/CLI level before it moves upmarket.
|
|
86
|
+
|
|
87
|
+
## How This Fits Into Our Harness Implementation Plan
|
|
88
|
+
|
|
89
|
+
### Alignment with existing phases
|
|
90
|
+
|
|
91
|
+
| Our Phase | Executor Equivalent | Verdict |
|
|
92
|
+
|-----------|-------------------|--------|
|
|
93
|
+
| P43 TS Execution Layer | TS runtime + typed tool API | **Validated**. Executor independently confirms the TS-over-JSON approach. |
|
|
94
|
+
| P39 Harness as MCP Server | MCP bridge (`executor mcp`) | **Validated**. Same pattern. |
|
|
95
|
+
| P35 Permission Subsystem | Policy engine (auto-approve/pause rules) | **Partially validated**. Executor has richer policy model (pause/resume). |
|
|
96
|
+
| P14 Think-in-Code | Code-as-tool-calling paradigm | **Validated**. Executor extends this from data analysis to all tool calls. |
|
|
97
|
+
|
|
98
|
+
### Gaps Executor reveals in our plan
|
|
99
|
+
|
|
100
|
+
1. **No tool catalog with intent-based discovery**: P43 generates static TypeScript type definitions from tool schemas. Executor adds runtime discovery (`tools.discover({ query })`) that lets agents search tools by intent without loading all schemas into context. This is a **fundamental capability gap** — static type gen alone doesn't solve tool discovery at scale (50+ MCP sources).
|
|
101
|
+
|
|
102
|
+
2. **No shared auth for external tools**: Our harness has no auth management layer. If an agent needs to call GitHub API, Stripe API, or Slack API, each tool call requires separate credential handling. Executor centralizes this — one OAuth flow, all agents share the token. This is a gap for any harness that runs agents in production workflows.
|
|
103
|
+
|
|
104
|
+
3. **No execution pause/resume for human-in-the-loop**: Our P35 allows blocking tool calls, but doesn't support pausing execution for auth/approval and resuming. Executor's stateful execution lifecycle is a more sophisticated model.
|
|
105
|
+
|
|
106
|
+
4. **No multi-source tool normalization**: Our tool registry is harness-native (lean-ctx tools, ck_search, Gitingest). We don't normalize external APIs (OpenAPI, GraphQL) into the same tool namespace. Executor does. This may be out of scope for Phase 0 but matters for production harnesses.
|
|
107
|
+
|
|
108
|
+
### What Executor does that we should NOT adopt
|
|
109
|
+
|
|
110
|
+
- **Web UI for tool configuration**: Our harness is CLI-only. The React web UI is unnecessary for our use case.
|
|
111
|
+
- **Desktop app**: Same — CLI-only scope.
|
|
112
|
+
- **Multi-source OpenAPI/GraphQL normalization**: Phase 0 scope is harness-native tools only. External API normalization is post-v1.
|
|
113
|
+
- **Team/SaaS management**: Overengineered for a CLI harness. Stay local-first.
|
|
114
|
+
- **Cloudflare Workers dependency**: Executor uses SES/Deno — our P43 can match this without CF dependency.
|
|
115
|
+
|
|
116
|
+
### Build vs Integrate Decision
|
|
117
|
+
|
|
118
|
+
Executor is MIT-licensed and can be used as a dependency. The integration path:
|
|
119
|
+
|
|
120
|
+
**For external API integration (post-v1)**: Use Executor as a dependency.
|
|
121
|
+
```bash
|
|
122
|
+
npm install -g executor
|
|
123
|
+
executor mcp # expose as MCP server
|
|
124
|
+
# Agent calls executor via MCP for GitHub/Slack/Stripe/etc.
|
|
125
|
+
```
|
|
126
|
+
|
|
127
|
+
**For harness-native tool optimization (P43)**: Build our own TS runtime. Our L3 tools (read, bash, edit, grep, find, ck_search, ctx_execute) need harness-specific TypeScript types and permission routing. Executor's plugin system can wrap these, but the runtime should be harness-native for tight integration with P35 (permission subsystem) and L7 (orchestration).
|
|
128
|
+
|
|
129
|
+
**Recommended approach**:
|
|
130
|
+
- P43 built custom for harness-native tools
|
|
131
|
+
- Borrow Executor's patterns: catalog with `discover()`, policy engine with pause/resume, typed RPC dispatch
|
|
132
|
+
- Post-v1: integrate Executor MCP server for external API access (GitHub, Slack, etc.)
|
|
133
|
+
|
|
134
|
+
## Impact on Harness Implementation Plan
|
|
135
|
+
|
|
136
|
+
### P43 should expand to include:
|
|
137
|
+
|
|
138
|
+
| Sub-phase | What | Inspired by Executor |
|
|
139
|
+
|-----------|------|---------------------|
|
|
140
|
+
| P43a | Type generation from tool schemas (existing) | — |
|
|
141
|
+
| P43b | Tool catalog with intent-based discovery (`tools.discover()`) | Executor's catalog + `tools.discover({ query, limit })` |
|
|
142
|
+
| P43c | Policy-aware execution (auto-approve reads, pause on writes) | Executor's policy engine |
|
|
143
|
+
| P43d | Execution lifecycle with pause/resume | Executor's `waiting_for_interaction` + `executor resume` |
|
|
144
|
+
|
|
145
|
+
### P35 should borrow Executor's policy patterns:
|
|
146
|
+
|
|
147
|
+
| Pattern | Description |
|
|
148
|
+
|---------|-------------|
|
|
149
|
+
| Auto-approve reads | Deterministic: read-only tool calls pass without LLM permission check |
|
|
150
|
+
| Pause on writes | Execution enters `waiting_for_interaction` state; human resumes |
|
|
151
|
+
| Wildcard rules | `github.issues.*` → auto-approve; `github.repos.delete` → pause |
|
|
152
|
+
| Human-in-the-loop | Execution lifecycle supports pausing for auth/approval and resuming |
|
|
153
|
+
|
|
154
|
+
## Contradictions
|
|
155
|
+
|
|
156
|
+
- **Executor vs CodeAct**: Executor uses TypeScript; CodeAct uses Python. Both validate the code-as-tool-calling paradigm. Executor's TypeScript choice is better for our Node.js harness. No contradiction — language follows infrastructure.
|
|
157
|
+
- **Executor vs Cloudflare Code Mode**: Executor extends Code Mode with multi-source support and richer policy engine. They're in the same lineage. Executor is the more mature implementation.
|
|
158
|
+
- **Local vs SaaS**: Executor is local-first today, but roadmap shows team/SaaS in "Soon". Our harness is local-first by design. If Executor moves to SaaS, our local integration path may diverge.
|
|
159
|
+
|
|
160
|
+
## Open Questions
|
|
161
|
+
|
|
162
|
+
- **Can we integrate Executor's `tools.discover()` pattern without adopting its entire plugin system?** Yes — the discovery pattern is an API contract, not tied to the plugin architecture. We can implement `tools.discover({ query, limit })` over our own tool schema registry.
|
|
163
|
+
- **Should P43 use Executor as a sandbox backend?** Executor's SES/Deno sandbox is production-ready. We could wrap it rather than building our own Node.js VM. But tight integration with P35 (permission subsystem) favors a custom sandbox. Needs a dedicated spike.
|
|
164
|
+
- **Does Executor's pause/resume model work for CLI-only harness?** Yes — `executor resume` is CLI-native. The `waiting_for_interaction` state maps to our harness pausing for human input.
|
|
165
|
+
- **Is Executor stable enough to depend on?** 1.3K stars, 1,492 commits, active development. But it's ~1 month old. Dependency risk is medium. Integration via MCP protocol (not code dependency) mitigates this.
|
|
166
|
+
- **Will Executor's SaaS move break local-first integration?** Roadmap shows team/SaaS as additive, not replacement. Local-first is a core design principle. Risk is low for current scope.
|
|
167
|
+
|
|
168
|
+
## Sources
|
|
169
|
+
|
|
170
|
+
- [[executor-rhyssullivan]]: RhysSullivan/executor — product website (executor.sh), GitHub README, DeepWiki architecture analysis. Updated May 2026 with product positioning and architecture details.
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
---
|
|
2
|
+
type: synthesis
|
|
3
|
+
title: "Research: how GSD fits into our coding harness setup"
|
|
4
|
+
created: 2026-05-05
|
|
5
|
+
updated: 2026-05-05
|
|
6
|
+
tags:
|
|
7
|
+
- research
|
|
8
|
+
- gsd
|
|
9
|
+
- harness
|
|
10
|
+
- integration
|
|
11
|
+
status: developing
|
|
12
|
+
related:
|
|
13
|
+
- "[[gsd-get-shit-done]]"
|
|
14
|
+
- "[[harness-implementation-plan]]"
|
|
15
|
+
- "[[skill-first-architecture]]"
|
|
16
|
+
- "[[spec-hardening]]"
|
|
17
|
+
- "[[structured-planning]]"
|
|
18
|
+
- "[[grounding-checkpoints]]"
|
|
19
|
+
- "[[adversarial-verification]]"
|
|
20
|
+
- "[[persistent-memory]]"
|
|
21
|
+
- "[[agent-skills-pattern]]"
|
|
22
|
+
- "[[drift-detection-unified]]"
|
|
23
|
+
- "[[generator-evaluator-architecture]]"
|
|
24
|
+
sources:
|
|
25
|
+
- "[[gsd-github-repo]]"
|
|
26
|
+
- "[[gsd-codecentric-deep-dive]]"
|
|
27
|
+
- "[[gsd-hn-discussion]]"
|
|
28
|
+
- "[[Source: How to Apply GAN Architecture to Multi-Agent Code Generation]]"
|
|
29
|
+
---
|
|
30
|
+
|
|
31
|
+
# Research: how GSD fits into our coding harness setup
|
|
32
|
+
|
|
33
|
+
## Overview
|
|
34
|
+
GSD is a downstream application-building pipeline (discuss → plan → execute → verify → ship) running inside Claude Code. Our harness is an upstream behavior-control pipeline (spec-hardening → planning → drift detection → grounding → adversarial verification → observability → memory → orchestration → query). They address fundamentally different layers of the agentic coding stack: GSD builds software, our harness controls how agents build software. They are **complementary**, not competitive.
|
|
35
|
+
|
|
36
|
+
## Key Findings
|
|
37
|
+
|
|
38
|
+
### 1. GSD is downstream; our harness is upstream (Source: [[gsd-github-repo]], [[gsd-codecentric-deep-dive]])
|
|
39
|
+
GSD operates at the application layer — it receives a user's idea and produces working software. Our harness operates at the agent-control layer — it governs how agents reason, verify, and maintain state during any coding task. GSD could potentially run **inside** a harness-controlled pi session, benefiting from spec-hardening, drift detection, and adversarial verification around its own pipeline execution.
|
|
40
|
+
|
|
41
|
+
### 2. GSD uses Claude Code as its runtime; we use pi (Source: [[gsd-codecentric-deep-dive]])
|
|
42
|
+
GSD's entire architecture is markdown files interpreted by Claude Code's skills/agents/hooks system. No proprietary runtime. Our harness runs on pi (the coding agent platform GSD-2 is being ported to). The skill-first architecture transformation (May 2026) means both systems now share the same atomic unit: markdown skills loaded on demand.
|
|
43
|
+
|
|
44
|
+
### 3. GSD lacks adversarial verification — our L4 fills that gap (Source: [[gsd-hn-discussion]], [[Source: How to Apply GAN Architecture to Multi-Agent Code Generation]])
|
|
45
|
+
The freeCodeCamp analysis notes: "GSD relies on mechanical verification: lint, test, type-check... There is no agent reading another agent's code to assess whether it matches the spec's intent." This is exactly the gap our L4 adversarial verification addresses. A user running GSD inside our harness would get GSD's plan-checking PLUS our adversarial evaluator cross-verifying the output.
|
|
46
|
+
|
|
47
|
+
### 4. GSD's context engineering complements our L3 grounding checkpoints (Source: [[gsd-github-repo]])
|
|
48
|
+
GSD's core innovation — fresh 200K-context subagents, file-based state, XML-structured plans — aligns with our L3 approach but operates at a higher abstraction. GSD prevents context rot for application-building; our L3 prevents context rot for any agentic task. The techniques are compatible: GSD's "wave execution" parallels our subagent worktree isolation pattern.
|
|
49
|
+
|
|
50
|
+
### 5. Both systems share skill-first architecture (Source: [[skill-first-architecture]], [[gsd-github-repo]])
|
|
51
|
+
Since May 2026, our harness uses markdown skills as atomic units (3 code files + 12 skill files). GSD has always been markdown-first (59 skills + 33 subagents). Both use progressive disclosure of skills on demand. GSD's namespace routing (6 meta-skills routing to 59 concrete commands, saving ~2K tokens/turn) is a pattern worth adopting.
|
|
52
|
+
|
|
53
|
+
### 6. GSD's state files are a narrower version of our L6 persistent memory (Source: [[gsd-github-repo]], [[persistent-memory]])
|
|
54
|
+
GSD's `.planning/` directory (PROJECT.md, REQUIREMENTS.md, ROADMAP.md, STATE.md) is project-specific planning memory. Our wiki is a universal knowledge base covering harness design, coding patterns, architecture decisions, and research syntheses — feeding into every harness layer, not just project planning.
|
|
55
|
+
|
|
56
|
+
### 7. GSD's limitations validate our harness approach (Source: [[gsd-hn-discussion]])
|
|
57
|
+
Community feedback reveals GSD's weakness at scale: "agents leave orphans in large codebases," "verification uses simple lexical tools," "difficult to pivot mid-phase." These are exactly the failure modes our L1 (spec hardening prevents ambiguity), L2.5 (drift detection catches orphans), L3 (grounding checkpoints enforce correctness), and L4 (adversarial verification catches missed requirements) are designed to prevent.
|
|
58
|
+
|
|
59
|
+
## Key Entities
|
|
60
|
+
- [[gsd-get-shit-done]]: 60K-star meta-prompting/spec-driven development system for Claude Code
|
|
61
|
+
- TÂCHES (@glittercowboy): GSD's creator, solo developer philosophy
|
|
62
|
+
|
|
63
|
+
## Key Concepts
|
|
64
|
+
- **Meta-prompting:** Using markdown files as structured prompts that orchestrate LLM behavior — both GSD and our skill-first harness use this
|
|
65
|
+
- **Spec-driven development:** Writing detailed requirements before implementation — overlaps with our L1 spec hardening
|
|
66
|
+
- **Context engineering:** Managing token budgets through fresh subagent contexts, file-based state, and XML structures — overlaps with our L3 grounding checkpoints
|
|
67
|
+
- **Wave execution:** Grouping tasks by dependency for parallel/sequential execution — parallels our subagent worktree isolation
|
|
68
|
+
|
|
69
|
+
## Contradictions
|
|
70
|
+
- HN user `divx0` says GSD agents produce orphans at scale; GSD's README claims quality gates prevent scope reduction. The README claim applies to greenfield projects; the HN observation applies to large existing codebases. Both can be true: GSD works well within its design envelope (small-medium greenfield) but degrades outside it.
|
|
71
|
+
- GSD's README calls itself "lightweight" while community calls it "overengineered." Resolution: lightweight compared to BMAD's 12 agents and enterprise workflows; heavy compared to native Claude Code plan mode.
|
|
72
|
+
|
|
73
|
+
## Integration Opportunities
|
|
74
|
+
|
|
75
|
+
### Immediate (adopt patterns)
|
|
76
|
+
1. **Namespace routing:** GSD's 6 meta-skills reducing 86→6 eager-listed commands saves ~2K tokens/turn. We should adopt this for our growing skill collection.
|
|
77
|
+
2. **Deterministic CLI helper:** GSD's `gsd-tools.cjs` pattern — "deterministic logic belongs in code, not prompts." Our pi extensions already follow this; formalize as a harness principle.
|
|
78
|
+
3. **Wave execution tracking:** GSD's dependency-aware parallel execution with SUMMARY.md per task. Adopt the tracking pattern for our subagent dispatches.
|
|
79
|
+
|
|
80
|
+
### Medium-term (layer GSD under harness)
|
|
81
|
+
4. **Run GSD inside a harness-controlled pi session:** The harness pre-processes user intent (L1-L3), then dispatches GSD to handle the application-building pipeline (discuss→plan→execute), with the harness monitoring for drift (L2.5) and running adversarial verification (L4) on GSD's output.
|
|
82
|
+
5. **Harness-as-GSD-plugin:** Package our drift detection and adversarial verification as skills that GSD's orchestrators can invoke during plan-check and verification phases.
|
|
83
|
+
|
|
84
|
+
### Long-term (architectural convergence)
|
|
85
|
+
6. **Unified skill marketplace:** Both systems use markdown skills. A shared skill format would let users mix GSD's application-building skills with our harness-control skills in one pipeline.
|
|
86
|
+
|
|
87
|
+
## Open Questions
|
|
88
|
+
- Can GSD's wave execution work with our worktree-isolated subagents, or do the isolation models conflict?
|
|
89
|
+
- Would running GSD inside our harness add unacceptable latency for the "fast iteration" use case GSD's quick-mode serves?
|
|
90
|
+
- GSD-2 (being built on pi.dev) may converge naturally with our harness. Should we wait for GSD-2 before attempting integration?
|
|
91
|
+
- The HN discussion reveals a persistent debate: natural language specs vs. executable tests. Which direction should our L1 spec-hardening favor?
|
|
92
|
+
|
|
93
|
+
## Sources
|
|
94
|
+
- [[gsd-github-repo]]: TÂCHES, Dec 2025–May 2026, 60.1K stars
|
|
95
|
+
- [[gsd-codecentric-deep-dive]]: Felix Abele, Mar 2026
|
|
96
|
+
- [[gsd-hn-discussion]]: HN Community, Mar 2026, 473 points
|
|
97
|
+
- [[Source: How to Apply GAN Architecture to Multi-Agent Code Generation]]: Christopher Galliart, freeCodeCamp, Mar 2026
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
---
|
|
2
|
+
type: synthesis
|
|
3
|
+
title: "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"
|
|
4
|
+
created: 2026-05-05
|
|
5
|
+
updated: 2026-05-05
|
|
6
|
+
tags:
|
|
7
|
+
- research
|
|
8
|
+
- memory
|
|
9
|
+
- claude-mem
|
|
10
|
+
- obsidian
|
|
11
|
+
- first-principles
|
|
12
|
+
status: developing
|
|
13
|
+
related:
|
|
14
|
+
- "[[adr-009]]"
|
|
15
|
+
- "[[persistent-memory]]"
|
|
16
|
+
- "[[memory-system-of-record-vs-ephemeral-cache]]"
|
|
17
|
+
- "[[lifecycle-hooks]]"
|
|
18
|
+
- "[[Codex Harness Innovations (OpenAI)]]"
|
|
19
|
+
- "[[Research: claude-mem over Obsidian for Harness Layer]]"
|
|
20
|
+
sources:
|
|
21
|
+
- "[[adr-009]]"
|
|
22
|
+
- "[[persistent-memory]]"
|
|
23
|
+
- "[[lifecycle-hooks]]"
|
|
24
|
+
- "[[codex-harness-innovations]]"
|
|
25
|
+
- "[[Research: claude-mem over Obsidian for Harness Layer]]"
|
|
26
|
+
---
|
|
27
|
+
|
|
28
|
+
# 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
|
|
29
|
+
|
|
30
|
+
## Overview
|
|
31
|
+
First-principles test: memory system for harness must optimize for durability, auditability, deterministic enforcement, and operator trust. Current repo already anchors these in Obsidian wiki structure and ADR-backed contracts. Result: claude-mem fits as accelerator cache, not full replacement for canonical wiki memory.
|
|
32
|
+
|
|
33
|
+
## Research Method
|
|
34
|
+
- Round 1 (broad): scan existing memory architecture pages, ADRs, and harness control pages in local wiki corpus.
|
|
35
|
+
- Round 2 (gap-fill): check for direct claude-mem source pages, benchmark pages, and operational evidence in current vault.
|
|
36
|
+
- Round 3: skipped; no new primary sources available in current corpus.
|
|
37
|
+
- Constraint note: external web fetch was blocked in this run, so all conclusions are bounded to in-vault evidence.
|
|
38
|
+
|
|
39
|
+
## First-Principles Requirements
|
|
40
|
+
1. **Canonical truth must be inspectable by humans and agents**.
|
|
41
|
+
2. **Decision provenance must be stable and linkable**.
|
|
42
|
+
3. **Memory policy compliance must not depend only on model obedience**.
|
|
43
|
+
4. **Fast recall layer can be lossy, canonical layer cannot be lossy**.
|
|
44
|
+
|
|
45
|
+
## Key Findings
|
|
46
|
+
- **(high)** Canonical memory contract already exists and is explicit: `hot.md -> index.md -> linked pages`, with append-only operations log and ADR references (Source: [[adr-009]], [[persistent-memory]]).
|
|
47
|
+
- **(high)** Harness write/read points are structurally integrated with wiki pages and event hooks (`session_start`, `session_shutdown`, decision capture), so replacement would require re-architecting multiple layers (Source: [[persistent-memory]]).
|
|
48
|
+
- **(high)** Deterministic hooks outperform prompt-only policy memory. Memory hints in prompts can drift; hook gates provide hard enforcement (Source: [[lifecycle-hooks]]).
|
|
49
|
+
- **(medium)** Automatic memory capture patterns are useful for continuity and speed, but they complement explicit knowledge systems instead of replacing them when audit/provenance matters (Source: [[codex-harness-innovations]]).
|
|
50
|
+
- **(low)** No direct claude-mem benchmark, schema, or failure-mode source is currently filed in this vault, so "replace Obsidian now" cannot be justified with high confidence (Source: [[Research: claude-mem over Obsidian for Harness Layer]]).
|
|
51
|
+
|
|
52
|
+
## Decision
|
|
53
|
+
Do **not** replace Obsidian as memory system-of-record in this codebase now.
|
|
54
|
+
|
|
55
|
+
## Where claude-mem Fits
|
|
56
|
+
- Use claude-mem as **ephemeral recall cache** for short-horizon continuity.
|
|
57
|
+
- Keep wiki as **canonical memory ledger** for decisions, ADR alignment, and contradiction handling.
|
|
58
|
+
- Enforce write-back: if task changes architecture/policy, completion requires wiki update.
|
|
59
|
+
|
|
60
|
+
## Recommended Operating Model
|
|
61
|
+
1. Read order: quick cache (claude-mem) -> `[[hot]]` -> `[[index]]` -> linked canonical pages.
|
|
62
|
+
2. Write order: decision-bearing output -> wiki first; cache may mirror but never override.
|
|
63
|
+
3. Conflict rule: cache vs wiki disagreement -> wiki wins.
|
|
64
|
+
4. Gate rule: stop-hook blocks completion if required wiki filing is missing.
|
|
65
|
+
|
|
66
|
+
## Contradictions
|
|
67
|
+
- Auto-memory value is real for speed, but speed-optimized memory and audit-optimized memory have different objective functions. Treating them as one layer causes drift.
|
|
68
|
+
|
|
69
|
+
## Open Questions
|
|
70
|
+
- Which claude-mem storage semantics (scope, retention, deletion) are acceptable for this repo?
|
|
71
|
+
- Can claude-mem emit citation/provenance pointers equivalent to wiki wikilinks?
|
|
72
|
+
- What latency/token savings appear in real runs with hybrid cache + wiki write-back?
|
|
73
|
+
- What is the merge/conflict policy when cache proposes stale memory against newer ADRs?
|
|
74
|
+
|
|
75
|
+
## Sources
|
|
76
|
+
- [[adr-009]]: canonical decision for Layer 6 memory.
|
|
77
|
+
- [[persistent-memory]]: operational read/write contract.
|
|
78
|
+
- [[lifecycle-hooks]]: deterministic enforcement model.
|
|
79
|
+
- [[codex-harness-innovations]]: implicit memory complement pattern.
|
|
80
|
+
- [[Research: claude-mem over Obsidian for Harness Layer]]: prior internal synthesis and identified gaps.
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
---
|
|
2
|
+
type: synthesis
|
|
3
|
+
title: "Research: pi-vcc"
|
|
4
|
+
created: 2026-05-05
|
|
5
|
+
updated: 2026-05-05
|
|
6
|
+
tags:
|
|
7
|
+
- research
|
|
8
|
+
- pi-agent
|
|
9
|
+
- vcc
|
|
10
|
+
- compaction
|
|
11
|
+
- deterministic
|
|
12
|
+
status: developing
|
|
13
|
+
related:
|
|
14
|
+
- "[[vcc-conversation-compaction-for-pi]]"
|
|
15
|
+
- "[[deterministic-session-compaction]]"
|
|
16
|
+
- "[[context-folding]]"
|
|
17
|
+
- "[[pi-vcc-github-repo]]"
|
|
18
|
+
- "[[pi-mono-compaction-docs]]"
|
|
19
|
+
- "[[distill-deterministic-context-compression]]"
|
|
20
|
+
- "[[codex-dsc-rfc-8573]]"
|
|
21
|
+
- "[[pi-compaction-extensions-ecosystem]]"
|
|
22
|
+
- "[[pi-rtk-optimizer-github-repo]]"
|
|
23
|
+
- "[[pi-omni-compact-github-repo]]"
|
|
24
|
+
- "[[pi-context-prune-github-repo]]"
|
|
25
|
+
- "[[anthropic-compaction-api]]"
|
|
26
|
+
- "[[context-folding-paper]]"
|
|
27
|
+
sources:
|
|
28
|
+
- "[[pi-vcc-github-repo]]"
|
|
29
|
+
- "[[pi-mono-compaction-docs]]"
|
|
30
|
+
- "[[distill-deterministic-context-compression]]"
|
|
31
|
+
- "[[codex-dsc-rfc-8573]]"
|
|
32
|
+
- "[[pi-compaction-extensions-ecosystem]]"
|
|
33
|
+
- "[[pi-rtk-optimizer-github-repo]]"
|
|
34
|
+
- "[[pi-omni-compact-github-repo]]"
|
|
35
|
+
- "[[pi-context-prune-github-repo]]"
|
|
36
|
+
- "[[anthropic-compaction-api]]"
|
|
37
|
+
- "[[context-folding-paper]]"
|
|
38
|
+
---
|
|
39
|
+
|
|
40
|
+
# Research: pi-vcc
|
|
41
|
+
|
|
42
|
+
## Overview
|
|
43
|
+
|
|
44
|
+
`pi-vcc` is the only fully deterministic session compaction extension for Pi. It achieves 35-99% token reduction with zero LLM calls, sub-500ms latency, and full JSONL recall. The Pi compaction ecosystem has grown from 4 to 7 extensions since initial research, with three distinct layers emerging: prevention, mid-session pruning, and boundary compaction. Meanwhile, Anthropic launched an official server-side compaction API (beta, January 2026) and academic research produced Context Folding (10x context reduction via RL-trained branch/return). pi-vcc's deterministic approach remains architecturally unique across all of these.
|
|
45
|
+
|
|
46
|
+
## Key Findings
|
|
47
|
+
|
|
48
|
+
1. **Pi compaction ecosystem expanded from 4 to 7 extensions**: Three new extensions emerged since April: pi-omni-compact (large-context model subprocess), pi-context-prune (tool-call batch summarization), and pi-rtk-optimizer (upstream command rewriting + output compaction). The ecosystem now operates at three distinct layers. (Source: [[pi-compaction-extensions-ecosystem]])
|
|
49
|
+
|
|
50
|
+
2. **pi-vcc remains the only zero-LLM compaction option**: Across all 7 extensions plus Anthropic's official API, pi-vcc is still the only approach that uses zero LLM calls. Every other option — including the official Anthropic Context Compaction API — relies on LLM summarization. (Source: [[pi-vcc-github-repo]], [[anthropic-compaction-api]])
|
|
51
|
+
|
|
52
|
+
3. **Anthropic launched official server-side compaction**: Beta since January 2026. Supports Claude Mythos Preview, Opus 4.7/4.6, Sonnet 4.6. Automatic threshold-based summarization. This validates compaction as a first-class platform concern. However, it has all three failure modes pi-vcc avoids: non-determinism, hallucination risk, API cost. (Source: [[anthropic-compaction-api]])
|
|
53
|
+
|
|
54
|
+
4. **Context Folding achieves 10x context reduction with 32K budget**: arXiv 2510.11967 (ByteDance Seed, CMU, Stanford). 200-step agents at 62% BrowseComp-Plus and 58% SWE-Bench Verified using only 32K tokens. Fundamentally different approach: learned branch/return sub-trajectories WITHIN a single run, vs pi-vcc's boundary compaction. (Source: [[context-folding-paper]])
|
|
55
|
+
|
|
56
|
+
5. **Tool-calling accuracy collapses ~40% past 80K tokens**: Context Folding paper quantifies the hard cliff. Past ~80K effective-context tokens, agent tool-calling accuracy drops dramatically. This is not a gradual decline — it is a cliff. Validates aggressive compaction as a correctness concern, not just a cost concern. (Source: [[context-folding-paper]])
|
|
57
|
+
|
|
58
|
+
6. **Three-layer token management architecture emerged**: Prevention (rtk-optimizer) → mid-session pruning (context-prune) → boundary compaction (vcc/others). This maps directly to our harness's layered approach to context engineering. pi-vcc operates at layer 3; it could be complemented by layers 1 and 2. (Source: [[pi-compaction-extensions-ecosystem]])
|
|
59
|
+
|
|
60
|
+
7. **pi-omni-compact represents the strongest competing philosophy**: Spawns separate Pi subprocess with 1M+ context model. Maximizes LLM compute for highest fidelity summaries. Exactly opposite of pi-vcc's philosophy: more compute for better quality vs zero compute for determinism. (Source: [[pi-omni-compact-github-repo]])
|
|
61
|
+
|
|
62
|
+
8. **Recall remains the killer differentiator**: No new extension or API offers searchable access to pre-compaction history. pi-vcc's `vcc_recall` over raw JSONL with regex + ranked multi-word queries is still unique. pi-context-prune preserves originals but for tool-call batches only, not full conversation. (Source: [[pi-vcc-github-repo]], [[pi-context-prune-github-repo]])
|
|
63
|
+
|
|
64
|
+
9. **Pi ecosystem reached 2,808+ resources**: 1,183+ extensions, 1,459 active projects. Compaction is among the highest-activity categories. pi-vcc's 75 stars and 3,299 monthly installs positions it as a mid-tier extension by adoption. (Source: [[pi-compaction-extensions-ecosystem]])
|
|
65
|
+
|
|
66
|
+
10. **65% of enterprise AI failures attributed to context drift/memory loss**: Broader industry data validates compaction as mission-critical, not optional. Combined with the 80K token accuracy cliff, this makes the case that compaction quality directly determines agent reliability. (Source: [[context-folding-paper]])
|
|
67
|
+
|
|
68
|
+
## Key Entities
|
|
69
|
+
|
|
70
|
+
- [[pi-coding-agent]]: Host platform
|
|
71
|
+
- `sting8k` (Do Anh): pi-vcc maintainer
|
|
72
|
+
- `Siddhant-K-code`: Distill maintainer
|
|
73
|
+
- `Whamp`: pi-omni-compact maintainer (competing philosophy)
|
|
74
|
+
- `championswimmer`: pi-context-prune maintainer
|
|
75
|
+
- `MasuRii`: pi-rtk-optimizer maintainer
|
|
76
|
+
- Anthropic: Official compaction API provider
|
|
77
|
+
- ByteDance Seed / CMU / Stanford: Context Folding researchers
|
|
78
|
+
|
|
79
|
+
## Key Concepts
|
|
80
|
+
|
|
81
|
+
- [[deterministic-session-compaction]]: The cross-tool pattern of no-LLM compaction
|
|
82
|
+
- [[vcc-conversation-compaction-for-pi]]: pi-vcc's specific implementation
|
|
83
|
+
- [[context-folding]]: RL-learned branch/return sub-trajectories (10x reduction)
|
|
84
|
+
- [[structured-compaction]]: Claude Code's 5-layer approach (LLM-based, different paradigm)
|
|
85
|
+
- [[context-engineering]]: Broader discipline encompassing all compaction approaches
|
|
86
|
+
|
|
87
|
+
## Contradictions
|
|
88
|
+
|
|
89
|
+
- **Codex rejected deterministic compaction but Anthropic launched LLM compaction**: OpenAI closed DSC RFC as not_planned. Anthropic launched official LLM-based compaction. Neither validates pi-vcc's deterministic approach directly, but both validate compaction as critical infrastructure.
|
|
90
|
+
- **pi-omni-compact vs pi-vcc**: Diametrically opposed philosophies. omni-compact says "use MORE compute for BETTER summaries." pi-vcc says "use ZERO compute for SAFE summaries." Both have valid use cases; the winner depends on whether you optimize for fidelity or reliability.
|
|
91
|
+
- **Context Folding outperforms summarization-based compaction**: If RL-trained folding beats LLM summarization, the gap between folding and deterministic extraction may be even larger — but folding requires training and is not available as a Pi extension.
|
|
92
|
+
|
|
93
|
+
## Open Questions
|
|
94
|
+
|
|
95
|
+
- Can pi-vcc adopt Context Folding's branch/return concept for within-run compaction (not just boundary)?
|
|
96
|
+
- Is a hybrid pi-vcc + pi-rtk-optimizer stack the optimal three-layer architecture?
|
|
97
|
+
- Should pi-vcc integrate with Anthropic's Compaction API as a fallback for nuanced sessions?
|
|
98
|
+
- Does the 80K token accuracy cliff change the optimal compaction threshold for pi-vcc?
|
|
99
|
+
- Can deterministic folding rules approximate FoldGRPO's learned behavior without RL training?
|
|
100
|
+
- With 7 competing extensions, will the Pi ecosystem consolidate or further fragment?
|
|
101
|
+
|
|
102
|
+
## Sources
|
|
103
|
+
|
|
104
|
+
- [[pi-vcc-github-repo]]: Primary source, 75 stars, v0.3.12
|
|
105
|
+
- [[pi-mono-compaction-docs]]: Pi core compaction baseline
|
|
106
|
+
- [[distill-deterministic-context-compression]]: Competing deterministic approach, different layer
|
|
107
|
+
- [[codex-dsc-rfc-8573]]: Codex's rejected but validating RFC
|
|
108
|
+
- [[pi-compaction-extensions-ecosystem]]: Full Pi compaction extension landscape (7 extensions)
|
|
109
|
+
- [[pi-rtk-optimizer-github-repo]]: Upstream token reduction (command rewriting)
|
|
110
|
+
- [[pi-omni-compact-github-repo]]: Large-context model compaction (competing philosophy)
|
|
111
|
+
- [[pi-context-prune-github-repo]]: Tool-call batch summarization
|
|
112
|
+
- [[anthropic-compaction-api]]: Official Anthropic server-side compaction (beta Jan 2026)
|
|
113
|
+
- [[context-folding-paper]]: arXiv 2510.11967, 10x context reduction via RL
|