Skip to content

feat: auto-run quick project scan so agent has immediate project context#1

Draft
zurd46 wants to merge 1 commit intoclaude/typescript-cli-deepagents-O2EKxfrom
claude/ultimate-agent-file-ops-Z5l2Q
Draft

feat: auto-run quick project scan so agent has immediate project context#1
zurd46 wants to merge 1 commit intoclaude/typescript-cli-deepagents-O2EKxfrom
claude/ultimate-agent-file-ops-Z5l2Q

Conversation

@zurd46
Copy link
Copy Markdown
Owner

@zurd46 zurd46 commented Apr 16, 2026

Summary

  • autoInit now runs a quick scan (local-only, no LLM call) on first session, so the agent immediately knows the project (tree, deps, scripts, key files, tests, API routes, git info) via docs/scan.md.
  • New quick option on scanProject / scanCommand — skips the AI analysis phase. Exposed as ua scan --quick / -q.
  • autoInit only regenerates docs/scan.md if it doesn't already exist — safe to call repeatedly.
  • Full AI-powered architecture analysis remains available via ua scan --force.

Why

Previously users had to run ua scan manually before the agent had any real project context. With Gemma as the default model, the agent would frequently ask about or guess structure it could have known from docs/scan.md. The quick scan is fast enough to run on every first session without blocking the user.

Test plan

  • First run in a fresh project: .ultraagent/ is created and docs/scan.md appears without any LLM call
  • Second run in same project: no re-scan (scan.md exists)
  • ua scan --quick produces scan.md without triggering the LLM
  • ua scan --force still performs the full AI analysis
  • Gemma session reads scan.md and references project details without being told

https://claude.ai/code/session_017vLiHKV6jN42JoDRo7QJNr

…iate project context

Previously autoInit skipped the scan entirely — users had to run `ua scan`
manually before the agent knew anything about the project. Now autoInit
performs a fast, local-only scan (no LLM call) that generates docs/scan.md
with directory tree, dependencies, scripts, key files, test files, API
routes and git info. The agent picks this up automatically via the existing
scan.md injection in agent-factory.

Full AI-powered architecture analysis remains available via `ua scan --force`
or the new `ua scan --quick` flag for explicit quick scans.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants