Evaluating Local Coding Agents with Login and Registration Tasks

    This article explains how to evaluate coding agents using login and registration development tasks. It covers how to turn vague requirements into verifiable acceptance criteria, why bug fixing and feature development should be measured separately, how quantization and deployment settings affect results, why task completion time matters more than text generation speed, and how to build layered, repeatable automated tests.

    1. Judging Coding Agents by Login and Registration Tasks

    A coding agent should not be judged only by whether it can produce a login page or generate identity-checking code that looks correct. Real engineering work requires the agent to understand existing code, locate problems, modify implementations, call tools, run tests, and keep fixing issues after failures.

    Login and registration cover these steps well. A complete registration flow must handle input validation, account uniqueness, secure password storage, duplicate submissions, and error feedback. The login flow involves credential verification, session creation, access control, rate limiting after failed attempts, and invalidating session state after logout. These capabilities span the user interface, the server, data storage, and security boundaries, which makes them a good comprehensive test case for coding agents.

    The local coding experiment in the reference material offers a useful approach: let the agent call controlled tools, complete bug fixes and full application builds, and then check the results with an automated program. However, one run that finished quickly, involved fewer interactions, or passed more tests does not prove that a particular model or quantization method has a general advantage.

    A more useful approach is to shift the focus from product rankings to a general question: under a fixed resource budget, how can we judge whether a coding agent can develop login and registration features safely, reliably, and efficiently?

    2. Define the Task Boundary First, Then Discuss Results

    1. Break “complete login and registration” into verifiable requirements

    Vague requirements distort evaluation. For example, “implement secure login” does not define what security means or specify the session lifecycle. The result may have a working page while core protections are missing.

    Split acceptance requirements into at least four layers:

    • Functional layer: legitimate users can register, log in, check their current identity, and log out.
    • Data layer: account identifiers meet uniqueness requirements, and failed requests do not leave incomplete data behind.
    • Security layer: passwords are not stored in plaintext, unauthenticated requests cannot access protected resources, and the original session cannot be used after logout.
    • Engineering layer: the code starts in the agreed environment, tests can run repeatedly, and changes do not break existing functionality.

    Each layer should have clear preconditions, steps, and expected results. For example, “logout succeeded” should not be judged only by a page redirect. The evaluator should also reuse the original session to access a protected resource and confirm that the server rejects the request.

    2. Separate bug fixing from full feature development

    Bug fixing mainly tests understanding and diagnosis. The key questions are whether the agent can find the root cause, fix the problem with a small change, and avoid introducing regressions.

    Full feature development puts more weight on design. The key questions are whether interface contracts are consistent, whether data constraints are reasonable, whether error handling is complete, and whether tests cover critical paths.

    Measure these two task types separately instead of combining them into one pass rate. Otherwise, an agent that generates new code well but maintains old code poorly could have its real weakness hidden by an overall score.

    3. Quantization and Local Deployment: Do Not Judge Results by Precision Labels Alone

    Quantization is an important technique for reducing memory pressure when running large models locally. The basic idea is to represent some values at lower precision and use mechanisms such as scaling to reduce representation error. This lowers model storage and some computation and memory access costs.

    However, lower precision does not automatically mean faster inference, and it does not necessarily mean a significant drop in capability. Actual performance depends on several factors:

    • model architecture and parameter size;
    • the scope of quantization and its specific implementation;
    • the inference engine’s support for compute operators;
    • context length and the number of concurrent requests;
    • data transfer costs between devices;
    • the length and structure of tool output.

    When different models use different quantization schemes, test results reflect both model capability and deployment configuration. Differences should not be attributed entirely to quantization.

    To study the effect of quantization itself, keep the model, tasks, inference configuration, and hardware fixed, and change only the quantization setting. To choose a deployment option for real use, compare complete combinations. Phrase the conclusion as “how this deployment combination performed on this task set,” not as “this numerical format is inherently better.”

    4. Center Speed Evaluation on Task Completion

    1. Total time is not the same as text generation speed

    A coding agent’s workflow includes reading files, analyzing problems, modifying code, running tests, and handling errors. Even when the model generates text quickly, the agent may take a long time to finish if it tries and fails repeatedly.

    Total time can be conceptually broken down as:

    Total time = model inference time + tool execution time + scheduling wait time + rework time

    Tool execution time may include dependency preparation, project builds, and test runs. Rework time reflects whether the first modification was effective.

    Record at least the total task time, the amount of generated output, the number of tool calls, the number of repair attempts after failures, and the time needed to pass acceptance on the first complete run. Showing only how many text units are generated per second rarely reflects real development efficiency.

    2. Short output may be faster, but it can also hide omissions

    Less output usually means less decoding work. That brevity only matters if the task passes acceptance in full.

    If an agent reduces output by skipping exception handling, skipping tests, or cutting requirements, the apparent speed advantage is not an engineering gain. A sound comparison first confirms that functionality, security, and completeness meet the standard, then compares resource consumption and completion time.

    3. Fewer interaction rounds is not necessarily better

    Fewer rounds may indicate a clear plan and effective tool use. They may also come from rounds that each contain many read and edit operations. More rounds may reflect careful verification, or they may reflect inefficient trial and error.

    Judge by the content of the calls. Check whether reads are targeted, whether edits are focused, whether failures are explained, and whether the same kind of error keeps recurring. Round count should serve as a behavioral analysis metric, not as a standalone quality ranking.

    5. Automated Acceptance Should Check Behavior, Not Just Code Presence

    1. Build a layered acceptance system

    Login and registration tasks suit multi-layer automated checks:

    Static checks find syntax errors, type inconsistencies, obvious exposure of sensitive information, and code structures that do not follow conventions.

    Unit tests verify local logic such as input validation, credential handling, and session state transitions.

    Integration tests check how interfaces work with storage, and how authentication state works with access control.

    End-to-end tests verify the complete user path: registration, login, accessing a protected page, logout, and attempting access again.

    Each type of check has limits. Passing static checks does not mean the business logic is correct, and passing local tests does not mean the full flow is reliable.

    2. Cover negative paths and concurrency boundaries

    Testing only a correct account with a correct password reveals little about the reliability of authentication. More valuable tests include:

    • registering the same account twice, and checking that the duplicate is rejected consistently;
    • sending two registration requests for the same account at the same time, and checking that database constraints still hold;
    • logging in with wrong credentials, and checking whether the error message reveals whether an account exists;
    • after session expiry or logout, checking whether the old credential can still access resources;
    • submitting overly long input or unusual characters, and checking whether the service handles them stably;
    • sending consecutive failed requests, and checking whether the protection policy takes effect as designed.

    Concurrent registration is especially effective at exposing flaws in “check first, then write” implementations. Application-level checks help produce better error messages, but account uniqueness should still be enforced by reliable data constraints.

    3. Prevent “changing tests to pass tests”

    When an agent can modify project files, define which files it may change and which acceptance materials are read-only. Otherwise, it may weaken assertions or bypass failing checks without intending to, which makes the pass rate meaningless.

    Run formal acceptance in an isolated environment and keep some hidden test cases. During development, some tests can be visible so the agent understands the contract. The final evaluation should check boundary behavior that is not shown directly.

    Machine scoring is not objective by default. It improves consistency only when the