Sign In

agent-arche

Package Overview
Dependencies
Maintainers
2
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

agent-arche

Selective Codex skills, lean hooks, indexed memory, and optional multi-agent orchestration

latest
Source
npmnpm
Version
1.3.9
Version published
Maintainers
2
Created
Source

Agent Arche

A selective Codex engineering harness: install only the skills a project needs, optionally add lean hooks and indexed memory, or opt into explicit multi-agent orchestration.

Install

npx agent-arche install

The interactive CLI first selects an installation scope, then asks for the project type and stage. Those answers determine which grouped skills are initially checked; the user can still select or deselect anything before installation.

ScopeInstallsRuntime posture
Skills onlySelected .agents/skills/ and .codex/agent-arche.jsonLowest overhead
Skills + hooksSelected skills, config, safety hooks, context compilerLean established-project setup
Skills + hooks + memoryAbove plus indexed durable memory/Recommended
Full orchestrationAbove plus orchestrator and specialized Codex agentsHighest usage

Usage warning: Full orchestration costs substantially more usage than a comparable single-agent run. Every subagent performs separate model and tool work. Choose it only when independent workstreams, noisy exploration, tests, or review benefit from delegation.

The installation metadata always lives at .codex/agent-arche.json, including Skills-only installs.

Non-interactive examples

npx agent-arche --skills-only --select-skills=implement,git --yes
npx agent-arche --skills-hooks --project-type=backend --project-stage=established --yes
npx agent-arche --skills-hooks --select-skills=implement,design,code-review --yes
npx agent-arche --skills-memory --all-skills --yes
npx agent-arche --orchestration --select-skills=implement,security-review --yes

The skill step opens with recommendations computed from the installation scope, project type, and project stage. Users can deselect any recommendation or select additional frontend, backend, planning, architecture, and delivery skills before installation. --yes accepts the computed recommendations when no explicit skill selection is supplied.

The selector keeps a fixed-height, cursor-following viewport. Use / to move, / to collapse or expand groups, Space to toggle a skill or group, Enter to confirm, and Esc to cancel.

InputRecommendation effect
Every projectCore implementation, diagnosis, testing, review, security, Git, and handoff skills
Full-stackAdds frontend design, SEO, and PostgreSQL workflows
BackendAdds PostgreSQL workflows; leaves frontend skills unchecked
FrontendAdds design and SEO workflows; leaves backend-specific skills unchecked
General / otherKeeps only the applicable core set
GreenfieldAdds project-startup
EstablishedLeaves project-startup unchecked
Full orchestrationAdds planning and architecture workflows used by delegated work

These are checkbox defaults, not locked bundles. Use --project-type and --project-stage for non-interactive profile selection, or --select-skills to override recommendations with an exact set.

Update the files managed by the recorded scope and skill selection with:

npx agent-arche update

Legacy metadata under .agents/ is still detected; the next update writes canonical metadata under .codex/.

How it works

flowchart LR
    A[User request] --> B{Installed scope}
    B -->|Skills| C[Matching selected skill]
    B -->|Hooks| D[Lean SessionStart policy]
    B -->|Memory| E[Context compiler]
    B -->|Full orchestration| F[Orchestrator]
    D --> C
    E --> G[Top ranked context snippets]
    G --> C
    F --> H[Bounded specialized subagents]
    H --> I[Evidence summaries]
    I --> F
    C --> J[Scoped implementation and checks]
    F --> J

The harness follows progressive disclosure:

  • Codex sees only installed skill names and descriptions.
  • It loads a skill body only when its trigger matches.
  • The context compiler ranks project evidence deterministically.
  • The model receives at most a small task-specific context pack rather than a full memory map.
  • Full orchestration delegates only tasks that divide cleanly.

Selectable skills

GroupSkills
Core engineeringimplement, diagnosing-bugs, tdd, code-review, karpathy-guidelines
Security and backendsecurity-review, postgres-patterns
Frontend and growthdesign, seo
Planning and architectureproject-startup, to-spec, to-tickets, grill-with-docs, codebase-design, improve-codebase-architecture
Delivery and communicationgit, handoff, caveman

project-startup is optional. Install it only for a new or unconfigured project. Established projects can omit it entirely.

Full orchestration automatically installs the orchestrate routing skill in addition to the user selection.

Every shipped skill includes agents/openai.yaml for consistent desktop UI labels and explicit invocation prompts. Codex routing still depends on the concise name and description in SKILL.md; the optional UI metadata is not a replacement for those trigger fields.

Lean hooks

The hook bundle deliberately contains only:

  • SessionStart: a short instruction to use matching installed skills and the context compiler.
  • PreToolUse: a narrow blocklist for catastrophic shell operations.

It does not force Caveman, preload Karpathy, read _MOC.md, write memory after every task, or run per-prompt/post-tool instrumentation.

Review and trust project hooks in Codex with /hooks.

Indexed memory

flowchart TD
    Q[Task and known paths] --> R[context.cjs query]
    M[Fixed-size manifest] --> R
    C[Durable cards and ADRs] --> R
    B[arche: breadcrumbs] --> R
    X[Sessions, reviews, archive, MOC] -. cold by default .-> R
    R --> K[Top 3-6 ranked snippets]
    K --> A[Agent context]

Use:

node .codex/context/context.cjs index --refresh
node .codex/context/context.cjs query --task "fix session expiry" --paths "src/auth/session.ts"
node .codex/context/context.cjs check
node .codex/context/context.cjs harvest

Memory is written only for durable novelty: decisions, cross-cutting constraints, reusable patterns, recurring gotchas, or an explicit unfinished handoff. _MOC.md stays fixed-size and exists for humans/Obsidian, not model retrieval.

See Memory design and Architecture.

Full orchestration

Full orchestration installs project-scoped agents under .codex/agents/:

  • orchestrator
  • code_explorer
  • implementation_worker
  • reviewer
  • test_runner

The orchestrator starts with at most three concurrent subagents, favors parallel read-heavy work, prevents overlapping write ownership, and requires evidence summaries rather than raw logs. Simple tasks remain single-agent.

See Orchestration.

Codex files

PathPurpose
.agents/skills/Only selected skill packages
.codex/agent-arche.jsonCanonical installed scope and skill selection
.codex/config.tomlRuntime settings for hook-enabled scopes
.codex/hooks.json, .codex/hooks/Lean lifecycle hooks
.codex/context/Deterministic context index/query compiler
.codex/agents/Full-orchestration custom agents only
memory/Indexed durable project knowledge

Durable project instructions belong in applicable AGENTS.md files. .codex/instructions.md is not used as a parallel instruction system.

Validate

npm run check
npm run build:dist
npm pack --dry-run

Credits

Agent Arche adapts and combines ideas from several open-source projects. The installed workflows may differ materially from their upstream versions:

See upstream repositories and this package's dependency lockfile for their licenses. Agent Arche itself is MIT licensed.

The component-by-component attribution map is in NOTICE.md.

Keywords

codex

FAQs

Package last updated on 12 Aug 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts